@cosmotech/api-ts 2.4.2-dev → 2.4.5-private

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/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Cosmo Tech Platform API
6
6
  * Cosmo Tech Platform API
7
7
  *
8
- * The version of the OpenAPI document: 2.3.9-rc
8
+ * The version of the OpenAPI document: 2.4.5-private
9
9
  * Contact: platform@cosmotech.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -73,7 +73,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
73
73
  }
74
74
  };
75
75
  Object.defineProperty(exports, "__esModule", { value: true });
76
- exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.UserPlatformRolesEnum = exports.SourceInfoTypeEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateHandlerId = exports.ConnectorIoTypesEnum = void 0;
76
+ exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = exports.ValidatorApi = exports.ValidatorApiFactory = exports.ValidatorApiFp = exports.ValidatorApiAxiosParamCreator = exports.TwingraphApi = exports.TwingraphApiFactory = exports.TwingraphApiFp = exports.TwingraphApiAxiosParamCreator = exports.SolutionApi = exports.SolutionApiFactory = exports.SolutionApiFp = exports.SolutionApiAxiosParamCreator = exports.ScenariorunApi = exports.ScenariorunApiFactory = exports.ScenariorunApiFp = exports.ScenariorunApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.DatasetApi = exports.DatasetApiFactory = exports.DatasetApiFp = exports.DatasetApiAxiosParamCreator = exports.ConnectorApi = exports.ConnectorApiFactory = exports.ConnectorApiFp = exports.ConnectorApiAxiosParamCreator = exports.ValidatorRunStateEnum = exports.SourceInfoTypeEnum = exports.ScenarioValidationStatus = exports.ScenarioRunState = exports.ScenarioRunSearchStateEnum = exports.ScenarioJobState = exports.RunTemplateStepSource = exports.RunTemplateHandlerId = exports.ConnectorIoTypesEnum = void 0;
77
77
  var axios_1 = require("axios");
78
78
  // Some imports not used depending on template conditions
79
79
  // @ts-ignore
@@ -161,11 +161,6 @@ exports.SourceInfoTypeEnum = {
161
161
  Adt: 'ADT',
162
162
  Storage: 'Storage'
163
163
  };
164
- exports.UserPlatformRolesEnum = {
165
- Admin: 'Admin',
166
- User: 'User',
167
- ConnectorDeveloper: 'ConnectorDeveloper'
168
- };
169
164
  exports.ValidatorRunStateEnum = {
170
165
  Running: 'Running',
171
166
  Finished: 'Finished',
@@ -181,10 +176,12 @@ exports.ConnectorApiAxiosParamCreator = function (configuration) {
181
176
  /**
182
177
  *
183
178
  * @summary List all Connectors
179
+ * @param {number} [page] page number to query
180
+ * @param {number} [size] amount of result by page
184
181
  * @param {*} [options] Override http request option.
185
182
  * @throws {RequiredError}
186
183
  */
187
- findAllConnectors: function (options) {
184
+ findAllConnectors: function (page, size, options) {
188
185
  if (options === void 0) { options = {}; }
189
186
  return __awaiter(_this, void 0, void 0, function () {
190
187
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -206,6 +203,12 @@ exports.ConnectorApiAxiosParamCreator = function (configuration) {
206
203
  // authentication oAuth2AuthCode required
207
204
  // oauth required
208
205
  _a.sent();
206
+ if (page !== undefined) {
207
+ localVarQueryParameter['page'] = page;
208
+ }
209
+ if (size !== undefined) {
210
+ localVarQueryParameter['size'] = size;
211
+ }
209
212
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
210
213
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
214
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -260,6 +263,50 @@ exports.ConnectorApiAxiosParamCreator = function (configuration) {
260
263
  });
261
264
  });
262
265
  },
266
+ /**
267
+ *
268
+ * @summary Import existing connector
269
+ * @param {Connector} connector the Connector to import
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ importConnector: function (connector, options) {
274
+ if (options === void 0) { options = {}; }
275
+ return __awaiter(_this, void 0, void 0, function () {
276
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
277
+ return __generator(this, function (_a) {
278
+ switch (_a.label) {
279
+ case 0:
280
+ // verify required parameter 'connector' is not null or undefined
281
+ common_1.assertParamExists('importConnector', 'connector', connector);
282
+ localVarPath = "/connectors/import";
283
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
284
+ if (configuration) {
285
+ baseOptions = configuration.baseOptions;
286
+ }
287
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
288
+ localVarHeaderParameter = {};
289
+ localVarQueryParameter = {};
290
+ // authentication oAuth2AuthCode required
291
+ // oauth required
292
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
293
+ case 1:
294
+ // authentication oAuth2AuthCode required
295
+ // oauth required
296
+ _a.sent();
297
+ localVarHeaderParameter['Content-Type'] = 'application/json';
298
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
299
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
300
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
301
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(connector, localVarRequestOptions, configuration);
302
+ return [2 /*return*/, {
303
+ url: common_1.toPathString(localVarUrlObj),
304
+ options: localVarRequestOptions,
305
+ }];
306
+ }
307
+ });
308
+ });
309
+ },
263
310
  /**
264
311
  *
265
312
  * @summary Register a new connector
@@ -359,15 +406,17 @@ exports.ConnectorApiFp = function (configuration) {
359
406
  /**
360
407
  *
361
408
  * @summary List all Connectors
409
+ * @param {number} [page] page number to query
410
+ * @param {number} [size] amount of result by page
362
411
  * @param {*} [options] Override http request option.
363
412
  * @throws {RequiredError}
364
413
  */
365
- findAllConnectors: function (options) {
414
+ findAllConnectors: function (page, size, options) {
366
415
  return __awaiter(this, void 0, void 0, function () {
367
416
  var localVarAxiosArgs;
368
417
  return __generator(this, function (_a) {
369
418
  switch (_a.label) {
370
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllConnectors(options)];
419
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllConnectors(page, size, options)];
371
420
  case 1:
372
421
  localVarAxiosArgs = _a.sent();
373
422
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -395,6 +444,26 @@ exports.ConnectorApiFp = function (configuration) {
395
444
  });
396
445
  });
397
446
  },
447
+ /**
448
+ *
449
+ * @summary Import existing connector
450
+ * @param {Connector} connector the Connector to import
451
+ * @param {*} [options] Override http request option.
452
+ * @throws {RequiredError}
453
+ */
454
+ importConnector: function (connector, options) {
455
+ return __awaiter(this, void 0, void 0, function () {
456
+ var localVarAxiosArgs;
457
+ return __generator(this, function (_a) {
458
+ switch (_a.label) {
459
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importConnector(connector, options)];
460
+ case 1:
461
+ localVarAxiosArgs = _a.sent();
462
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
463
+ }
464
+ });
465
+ });
466
+ },
398
467
  /**
399
468
  *
400
469
  * @summary Register a new connector
@@ -447,11 +516,13 @@ exports.ConnectorApiFactory = function (configuration, basePath, axios) {
447
516
  /**
448
517
  *
449
518
  * @summary List all Connectors
519
+ * @param {number} [page] page number to query
520
+ * @param {number} [size] amount of result by page
450
521
  * @param {*} [options] Override http request option.
451
522
  * @throws {RequiredError}
452
523
  */
453
- findAllConnectors: function (options) {
454
- return localVarFp.findAllConnectors(options).then(function (request) { return request(axios, basePath); });
524
+ findAllConnectors: function (page, size, options) {
525
+ return localVarFp.findAllConnectors(page, size, options).then(function (request) { return request(axios, basePath); });
455
526
  },
456
527
  /**
457
528
  *
@@ -463,6 +534,16 @@ exports.ConnectorApiFactory = function (configuration, basePath, axios) {
463
534
  findConnectorById: function (connectorId, options) {
464
535
  return localVarFp.findConnectorById(connectorId, options).then(function (request) { return request(axios, basePath); });
465
536
  },
537
+ /**
538
+ *
539
+ * @summary Import existing connector
540
+ * @param {Connector} connector the Connector to import
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ */
544
+ importConnector: function (connector, options) {
545
+ return localVarFp.importConnector(connector, options).then(function (request) { return request(axios, basePath); });
546
+ },
466
547
  /**
467
548
  *
468
549
  * @summary Register a new connector
@@ -499,13 +580,15 @@ var ConnectorApi = /** @class */ (function (_super) {
499
580
  /**
500
581
  *
501
582
  * @summary List all Connectors
583
+ * @param {number} [page] page number to query
584
+ * @param {number} [size] amount of result by page
502
585
  * @param {*} [options] Override http request option.
503
586
  * @throws {RequiredError}
504
587
  * @memberof ConnectorApi
505
588
  */
506
- ConnectorApi.prototype.findAllConnectors = function (options) {
589
+ ConnectorApi.prototype.findAllConnectors = function (page, size, options) {
507
590
  var _this = this;
508
- return exports.ConnectorApiFp(this.configuration).findAllConnectors(options).then(function (request) { return request(_this.axios, _this.basePath); });
591
+ return exports.ConnectorApiFp(this.configuration).findAllConnectors(page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
509
592
  };
510
593
  /**
511
594
  *
@@ -519,6 +602,18 @@ var ConnectorApi = /** @class */ (function (_super) {
519
602
  var _this = this;
520
603
  return exports.ConnectorApiFp(this.configuration).findConnectorById(connectorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
521
604
  };
605
+ /**
606
+ *
607
+ * @summary Import existing connector
608
+ * @param {Connector} connector the Connector to import
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ * @memberof ConnectorApi
612
+ */
613
+ ConnectorApi.prototype.importConnector = function (connector, options) {
614
+ var _this = this;
615
+ return exports.ConnectorApiFp(this.configuration).importConnector(connector, options).then(function (request) { return request(_this.axios, _this.basePath); });
616
+ };
522
617
  /**
523
618
  *
524
619
  * @summary Register a new connector
@@ -752,10 +847,12 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
752
847
  *
753
848
  * @summary List all Datasets
754
849
  * @param {string} organizationId the Organization identifier
850
+ * @param {number} [page] page number to query
851
+ * @param {number} [size] amount of result by page
755
852
  * @param {*} [options] Override http request option.
756
853
  * @throws {RequiredError}
757
854
  */
758
- findAllDatasets: function (organizationId, options) {
855
+ findAllDatasets: function (organizationId, page, size, options) {
759
856
  if (options === void 0) { options = {}; }
760
857
  return __awaiter(_this, void 0, void 0, function () {
761
858
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -780,6 +877,12 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
780
877
  // authentication oAuth2AuthCode required
781
878
  // oauth required
782
879
  _a.sent();
880
+ if (page !== undefined) {
881
+ localVarQueryParameter['page'] = page;
882
+ }
883
+ if (size !== undefined) {
884
+ localVarQueryParameter['size'] = size;
885
+ }
783
886
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
784
887
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
785
888
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -838,6 +941,54 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
838
941
  });
839
942
  });
840
943
  },
944
+ /**
945
+ *
946
+ * @summary Import a new Dataset
947
+ * @param {string} organizationId the Organization identifier
948
+ * @param {Dataset} dataset the Dataset to import
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ */
952
+ importDataset: function (organizationId, dataset, options) {
953
+ if (options === void 0) { options = {}; }
954
+ return __awaiter(_this, void 0, void 0, function () {
955
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
956
+ return __generator(this, function (_a) {
957
+ switch (_a.label) {
958
+ case 0:
959
+ // verify required parameter 'organizationId' is not null or undefined
960
+ common_1.assertParamExists('importDataset', 'organizationId', organizationId);
961
+ // verify required parameter 'dataset' is not null or undefined
962
+ common_1.assertParamExists('importDataset', 'dataset', dataset);
963
+ localVarPath = "/organizations/{organization_id}/datasets/import"
964
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
965
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
966
+ if (configuration) {
967
+ baseOptions = configuration.baseOptions;
968
+ }
969
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
970
+ localVarHeaderParameter = {};
971
+ localVarQueryParameter = {};
972
+ // authentication oAuth2AuthCode required
973
+ // oauth required
974
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
975
+ case 1:
976
+ // authentication oAuth2AuthCode required
977
+ // oauth required
978
+ _a.sent();
979
+ localVarHeaderParameter['Content-Type'] = 'application/json';
980
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
981
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
982
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
983
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(dataset, localVarRequestOptions, configuration);
984
+ return [2 /*return*/, {
985
+ url: common_1.toPathString(localVarUrlObj),
986
+ options: localVarRequestOptions,
987
+ }];
988
+ }
989
+ });
990
+ });
991
+ },
841
992
  /**
842
993
  *
843
994
  * @summary Remove all Dataset Compatibility elements from the Dataset specified
@@ -890,10 +1041,12 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
890
1041
  * @summary Search Datasets
891
1042
  * @param {string} organizationId the Organization identifier
892
1043
  * @param {DatasetSearch} datasetSearch the Dataset search parameters
1044
+ * @param {number} [page] page number to query
1045
+ * @param {number} [size] amount of result by page
893
1046
  * @param {*} [options] Override http request option.
894
1047
  * @throws {RequiredError}
895
1048
  */
896
- searchDatasets: function (organizationId, datasetSearch, options) {
1049
+ searchDatasets: function (organizationId, datasetSearch, page, size, options) {
897
1050
  if (options === void 0) { options = {}; }
898
1051
  return __awaiter(_this, void 0, void 0, function () {
899
1052
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -920,6 +1073,12 @@ exports.DatasetApiAxiosParamCreator = function (configuration) {
920
1073
  // authentication oAuth2AuthCode required
921
1074
  // oauth required
922
1075
  _a.sent();
1076
+ if (page !== undefined) {
1077
+ localVarQueryParameter['page'] = page;
1078
+ }
1079
+ if (size !== undefined) {
1080
+ localVarQueryParameter['size'] = size;
1081
+ }
923
1082
  localVarHeaderParameter['Content-Type'] = 'application/json';
924
1083
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
925
1084
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1083,15 +1242,17 @@ exports.DatasetApiFp = function (configuration) {
1083
1242
  *
1084
1243
  * @summary List all Datasets
1085
1244
  * @param {string} organizationId the Organization identifier
1245
+ * @param {number} [page] page number to query
1246
+ * @param {number} [size] amount of result by page
1086
1247
  * @param {*} [options] Override http request option.
1087
1248
  * @throws {RequiredError}
1088
1249
  */
1089
- findAllDatasets: function (organizationId, options) {
1250
+ findAllDatasets: function (organizationId, page, size, options) {
1090
1251
  return __awaiter(this, void 0, void 0, function () {
1091
1252
  var localVarAxiosArgs;
1092
1253
  return __generator(this, function (_a) {
1093
1254
  switch (_a.label) {
1094
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllDatasets(organizationId, options)];
1255
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllDatasets(organizationId, page, size, options)];
1095
1256
  case 1:
1096
1257
  localVarAxiosArgs = _a.sent();
1097
1258
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1120,6 +1281,27 @@ exports.DatasetApiFp = function (configuration) {
1120
1281
  });
1121
1282
  });
1122
1283
  },
1284
+ /**
1285
+ *
1286
+ * @summary Import a new Dataset
1287
+ * @param {string} organizationId the Organization identifier
1288
+ * @param {Dataset} dataset the Dataset to import
1289
+ * @param {*} [options] Override http request option.
1290
+ * @throws {RequiredError}
1291
+ */
1292
+ importDataset: function (organizationId, dataset, options) {
1293
+ return __awaiter(this, void 0, void 0, function () {
1294
+ var localVarAxiosArgs;
1295
+ return __generator(this, function (_a) {
1296
+ switch (_a.label) {
1297
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importDataset(organizationId, dataset, options)];
1298
+ case 1:
1299
+ localVarAxiosArgs = _a.sent();
1300
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1301
+ }
1302
+ });
1303
+ });
1304
+ },
1123
1305
  /**
1124
1306
  *
1125
1307
  * @summary Remove all Dataset Compatibility elements from the Dataset specified
@@ -1146,15 +1328,17 @@ exports.DatasetApiFp = function (configuration) {
1146
1328
  * @summary Search Datasets
1147
1329
  * @param {string} organizationId the Organization identifier
1148
1330
  * @param {DatasetSearch} datasetSearch the Dataset search parameters
1331
+ * @param {number} [page] page number to query
1332
+ * @param {number} [size] amount of result by page
1149
1333
  * @param {*} [options] Override http request option.
1150
1334
  * @throws {RequiredError}
1151
1335
  */
1152
- searchDatasets: function (organizationId, datasetSearch, options) {
1336
+ searchDatasets: function (organizationId, datasetSearch, page, size, options) {
1153
1337
  return __awaiter(this, void 0, void 0, function () {
1154
1338
  var localVarAxiosArgs;
1155
1339
  return __generator(this, function (_a) {
1156
1340
  switch (_a.label) {
1157
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchDatasets(organizationId, datasetSearch, options)];
1341
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchDatasets(organizationId, datasetSearch, page, size, options)];
1158
1342
  case 1:
1159
1343
  localVarAxiosArgs = _a.sent();
1160
1344
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1242,11 +1426,13 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
1242
1426
  *
1243
1427
  * @summary List all Datasets
1244
1428
  * @param {string} organizationId the Organization identifier
1429
+ * @param {number} [page] page number to query
1430
+ * @param {number} [size] amount of result by page
1245
1431
  * @param {*} [options] Override http request option.
1246
1432
  * @throws {RequiredError}
1247
1433
  */
1248
- findAllDatasets: function (organizationId, options) {
1249
- return localVarFp.findAllDatasets(organizationId, options).then(function (request) { return request(axios, basePath); });
1434
+ findAllDatasets: function (organizationId, page, size, options) {
1435
+ return localVarFp.findAllDatasets(organizationId, page, size, options).then(function (request) { return request(axios, basePath); });
1250
1436
  },
1251
1437
  /**
1252
1438
  *
@@ -1259,6 +1445,17 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
1259
1445
  findDatasetById: function (organizationId, datasetId, options) {
1260
1446
  return localVarFp.findDatasetById(organizationId, datasetId, options).then(function (request) { return request(axios, basePath); });
1261
1447
  },
1448
+ /**
1449
+ *
1450
+ * @summary Import a new Dataset
1451
+ * @param {string} organizationId the Organization identifier
1452
+ * @param {Dataset} dataset the Dataset to import
1453
+ * @param {*} [options] Override http request option.
1454
+ * @throws {RequiredError}
1455
+ */
1456
+ importDataset: function (organizationId, dataset, options) {
1457
+ return localVarFp.importDataset(organizationId, dataset, options).then(function (request) { return request(axios, basePath); });
1458
+ },
1262
1459
  /**
1263
1460
  *
1264
1461
  * @summary Remove all Dataset Compatibility elements from the Dataset specified
@@ -1275,11 +1472,13 @@ exports.DatasetApiFactory = function (configuration, basePath, axios) {
1275
1472
  * @summary Search Datasets
1276
1473
  * @param {string} organizationId the Organization identifier
1277
1474
  * @param {DatasetSearch} datasetSearch the Dataset search parameters
1475
+ * @param {number} [page] page number to query
1476
+ * @param {number} [size] amount of result by page
1278
1477
  * @param {*} [options] Override http request option.
1279
1478
  * @throws {RequiredError}
1280
1479
  */
1281
- searchDatasets: function (organizationId, datasetSearch, options) {
1282
- return localVarFp.searchDatasets(organizationId, datasetSearch, options).then(function (request) { return request(axios, basePath); });
1480
+ searchDatasets: function (organizationId, datasetSearch, page, size, options) {
1481
+ return localVarFp.searchDatasets(organizationId, datasetSearch, page, size, options).then(function (request) { return request(axios, basePath); });
1283
1482
  },
1284
1483
  /**
1285
1484
  *
@@ -1363,13 +1562,15 @@ var DatasetApi = /** @class */ (function (_super) {
1363
1562
  *
1364
1563
  * @summary List all Datasets
1365
1564
  * @param {string} organizationId the Organization identifier
1565
+ * @param {number} [page] page number to query
1566
+ * @param {number} [size] amount of result by page
1366
1567
  * @param {*} [options] Override http request option.
1367
1568
  * @throws {RequiredError}
1368
1569
  * @memberof DatasetApi
1369
1570
  */
1370
- DatasetApi.prototype.findAllDatasets = function (organizationId, options) {
1571
+ DatasetApi.prototype.findAllDatasets = function (organizationId, page, size, options) {
1371
1572
  var _this = this;
1372
- return exports.DatasetApiFp(this.configuration).findAllDatasets(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1573
+ return exports.DatasetApiFp(this.configuration).findAllDatasets(organizationId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
1373
1574
  };
1374
1575
  /**
1375
1576
  *
@@ -1384,6 +1585,19 @@ var DatasetApi = /** @class */ (function (_super) {
1384
1585
  var _this = this;
1385
1586
  return exports.DatasetApiFp(this.configuration).findDatasetById(organizationId, datasetId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1386
1587
  };
1588
+ /**
1589
+ *
1590
+ * @summary Import a new Dataset
1591
+ * @param {string} organizationId the Organization identifier
1592
+ * @param {Dataset} dataset the Dataset to import
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ * @memberof DatasetApi
1596
+ */
1597
+ DatasetApi.prototype.importDataset = function (organizationId, dataset, options) {
1598
+ var _this = this;
1599
+ return exports.DatasetApiFp(this.configuration).importDataset(organizationId, dataset, options).then(function (request) { return request(_this.axios, _this.basePath); });
1600
+ };
1387
1601
  /**
1388
1602
  *
1389
1603
  * @summary Remove all Dataset Compatibility elements from the Dataset specified
@@ -1402,13 +1616,15 @@ var DatasetApi = /** @class */ (function (_super) {
1402
1616
  * @summary Search Datasets
1403
1617
  * @param {string} organizationId the Organization identifier
1404
1618
  * @param {DatasetSearch} datasetSearch the Dataset search parameters
1619
+ * @param {number} [page] page number to query
1620
+ * @param {number} [size] amount of result by page
1405
1621
  * @param {*} [options] Override http request option.
1406
1622
  * @throws {RequiredError}
1407
1623
  * @memberof DatasetApi
1408
1624
  */
1409
- DatasetApi.prototype.searchDatasets = function (organizationId, datasetSearch, options) {
1625
+ DatasetApi.prototype.searchDatasets = function (organizationId, datasetSearch, page, size, options) {
1410
1626
  var _this = this;
1411
- return exports.DatasetApiFp(this.configuration).searchDatasets(organizationId, datasetSearch, options).then(function (request) { return request(_this.axios, _this.basePath); });
1627
+ return exports.DatasetApiFp(this.configuration).searchDatasets(organizationId, datasetSearch, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
1412
1628
  };
1413
1629
  /**
1414
1630
  *
@@ -1485,10 +1701,12 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1485
1701
  /**
1486
1702
  *
1487
1703
  * @summary List all Organizations
1704
+ * @param {number} [page] page number to query
1705
+ * @param {number} [size] amount of result by page
1488
1706
  * @param {*} [options] Override http request option.
1489
1707
  * @throws {RequiredError}
1490
1708
  */
1491
- findAllOrganizations: function (options) {
1709
+ findAllOrganizations: function (page, size, options) {
1492
1710
  if (options === void 0) { options = {}; }
1493
1711
  return __awaiter(_this, void 0, void 0, function () {
1494
1712
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1510,6 +1728,12 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1510
1728
  // authentication oAuth2AuthCode required
1511
1729
  // oauth required
1512
1730
  _a.sent();
1731
+ if (page !== undefined) {
1732
+ localVarQueryParameter['page'] = page;
1733
+ }
1734
+ if (size !== undefined) {
1735
+ localVarQueryParameter['size'] = size;
1736
+ }
1513
1737
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1514
1738
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1515
1739
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1783,6 +2007,50 @@ exports.OrganizationApiAxiosParamCreator = function (configuration) {
1783
2007
  });
1784
2008
  });
1785
2009
  },
2010
+ /**
2011
+ *
2012
+ * @summary Import an organization
2013
+ * @param {Organization} organization the Organization to import
2014
+ * @param {*} [options] Override http request option.
2015
+ * @throws {RequiredError}
2016
+ */
2017
+ importOrganization: function (organization, options) {
2018
+ if (options === void 0) { options = {}; }
2019
+ return __awaiter(_this, void 0, void 0, function () {
2020
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2021
+ return __generator(this, function (_a) {
2022
+ switch (_a.label) {
2023
+ case 0:
2024
+ // verify required parameter 'organization' is not null or undefined
2025
+ common_1.assertParamExists('importOrganization', 'organization', organization);
2026
+ localVarPath = "/organizations/import";
2027
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2028
+ if (configuration) {
2029
+ baseOptions = configuration.baseOptions;
2030
+ }
2031
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2032
+ localVarHeaderParameter = {};
2033
+ localVarQueryParameter = {};
2034
+ // authentication oAuth2AuthCode required
2035
+ // oauth required
2036
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
2037
+ case 1:
2038
+ // authentication oAuth2AuthCode required
2039
+ // oauth required
2040
+ _a.sent();
2041
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2042
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2043
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2044
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2045
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(organization, localVarRequestOptions, configuration);
2046
+ return [2 /*return*/, {
2047
+ url: common_1.toPathString(localVarUrlObj),
2048
+ options: localVarRequestOptions,
2049
+ }];
2050
+ }
2051
+ });
2052
+ });
2053
+ },
1786
2054
  /**
1787
2055
  *
1788
2056
  * @summary Register a new organization
@@ -2242,15 +2510,17 @@ exports.OrganizationApiFp = function (configuration) {
2242
2510
  /**
2243
2511
  *
2244
2512
  * @summary List all Organizations
2513
+ * @param {number} [page] page number to query
2514
+ * @param {number} [size] amount of result by page
2245
2515
  * @param {*} [options] Override http request option.
2246
2516
  * @throws {RequiredError}
2247
2517
  */
2248
- findAllOrganizations: function (options) {
2518
+ findAllOrganizations: function (page, size, options) {
2249
2519
  return __awaiter(this, void 0, void 0, function () {
2250
2520
  var localVarAxiosArgs;
2251
2521
  return __generator(this, function (_a) {
2252
2522
  switch (_a.label) {
2253
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllOrganizations(options)];
2523
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllOrganizations(page, size, options)];
2254
2524
  case 1:
2255
2525
  localVarAxiosArgs = _a.sent();
2256
2526
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2379,6 +2649,26 @@ exports.OrganizationApiFp = function (configuration) {
2379
2649
  });
2380
2650
  });
2381
2651
  },
2652
+ /**
2653
+ *
2654
+ * @summary Import an organization
2655
+ * @param {Organization} organization the Organization to import
2656
+ * @param {*} [options] Override http request option.
2657
+ * @throws {RequiredError}
2658
+ */
2659
+ importOrganization: function (organization, options) {
2660
+ return __awaiter(this, void 0, void 0, function () {
2661
+ var localVarAxiosArgs;
2662
+ return __generator(this, function (_a) {
2663
+ switch (_a.label) {
2664
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importOrganization(organization, options)];
2665
+ case 1:
2666
+ localVarAxiosArgs = _a.sent();
2667
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2668
+ }
2669
+ });
2670
+ });
2671
+ },
2382
2672
  /**
2383
2673
  *
2384
2674
  * @summary Register a new organization
@@ -2590,11 +2880,13 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2590
2880
  /**
2591
2881
  *
2592
2882
  * @summary List all Organizations
2883
+ * @param {number} [page] page number to query
2884
+ * @param {number} [size] amount of result by page
2593
2885
  * @param {*} [options] Override http request option.
2594
2886
  * @throws {RequiredError}
2595
2887
  */
2596
- findAllOrganizations: function (options) {
2597
- return localVarFp.findAllOrganizations(options).then(function (request) { return request(axios, basePath); });
2888
+ findAllOrganizations: function (page, size, options) {
2889
+ return localVarFp.findAllOrganizations(page, size, options).then(function (request) { return request(axios, basePath); });
2598
2890
  },
2599
2891
  /**
2600
2892
  *
@@ -2657,6 +2949,16 @@ exports.OrganizationApiFactory = function (configuration, basePath, axios) {
2657
2949
  getOrganizationSecurityUsers: function (organizationId, options) {
2658
2950
  return localVarFp.getOrganizationSecurityUsers(organizationId, options).then(function (request) { return request(axios, basePath); });
2659
2951
  },
2952
+ /**
2953
+ *
2954
+ * @summary Import an organization
2955
+ * @param {Organization} organization the Organization to import
2956
+ * @param {*} [options] Override http request option.
2957
+ * @throws {RequiredError}
2958
+ */
2959
+ importOrganization: function (organization, options) {
2960
+ return localVarFp.importOrganization(organization, options).then(function (request) { return request(axios, basePath); });
2961
+ },
2660
2962
  /**
2661
2963
  *
2662
2964
  * @summary Register a new organization
@@ -2784,13 +3086,15 @@ var OrganizationApi = /** @class */ (function (_super) {
2784
3086
  /**
2785
3087
  *
2786
3088
  * @summary List all Organizations
3089
+ * @param {number} [page] page number to query
3090
+ * @param {number} [size] amount of result by page
2787
3091
  * @param {*} [options] Override http request option.
2788
3092
  * @throws {RequiredError}
2789
3093
  * @memberof OrganizationApi
2790
3094
  */
2791
- OrganizationApi.prototype.findAllOrganizations = function (options) {
3095
+ OrganizationApi.prototype.findAllOrganizations = function (page, size, options) {
2792
3096
  var _this = this;
2793
- return exports.OrganizationApiFp(this.configuration).findAllOrganizations(options).then(function (request) { return request(_this.axios, _this.basePath); });
3097
+ return exports.OrganizationApiFp(this.configuration).findAllOrganizations(page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
2794
3098
  };
2795
3099
  /**
2796
3100
  *
@@ -2865,6 +3169,18 @@ var OrganizationApi = /** @class */ (function (_super) {
2865
3169
  var _this = this;
2866
3170
  return exports.OrganizationApiFp(this.configuration).getOrganizationSecurityUsers(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2867
3171
  };
3172
+ /**
3173
+ *
3174
+ * @summary Import an organization
3175
+ * @param {Organization} organization the Organization to import
3176
+ * @param {*} [options] Override http request option.
3177
+ * @throws {RequiredError}
3178
+ * @memberof OrganizationApi
3179
+ */
3180
+ OrganizationApi.prototype.importOrganization = function (organization, options) {
3181
+ var _this = this;
3182
+ return exports.OrganizationApiFp(this.configuration).importOrganization(organization, options).then(function (request) { return request(_this.axios, _this.basePath); });
3183
+ };
2868
3184
  /**
2869
3185
  *
2870
3186
  * @summary Register a new organization
@@ -3368,10 +3684,12 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3368
3684
  * @summary List all Scenarios
3369
3685
  * @param {string} organizationId the Organization identifier
3370
3686
  * @param {string} workspaceId the Workspace identifier
3687
+ * @param {number} [page] page number to query
3688
+ * @param {number} [size] amount of result by page
3371
3689
  * @param {*} [options] Override http request option.
3372
3690
  * @throws {RequiredError}
3373
3691
  */
3374
- findAllScenarios: function (organizationId, workspaceId, options) {
3692
+ findAllScenarios: function (organizationId, workspaceId, page, size, options) {
3375
3693
  if (options === void 0) { options = {}; }
3376
3694
  return __awaiter(_this, void 0, void 0, function () {
3377
3695
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3399,6 +3717,12 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3399
3717
  // authentication oAuth2AuthCode required
3400
3718
  // oauth required
3401
3719
  _a.sent();
3720
+ if (page !== undefined) {
3721
+ localVarQueryParameter['page'] = page;
3722
+ }
3723
+ if (size !== undefined) {
3724
+ localVarQueryParameter['size'] = size;
3725
+ }
3402
3726
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3403
3727
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3404
3728
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3416,10 +3740,12 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3416
3740
  * @param {string} organizationId the Organization identifier
3417
3741
  * @param {string} workspaceId the Workspace identifier
3418
3742
  * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
3743
+ * @param {number} [page] page number to query
3744
+ * @param {number} [size] amount of result by page
3419
3745
  * @param {*} [options] Override http request option.
3420
3746
  * @throws {RequiredError}
3421
3747
  */
3422
- findAllScenariosByValidationStatus: function (organizationId, workspaceId, validationStatus, options) {
3748
+ findAllScenariosByValidationStatus: function (organizationId, workspaceId, validationStatus, page, size, options) {
3423
3749
  if (options === void 0) { options = {}; }
3424
3750
  return __awaiter(_this, void 0, void 0, function () {
3425
3751
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3450,6 +3776,12 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3450
3776
  // authentication oAuth2AuthCode required
3451
3777
  // oauth required
3452
3778
  _a.sent();
3779
+ if (page !== undefined) {
3780
+ localVarQueryParameter['page'] = page;
3781
+ }
3782
+ if (size !== undefined) {
3783
+ localVarQueryParameter['size'] = size;
3784
+ }
3453
3785
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3454
3786
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3455
3787
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3875,14 +4207,14 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3875
4207
  },
3876
4208
  /**
3877
4209
  *
3878
- * @summary Remove all Parameter Values from the Scenario specified
4210
+ * @summary Import Scenario
3879
4211
  * @param {string} organizationId the Organization identifier
3880
4212
  * @param {string} workspaceId the Workspace identifier
3881
- * @param {string} scenarioId the Scenario identifier
4213
+ * @param {Scenario} scenario the Scenario to import
3882
4214
  * @param {*} [options] Override http request option.
3883
4215
  * @throws {RequiredError}
3884
4216
  */
3885
- removeAllScenarioParameterValues: function (organizationId, workspaceId, scenarioId, options) {
4217
+ importScenario: function (organizationId, workspaceId, scenario, options) {
3886
4218
  if (options === void 0) { options = {}; }
3887
4219
  return __awaiter(_this, void 0, void 0, function () {
3888
4220
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3890,20 +4222,19 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3890
4222
  switch (_a.label) {
3891
4223
  case 0:
3892
4224
  // verify required parameter 'organizationId' is not null or undefined
3893
- common_1.assertParamExists('removeAllScenarioParameterValues', 'organizationId', organizationId);
4225
+ common_1.assertParamExists('importScenario', 'organizationId', organizationId);
3894
4226
  // verify required parameter 'workspaceId' is not null or undefined
3895
- common_1.assertParamExists('removeAllScenarioParameterValues', 'workspaceId', workspaceId);
3896
- // verify required parameter 'scenarioId' is not null or undefined
3897
- common_1.assertParamExists('removeAllScenarioParameterValues', 'scenarioId', scenarioId);
3898
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/parameterValues"
4227
+ common_1.assertParamExists('importScenario', 'workspaceId', workspaceId);
4228
+ // verify required parameter 'scenario' is not null or undefined
4229
+ common_1.assertParamExists('importScenario', 'scenario', scenario);
4230
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/import"
3899
4231
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3900
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3901
- .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
4232
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
3902
4233
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3903
4234
  if (configuration) {
3904
4235
  baseOptions = configuration.baseOptions;
3905
4236
  }
3906
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
4237
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3907
4238
  localVarHeaderParameter = {};
3908
4239
  localVarQueryParameter = {};
3909
4240
  // authentication oAuth2AuthCode required
@@ -3913,9 +4244,11 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3913
4244
  // authentication oAuth2AuthCode required
3914
4245
  // oauth required
3915
4246
  _a.sent();
4247
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3916
4248
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3917
4249
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3918
4250
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4251
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenario, localVarRequestOptions, configuration);
3919
4252
  return [2 /*return*/, {
3920
4253
  url: common_1.toPathString(localVarUrlObj),
3921
4254
  options: localVarRequestOptions,
@@ -3926,15 +4259,14 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3926
4259
  },
3927
4260
  /**
3928
4261
  *
3929
- * @summary Remove the specified access from the given Organization Scenario
4262
+ * @summary Remove all Parameter Values from the Scenario specified
3930
4263
  * @param {string} organizationId the Organization identifier
3931
4264
  * @param {string} workspaceId the Workspace identifier
3932
4265
  * @param {string} scenarioId the Scenario identifier
3933
- * @param {string} identityId the User identifier
3934
4266
  * @param {*} [options] Override http request option.
3935
4267
  * @throws {RequiredError}
3936
4268
  */
3937
- removeScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
4269
+ removeAllScenarioParameterValues: function (organizationId, workspaceId, scenarioId, options) {
3938
4270
  if (options === void 0) { options = {}; }
3939
4271
  return __awaiter(_this, void 0, void 0, function () {
3940
4272
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3942,15 +4274,67 @@ exports.ScenarioApiAxiosParamCreator = function (configuration) {
3942
4274
  switch (_a.label) {
3943
4275
  case 0:
3944
4276
  // verify required parameter 'organizationId' is not null or undefined
3945
- common_1.assertParamExists('removeScenarioAccessControl', 'organizationId', organizationId);
4277
+ common_1.assertParamExists('removeAllScenarioParameterValues', 'organizationId', organizationId);
3946
4278
  // verify required parameter 'workspaceId' is not null or undefined
3947
- common_1.assertParamExists('removeScenarioAccessControl', 'workspaceId', workspaceId);
4279
+ common_1.assertParamExists('removeAllScenarioParameterValues', 'workspaceId', workspaceId);
3948
4280
  // verify required parameter 'scenarioId' is not null or undefined
3949
- common_1.assertParamExists('removeScenarioAccessControl', 'scenarioId', scenarioId);
3950
- // verify required parameter 'identityId' is not null or undefined
3951
- common_1.assertParamExists('removeScenarioAccessControl', 'identityId', identityId);
3952
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}"
3953
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
4281
+ common_1.assertParamExists('removeAllScenarioParameterValues', 'scenarioId', scenarioId);
4282
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/parameterValues"
4283
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
4284
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
4285
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
4286
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4287
+ if (configuration) {
4288
+ baseOptions = configuration.baseOptions;
4289
+ }
4290
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
4291
+ localVarHeaderParameter = {};
4292
+ localVarQueryParameter = {};
4293
+ // authentication oAuth2AuthCode required
4294
+ // oauth required
4295
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
4296
+ case 1:
4297
+ // authentication oAuth2AuthCode required
4298
+ // oauth required
4299
+ _a.sent();
4300
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4301
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4302
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4303
+ return [2 /*return*/, {
4304
+ url: common_1.toPathString(localVarUrlObj),
4305
+ options: localVarRequestOptions,
4306
+ }];
4307
+ }
4308
+ });
4309
+ });
4310
+ },
4311
+ /**
4312
+ *
4313
+ * @summary Remove the specified access from the given Organization Scenario
4314
+ * @param {string} organizationId the Organization identifier
4315
+ * @param {string} workspaceId the Workspace identifier
4316
+ * @param {string} scenarioId the Scenario identifier
4317
+ * @param {string} identityId the User identifier
4318
+ * @param {*} [options] Override http request option.
4319
+ * @throws {RequiredError}
4320
+ */
4321
+ removeScenarioAccessControl: function (organizationId, workspaceId, scenarioId, identityId, options) {
4322
+ if (options === void 0) { options = {}; }
4323
+ return __awaiter(_this, void 0, void 0, function () {
4324
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4325
+ return __generator(this, function (_a) {
4326
+ switch (_a.label) {
4327
+ case 0:
4328
+ // verify required parameter 'organizationId' is not null or undefined
4329
+ common_1.assertParamExists('removeScenarioAccessControl', 'organizationId', organizationId);
4330
+ // verify required parameter 'workspaceId' is not null or undefined
4331
+ common_1.assertParamExists('removeScenarioAccessControl', 'workspaceId', workspaceId);
4332
+ // verify required parameter 'scenarioId' is not null or undefined
4333
+ common_1.assertParamExists('removeScenarioAccessControl', 'scenarioId', scenarioId);
4334
+ // verify required parameter 'identityId' is not null or undefined
4335
+ common_1.assertParamExists('removeScenarioAccessControl', 'identityId', identityId);
4336
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/security/access/{identity_id}"
4337
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
3954
4338
  .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
3955
4339
  .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)))
3956
4340
  .replace("{" + "identity_id" + "}", encodeURIComponent(String(identityId)));
@@ -4322,15 +4706,17 @@ exports.ScenarioApiFp = function (configuration) {
4322
4706
  * @summary List all Scenarios
4323
4707
  * @param {string} organizationId the Organization identifier
4324
4708
  * @param {string} workspaceId the Workspace identifier
4709
+ * @param {number} [page] page number to query
4710
+ * @param {number} [size] amount of result by page
4325
4711
  * @param {*} [options] Override http request option.
4326
4712
  * @throws {RequiredError}
4327
4713
  */
4328
- findAllScenarios: function (organizationId, workspaceId, options) {
4714
+ findAllScenarios: function (organizationId, workspaceId, page, size, options) {
4329
4715
  return __awaiter(this, void 0, void 0, function () {
4330
4716
  var localVarAxiosArgs;
4331
4717
  return __generator(this, function (_a) {
4332
4718
  switch (_a.label) {
4333
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllScenarios(organizationId, workspaceId, options)];
4719
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllScenarios(organizationId, workspaceId, page, size, options)];
4334
4720
  case 1:
4335
4721
  localVarAxiosArgs = _a.sent();
4336
4722
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -4344,15 +4730,17 @@ exports.ScenarioApiFp = function (configuration) {
4344
4730
  * @param {string} organizationId the Organization identifier
4345
4731
  * @param {string} workspaceId the Workspace identifier
4346
4732
  * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
4733
+ * @param {number} [page] page number to query
4734
+ * @param {number} [size] amount of result by page
4347
4735
  * @param {*} [options] Override http request option.
4348
4736
  * @throws {RequiredError}
4349
4737
  */
4350
- findAllScenariosByValidationStatus: function (organizationId, workspaceId, validationStatus, options) {
4738
+ findAllScenariosByValidationStatus: function (organizationId, workspaceId, validationStatus, page, size, options) {
4351
4739
  return __awaiter(this, void 0, void 0, function () {
4352
4740
  var localVarAxiosArgs;
4353
4741
  return __generator(this, function (_a) {
4354
4742
  switch (_a.label) {
4355
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, options)];
4743
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, page, size, options)];
4356
4744
  case 1:
4357
4745
  localVarAxiosArgs = _a.sent();
4358
4746
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -4537,6 +4925,28 @@ exports.ScenarioApiFp = function (configuration) {
4537
4925
  });
4538
4926
  });
4539
4927
  },
4928
+ /**
4929
+ *
4930
+ * @summary Import Scenario
4931
+ * @param {string} organizationId the Organization identifier
4932
+ * @param {string} workspaceId the Workspace identifier
4933
+ * @param {Scenario} scenario the Scenario to import
4934
+ * @param {*} [options] Override http request option.
4935
+ * @throws {RequiredError}
4936
+ */
4937
+ importScenario: function (organizationId, workspaceId, scenario, options) {
4938
+ return __awaiter(this, void 0, void 0, function () {
4939
+ var localVarAxiosArgs;
4940
+ return __generator(this, function (_a) {
4941
+ switch (_a.label) {
4942
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importScenario(organizationId, workspaceId, scenario, options)];
4943
+ case 1:
4944
+ localVarAxiosArgs = _a.sent();
4945
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4946
+ }
4947
+ });
4948
+ });
4949
+ },
4540
4950
  /**
4541
4951
  *
4542
4952
  * @summary Remove all Parameter Values from the Scenario specified
@@ -4753,11 +5163,13 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
4753
5163
  * @summary List all Scenarios
4754
5164
  * @param {string} organizationId the Organization identifier
4755
5165
  * @param {string} workspaceId the Workspace identifier
5166
+ * @param {number} [page] page number to query
5167
+ * @param {number} [size] amount of result by page
4756
5168
  * @param {*} [options] Override http request option.
4757
5169
  * @throws {RequiredError}
4758
5170
  */
4759
- findAllScenarios: function (organizationId, workspaceId, options) {
4760
- return localVarFp.findAllScenarios(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
5171
+ findAllScenarios: function (organizationId, workspaceId, page, size, options) {
5172
+ return localVarFp.findAllScenarios(organizationId, workspaceId, page, size, options).then(function (request) { return request(axios, basePath); });
4761
5173
  },
4762
5174
  /**
4763
5175
  *
@@ -4765,11 +5177,13 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
4765
5177
  * @param {string} organizationId the Organization identifier
4766
5178
  * @param {string} workspaceId the Workspace identifier
4767
5179
  * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
5180
+ * @param {number} [page] page number to query
5181
+ * @param {number} [size] amount of result by page
4768
5182
  * @param {*} [options] Override http request option.
4769
5183
  * @throws {RequiredError}
4770
5184
  */
4771
- findAllScenariosByValidationStatus: function (organizationId, workspaceId, validationStatus, options) {
4772
- return localVarFp.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, options).then(function (request) { return request(axios, basePath); });
5185
+ findAllScenariosByValidationStatus: function (organizationId, workspaceId, validationStatus, page, size, options) {
5186
+ return localVarFp.findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, page, size, options).then(function (request) { return request(axios, basePath); });
4773
5187
  },
4774
5188
  /**
4775
5189
  *
@@ -4868,6 +5282,18 @@ exports.ScenarioApiFactory = function (configuration, basePath, axios) {
4868
5282
  getScenariosTree: function (organizationId, workspaceId, options) {
4869
5283
  return localVarFp.getScenariosTree(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
4870
5284
  },
5285
+ /**
5286
+ *
5287
+ * @summary Import Scenario
5288
+ * @param {string} organizationId the Organization identifier
5289
+ * @param {string} workspaceId the Workspace identifier
5290
+ * @param {Scenario} scenario the Scenario to import
5291
+ * @param {*} [options] Override http request option.
5292
+ * @throws {RequiredError}
5293
+ */
5294
+ importScenario: function (organizationId, workspaceId, scenario, options) {
5295
+ return localVarFp.importScenario(organizationId, workspaceId, scenario, options).then(function (request) { return request(axios, basePath); });
5296
+ },
4871
5297
  /**
4872
5298
  *
4873
5299
  * @summary Remove all Parameter Values from the Scenario specified
@@ -5052,13 +5478,15 @@ var ScenarioApi = /** @class */ (function (_super) {
5052
5478
  * @summary List all Scenarios
5053
5479
  * @param {string} organizationId the Organization identifier
5054
5480
  * @param {string} workspaceId the Workspace identifier
5481
+ * @param {number} [page] page number to query
5482
+ * @param {number} [size] amount of result by page
5055
5483
  * @param {*} [options] Override http request option.
5056
5484
  * @throws {RequiredError}
5057
5485
  * @memberof ScenarioApi
5058
5486
  */
5059
- ScenarioApi.prototype.findAllScenarios = function (organizationId, workspaceId, options) {
5487
+ ScenarioApi.prototype.findAllScenarios = function (organizationId, workspaceId, page, size, options) {
5060
5488
  var _this = this;
5061
- return exports.ScenarioApiFp(this.configuration).findAllScenarios(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5489
+ return exports.ScenarioApiFp(this.configuration).findAllScenarios(organizationId, workspaceId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
5062
5490
  };
5063
5491
  /**
5064
5492
  *
@@ -5066,13 +5494,15 @@ var ScenarioApi = /** @class */ (function (_super) {
5066
5494
  * @param {string} organizationId the Organization identifier
5067
5495
  * @param {string} workspaceId the Workspace identifier
5068
5496
  * @param {ScenarioValidationStatus} validationStatus the Scenario Validation Status
5497
+ * @param {number} [page] page number to query
5498
+ * @param {number} [size] amount of result by page
5069
5499
  * @param {*} [options] Override http request option.
5070
5500
  * @throws {RequiredError}
5071
5501
  * @memberof ScenarioApi
5072
5502
  */
5073
- ScenarioApi.prototype.findAllScenariosByValidationStatus = function (organizationId, workspaceId, validationStatus, options) {
5503
+ ScenarioApi.prototype.findAllScenariosByValidationStatus = function (organizationId, workspaceId, validationStatus, page, size, options) {
5074
5504
  var _this = this;
5075
- return exports.ScenarioApiFp(this.configuration).findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, options).then(function (request) { return request(_this.axios, _this.basePath); });
5505
+ return exports.ScenarioApiFp(this.configuration).findAllScenariosByValidationStatus(organizationId, workspaceId, validationStatus, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
5076
5506
  };
5077
5507
  /**
5078
5508
  *
@@ -5187,6 +5617,20 @@ var ScenarioApi = /** @class */ (function (_super) {
5187
5617
  var _this = this;
5188
5618
  return exports.ScenarioApiFp(this.configuration).getScenariosTree(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5189
5619
  };
5620
+ /**
5621
+ *
5622
+ * @summary Import Scenario
5623
+ * @param {string} organizationId the Organization identifier
5624
+ * @param {string} workspaceId the Workspace identifier
5625
+ * @param {Scenario} scenario the Scenario to import
5626
+ * @param {*} [options] Override http request option.
5627
+ * @throws {RequiredError}
5628
+ * @memberof ScenarioApi
5629
+ */
5630
+ ScenarioApi.prototype.importScenario = function (organizationId, workspaceId, scenario, options) {
5631
+ var _this = this;
5632
+ return exports.ScenarioApiFp(this.configuration).importScenario(organizationId, workspaceId, scenario, options).then(function (request) { return request(_this.axios, _this.basePath); });
5633
+ };
5190
5634
  /**
5191
5635
  *
5192
5636
  * @summary Remove all Parameter Values from the Scenario specified
@@ -5666,10 +6110,12 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5666
6110
  * @param {string} organizationId the Organization identifier
5667
6111
  * @param {string} workspaceId the Workspace identifier
5668
6112
  * @param {string} scenarioId the Scenario identifier
6113
+ * @param {number} [page] page number to query
6114
+ * @param {number} [size] amount of result by page
5669
6115
  * @param {*} [options] Override http request option.
5670
6116
  * @throws {RequiredError}
5671
6117
  */
5672
- getScenarioRuns: function (organizationId, workspaceId, scenarioId, options) {
6118
+ getScenarioRuns: function (organizationId, workspaceId, scenarioId, page, size, options) {
5673
6119
  if (options === void 0) { options = {}; }
5674
6120
  return __awaiter(_this, void 0, void 0, function () {
5675
6121
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5700,6 +6146,12 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5700
6146
  // authentication oAuth2AuthCode required
5701
6147
  // oauth required
5702
6148
  _a.sent();
6149
+ if (page !== undefined) {
6150
+ localVarQueryParameter['page'] = page;
6151
+ }
6152
+ if (size !== undefined) {
6153
+ localVarQueryParameter['size'] = size;
6154
+ }
5703
6155
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5704
6156
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5705
6157
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5716,10 +6168,12 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5716
6168
  * @summary get the list of ScenarioRuns for the Workspace
5717
6169
  * @param {string} organizationId the Organization identifier
5718
6170
  * @param {string} workspaceId the Workspace identifier
6171
+ * @param {number} [page] page number to query
6172
+ * @param {number} [size] amount of result by page
5719
6173
  * @param {*} [options] Override http request option.
5720
6174
  * @throws {RequiredError}
5721
6175
  */
5722
- getWorkspaceScenarioRuns: function (organizationId, workspaceId, options) {
6176
+ getWorkspaceScenarioRuns: function (organizationId, workspaceId, page, size, options) {
5723
6177
  if (options === void 0) { options = {}; }
5724
6178
  return __awaiter(_this, void 0, void 0, function () {
5725
6179
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5747,9 +6201,71 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5747
6201
  // authentication oAuth2AuthCode required
5748
6202
  // oauth required
5749
6203
  _a.sent();
6204
+ if (page !== undefined) {
6205
+ localVarQueryParameter['page'] = page;
6206
+ }
6207
+ if (size !== undefined) {
6208
+ localVarQueryParameter['size'] = size;
6209
+ }
6210
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
6211
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6212
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6213
+ return [2 /*return*/, {
6214
+ url: common_1.toPathString(localVarUrlObj),
6215
+ options: localVarRequestOptions,
6216
+ }];
6217
+ }
6218
+ });
6219
+ });
6220
+ },
6221
+ /**
6222
+ *
6223
+ * @summary import a ScenarioRun for the Scenario
6224
+ * @param {string} organizationId the Organization identifier
6225
+ * @param {string} workspaceId the Workspace identifier
6226
+ * @param {string} scenarioId the Scenario identifier
6227
+ * @param {ScenarioRun} scenarioRun the ScenarioRun to import
6228
+ * @param {*} [options] Override http request option.
6229
+ * @throws {RequiredError}
6230
+ */
6231
+ importScenarioRun: function (organizationId, workspaceId, scenarioId, scenarioRun, options) {
6232
+ if (options === void 0) { options = {}; }
6233
+ return __awaiter(_this, void 0, void 0, function () {
6234
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
6235
+ return __generator(this, function (_a) {
6236
+ switch (_a.label) {
6237
+ case 0:
6238
+ // verify required parameter 'organizationId' is not null or undefined
6239
+ common_1.assertParamExists('importScenarioRun', 'organizationId', organizationId);
6240
+ // verify required parameter 'workspaceId' is not null or undefined
6241
+ common_1.assertParamExists('importScenarioRun', 'workspaceId', workspaceId);
6242
+ // verify required parameter 'scenarioId' is not null or undefined
6243
+ common_1.assertParamExists('importScenarioRun', 'scenarioId', scenarioId);
6244
+ // verify required parameter 'scenarioRun' is not null or undefined
6245
+ common_1.assertParamExists('importScenarioRun', 'scenarioRun', scenarioRun);
6246
+ localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/scenarios/{scenario_id}/run/import"
6247
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
6248
+ .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)))
6249
+ .replace("{" + "scenario_id" + "}", encodeURIComponent(String(scenarioId)));
6250
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6251
+ if (configuration) {
6252
+ baseOptions = configuration.baseOptions;
6253
+ }
6254
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
6255
+ localVarHeaderParameter = {};
6256
+ localVarQueryParameter = {};
6257
+ // authentication oAuth2AuthCode required
6258
+ // oauth required
6259
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
6260
+ case 1:
6261
+ // authentication oAuth2AuthCode required
6262
+ // oauth required
6263
+ _a.sent();
6264
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5750
6265
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5751
6266
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5752
6267
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6268
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(scenarioRun, localVarRequestOptions, configuration);
5753
6269
  return [2 /*return*/, {
5754
6270
  url: common_1.toPathString(localVarUrlObj),
5755
6271
  options: localVarRequestOptions,
@@ -5814,10 +6330,12 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5814
6330
  * @summary Search ScenarioRuns
5815
6331
  * @param {string} organizationId the Organization identifier
5816
6332
  * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
6333
+ * @param {number} [page] page number to query
6334
+ * @param {number} [size] amount of result by page
5817
6335
  * @param {*} [options] Override http request option.
5818
6336
  * @throws {RequiredError}
5819
6337
  */
5820
- searchScenarioRuns: function (organizationId, scenarioRunSearch, options) {
6338
+ searchScenarioRuns: function (organizationId, scenarioRunSearch, page, size, options) {
5821
6339
  if (options === void 0) { options = {}; }
5822
6340
  return __awaiter(_this, void 0, void 0, function () {
5823
6341
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5844,6 +6362,12 @@ exports.ScenariorunApiAxiosParamCreator = function (configuration) {
5844
6362
  // authentication oAuth2AuthCode required
5845
6363
  // oauth required
5846
6364
  _a.sent();
6365
+ if (page !== undefined) {
6366
+ localVarQueryParameter['page'] = page;
6367
+ }
6368
+ if (size !== undefined) {
6369
+ localVarQueryParameter['size'] = size;
6370
+ }
5847
6371
  localVarHeaderParameter['Content-Type'] = 'application/json';
5848
6372
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5849
6373
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -6138,15 +6662,17 @@ exports.ScenariorunApiFp = function (configuration) {
6138
6662
  * @param {string} organizationId the Organization identifier
6139
6663
  * @param {string} workspaceId the Workspace identifier
6140
6664
  * @param {string} scenarioId the Scenario identifier
6665
+ * @param {number} [page] page number to query
6666
+ * @param {number} [size] amount of result by page
6141
6667
  * @param {*} [options] Override http request option.
6142
6668
  * @throws {RequiredError}
6143
6669
  */
6144
- getScenarioRuns: function (organizationId, workspaceId, scenarioId, options) {
6670
+ getScenarioRuns: function (organizationId, workspaceId, scenarioId, page, size, options) {
6145
6671
  return __awaiter(this, void 0, void 0, function () {
6146
6672
  var localVarAxiosArgs;
6147
6673
  return __generator(this, function (_a) {
6148
6674
  switch (_a.label) {
6149
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioRuns(organizationId, workspaceId, scenarioId, options)];
6675
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getScenarioRuns(organizationId, workspaceId, scenarioId, page, size, options)];
6150
6676
  case 1:
6151
6677
  localVarAxiosArgs = _a.sent();
6152
6678
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -6159,15 +6685,40 @@ exports.ScenariorunApiFp = function (configuration) {
6159
6685
  * @summary get the list of ScenarioRuns for the Workspace
6160
6686
  * @param {string} organizationId the Organization identifier
6161
6687
  * @param {string} workspaceId the Workspace identifier
6688
+ * @param {number} [page] page number to query
6689
+ * @param {number} [size] amount of result by page
6690
+ * @param {*} [options] Override http request option.
6691
+ * @throws {RequiredError}
6692
+ */
6693
+ getWorkspaceScenarioRuns: function (organizationId, workspaceId, page, size, options) {
6694
+ return __awaiter(this, void 0, void 0, function () {
6695
+ var localVarAxiosArgs;
6696
+ return __generator(this, function (_a) {
6697
+ switch (_a.label) {
6698
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options)];
6699
+ case 1:
6700
+ localVarAxiosArgs = _a.sent();
6701
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
6702
+ }
6703
+ });
6704
+ });
6705
+ },
6706
+ /**
6707
+ *
6708
+ * @summary import a ScenarioRun for the Scenario
6709
+ * @param {string} organizationId the Organization identifier
6710
+ * @param {string} workspaceId the Workspace identifier
6711
+ * @param {string} scenarioId the Scenario identifier
6712
+ * @param {ScenarioRun} scenarioRun the ScenarioRun to import
6162
6713
  * @param {*} [options] Override http request option.
6163
6714
  * @throws {RequiredError}
6164
6715
  */
6165
- getWorkspaceScenarioRuns: function (organizationId, workspaceId, options) {
6716
+ importScenarioRun: function (organizationId, workspaceId, scenarioId, scenarioRun, options) {
6166
6717
  return __awaiter(this, void 0, void 0, function () {
6167
6718
  var localVarAxiosArgs;
6168
6719
  return __generator(this, function (_a) {
6169
6720
  switch (_a.label) {
6170
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspaceScenarioRuns(organizationId, workspaceId, options)];
6721
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options)];
6171
6722
  case 1:
6172
6723
  localVarAxiosArgs = _a.sent();
6173
6724
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -6202,15 +6753,17 @@ exports.ScenariorunApiFp = function (configuration) {
6202
6753
  * @summary Search ScenarioRuns
6203
6754
  * @param {string} organizationId the Organization identifier
6204
6755
  * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
6756
+ * @param {number} [page] page number to query
6757
+ * @param {number} [size] amount of result by page
6205
6758
  * @param {*} [options] Override http request option.
6206
6759
  * @throws {RequiredError}
6207
6760
  */
6208
- searchScenarioRuns: function (organizationId, scenarioRunSearch, options) {
6761
+ searchScenarioRuns: function (organizationId, scenarioRunSearch, page, size, options) {
6209
6762
  return __awaiter(this, void 0, void 0, function () {
6210
6763
  var localVarAxiosArgs;
6211
6764
  return __generator(this, function (_a) {
6212
6765
  switch (_a.label) {
6213
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchScenarioRuns(organizationId, scenarioRunSearch, options)];
6766
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchScenarioRuns(organizationId, scenarioRunSearch, page, size, options)];
6214
6767
  case 1:
6215
6768
  localVarAxiosArgs = _a.sent();
6216
6769
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -6366,22 +6919,39 @@ exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
6366
6919
  * @param {string} organizationId the Organization identifier
6367
6920
  * @param {string} workspaceId the Workspace identifier
6368
6921
  * @param {string} scenarioId the Scenario identifier
6922
+ * @param {number} [page] page number to query
6923
+ * @param {number} [size] amount of result by page
6369
6924
  * @param {*} [options] Override http request option.
6370
6925
  * @throws {RequiredError}
6371
6926
  */
6372
- getScenarioRuns: function (organizationId, workspaceId, scenarioId, options) {
6373
- return localVarFp.getScenarioRuns(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(axios, basePath); });
6927
+ getScenarioRuns: function (organizationId, workspaceId, scenarioId, page, size, options) {
6928
+ return localVarFp.getScenarioRuns(organizationId, workspaceId, scenarioId, page, size, options).then(function (request) { return request(axios, basePath); });
6374
6929
  },
6375
6930
  /**
6376
6931
  *
6377
6932
  * @summary get the list of ScenarioRuns for the Workspace
6378
6933
  * @param {string} organizationId the Organization identifier
6379
6934
  * @param {string} workspaceId the Workspace identifier
6935
+ * @param {number} [page] page number to query
6936
+ * @param {number} [size] amount of result by page
6937
+ * @param {*} [options] Override http request option.
6938
+ * @throws {RequiredError}
6939
+ */
6940
+ getWorkspaceScenarioRuns: function (organizationId, workspaceId, page, size, options) {
6941
+ return localVarFp.getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options).then(function (request) { return request(axios, basePath); });
6942
+ },
6943
+ /**
6944
+ *
6945
+ * @summary import a ScenarioRun for the Scenario
6946
+ * @param {string} organizationId the Organization identifier
6947
+ * @param {string} workspaceId the Workspace identifier
6948
+ * @param {string} scenarioId the Scenario identifier
6949
+ * @param {ScenarioRun} scenarioRun the ScenarioRun to import
6380
6950
  * @param {*} [options] Override http request option.
6381
6951
  * @throws {RequiredError}
6382
6952
  */
6383
- getWorkspaceScenarioRuns: function (organizationId, workspaceId, options) {
6384
- return localVarFp.getWorkspaceScenarioRuns(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
6953
+ importScenarioRun: function (organizationId, workspaceId, scenarioId, scenarioRun, options) {
6954
+ return localVarFp.importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options).then(function (request) { return request(axios, basePath); });
6385
6955
  },
6386
6956
  /**
6387
6957
  *
@@ -6400,11 +6970,13 @@ exports.ScenariorunApiFactory = function (configuration, basePath, axios) {
6400
6970
  * @summary Search ScenarioRuns
6401
6971
  * @param {string} organizationId the Organization identifier
6402
6972
  * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
6973
+ * @param {number} [page] page number to query
6974
+ * @param {number} [size] amount of result by page
6403
6975
  * @param {*} [options] Override http request option.
6404
6976
  * @throws {RequiredError}
6405
6977
  */
6406
- searchScenarioRuns: function (organizationId, scenarioRunSearch, options) {
6407
- return localVarFp.searchScenarioRuns(organizationId, scenarioRunSearch, options).then(function (request) { return request(axios, basePath); });
6978
+ searchScenarioRuns: function (organizationId, scenarioRunSearch, page, size, options) {
6979
+ return localVarFp.searchScenarioRuns(organizationId, scenarioRunSearch, page, size, options).then(function (request) { return request(axios, basePath); });
6408
6980
  },
6409
6981
  /**
6410
6982
  *
@@ -6554,26 +7126,45 @@ var ScenariorunApi = /** @class */ (function (_super) {
6554
7126
  * @param {string} organizationId the Organization identifier
6555
7127
  * @param {string} workspaceId the Workspace identifier
6556
7128
  * @param {string} scenarioId the Scenario identifier
7129
+ * @param {number} [page] page number to query
7130
+ * @param {number} [size] amount of result by page
6557
7131
  * @param {*} [options] Override http request option.
6558
7132
  * @throws {RequiredError}
6559
7133
  * @memberof ScenariorunApi
6560
7134
  */
6561
- ScenariorunApi.prototype.getScenarioRuns = function (organizationId, workspaceId, scenarioId, options) {
7135
+ ScenariorunApi.prototype.getScenarioRuns = function (organizationId, workspaceId, scenarioId, page, size, options) {
6562
7136
  var _this = this;
6563
- return exports.ScenariorunApiFp(this.configuration).getScenarioRuns(organizationId, workspaceId, scenarioId, options).then(function (request) { return request(_this.axios, _this.basePath); });
7137
+ return exports.ScenariorunApiFp(this.configuration).getScenarioRuns(organizationId, workspaceId, scenarioId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
6564
7138
  };
6565
7139
  /**
6566
7140
  *
6567
7141
  * @summary get the list of ScenarioRuns for the Workspace
6568
7142
  * @param {string} organizationId the Organization identifier
6569
7143
  * @param {string} workspaceId the Workspace identifier
7144
+ * @param {number} [page] page number to query
7145
+ * @param {number} [size] amount of result by page
7146
+ * @param {*} [options] Override http request option.
7147
+ * @throws {RequiredError}
7148
+ * @memberof ScenariorunApi
7149
+ */
7150
+ ScenariorunApi.prototype.getWorkspaceScenarioRuns = function (organizationId, workspaceId, page, size, options) {
7151
+ var _this = this;
7152
+ return exports.ScenariorunApiFp(this.configuration).getWorkspaceScenarioRuns(organizationId, workspaceId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
7153
+ };
7154
+ /**
7155
+ *
7156
+ * @summary import a ScenarioRun for the Scenario
7157
+ * @param {string} organizationId the Organization identifier
7158
+ * @param {string} workspaceId the Workspace identifier
7159
+ * @param {string} scenarioId the Scenario identifier
7160
+ * @param {ScenarioRun} scenarioRun the ScenarioRun to import
6570
7161
  * @param {*} [options] Override http request option.
6571
7162
  * @throws {RequiredError}
6572
7163
  * @memberof ScenariorunApi
6573
7164
  */
6574
- ScenariorunApi.prototype.getWorkspaceScenarioRuns = function (organizationId, workspaceId, options) {
7165
+ ScenariorunApi.prototype.importScenarioRun = function (organizationId, workspaceId, scenarioId, scenarioRun, options) {
6575
7166
  var _this = this;
6576
- return exports.ScenariorunApiFp(this.configuration).getWorkspaceScenarioRuns(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
7167
+ return exports.ScenariorunApiFp(this.configuration).importScenarioRun(organizationId, workspaceId, scenarioId, scenarioRun, options).then(function (request) { return request(_this.axios, _this.basePath); });
6577
7168
  };
6578
7169
  /**
6579
7170
  *
@@ -6594,13 +7185,15 @@ var ScenariorunApi = /** @class */ (function (_super) {
6594
7185
  * @summary Search ScenarioRuns
6595
7186
  * @param {string} organizationId the Organization identifier
6596
7187
  * @param {ScenarioRunSearch} scenarioRunSearch the ScenarioRun search parameters
7188
+ * @param {number} [page] page number to query
7189
+ * @param {number} [size] amount of result by page
6597
7190
  * @param {*} [options] Override http request option.
6598
7191
  * @throws {RequiredError}
6599
7192
  * @memberof ScenariorunApi
6600
7193
  */
6601
- ScenariorunApi.prototype.searchScenarioRuns = function (organizationId, scenarioRunSearch, options) {
7194
+ ScenariorunApi.prototype.searchScenarioRuns = function (organizationId, scenarioRunSearch, page, size, options) {
6602
7195
  var _this = this;
6603
- return exports.ScenariorunApiFp(this.configuration).searchScenarioRuns(organizationId, scenarioRunSearch, options).then(function (request) { return request(_this.axios, _this.basePath); });
7196
+ return exports.ScenariorunApiFp(this.configuration).searchScenarioRuns(organizationId, scenarioRunSearch, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
6604
7197
  };
6605
7198
  /**
6606
7199
  *
@@ -6999,10 +7592,12 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
6999
7592
  *
7000
7593
  * @summary List all Solutions
7001
7594
  * @param {string} organizationId the Organization identifier
7595
+ * @param {number} [page] page number to query
7596
+ * @param {number} [size] amount of result by page
7002
7597
  * @param {*} [options] Override http request option.
7003
7598
  * @throws {RequiredError}
7004
7599
  */
7005
- findAllSolutions: function (organizationId, options) {
7600
+ findAllSolutions: function (organizationId, page, size, options) {
7006
7601
  if (options === void 0) { options = {}; }
7007
7602
  return __awaiter(_this, void 0, void 0, function () {
7008
7603
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -7027,6 +7622,12 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7027
7622
  // authentication oAuth2AuthCode required
7028
7623
  // oauth required
7029
7624
  _a.sent();
7625
+ if (page !== undefined) {
7626
+ localVarQueryParameter['page'] = page;
7627
+ }
7628
+ if (size !== undefined) {
7629
+ localVarQueryParameter['size'] = size;
7630
+ }
7030
7631
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
7031
7632
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7032
7633
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7085,6 +7686,54 @@ exports.SolutionApiAxiosParamCreator = function (configuration) {
7085
7686
  });
7086
7687
  });
7087
7688
  },
7689
+ /**
7690
+ *
7691
+ * @summary Import a solution
7692
+ * @param {string} organizationId the Organization identifier
7693
+ * @param {Solution} solution the Solution to import
7694
+ * @param {*} [options] Override http request option.
7695
+ * @throws {RequiredError}
7696
+ */
7697
+ importSolution: function (organizationId, solution, options) {
7698
+ if (options === void 0) { options = {}; }
7699
+ return __awaiter(_this, void 0, void 0, function () {
7700
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7701
+ return __generator(this, function (_a) {
7702
+ switch (_a.label) {
7703
+ case 0:
7704
+ // verify required parameter 'organizationId' is not null or undefined
7705
+ common_1.assertParamExists('importSolution', 'organizationId', organizationId);
7706
+ // verify required parameter 'solution' is not null or undefined
7707
+ common_1.assertParamExists('importSolution', 'solution', solution);
7708
+ localVarPath = "/organizations/{organization_id}/solutions/import"
7709
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
7710
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7711
+ if (configuration) {
7712
+ baseOptions = configuration.baseOptions;
7713
+ }
7714
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
7715
+ localVarHeaderParameter = {};
7716
+ localVarQueryParameter = {};
7717
+ // authentication oAuth2AuthCode required
7718
+ // oauth required
7719
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
7720
+ case 1:
7721
+ // authentication oAuth2AuthCode required
7722
+ // oauth required
7723
+ _a.sent();
7724
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7725
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
7726
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7727
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7728
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(solution, localVarRequestOptions, configuration);
7729
+ return [2 /*return*/, {
7730
+ url: common_1.toPathString(localVarUrlObj),
7731
+ options: localVarRequestOptions,
7732
+ }];
7733
+ }
7734
+ });
7735
+ });
7736
+ },
7088
7737
  /**
7089
7738
  *
7090
7739
  * @summary Remove all Run Templates from the Solution specified
@@ -7564,15 +8213,17 @@ exports.SolutionApiFp = function (configuration) {
7564
8213
  *
7565
8214
  * @summary List all Solutions
7566
8215
  * @param {string} organizationId the Organization identifier
8216
+ * @param {number} [page] page number to query
8217
+ * @param {number} [size] amount of result by page
7567
8218
  * @param {*} [options] Override http request option.
7568
8219
  * @throws {RequiredError}
7569
8220
  */
7570
- findAllSolutions: function (organizationId, options) {
8221
+ findAllSolutions: function (organizationId, page, size, options) {
7571
8222
  return __awaiter(this, void 0, void 0, function () {
7572
8223
  var localVarAxiosArgs;
7573
8224
  return __generator(this, function (_a) {
7574
8225
  switch (_a.label) {
7575
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllSolutions(organizationId, options)];
8226
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllSolutions(organizationId, page, size, options)];
7576
8227
  case 1:
7577
8228
  localVarAxiosArgs = _a.sent();
7578
8229
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -7601,6 +8252,27 @@ exports.SolutionApiFp = function (configuration) {
7601
8252
  });
7602
8253
  });
7603
8254
  },
8255
+ /**
8256
+ *
8257
+ * @summary Import a solution
8258
+ * @param {string} organizationId the Organization identifier
8259
+ * @param {Solution} solution the Solution to import
8260
+ * @param {*} [options] Override http request option.
8261
+ * @throws {RequiredError}
8262
+ */
8263
+ importSolution: function (organizationId, solution, options) {
8264
+ return __awaiter(this, void 0, void 0, function () {
8265
+ var localVarAxiosArgs;
8266
+ return __generator(this, function (_a) {
8267
+ switch (_a.label) {
8268
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importSolution(organizationId, solution, options)];
8269
+ case 1:
8270
+ localVarAxiosArgs = _a.sent();
8271
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8272
+ }
8273
+ });
8274
+ });
8275
+ },
7604
8276
  /**
7605
8277
  *
7606
8278
  * @summary Remove all Run Templates from the Solution specified
@@ -7830,11 +8502,13 @@ exports.SolutionApiFactory = function (configuration, basePath, axios) {
7830
8502
  *
7831
8503
  * @summary List all Solutions
7832
8504
  * @param {string} organizationId the Organization identifier
8505
+ * @param {number} [page] page number to query
8506
+ * @param {number} [size] amount of result by page
7833
8507
  * @param {*} [options] Override http request option.
7834
8508
  * @throws {RequiredError}
7835
8509
  */
7836
- findAllSolutions: function (organizationId, options) {
7837
- return localVarFp.findAllSolutions(organizationId, options).then(function (request) { return request(axios, basePath); });
8510
+ findAllSolutions: function (organizationId, page, size, options) {
8511
+ return localVarFp.findAllSolutions(organizationId, page, size, options).then(function (request) { return request(axios, basePath); });
7838
8512
  },
7839
8513
  /**
7840
8514
  *
@@ -7847,6 +8521,17 @@ exports.SolutionApiFactory = function (configuration, basePath, axios) {
7847
8521
  findSolutionById: function (organizationId, solutionId, options) {
7848
8522
  return localVarFp.findSolutionById(organizationId, solutionId, options).then(function (request) { return request(axios, basePath); });
7849
8523
  },
8524
+ /**
8525
+ *
8526
+ * @summary Import a solution
8527
+ * @param {string} organizationId the Organization identifier
8528
+ * @param {Solution} solution the Solution to import
8529
+ * @param {*} [options] Override http request option.
8530
+ * @throws {RequiredError}
8531
+ */
8532
+ importSolution: function (organizationId, solution, options) {
8533
+ return localVarFp.importSolution(organizationId, solution, options).then(function (request) { return request(axios, basePath); });
8534
+ },
7850
8535
  /**
7851
8536
  *
7852
8537
  * @summary Remove all Run Templates from the Solution specified
@@ -8034,13 +8719,15 @@ var SolutionApi = /** @class */ (function (_super) {
8034
8719
  *
8035
8720
  * @summary List all Solutions
8036
8721
  * @param {string} organizationId the Organization identifier
8722
+ * @param {number} [page] page number to query
8723
+ * @param {number} [size] amount of result by page
8037
8724
  * @param {*} [options] Override http request option.
8038
8725
  * @throws {RequiredError}
8039
8726
  * @memberof SolutionApi
8040
8727
  */
8041
- SolutionApi.prototype.findAllSolutions = function (organizationId, options) {
8728
+ SolutionApi.prototype.findAllSolutions = function (organizationId, page, size, options) {
8042
8729
  var _this = this;
8043
- return exports.SolutionApiFp(this.configuration).findAllSolutions(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8730
+ return exports.SolutionApiFp(this.configuration).findAllSolutions(organizationId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
8044
8731
  };
8045
8732
  /**
8046
8733
  *
@@ -8057,16 +8744,29 @@ var SolutionApi = /** @class */ (function (_super) {
8057
8744
  };
8058
8745
  /**
8059
8746
  *
8060
- * @summary Remove all Run Templates from the Solution specified
8747
+ * @summary Import a solution
8061
8748
  * @param {string} organizationId the Organization identifier
8062
- * @param {string} solutionId the Solution identifier
8749
+ * @param {Solution} solution the Solution to import
8063
8750
  * @param {*} [options] Override http request option.
8064
8751
  * @throws {RequiredError}
8065
8752
  * @memberof SolutionApi
8066
8753
  */
8067
- SolutionApi.prototype.removeAllRunTemplates = function (organizationId, solutionId, options) {
8754
+ SolutionApi.prototype.importSolution = function (organizationId, solution, options) {
8068
8755
  var _this = this;
8069
- return exports.SolutionApiFp(this.configuration).removeAllRunTemplates(organizationId, solutionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8756
+ return exports.SolutionApiFp(this.configuration).importSolution(organizationId, solution, options).then(function (request) { return request(_this.axios, _this.basePath); });
8757
+ };
8758
+ /**
8759
+ *
8760
+ * @summary Remove all Run Templates from the Solution specified
8761
+ * @param {string} organizationId the Organization identifier
8762
+ * @param {string} solutionId the Solution identifier
8763
+ * @param {*} [options] Override http request option.
8764
+ * @throws {RequiredError}
8765
+ * @memberof SolutionApi
8766
+ */
8767
+ SolutionApi.prototype.removeAllRunTemplates = function (organizationId, solutionId, options) {
8768
+ var _this = this;
8769
+ return exports.SolutionApiFp(this.configuration).removeAllRunTemplates(organizationId, solutionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8070
8770
  };
8071
8771
  /**
8072
8772
  *
@@ -8151,7 +8851,8 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8151
8851
  var _this = this;
8152
8852
  return {
8153
8853
  /**
8154
- * Launch a mass delete job
8854
+ * Delete all versions of a graph and his metadatas
8855
+ * @summary Delete all versions of a graph and his metadatas
8155
8856
  * @param {string} organizationId the Organization identifier
8156
8857
  * @param {string} graphId the Graph Identifier
8157
8858
  * @param {*} [options] Override http request option.
@@ -8197,12 +8898,15 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8197
8898
  });
8198
8899
  },
8199
8900
  /**
8200
- * Return the list of all graphs stored in the organization
8901
+ * Run a query on a graph instance and return the result as a zip file in async mode
8902
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
8201
8903
  * @param {string} organizationId the Organization identifier
8904
+ * @param {string} graphId the Graph Identifier
8905
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
8202
8906
  * @param {*} [options] Override http request option.
8203
8907
  * @throws {RequiredError}
8204
8908
  */
8205
- findAllTwingraphs: function (organizationId, options) {
8909
+ batchQuery: function (organizationId, graphId, twinGraphQuery, options) {
8206
8910
  if (options === void 0) { options = {}; }
8207
8911
  return __awaiter(_this, void 0, void 0, function () {
8208
8912
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8210,14 +8914,19 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8210
8914
  switch (_a.label) {
8211
8915
  case 0:
8212
8916
  // verify required parameter 'organizationId' is not null or undefined
8213
- common_1.assertParamExists('findAllTwingraphs', 'organizationId', organizationId);
8214
- localVarPath = "/organizations/{organization_id}/twingraphs"
8215
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
8917
+ common_1.assertParamExists('batchQuery', 'organizationId', organizationId);
8918
+ // verify required parameter 'graphId' is not null or undefined
8919
+ common_1.assertParamExists('batchQuery', 'graphId', graphId);
8920
+ // verify required parameter 'twinGraphQuery' is not null or undefined
8921
+ common_1.assertParamExists('batchQuery', 'twinGraphQuery', twinGraphQuery);
8922
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/batch-query"
8923
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8924
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
8216
8925
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8217
8926
  if (configuration) {
8218
8927
  baseOptions = configuration.baseOptions;
8219
8928
  }
8220
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8929
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8221
8930
  localVarHeaderParameter = {};
8222
8931
  localVarQueryParameter = {};
8223
8932
  // authentication oAuth2AuthCode required
@@ -8227,9 +8936,11 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8227
8936
  // authentication oAuth2AuthCode required
8228
8937
  // oauth required
8229
8938
  _a.sent();
8939
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8230
8940
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8231
8941
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8232
8942
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8943
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(twinGraphQuery, localVarRequestOptions, configuration);
8233
8944
  return [2 /*return*/, {
8234
8945
  url: common_1.toPathString(localVarUrlObj),
8235
8946
  options: localVarRequestOptions,
@@ -8239,13 +8950,16 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8239
8950
  });
8240
8951
  },
8241
8952
  /**
8242
- * Return the metaData of the specified graph
8953
+ * Async batch update by loading a CSV file on a graph instance
8954
+ * @summary Async batch update by loading a CSV file on a graph instance
8243
8955
  * @param {string} organizationId the Organization identifier
8244
8956
  * @param {string} graphId the Graph Identifier
8957
+ * @param {TwinGraphQuery} twinGraphQuery
8958
+ * @param {any} body
8245
8959
  * @param {*} [options] Override http request option.
8246
8960
  * @throws {RequiredError}
8247
8961
  */
8248
- getGraphMetaData: function (organizationId, graphId, options) {
8962
+ batchUploadUpdate: function (organizationId, graphId, twinGraphQuery, body, options) {
8249
8963
  if (options === void 0) { options = {}; }
8250
8964
  return __awaiter(_this, void 0, void 0, function () {
8251
8965
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8253,17 +8967,21 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8253
8967
  switch (_a.label) {
8254
8968
  case 0:
8255
8969
  // verify required parameter 'organizationId' is not null or undefined
8256
- common_1.assertParamExists('getGraphMetaData', 'organizationId', organizationId);
8970
+ common_1.assertParamExists('batchUploadUpdate', 'organizationId', organizationId);
8257
8971
  // verify required parameter 'graphId' is not null or undefined
8258
- common_1.assertParamExists('getGraphMetaData', 'graphId', graphId);
8259
- localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/metadata"
8972
+ common_1.assertParamExists('batchUploadUpdate', 'graphId', graphId);
8973
+ // verify required parameter 'twinGraphQuery' is not null or undefined
8974
+ common_1.assertParamExists('batchUploadUpdate', 'twinGraphQuery', twinGraphQuery);
8975
+ // verify required parameter 'body' is not null or undefined
8976
+ common_1.assertParamExists('batchUploadUpdate', 'body', body);
8977
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/batch"
8260
8978
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8261
8979
  .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
8262
8980
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8263
8981
  if (configuration) {
8264
8982
  baseOptions = configuration.baseOptions;
8265
8983
  }
8266
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8984
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8267
8985
  localVarHeaderParameter = {};
8268
8986
  localVarQueryParameter = {};
8269
8987
  // authentication oAuth2AuthCode required
@@ -8273,9 +8991,14 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8273
8991
  // authentication oAuth2AuthCode required
8274
8992
  // oauth required
8275
8993
  _a.sent();
8994
+ if (twinGraphQuery !== undefined) {
8995
+ localVarQueryParameter['twinGraphQuery'] = twinGraphQuery;
8996
+ }
8997
+ localVarHeaderParameter['Content-Type'] = 'text/csv';
8276
8998
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8277
8999
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8278
9000
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9001
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
8279
9002
  return [2 /*return*/, {
8280
9003
  url: common_1.toPathString(localVarUrlObj),
8281
9004
  options: localVarRequestOptions,
@@ -8285,13 +9008,16 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8285
9008
  });
8286
9009
  },
8287
9010
  /**
8288
- * Import a new version of a twin graph
9011
+ * create new entities in a graph instance
9012
+ * @summary Create new entities in a graph instance
8289
9013
  * @param {string} organizationId the Organization identifier
8290
- * @param {TwinGraphImport} twinGraphImport the graph to import
9014
+ * @param {string} graphId the Graph Identifier
9015
+ * @param {'node' | 'relationship'} type the entity model type
9016
+ * @param {Array<GraphProperties>} graphProperties the entities to create
8291
9017
  * @param {*} [options] Override http request option.
8292
9018
  * @throws {RequiredError}
8293
9019
  */
8294
- importGraph: function (organizationId, twinGraphImport, options) {
9020
+ createEntities: function (organizationId, graphId, type, graphProperties, options) {
8295
9021
  if (options === void 0) { options = {}; }
8296
9022
  return __awaiter(_this, void 0, void 0, function () {
8297
9023
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8299,11 +9025,17 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8299
9025
  switch (_a.label) {
8300
9026
  case 0:
8301
9027
  // verify required parameter 'organizationId' is not null or undefined
8302
- common_1.assertParamExists('importGraph', 'organizationId', organizationId);
8303
- // verify required parameter 'twinGraphImport' is not null or undefined
8304
- common_1.assertParamExists('importGraph', 'twinGraphImport', twinGraphImport);
8305
- localVarPath = "/organizations/{organization_id}/twingraph/import"
8306
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
9028
+ common_1.assertParamExists('createEntities', 'organizationId', organizationId);
9029
+ // verify required parameter 'graphId' is not null or undefined
9030
+ common_1.assertParamExists('createEntities', 'graphId', graphId);
9031
+ // verify required parameter 'type' is not null or undefined
9032
+ common_1.assertParamExists('createEntities', 'type', type);
9033
+ // verify required parameter 'graphProperties' is not null or undefined
9034
+ common_1.assertParamExists('createEntities', 'graphProperties', graphProperties);
9035
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}"
9036
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9037
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)))
9038
+ .replace("{" + "type" + "}", encodeURIComponent(String(type)));
8307
9039
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8308
9040
  if (configuration) {
8309
9041
  baseOptions = configuration.baseOptions;
@@ -8322,7 +9054,7 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8322
9054
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8323
9055
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8324
9056
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8325
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(twinGraphImport, localVarRequestOptions, configuration);
9057
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration);
8326
9058
  return [2 /*return*/, {
8327
9059
  url: common_1.toPathString(localVarUrlObj),
8328
9060
  options: localVarRequestOptions,
@@ -8332,13 +9064,15 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8332
9064
  });
8333
9065
  },
8334
9066
  /**
8335
- * Get the status of a job
9067
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
9068
+ * @summary Create a new graph
8336
9069
  * @param {string} organizationId the Organization identifier
8337
- * @param {string} jobId the job identifier
9070
+ * @param {string} graphId the Graph Identifier
9071
+ * @param {any} [body]
8338
9072
  * @param {*} [options] Override http request option.
8339
9073
  * @throws {RequiredError}
8340
9074
  */
8341
- jobStatus: function (organizationId, jobId, options) {
9075
+ createGraph: function (organizationId, graphId, body, options) {
8342
9076
  if (options === void 0) { options = {}; }
8343
9077
  return __awaiter(_this, void 0, void 0, function () {
8344
9078
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8346,17 +9080,17 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8346
9080
  switch (_a.label) {
8347
9081
  case 0:
8348
9082
  // verify required parameter 'organizationId' is not null or undefined
8349
- common_1.assertParamExists('jobStatus', 'organizationId', organizationId);
8350
- // verify required parameter 'jobId' is not null or undefined
8351
- common_1.assertParamExists('jobStatus', 'jobId', jobId);
8352
- localVarPath = "/organizations/{organization_id}/job/{job_id}/status"
9083
+ common_1.assertParamExists('createGraph', 'organizationId', organizationId);
9084
+ // verify required parameter 'graphId' is not null or undefined
9085
+ common_1.assertParamExists('createGraph', 'graphId', graphId);
9086
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}"
8353
9087
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8354
- .replace("{" + "job_id" + "}", encodeURIComponent(String(jobId)));
9088
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
8355
9089
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8356
9090
  if (configuration) {
8357
9091
  baseOptions = configuration.baseOptions;
8358
9092
  }
8359
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9093
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8360
9094
  localVarHeaderParameter = {};
8361
9095
  localVarQueryParameter = {};
8362
9096
  // authentication oAuth2AuthCode required
@@ -8366,9 +9100,11 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8366
9100
  // authentication oAuth2AuthCode required
8367
9101
  // oauth required
8368
9102
  _a.sent();
9103
+ localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
8369
9104
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8370
9105
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8371
9106
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9107
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
8372
9108
  return [2 /*return*/, {
8373
9109
  url: common_1.toPathString(localVarUrlObj),
8374
9110
  options: localVarRequestOptions,
@@ -8378,14 +9114,16 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8378
9114
  });
8379
9115
  },
8380
9116
  /**
8381
- * Run a query on a graph instance
9117
+ * delete entities in a graph instance
9118
+ * @summary Delete entities in a graph instance
8382
9119
  * @param {string} organizationId the Organization identifier
8383
9120
  * @param {string} graphId the Graph Identifier
8384
- * @param {TwinGraphQuery} twinGraphQuery the query to run
9121
+ * @param {'node' | 'relationship'} type the entity model type
9122
+ * @param {Array<string>} ids the entities to delete
8385
9123
  * @param {*} [options] Override http request option.
8386
9124
  * @throws {RequiredError}
8387
9125
  */
8388
- query: function (organizationId, graphId, twinGraphQuery, options) {
9126
+ deleteEntities: function (organizationId, graphId, type, ids, options) {
8389
9127
  if (options === void 0) { options = {}; }
8390
9128
  return __awaiter(_this, void 0, void 0, function () {
8391
9129
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8393,19 +9131,22 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8393
9131
  switch (_a.label) {
8394
9132
  case 0:
8395
9133
  // verify required parameter 'organizationId' is not null or undefined
8396
- common_1.assertParamExists('query', 'organizationId', organizationId);
9134
+ common_1.assertParamExists('deleteEntities', 'organizationId', organizationId);
8397
9135
  // verify required parameter 'graphId' is not null or undefined
8398
- common_1.assertParamExists('query', 'graphId', graphId);
8399
- // verify required parameter 'twinGraphQuery' is not null or undefined
8400
- common_1.assertParamExists('query', 'twinGraphQuery', twinGraphQuery);
8401
- localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/query"
9136
+ common_1.assertParamExists('deleteEntities', 'graphId', graphId);
9137
+ // verify required parameter 'type' is not null or undefined
9138
+ common_1.assertParamExists('deleteEntities', 'type', type);
9139
+ // verify required parameter 'ids' is not null or undefined
9140
+ common_1.assertParamExists('deleteEntities', 'ids', ids);
9141
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}"
8402
9142
  .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8403
- .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
9143
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)))
9144
+ .replace("{" + "type" + "}", encodeURIComponent(String(type)));
8404
9145
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8405
9146
  if (configuration) {
8406
9147
  baseOptions = configuration.baseOptions;
8407
9148
  }
8408
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9149
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
8409
9150
  localVarHeaderParameter = {};
8410
9151
  localVarQueryParameter = {};
8411
9152
  // authentication oAuth2AuthCode required
@@ -8415,11 +9156,12 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8415
9156
  // authentication oAuth2AuthCode required
8416
9157
  // oauth required
8417
9158
  _a.sent();
8418
- localVarHeaderParameter['Content-Type'] = 'application/json';
9159
+ if (ids) {
9160
+ localVarQueryParameter['ids'] = ids;
9161
+ }
8419
9162
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8420
9163
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8421
9164
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8422
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(twinGraphQuery, localVarRequestOptions, configuration);
8423
9165
  return [2 /*return*/, {
8424
9166
  url: common_1.toPathString(localVarUrlObj),
8425
9167
  options: localVarRequestOptions,
@@ -8428,529 +9170,226 @@ exports.TwingraphApiAxiosParamCreator = function (configuration) {
8428
9170
  });
8429
9171
  });
8430
9172
  },
8431
- };
8432
- };
8433
- /**
8434
- * TwingraphApi - functional programming interface
8435
- * @export
8436
- */
8437
- exports.TwingraphApiFp = function (configuration) {
8438
- var localVarAxiosParamCreator = exports.TwingraphApiAxiosParamCreator(configuration);
8439
- return {
8440
9173
  /**
8441
- * Launch a mass delete job
9174
+ * Download a graph compressed in a zip file
9175
+ * @summary Download a graph compressed in a zip file
8442
9176
  * @param {string} organizationId the Organization identifier
8443
- * @param {string} graphId the Graph Identifier
9177
+ * @param {string} hash the Graph download identifier
8444
9178
  * @param {*} [options] Override http request option.
8445
9179
  * @throws {RequiredError}
8446
9180
  */
8447
- _delete: function (organizationId, graphId, options) {
8448
- return __awaiter(this, void 0, void 0, function () {
8449
- var localVarAxiosArgs;
9181
+ downloadGraph: function (organizationId, hash, options) {
9182
+ if (options === void 0) { options = {}; }
9183
+ return __awaiter(_this, void 0, void 0, function () {
9184
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8450
9185
  return __generator(this, function (_a) {
8451
9186
  switch (_a.label) {
8452
- case 0: return [4 /*yield*/, localVarAxiosParamCreator._delete(organizationId, graphId, options)];
9187
+ case 0:
9188
+ // verify required parameter 'organizationId' is not null or undefined
9189
+ common_1.assertParamExists('downloadGraph', 'organizationId', organizationId);
9190
+ // verify required parameter 'hash' is not null or undefined
9191
+ common_1.assertParamExists('downloadGraph', 'hash', hash);
9192
+ localVarPath = "/organizations/{organization_id}/twingraph/download/{hash}"
9193
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9194
+ .replace("{" + "hash" + "}", encodeURIComponent(String(hash)));
9195
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9196
+ if (configuration) {
9197
+ baseOptions = configuration.baseOptions;
9198
+ }
9199
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9200
+ localVarHeaderParameter = {};
9201
+ localVarQueryParameter = {};
9202
+ // authentication oAuth2AuthCode required
9203
+ // oauth required
9204
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8453
9205
  case 1:
8454
- localVarAxiosArgs = _a.sent();
8455
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9206
+ // authentication oAuth2AuthCode required
9207
+ // oauth required
9208
+ _a.sent();
9209
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9210
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9211
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9212
+ return [2 /*return*/, {
9213
+ url: common_1.toPathString(localVarUrlObj),
9214
+ options: localVarRequestOptions,
9215
+ }];
8456
9216
  }
8457
9217
  });
8458
9218
  });
8459
9219
  },
8460
9220
  /**
8461
9221
  * Return the list of all graphs stored in the organization
9222
+ * @summary Return the list of all graphs stored in the organization
8462
9223
  * @param {string} organizationId the Organization identifier
8463
9224
  * @param {*} [options] Override http request option.
8464
9225
  * @throws {RequiredError}
8465
9226
  */
8466
9227
  findAllTwingraphs: function (organizationId, options) {
8467
- return __awaiter(this, void 0, void 0, function () {
8468
- var localVarAxiosArgs;
9228
+ if (options === void 0) { options = {}; }
9229
+ return __awaiter(_this, void 0, void 0, function () {
9230
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8469
9231
  return __generator(this, function (_a) {
8470
9232
  switch (_a.label) {
8471
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllTwingraphs(organizationId, options)];
9233
+ case 0:
9234
+ // verify required parameter 'organizationId' is not null or undefined
9235
+ common_1.assertParamExists('findAllTwingraphs', 'organizationId', organizationId);
9236
+ localVarPath = "/organizations/{organization_id}/twingraphs"
9237
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
9238
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9239
+ if (configuration) {
9240
+ baseOptions = configuration.baseOptions;
9241
+ }
9242
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9243
+ localVarHeaderParameter = {};
9244
+ localVarQueryParameter = {};
9245
+ // authentication oAuth2AuthCode required
9246
+ // oauth required
9247
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8472
9248
  case 1:
8473
- localVarAxiosArgs = _a.sent();
8474
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9249
+ // authentication oAuth2AuthCode required
9250
+ // oauth required
9251
+ _a.sent();
9252
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9253
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9254
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9255
+ return [2 /*return*/, {
9256
+ url: common_1.toPathString(localVarUrlObj),
9257
+ options: localVarRequestOptions,
9258
+ }];
8475
9259
  }
8476
9260
  });
8477
9261
  });
8478
9262
  },
8479
9263
  /**
8480
- * Return the metaData of the specified graph
9264
+ * get entities in a graph instance
9265
+ * @summary Get entities in a graph instance
8481
9266
  * @param {string} organizationId the Organization identifier
8482
9267
  * @param {string} graphId the Graph Identifier
9268
+ * @param {'node' | 'relationship'} type the entity model type
9269
+ * @param {Array<string>} ids the entities to get
8483
9270
  * @param {*} [options] Override http request option.
8484
9271
  * @throws {RequiredError}
8485
9272
  */
8486
- getGraphMetaData: function (organizationId, graphId, options) {
8487
- return __awaiter(this, void 0, void 0, function () {
8488
- var localVarAxiosArgs;
9273
+ getEntities: function (organizationId, graphId, type, ids, options) {
9274
+ if (options === void 0) { options = {}; }
9275
+ return __awaiter(_this, void 0, void 0, function () {
9276
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8489
9277
  return __generator(this, function (_a) {
8490
9278
  switch (_a.label) {
8491
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGraphMetaData(organizationId, graphId, options)];
9279
+ case 0:
9280
+ // verify required parameter 'organizationId' is not null or undefined
9281
+ common_1.assertParamExists('getEntities', 'organizationId', organizationId);
9282
+ // verify required parameter 'graphId' is not null or undefined
9283
+ common_1.assertParamExists('getEntities', 'graphId', graphId);
9284
+ // verify required parameter 'type' is not null or undefined
9285
+ common_1.assertParamExists('getEntities', 'type', type);
9286
+ // verify required parameter 'ids' is not null or undefined
9287
+ common_1.assertParamExists('getEntities', 'ids', ids);
9288
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}"
9289
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9290
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)))
9291
+ .replace("{" + "type" + "}", encodeURIComponent(String(type)));
9292
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9293
+ if (configuration) {
9294
+ baseOptions = configuration.baseOptions;
9295
+ }
9296
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9297
+ localVarHeaderParameter = {};
9298
+ localVarQueryParameter = {};
9299
+ // authentication oAuth2AuthCode required
9300
+ // oauth required
9301
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8492
9302
  case 1:
8493
- localVarAxiosArgs = _a.sent();
8494
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9303
+ // authentication oAuth2AuthCode required
9304
+ // oauth required
9305
+ _a.sent();
9306
+ if (ids) {
9307
+ localVarQueryParameter['ids'] = ids;
9308
+ }
9309
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9310
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9311
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9312
+ return [2 /*return*/, {
9313
+ url: common_1.toPathString(localVarUrlObj),
9314
+ options: localVarRequestOptions,
9315
+ }];
8495
9316
  }
8496
9317
  });
8497
9318
  });
8498
9319
  },
8499
9320
  /**
8500
- * Import a new version of a twin graph
9321
+ * Return the metaData of the specified graph
9322
+ * @summary Return the metaData of the specified graph
8501
9323
  * @param {string} organizationId the Organization identifier
8502
- * @param {TwinGraphImport} twinGraphImport the graph to import
9324
+ * @param {string} graphId the Graph Identifier
8503
9325
  * @param {*} [options] Override http request option.
8504
9326
  * @throws {RequiredError}
8505
9327
  */
8506
- importGraph: function (organizationId, twinGraphImport, options) {
8507
- return __awaiter(this, void 0, void 0, function () {
8508
- var localVarAxiosArgs;
9328
+ getGraphMetaData: function (organizationId, graphId, options) {
9329
+ if (options === void 0) { options = {}; }
9330
+ return __awaiter(_this, void 0, void 0, function () {
9331
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8509
9332
  return __generator(this, function (_a) {
8510
9333
  switch (_a.label) {
8511
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importGraph(organizationId, twinGraphImport, options)];
9334
+ case 0:
9335
+ // verify required parameter 'organizationId' is not null or undefined
9336
+ common_1.assertParamExists('getGraphMetaData', 'organizationId', organizationId);
9337
+ // verify required parameter 'graphId' is not null or undefined
9338
+ common_1.assertParamExists('getGraphMetaData', 'graphId', graphId);
9339
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/metadata"
9340
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9341
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
9342
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9343
+ if (configuration) {
9344
+ baseOptions = configuration.baseOptions;
9345
+ }
9346
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9347
+ localVarHeaderParameter = {};
9348
+ localVarQueryParameter = {};
9349
+ // authentication oAuth2AuthCode required
9350
+ // oauth required
9351
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8512
9352
  case 1:
8513
- localVarAxiosArgs = _a.sent();
8514
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9353
+ // authentication oAuth2AuthCode required
9354
+ // oauth required
9355
+ _a.sent();
9356
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9357
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9358
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9359
+ return [2 /*return*/, {
9360
+ url: common_1.toPathString(localVarUrlObj),
9361
+ options: localVarRequestOptions,
9362
+ }];
8515
9363
  }
8516
9364
  });
8517
9365
  });
8518
9366
  },
8519
9367
  /**
8520
- * Get the status of a job
9368
+ * Import a new version of a twin graph
9369
+ * @summary Import a new version of a twin graph
8521
9370
  * @param {string} organizationId the Organization identifier
8522
- * @param {string} jobId the job identifier
9371
+ * @param {TwinGraphImport} twinGraphImport the graph to import
8523
9372
  * @param {*} [options] Override http request option.
8524
9373
  * @throws {RequiredError}
8525
9374
  */
8526
- jobStatus: function (organizationId, jobId, options) {
8527
- return __awaiter(this, void 0, void 0, function () {
8528
- var localVarAxiosArgs;
8529
- return __generator(this, function (_a) {
8530
- switch (_a.label) {
8531
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobStatus(organizationId, jobId, options)];
8532
- case 1:
8533
- localVarAxiosArgs = _a.sent();
8534
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8535
- }
8536
- });
8537
- });
8538
- },
8539
- /**
8540
- * Run a query on a graph instance
8541
- * @param {string} organizationId the Organization identifier
8542
- * @param {string} graphId the Graph Identifier
8543
- * @param {TwinGraphQuery} twinGraphQuery the query to run
8544
- * @param {*} [options] Override http request option.
8545
- * @throws {RequiredError}
8546
- */
8547
- query: function (organizationId, graphId, twinGraphQuery, options) {
8548
- return __awaiter(this, void 0, void 0, function () {
8549
- var localVarAxiosArgs;
8550
- return __generator(this, function (_a) {
8551
- switch (_a.label) {
8552
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.query(organizationId, graphId, twinGraphQuery, options)];
8553
- case 1:
8554
- localVarAxiosArgs = _a.sent();
8555
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8556
- }
8557
- });
8558
- });
8559
- },
8560
- };
8561
- };
8562
- /**
8563
- * TwingraphApi - factory interface
8564
- * @export
8565
- */
8566
- exports.TwingraphApiFactory = function (configuration, basePath, axios) {
8567
- var localVarFp = exports.TwingraphApiFp(configuration);
8568
- return {
8569
- /**
8570
- * Launch a mass delete job
8571
- * @param {string} organizationId the Organization identifier
8572
- * @param {string} graphId the Graph Identifier
8573
- * @param {*} [options] Override http request option.
8574
- * @throws {RequiredError}
8575
- */
8576
- _delete: function (organizationId, graphId, options) {
8577
- return localVarFp._delete(organizationId, graphId, options).then(function (request) { return request(axios, basePath); });
8578
- },
8579
- /**
8580
- * Return the list of all graphs stored in the organization
8581
- * @param {string} organizationId the Organization identifier
8582
- * @param {*} [options] Override http request option.
8583
- * @throws {RequiredError}
8584
- */
8585
- findAllTwingraphs: function (organizationId, options) {
8586
- return localVarFp.findAllTwingraphs(organizationId, options).then(function (request) { return request(axios, basePath); });
8587
- },
8588
- /**
8589
- * Return the metaData of the specified graph
8590
- * @param {string} organizationId the Organization identifier
8591
- * @param {string} graphId the Graph Identifier
8592
- * @param {*} [options] Override http request option.
8593
- * @throws {RequiredError}
8594
- */
8595
- getGraphMetaData: function (organizationId, graphId, options) {
8596
- return localVarFp.getGraphMetaData(organizationId, graphId, options).then(function (request) { return request(axios, basePath); });
8597
- },
8598
- /**
8599
- * Import a new version of a twin graph
8600
- * @param {string} organizationId the Organization identifier
8601
- * @param {TwinGraphImport} twinGraphImport the graph to import
8602
- * @param {*} [options] Override http request option.
8603
- * @throws {RequiredError}
8604
- */
8605
- importGraph: function (organizationId, twinGraphImport, options) {
8606
- return localVarFp.importGraph(organizationId, twinGraphImport, options).then(function (request) { return request(axios, basePath); });
8607
- },
8608
- /**
8609
- * Get the status of a job
8610
- * @param {string} organizationId the Organization identifier
8611
- * @param {string} jobId the job identifier
8612
- * @param {*} [options] Override http request option.
8613
- * @throws {RequiredError}
8614
- */
8615
- jobStatus: function (organizationId, jobId, options) {
8616
- return localVarFp.jobStatus(organizationId, jobId, options).then(function (request) { return request(axios, basePath); });
8617
- },
8618
- /**
8619
- * Run a query on a graph instance
8620
- * @param {string} organizationId the Organization identifier
8621
- * @param {string} graphId the Graph Identifier
8622
- * @param {TwinGraphQuery} twinGraphQuery the query to run
8623
- * @param {*} [options] Override http request option.
8624
- * @throws {RequiredError}
8625
- */
8626
- query: function (organizationId, graphId, twinGraphQuery, options) {
8627
- return localVarFp.query(organizationId, graphId, twinGraphQuery, options).then(function (request) { return request(axios, basePath); });
8628
- },
8629
- };
8630
- };
8631
- /**
8632
- * TwingraphApi - object-oriented interface
8633
- * @export
8634
- * @class TwingraphApi
8635
- * @extends {BaseAPI}
8636
- */
8637
- var TwingraphApi = /** @class */ (function (_super) {
8638
- __extends(TwingraphApi, _super);
8639
- function TwingraphApi() {
8640
- return _super !== null && _super.apply(this, arguments) || this;
8641
- }
8642
- /**
8643
- * Launch a mass delete job
8644
- * @param {string} organizationId the Organization identifier
8645
- * @param {string} graphId the Graph Identifier
8646
- * @param {*} [options] Override http request option.
8647
- * @throws {RequiredError}
8648
- * @memberof TwingraphApi
8649
- */
8650
- TwingraphApi.prototype._delete = function (organizationId, graphId, options) {
8651
- var _this = this;
8652
- return exports.TwingraphApiFp(this.configuration)._delete(organizationId, graphId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8653
- };
8654
- /**
8655
- * Return the list of all graphs stored in the organization
8656
- * @param {string} organizationId the Organization identifier
8657
- * @param {*} [options] Override http request option.
8658
- * @throws {RequiredError}
8659
- * @memberof TwingraphApi
8660
- */
8661
- TwingraphApi.prototype.findAllTwingraphs = function (organizationId, options) {
8662
- var _this = this;
8663
- return exports.TwingraphApiFp(this.configuration).findAllTwingraphs(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8664
- };
8665
- /**
8666
- * Return the metaData of the specified graph
8667
- * @param {string} organizationId the Organization identifier
8668
- * @param {string} graphId the Graph Identifier
8669
- * @param {*} [options] Override http request option.
8670
- * @throws {RequiredError}
8671
- * @memberof TwingraphApi
8672
- */
8673
- TwingraphApi.prototype.getGraphMetaData = function (organizationId, graphId, options) {
8674
- var _this = this;
8675
- return exports.TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8676
- };
8677
- /**
8678
- * Import a new version of a twin graph
8679
- * @param {string} organizationId the Organization identifier
8680
- * @param {TwinGraphImport} twinGraphImport the graph to import
8681
- * @param {*} [options] Override http request option.
8682
- * @throws {RequiredError}
8683
- * @memberof TwingraphApi
8684
- */
8685
- TwingraphApi.prototype.importGraph = function (organizationId, twinGraphImport, options) {
8686
- var _this = this;
8687
- return exports.TwingraphApiFp(this.configuration).importGraph(organizationId, twinGraphImport, options).then(function (request) { return request(_this.axios, _this.basePath); });
8688
- };
8689
- /**
8690
- * Get the status of a job
8691
- * @param {string} organizationId the Organization identifier
8692
- * @param {string} jobId the job identifier
8693
- * @param {*} [options] Override http request option.
8694
- * @throws {RequiredError}
8695
- * @memberof TwingraphApi
8696
- */
8697
- TwingraphApi.prototype.jobStatus = function (organizationId, jobId, options) {
8698
- var _this = this;
8699
- return exports.TwingraphApiFp(this.configuration).jobStatus(organizationId, jobId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8700
- };
8701
- /**
8702
- * Run a query on a graph instance
8703
- * @param {string} organizationId the Organization identifier
8704
- * @param {string} graphId the Graph Identifier
8705
- * @param {TwinGraphQuery} twinGraphQuery the query to run
8706
- * @param {*} [options] Override http request option.
8707
- * @throws {RequiredError}
8708
- * @memberof TwingraphApi
8709
- */
8710
- TwingraphApi.prototype.query = function (organizationId, graphId, twinGraphQuery, options) {
8711
- var _this = this;
8712
- return exports.TwingraphApiFp(this.configuration).query(organizationId, graphId, twinGraphQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
8713
- };
8714
- return TwingraphApi;
8715
- }(base_1.BaseAPI));
8716
- exports.TwingraphApi = TwingraphApi;
8717
- /**
8718
- * UserApi - axios parameter creator
8719
- * @export
8720
- */
8721
- exports.UserApiAxiosParamCreator = function (configuration) {
8722
- var _this = this;
8723
- return {
8724
- /**
8725
- *
8726
- * @summary Authorize an User with OAuth2. Delegated to configured OAuth2 service
8727
- * @param {*} [options] Override http request option.
8728
- * @throws {RequiredError}
8729
- */
8730
- authorizeUser: function (options) {
8731
- if (options === void 0) { options = {}; }
8732
- return __awaiter(_this, void 0, void 0, function () {
8733
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8734
- return __generator(this, function (_a) {
8735
- switch (_a.label) {
8736
- case 0:
8737
- localVarPath = "/oauth2/authorize";
8738
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8739
- if (configuration) {
8740
- baseOptions = configuration.baseOptions;
8741
- }
8742
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8743
- localVarHeaderParameter = {};
8744
- localVarQueryParameter = {};
8745
- // authentication oAuth2AuthCode required
8746
- // oauth required
8747
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8748
- case 1:
8749
- // authentication oAuth2AuthCode required
8750
- // oauth required
8751
- _a.sent();
8752
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8753
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8754
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8755
- return [2 /*return*/, {
8756
- url: common_1.toPathString(localVarUrlObj),
8757
- options: localVarRequestOptions,
8758
- }];
8759
- }
8760
- });
8761
- });
8762
- },
8763
- /**
8764
- *
8765
- * @summary List all Users
8766
- * @param {*} [options] Override http request option.
8767
- * @throws {RequiredError}
8768
- */
8769
- findAllUsers: function (options) {
8770
- if (options === void 0) { options = {}; }
8771
- return __awaiter(_this, void 0, void 0, function () {
8772
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8773
- return __generator(this, function (_a) {
8774
- switch (_a.label) {
8775
- case 0:
8776
- localVarPath = "/users";
8777
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8778
- if (configuration) {
8779
- baseOptions = configuration.baseOptions;
8780
- }
8781
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8782
- localVarHeaderParameter = {};
8783
- localVarQueryParameter = {};
8784
- // authentication oAuth2AuthCode required
8785
- // oauth required
8786
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8787
- case 1:
8788
- // authentication oAuth2AuthCode required
8789
- // oauth required
8790
- _a.sent();
8791
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8792
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8793
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8794
- return [2 /*return*/, {
8795
- url: common_1.toPathString(localVarUrlObj),
8796
- options: localVarRequestOptions,
8797
- }];
8798
- }
8799
- });
8800
- });
8801
- },
8802
- /**
8803
- *
8804
- * @summary Get the details of an user
8805
- * @param {string} userId the User identifier
8806
- * @param {*} [options] Override http request option.
8807
- * @throws {RequiredError}
8808
- */
8809
- findUserById: function (userId, options) {
8810
- if (options === void 0) { options = {}; }
8811
- return __awaiter(_this, void 0, void 0, function () {
8812
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8813
- return __generator(this, function (_a) {
8814
- switch (_a.label) {
8815
- case 0:
8816
- // verify required parameter 'userId' is not null or undefined
8817
- common_1.assertParamExists('findUserById', 'userId', userId);
8818
- localVarPath = "/users/{user_id}"
8819
- .replace("{" + "user_id" + "}", encodeURIComponent(String(userId)));
8820
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8821
- if (configuration) {
8822
- baseOptions = configuration.baseOptions;
8823
- }
8824
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8825
- localVarHeaderParameter = {};
8826
- localVarQueryParameter = {};
8827
- // authentication oAuth2AuthCode required
8828
- // oauth required
8829
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8830
- case 1:
8831
- // authentication oAuth2AuthCode required
8832
- // oauth required
8833
- _a.sent();
8834
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8835
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8836
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8837
- return [2 /*return*/, {
8838
- url: common_1.toPathString(localVarUrlObj),
8839
- options: localVarRequestOptions,
8840
- }];
8841
- }
8842
- });
8843
- });
8844
- },
8845
- /**
8846
- *
8847
- * @summary Get the details of the logged-in User
8848
- * @param {*} [options] Override http request option.
8849
- * @throws {RequiredError}
8850
- */
8851
- getCurrentUser: function (options) {
8852
- if (options === void 0) { options = {}; }
8853
- return __awaiter(_this, void 0, void 0, function () {
8854
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8855
- return __generator(this, function (_a) {
8856
- switch (_a.label) {
8857
- case 0:
8858
- localVarPath = "/users/me";
8859
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8860
- if (configuration) {
8861
- baseOptions = configuration.baseOptions;
8862
- }
8863
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8864
- localVarHeaderParameter = {};
8865
- localVarQueryParameter = {};
8866
- // authentication oAuth2AuthCode required
8867
- // oauth required
8868
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8869
- case 1:
8870
- // authentication oAuth2AuthCode required
8871
- // oauth required
8872
- _a.sent();
8873
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8874
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8875
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8876
- return [2 /*return*/, {
8877
- url: common_1.toPathString(localVarUrlObj),
8878
- options: localVarRequestOptions,
8879
- }];
8880
- }
8881
- });
8882
- });
8883
- },
8884
- /**
8885
- *
8886
- * @summary Get the details of a logged-in User with roles for an Organization
8887
- * @param {string} organizationId the Organization identifier
8888
- * @param {*} [options] Override http request option.
8889
- * @throws {RequiredError}
8890
- */
8891
- getOrganizationCurrentUser: function (organizationId, options) {
8892
- if (options === void 0) { options = {}; }
8893
- return __awaiter(_this, void 0, void 0, function () {
8894
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8895
- return __generator(this, function (_a) {
8896
- switch (_a.label) {
8897
- case 0:
8898
- // verify required parameter 'organizationId' is not null or undefined
8899
- common_1.assertParamExists('getOrganizationCurrentUser', 'organizationId', organizationId);
8900
- localVarPath = "/organizations/{organization_id}/me"
8901
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
8902
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8903
- if (configuration) {
8904
- baseOptions = configuration.baseOptions;
8905
- }
8906
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8907
- localVarHeaderParameter = {};
8908
- localVarQueryParameter = {};
8909
- // authentication oAuth2AuthCode required
8910
- // oauth required
8911
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
8912
- case 1:
8913
- // authentication oAuth2AuthCode required
8914
- // oauth required
8915
- _a.sent();
8916
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8917
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8918
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8919
- return [2 /*return*/, {
8920
- url: common_1.toPathString(localVarUrlObj),
8921
- options: localVarRequestOptions,
8922
- }];
8923
- }
8924
- });
8925
- });
8926
- },
8927
- /**
8928
- *
8929
- * @summary Get the details of the logged-in user with roles for a Workspace
8930
- * @param {string} organizationId the Organization identifier
8931
- * @param {string} workspaceId the Workspace identifier
8932
- * @param {*} [options] Override http request option.
8933
- * @throws {RequiredError}
8934
- */
8935
- getWorkspaceCurrentUser: function (organizationId, workspaceId, options) {
8936
- if (options === void 0) { options = {}; }
8937
- return __awaiter(_this, void 0, void 0, function () {
8938
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9375
+ importGraph: function (organizationId, twinGraphImport, options) {
9376
+ if (options === void 0) { options = {}; }
9377
+ return __awaiter(_this, void 0, void 0, function () {
9378
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8939
9379
  return __generator(this, function (_a) {
8940
9380
  switch (_a.label) {
8941
9381
  case 0:
8942
9382
  // verify required parameter 'organizationId' is not null or undefined
8943
- common_1.assertParamExists('getWorkspaceCurrentUser', 'organizationId', organizationId);
8944
- // verify required parameter 'workspaceId' is not null or undefined
8945
- common_1.assertParamExists('getWorkspaceCurrentUser', 'workspaceId', workspaceId);
8946
- localVarPath = "/organizations/{organization_id}/workspaces/{workspace_id}/me"
8947
- .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
8948
- .replace("{" + "workspace_id" + "}", encodeURIComponent(String(workspaceId)));
9383
+ common_1.assertParamExists('importGraph', 'organizationId', organizationId);
9384
+ // verify required parameter 'twinGraphImport' is not null or undefined
9385
+ common_1.assertParamExists('importGraph', 'twinGraphImport', twinGraphImport);
9386
+ localVarPath = "/organizations/{organization_id}/twingraph/import"
9387
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
8949
9388
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8950
9389
  if (configuration) {
8951
9390
  baseOptions = configuration.baseOptions;
8952
9391
  }
8953
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9392
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8954
9393
  localVarHeaderParameter = {};
8955
9394
  localVarQueryParameter = {};
8956
9395
  // authentication oAuth2AuthCode required
@@ -8960,9 +9399,11 @@ exports.UserApiAxiosParamCreator = function (configuration) {
8960
9399
  // authentication oAuth2AuthCode required
8961
9400
  // oauth required
8962
9401
  _a.sent();
9402
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8963
9403
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8964
9404
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8965
9405
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9406
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(twinGraphImport, localVarRequestOptions, configuration);
8966
9407
  return [2 /*return*/, {
8967
9408
  url: common_1.toPathString(localVarUrlObj),
8968
9409
  options: localVarRequestOptions,
@@ -8972,27 +9413,32 @@ exports.UserApiAxiosParamCreator = function (configuration) {
8972
9413
  });
8973
9414
  },
8974
9415
  /**
8975
- *
8976
- * @summary Register a new user
8977
- * @param {User} user the User to register
9416
+ * Get the status of a job
9417
+ * @summary Get the status of a job
9418
+ * @param {string} organizationId the Organization identifier
9419
+ * @param {string} jobId the job identifier
8978
9420
  * @param {*} [options] Override http request option.
8979
9421
  * @throws {RequiredError}
8980
9422
  */
8981
- registerUser: function (user, options) {
9423
+ jobStatus: function (organizationId, jobId, options) {
8982
9424
  if (options === void 0) { options = {}; }
8983
9425
  return __awaiter(_this, void 0, void 0, function () {
8984
9426
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8985
9427
  return __generator(this, function (_a) {
8986
9428
  switch (_a.label) {
8987
9429
  case 0:
8988
- // verify required parameter 'user' is not null or undefined
8989
- common_1.assertParamExists('registerUser', 'user', user);
8990
- localVarPath = "/users";
9430
+ // verify required parameter 'organizationId' is not null or undefined
9431
+ common_1.assertParamExists('jobStatus', 'organizationId', organizationId);
9432
+ // verify required parameter 'jobId' is not null or undefined
9433
+ common_1.assertParamExists('jobStatus', 'jobId', jobId);
9434
+ localVarPath = "/organizations/{organization_id}/job/{job_id}/status"
9435
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9436
+ .replace("{" + "job_id" + "}", encodeURIComponent(String(jobId)));
8991
9437
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8992
9438
  if (configuration) {
8993
9439
  baseOptions = configuration.baseOptions;
8994
9440
  }
8995
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9441
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8996
9442
  localVarHeaderParameter = {};
8997
9443
  localVarQueryParameter = {};
8998
9444
  // authentication oAuth2AuthCode required
@@ -9002,11 +9448,9 @@ exports.UserApiAxiosParamCreator = function (configuration) {
9002
9448
  // authentication oAuth2AuthCode required
9003
9449
  // oauth required
9004
9450
  _a.sent();
9005
- localVarHeaderParameter['Content-Type'] = 'application/json';
9006
9451
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9007
9452
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9008
9453
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9009
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(user, localVarRequestOptions, configuration);
9010
9454
  return [2 /*return*/, {
9011
9455
  url: common_1.toPathString(localVarUrlObj),
9012
9456
  options: localVarRequestOptions,
@@ -9016,24 +9460,35 @@ exports.UserApiAxiosParamCreator = function (configuration) {
9016
9460
  });
9017
9461
  },
9018
9462
  /**
9019
- *
9020
- * @summary test platform API call
9463
+ * Run a query on a graph instance
9464
+ * @summary Run a query on a graph instance
9465
+ * @param {string} organizationId the Organization identifier
9466
+ * @param {string} graphId the Graph Identifier
9467
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
9021
9468
  * @param {*} [options] Override http request option.
9022
9469
  * @throws {RequiredError}
9023
9470
  */
9024
- testPlatform: function (options) {
9471
+ query: function (organizationId, graphId, twinGraphQuery, options) {
9025
9472
  if (options === void 0) { options = {}; }
9026
9473
  return __awaiter(_this, void 0, void 0, function () {
9027
9474
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9028
9475
  return __generator(this, function (_a) {
9029
9476
  switch (_a.label) {
9030
9477
  case 0:
9031
- localVarPath = "/test";
9478
+ // verify required parameter 'organizationId' is not null or undefined
9479
+ common_1.assertParamExists('query', 'organizationId', organizationId);
9480
+ // verify required parameter 'graphId' is not null or undefined
9481
+ common_1.assertParamExists('query', 'graphId', graphId);
9482
+ // verify required parameter 'twinGraphQuery' is not null or undefined
9483
+ common_1.assertParamExists('query', 'twinGraphQuery', twinGraphQuery);
9484
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/query"
9485
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9486
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
9032
9487
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9033
9488
  if (configuration) {
9034
9489
  baseOptions = configuration.baseOptions;
9035
9490
  }
9036
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9491
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9037
9492
  localVarHeaderParameter = {};
9038
9493
  localVarQueryParameter = {};
9039
9494
  // authentication oAuth2AuthCode required
@@ -9043,9 +9498,11 @@ exports.UserApiAxiosParamCreator = function (configuration) {
9043
9498
  // authentication oAuth2AuthCode required
9044
9499
  // oauth required
9045
9500
  _a.sent();
9501
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9046
9502
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9047
9503
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9048
9504
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9505
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(twinGraphQuery, localVarRequestOptions, configuration);
9049
9506
  return [2 /*return*/, {
9050
9507
  url: common_1.toPathString(localVarUrlObj),
9051
9508
  options: localVarRequestOptions,
@@ -9055,28 +9512,39 @@ exports.UserApiAxiosParamCreator = function (configuration) {
9055
9512
  });
9056
9513
  },
9057
9514
  /**
9058
- *
9059
- * @summary Unregister an user
9060
- * @param {string} userId the User identifier
9515
+ * update entities in a graph instance
9516
+ * @summary Update entities in a graph instance
9517
+ * @param {string} organizationId the Organization identifier
9518
+ * @param {string} graphId the Graph Identifier
9519
+ * @param {'node' | 'relationship'} type the entity model type
9520
+ * @param {Array<GraphProperties>} graphProperties the entities to update
9061
9521
  * @param {*} [options] Override http request option.
9062
9522
  * @throws {RequiredError}
9063
9523
  */
9064
- unregisterUser: function (userId, options) {
9524
+ updateEntities: function (organizationId, graphId, type, graphProperties, options) {
9065
9525
  if (options === void 0) { options = {}; }
9066
9526
  return __awaiter(_this, void 0, void 0, function () {
9067
9527
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9068
9528
  return __generator(this, function (_a) {
9069
9529
  switch (_a.label) {
9070
9530
  case 0:
9071
- // verify required parameter 'userId' is not null or undefined
9072
- common_1.assertParamExists('unregisterUser', 'userId', userId);
9073
- localVarPath = "/users/{user_id}"
9074
- .replace("{" + "user_id" + "}", encodeURIComponent(String(userId)));
9531
+ // verify required parameter 'organizationId' is not null or undefined
9532
+ common_1.assertParamExists('updateEntities', 'organizationId', organizationId);
9533
+ // verify required parameter 'graphId' is not null or undefined
9534
+ common_1.assertParamExists('updateEntities', 'graphId', graphId);
9535
+ // verify required parameter 'type' is not null or undefined
9536
+ common_1.assertParamExists('updateEntities', 'type', type);
9537
+ // verify required parameter 'graphProperties' is not null or undefined
9538
+ common_1.assertParamExists('updateEntities', 'graphProperties', graphProperties);
9539
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/entity/{type}"
9540
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9541
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)))
9542
+ .replace("{" + "type" + "}", encodeURIComponent(String(type)));
9075
9543
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9076
9544
  if (configuration) {
9077
9545
  baseOptions = configuration.baseOptions;
9078
9546
  }
9079
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
9547
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
9080
9548
  localVarHeaderParameter = {};
9081
9549
  localVarQueryParameter = {};
9082
9550
  // authentication oAuth2AuthCode required
@@ -9086,9 +9554,11 @@ exports.UserApiAxiosParamCreator = function (configuration) {
9086
9554
  // authentication oAuth2AuthCode required
9087
9555
  // oauth required
9088
9556
  _a.sent();
9557
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9089
9558
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9090
9559
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9091
9560
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9561
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(graphProperties, localVarRequestOptions, configuration);
9092
9562
  return [2 /*return*/, {
9093
9563
  url: common_1.toPathString(localVarUrlObj),
9094
9564
  options: localVarRequestOptions,
@@ -9098,26 +9568,30 @@ exports.UserApiAxiosParamCreator = function (configuration) {
9098
9568
  });
9099
9569
  },
9100
9570
  /**
9101
- *
9102
- * @summary Update a User
9103
- * @param {string} userId the User identifier
9104
- * @param {User} user the new User details. Organization membership is handled via the /organizations endpoint.
9571
+ * Update the metaData of the specified graph
9572
+ * @summary Update the metaData of the specified graph
9573
+ * @param {string} organizationId the Organization identifier
9574
+ * @param {string} graphId the Graph Identifier
9575
+ * @param {{ [key: string]: string; }} requestBody the metaData to update
9105
9576
  * @param {*} [options] Override http request option.
9106
9577
  * @throws {RequiredError}
9107
9578
  */
9108
- updateUser: function (userId, user, options) {
9579
+ updateGraphMetaData: function (organizationId, graphId, requestBody, options) {
9109
9580
  if (options === void 0) { options = {}; }
9110
9581
  return __awaiter(_this, void 0, void 0, function () {
9111
9582
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9112
9583
  return __generator(this, function (_a) {
9113
9584
  switch (_a.label) {
9114
9585
  case 0:
9115
- // verify required parameter 'userId' is not null or undefined
9116
- common_1.assertParamExists('updateUser', 'userId', userId);
9117
- // verify required parameter 'user' is not null or undefined
9118
- common_1.assertParamExists('updateUser', 'user', user);
9119
- localVarPath = "/users/{user_id}"
9120
- .replace("{" + "user_id" + "}", encodeURIComponent(String(userId)));
9586
+ // verify required parameter 'organizationId' is not null or undefined
9587
+ common_1.assertParamExists('updateGraphMetaData', 'organizationId', organizationId);
9588
+ // verify required parameter 'graphId' is not null or undefined
9589
+ common_1.assertParamExists('updateGraphMetaData', 'graphId', graphId);
9590
+ // verify required parameter 'requestBody' is not null or undefined
9591
+ common_1.assertParamExists('updateGraphMetaData', 'requestBody', requestBody);
9592
+ localVarPath = "/organizations/{organization_id}/twingraph/{graph_id}/metadata"
9593
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)))
9594
+ .replace("{" + "graph_id" + "}", encodeURIComponent(String(graphId)));
9121
9595
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9122
9596
  if (configuration) {
9123
9597
  baseOptions = configuration.baseOptions;
@@ -9136,7 +9610,7 @@ exports.UserApiAxiosParamCreator = function (configuration) {
9136
9610
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9137
9611
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9138
9612
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9139
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(user, localVarRequestOptions, configuration);
9613
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
9140
9614
  return [2 /*return*/, {
9141
9615
  url: common_1.toPathString(localVarUrlObj),
9142
9616
  options: localVarRequestOptions,
@@ -9148,24 +9622,26 @@ exports.UserApiAxiosParamCreator = function (configuration) {
9148
9622
  };
9149
9623
  };
9150
9624
  /**
9151
- * UserApi - functional programming interface
9625
+ * TwingraphApi - functional programming interface
9152
9626
  * @export
9153
9627
  */
9154
- exports.UserApiFp = function (configuration) {
9155
- var localVarAxiosParamCreator = exports.UserApiAxiosParamCreator(configuration);
9628
+ exports.TwingraphApiFp = function (configuration) {
9629
+ var localVarAxiosParamCreator = exports.TwingraphApiAxiosParamCreator(configuration);
9156
9630
  return {
9157
9631
  /**
9158
- *
9159
- * @summary Authorize an User with OAuth2. Delegated to configured OAuth2 service
9632
+ * Delete all versions of a graph and his metadatas
9633
+ * @summary Delete all versions of a graph and his metadatas
9634
+ * @param {string} organizationId the Organization identifier
9635
+ * @param {string} graphId the Graph Identifier
9160
9636
  * @param {*} [options] Override http request option.
9161
9637
  * @throws {RequiredError}
9162
9638
  */
9163
- authorizeUser: function (options) {
9639
+ _delete: function (organizationId, graphId, options) {
9164
9640
  return __awaiter(this, void 0, void 0, function () {
9165
9641
  var localVarAxiosArgs;
9166
9642
  return __generator(this, function (_a) {
9167
9643
  switch (_a.label) {
9168
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.authorizeUser(options)];
9644
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator._delete(organizationId, graphId, options)];
9169
9645
  case 1:
9170
9646
  localVarAxiosArgs = _a.sent();
9171
9647
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9174,17 +9650,20 @@ exports.UserApiFp = function (configuration) {
9174
9650
  });
9175
9651
  },
9176
9652
  /**
9177
- *
9178
- * @summary List all Users
9653
+ * Run a query on a graph instance and return the result as a zip file in async mode
9654
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
9655
+ * @param {string} organizationId the Organization identifier
9656
+ * @param {string} graphId the Graph Identifier
9657
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
9179
9658
  * @param {*} [options] Override http request option.
9180
9659
  * @throws {RequiredError}
9181
9660
  */
9182
- findAllUsers: function (options) {
9661
+ batchQuery: function (organizationId, graphId, twinGraphQuery, options) {
9183
9662
  return __awaiter(this, void 0, void 0, function () {
9184
9663
  var localVarAxiosArgs;
9185
9664
  return __generator(this, function (_a) {
9186
9665
  switch (_a.label) {
9187
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllUsers(options)];
9666
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.batchQuery(organizationId, graphId, twinGraphQuery, options)];
9188
9667
  case 1:
9189
9668
  localVarAxiosArgs = _a.sent();
9190
9669
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9193,18 +9672,21 @@ exports.UserApiFp = function (configuration) {
9193
9672
  });
9194
9673
  },
9195
9674
  /**
9196
- *
9197
- * @summary Get the details of an user
9198
- * @param {string} userId the User identifier
9675
+ * Async batch update by loading a CSV file on a graph instance
9676
+ * @summary Async batch update by loading a CSV file on a graph instance
9677
+ * @param {string} organizationId the Organization identifier
9678
+ * @param {string} graphId the Graph Identifier
9679
+ * @param {TwinGraphQuery} twinGraphQuery
9680
+ * @param {any} body
9199
9681
  * @param {*} [options] Override http request option.
9200
9682
  * @throws {RequiredError}
9201
9683
  */
9202
- findUserById: function (userId, options) {
9684
+ batchUploadUpdate: function (organizationId, graphId, twinGraphQuery, body, options) {
9203
9685
  return __awaiter(this, void 0, void 0, function () {
9204
9686
  var localVarAxiosArgs;
9205
9687
  return __generator(this, function (_a) {
9206
9688
  switch (_a.label) {
9207
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findUserById(userId, options)];
9689
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.batchUploadUpdate(organizationId, graphId, twinGraphQuery, body, options)];
9208
9690
  case 1:
9209
9691
  localVarAxiosArgs = _a.sent();
9210
9692
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9213,17 +9695,21 @@ exports.UserApiFp = function (configuration) {
9213
9695
  });
9214
9696
  },
9215
9697
  /**
9216
- *
9217
- * @summary Get the details of the logged-in User
9698
+ * create new entities in a graph instance
9699
+ * @summary Create new entities in a graph instance
9700
+ * @param {string} organizationId the Organization identifier
9701
+ * @param {string} graphId the Graph Identifier
9702
+ * @param {'node' | 'relationship'} type the entity model type
9703
+ * @param {Array<GraphProperties>} graphProperties the entities to create
9218
9704
  * @param {*} [options] Override http request option.
9219
9705
  * @throws {RequiredError}
9220
9706
  */
9221
- getCurrentUser: function (options) {
9707
+ createEntities: function (organizationId, graphId, type, graphProperties, options) {
9222
9708
  return __awaiter(this, void 0, void 0, function () {
9223
9709
  var localVarAxiosArgs;
9224
9710
  return __generator(this, function (_a) {
9225
9711
  switch (_a.label) {
9226
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCurrentUser(options)];
9712
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createEntities(organizationId, graphId, type, graphProperties, options)];
9227
9713
  case 1:
9228
9714
  localVarAxiosArgs = _a.sent();
9229
9715
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9232,18 +9718,20 @@ exports.UserApiFp = function (configuration) {
9232
9718
  });
9233
9719
  },
9234
9720
  /**
9235
- *
9236
- * @summary Get the details of a logged-in User with roles for an Organization
9721
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
9722
+ * @summary Create a new graph
9237
9723
  * @param {string} organizationId the Organization identifier
9724
+ * @param {string} graphId the Graph Identifier
9725
+ * @param {any} [body]
9238
9726
  * @param {*} [options] Override http request option.
9239
9727
  * @throws {RequiredError}
9240
9728
  */
9241
- getOrganizationCurrentUser: function (organizationId, options) {
9729
+ createGraph: function (organizationId, graphId, body, options) {
9242
9730
  return __awaiter(this, void 0, void 0, function () {
9243
9731
  var localVarAxiosArgs;
9244
9732
  return __generator(this, function (_a) {
9245
9733
  switch (_a.label) {
9246
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganizationCurrentUser(organizationId, options)];
9734
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createGraph(organizationId, graphId, body, options)];
9247
9735
  case 1:
9248
9736
  localVarAxiosArgs = _a.sent();
9249
9737
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9252,19 +9740,21 @@ exports.UserApiFp = function (configuration) {
9252
9740
  });
9253
9741
  },
9254
9742
  /**
9255
- *
9256
- * @summary Get the details of the logged-in user with roles for a Workspace
9743
+ * delete entities in a graph instance
9744
+ * @summary Delete entities in a graph instance
9257
9745
  * @param {string} organizationId the Organization identifier
9258
- * @param {string} workspaceId the Workspace identifier
9746
+ * @param {string} graphId the Graph Identifier
9747
+ * @param {'node' | 'relationship'} type the entity model type
9748
+ * @param {Array<string>} ids the entities to delete
9259
9749
  * @param {*} [options] Override http request option.
9260
9750
  * @throws {RequiredError}
9261
9751
  */
9262
- getWorkspaceCurrentUser: function (organizationId, workspaceId, options) {
9752
+ deleteEntities: function (organizationId, graphId, type, ids, options) {
9263
9753
  return __awaiter(this, void 0, void 0, function () {
9264
9754
  var localVarAxiosArgs;
9265
9755
  return __generator(this, function (_a) {
9266
9756
  switch (_a.label) {
9267
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getWorkspaceCurrentUser(organizationId, workspaceId, options)];
9757
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteEntities(organizationId, graphId, type, ids, options)];
9268
9758
  case 1:
9269
9759
  localVarAxiosArgs = _a.sent();
9270
9760
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9273,18 +9763,19 @@ exports.UserApiFp = function (configuration) {
9273
9763
  });
9274
9764
  },
9275
9765
  /**
9276
- *
9277
- * @summary Register a new user
9278
- * @param {User} user the User to register
9766
+ * Download a graph compressed in a zip file
9767
+ * @summary Download a graph compressed in a zip file
9768
+ * @param {string} organizationId the Organization identifier
9769
+ * @param {string} hash the Graph download identifier
9279
9770
  * @param {*} [options] Override http request option.
9280
9771
  * @throws {RequiredError}
9281
9772
  */
9282
- registerUser: function (user, options) {
9773
+ downloadGraph: function (organizationId, hash, options) {
9283
9774
  return __awaiter(this, void 0, void 0, function () {
9284
9775
  var localVarAxiosArgs;
9285
9776
  return __generator(this, function (_a) {
9286
9777
  switch (_a.label) {
9287
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.registerUser(user, options)];
9778
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadGraph(organizationId, hash, options)];
9288
9779
  case 1:
9289
9780
  localVarAxiosArgs = _a.sent();
9290
9781
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9293,17 +9784,18 @@ exports.UserApiFp = function (configuration) {
9293
9784
  });
9294
9785
  },
9295
9786
  /**
9296
- *
9297
- * @summary test platform API call
9787
+ * Return the list of all graphs stored in the organization
9788
+ * @summary Return the list of all graphs stored in the organization
9789
+ * @param {string} organizationId the Organization identifier
9298
9790
  * @param {*} [options] Override http request option.
9299
9791
  * @throws {RequiredError}
9300
9792
  */
9301
- testPlatform: function (options) {
9793
+ findAllTwingraphs: function (organizationId, options) {
9302
9794
  return __awaiter(this, void 0, void 0, function () {
9303
9795
  var localVarAxiosArgs;
9304
9796
  return __generator(this, function (_a) {
9305
9797
  switch (_a.label) {
9306
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.testPlatform(options)];
9798
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllTwingraphs(organizationId, options)];
9307
9799
  case 1:
9308
9800
  localVarAxiosArgs = _a.sent();
9309
9801
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9312,18 +9804,151 @@ exports.UserApiFp = function (configuration) {
9312
9804
  });
9313
9805
  },
9314
9806
  /**
9315
- *
9316
- * @summary Unregister an user
9317
- * @param {string} userId the User identifier
9807
+ * get entities in a graph instance
9808
+ * @summary Get entities in a graph instance
9809
+ * @param {string} organizationId the Organization identifier
9810
+ * @param {string} graphId the Graph Identifier
9811
+ * @param {'node' | 'relationship'} type the entity model type
9812
+ * @param {Array<string>} ids the entities to get
9813
+ * @param {*} [options] Override http request option.
9814
+ * @throws {RequiredError}
9815
+ */
9816
+ getEntities: function (organizationId, graphId, type, ids, options) {
9817
+ return __awaiter(this, void 0, void 0, function () {
9818
+ var localVarAxiosArgs;
9819
+ return __generator(this, function (_a) {
9820
+ switch (_a.label) {
9821
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEntities(organizationId, graphId, type, ids, options)];
9822
+ case 1:
9823
+ localVarAxiosArgs = _a.sent();
9824
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9825
+ }
9826
+ });
9827
+ });
9828
+ },
9829
+ /**
9830
+ * Return the metaData of the specified graph
9831
+ * @summary Return the metaData of the specified graph
9832
+ * @param {string} organizationId the Organization identifier
9833
+ * @param {string} graphId the Graph Identifier
9834
+ * @param {*} [options] Override http request option.
9835
+ * @throws {RequiredError}
9836
+ */
9837
+ getGraphMetaData: function (organizationId, graphId, options) {
9838
+ return __awaiter(this, void 0, void 0, function () {
9839
+ var localVarAxiosArgs;
9840
+ return __generator(this, function (_a) {
9841
+ switch (_a.label) {
9842
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGraphMetaData(organizationId, graphId, options)];
9843
+ case 1:
9844
+ localVarAxiosArgs = _a.sent();
9845
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9846
+ }
9847
+ });
9848
+ });
9849
+ },
9850
+ /**
9851
+ * Import a new version of a twin graph
9852
+ * @summary Import a new version of a twin graph
9853
+ * @param {string} organizationId the Organization identifier
9854
+ * @param {TwinGraphImport} twinGraphImport the graph to import
9855
+ * @param {*} [options] Override http request option.
9856
+ * @throws {RequiredError}
9857
+ */
9858
+ importGraph: function (organizationId, twinGraphImport, options) {
9859
+ return __awaiter(this, void 0, void 0, function () {
9860
+ var localVarAxiosArgs;
9861
+ return __generator(this, function (_a) {
9862
+ switch (_a.label) {
9863
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importGraph(organizationId, twinGraphImport, options)];
9864
+ case 1:
9865
+ localVarAxiosArgs = _a.sent();
9866
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9867
+ }
9868
+ });
9869
+ });
9870
+ },
9871
+ /**
9872
+ * Get the status of a job
9873
+ * @summary Get the status of a job
9874
+ * @param {string} organizationId the Organization identifier
9875
+ * @param {string} jobId the job identifier
9876
+ * @param {*} [options] Override http request option.
9877
+ * @throws {RequiredError}
9878
+ */
9879
+ jobStatus: function (organizationId, jobId, options) {
9880
+ return __awaiter(this, void 0, void 0, function () {
9881
+ var localVarAxiosArgs;
9882
+ return __generator(this, function (_a) {
9883
+ switch (_a.label) {
9884
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobStatus(organizationId, jobId, options)];
9885
+ case 1:
9886
+ localVarAxiosArgs = _a.sent();
9887
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9888
+ }
9889
+ });
9890
+ });
9891
+ },
9892
+ /**
9893
+ * Run a query on a graph instance
9894
+ * @summary Run a query on a graph instance
9895
+ * @param {string} organizationId the Organization identifier
9896
+ * @param {string} graphId the Graph Identifier
9897
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
9898
+ * @param {*} [options] Override http request option.
9899
+ * @throws {RequiredError}
9900
+ */
9901
+ query: function (organizationId, graphId, twinGraphQuery, options) {
9902
+ return __awaiter(this, void 0, void 0, function () {
9903
+ var localVarAxiosArgs;
9904
+ return __generator(this, function (_a) {
9905
+ switch (_a.label) {
9906
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.query(organizationId, graphId, twinGraphQuery, options)];
9907
+ case 1:
9908
+ localVarAxiosArgs = _a.sent();
9909
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9910
+ }
9911
+ });
9912
+ });
9913
+ },
9914
+ /**
9915
+ * update entities in a graph instance
9916
+ * @summary Update entities in a graph instance
9917
+ * @param {string} organizationId the Organization identifier
9918
+ * @param {string} graphId the Graph Identifier
9919
+ * @param {'node' | 'relationship'} type the entity model type
9920
+ * @param {Array<GraphProperties>} graphProperties the entities to update
9921
+ * @param {*} [options] Override http request option.
9922
+ * @throws {RequiredError}
9923
+ */
9924
+ updateEntities: function (organizationId, graphId, type, graphProperties, options) {
9925
+ return __awaiter(this, void 0, void 0, function () {
9926
+ var localVarAxiosArgs;
9927
+ return __generator(this, function (_a) {
9928
+ switch (_a.label) {
9929
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateEntities(organizationId, graphId, type, graphProperties, options)];
9930
+ case 1:
9931
+ localVarAxiosArgs = _a.sent();
9932
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9933
+ }
9934
+ });
9935
+ });
9936
+ },
9937
+ /**
9938
+ * Update the metaData of the specified graph
9939
+ * @summary Update the metaData of the specified graph
9940
+ * @param {string} organizationId the Organization identifier
9941
+ * @param {string} graphId the Graph Identifier
9942
+ * @param {{ [key: string]: string; }} requestBody the metaData to update
9318
9943
  * @param {*} [options] Override http request option.
9319
9944
  * @throws {RequiredError}
9320
9945
  */
9321
- unregisterUser: function (userId, options) {
9946
+ updateGraphMetaData: function (organizationId, graphId, requestBody, options) {
9322
9947
  return __awaiter(this, void 0, void 0, function () {
9323
9948
  var localVarAxiosArgs;
9324
9949
  return __generator(this, function (_a) {
9325
9950
  switch (_a.label) {
9326
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unregisterUser(userId, options)];
9951
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateGraphMetaData(organizationId, graphId, requestBody, options)];
9327
9952
  case 1:
9328
9953
  localVarAxiosArgs = _a.sent();
9329
9954
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9331,268 +9956,417 @@ exports.UserApiFp = function (configuration) {
9331
9956
  });
9332
9957
  });
9333
9958
  },
9959
+ };
9960
+ };
9961
+ /**
9962
+ * TwingraphApi - factory interface
9963
+ * @export
9964
+ */
9965
+ exports.TwingraphApiFactory = function (configuration, basePath, axios) {
9966
+ var localVarFp = exports.TwingraphApiFp(configuration);
9967
+ return {
9968
+ /**
9969
+ * Delete all versions of a graph and his metadatas
9970
+ * @summary Delete all versions of a graph and his metadatas
9971
+ * @param {string} organizationId the Organization identifier
9972
+ * @param {string} graphId the Graph Identifier
9973
+ * @param {*} [options] Override http request option.
9974
+ * @throws {RequiredError}
9975
+ */
9976
+ _delete: function (organizationId, graphId, options) {
9977
+ return localVarFp._delete(organizationId, graphId, options).then(function (request) { return request(axios, basePath); });
9978
+ },
9979
+ /**
9980
+ * Run a query on a graph instance and return the result as a zip file in async mode
9981
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
9982
+ * @param {string} organizationId the Organization identifier
9983
+ * @param {string} graphId the Graph Identifier
9984
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
9985
+ * @param {*} [options] Override http request option.
9986
+ * @throws {RequiredError}
9987
+ */
9988
+ batchQuery: function (organizationId, graphId, twinGraphQuery, options) {
9989
+ return localVarFp.batchQuery(organizationId, graphId, twinGraphQuery, options).then(function (request) { return request(axios, basePath); });
9990
+ },
9991
+ /**
9992
+ * Async batch update by loading a CSV file on a graph instance
9993
+ * @summary Async batch update by loading a CSV file on a graph instance
9994
+ * @param {string} organizationId the Organization identifier
9995
+ * @param {string} graphId the Graph Identifier
9996
+ * @param {TwinGraphQuery} twinGraphQuery
9997
+ * @param {any} body
9998
+ * @param {*} [options] Override http request option.
9999
+ * @throws {RequiredError}
10000
+ */
10001
+ batchUploadUpdate: function (organizationId, graphId, twinGraphQuery, body, options) {
10002
+ return localVarFp.batchUploadUpdate(organizationId, graphId, twinGraphQuery, body, options).then(function (request) { return request(axios, basePath); });
10003
+ },
9334
10004
  /**
9335
- *
9336
- * @summary Update a User
9337
- * @param {string} userId the User identifier
9338
- * @param {User} user the new User details. Organization membership is handled via the /organizations endpoint.
10005
+ * create new entities in a graph instance
10006
+ * @summary Create new entities in a graph instance
10007
+ * @param {string} organizationId the Organization identifier
10008
+ * @param {string} graphId the Graph Identifier
10009
+ * @param {'node' | 'relationship'} type the entity model type
10010
+ * @param {Array<GraphProperties>} graphProperties the entities to create
9339
10011
  * @param {*} [options] Override http request option.
9340
10012
  * @throws {RequiredError}
9341
10013
  */
9342
- updateUser: function (userId, user, options) {
9343
- return __awaiter(this, void 0, void 0, function () {
9344
- var localVarAxiosArgs;
9345
- return __generator(this, function (_a) {
9346
- switch (_a.label) {
9347
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateUser(userId, user, options)];
9348
- case 1:
9349
- localVarAxiosArgs = _a.sent();
9350
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9351
- }
9352
- });
9353
- });
10014
+ createEntities: function (organizationId, graphId, type, graphProperties, options) {
10015
+ return localVarFp.createEntities(organizationId, graphId, type, graphProperties, options).then(function (request) { return request(axios, basePath); });
9354
10016
  },
9355
- };
9356
- };
9357
- /**
9358
- * UserApi - factory interface
9359
- * @export
9360
- */
9361
- exports.UserApiFactory = function (configuration, basePath, axios) {
9362
- var localVarFp = exports.UserApiFp(configuration);
9363
- return {
9364
10017
  /**
9365
- *
9366
- * @summary Authorize an User with OAuth2. Delegated to configured OAuth2 service
10018
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
10019
+ * @summary Create a new graph
10020
+ * @param {string} organizationId the Organization identifier
10021
+ * @param {string} graphId the Graph Identifier
10022
+ * @param {any} [body]
9367
10023
  * @param {*} [options] Override http request option.
9368
10024
  * @throws {RequiredError}
9369
10025
  */
9370
- authorizeUser: function (options) {
9371
- return localVarFp.authorizeUser(options).then(function (request) { return request(axios, basePath); });
10026
+ createGraph: function (organizationId, graphId, body, options) {
10027
+ return localVarFp.createGraph(organizationId, graphId, body, options).then(function (request) { return request(axios, basePath); });
9372
10028
  },
9373
10029
  /**
9374
- *
9375
- * @summary List all Users
10030
+ * delete entities in a graph instance
10031
+ * @summary Delete entities in a graph instance
10032
+ * @param {string} organizationId the Organization identifier
10033
+ * @param {string} graphId the Graph Identifier
10034
+ * @param {'node' | 'relationship'} type the entity model type
10035
+ * @param {Array<string>} ids the entities to delete
9376
10036
  * @param {*} [options] Override http request option.
9377
10037
  * @throws {RequiredError}
9378
10038
  */
9379
- findAllUsers: function (options) {
9380
- return localVarFp.findAllUsers(options).then(function (request) { return request(axios, basePath); });
10039
+ deleteEntities: function (organizationId, graphId, type, ids, options) {
10040
+ return localVarFp.deleteEntities(organizationId, graphId, type, ids, options).then(function (request) { return request(axios, basePath); });
9381
10041
  },
9382
10042
  /**
9383
- *
9384
- * @summary Get the details of an user
9385
- * @param {string} userId the User identifier
10043
+ * Download a graph compressed in a zip file
10044
+ * @summary Download a graph compressed in a zip file
10045
+ * @param {string} organizationId the Organization identifier
10046
+ * @param {string} hash the Graph download identifier
9386
10047
  * @param {*} [options] Override http request option.
9387
10048
  * @throws {RequiredError}
9388
10049
  */
9389
- findUserById: function (userId, options) {
9390
- return localVarFp.findUserById(userId, options).then(function (request) { return request(axios, basePath); });
10050
+ downloadGraph: function (organizationId, hash, options) {
10051
+ return localVarFp.downloadGraph(organizationId, hash, options).then(function (request) { return request(axios, basePath); });
9391
10052
  },
9392
10053
  /**
9393
- *
9394
- * @summary Get the details of the logged-in User
10054
+ * Return the list of all graphs stored in the organization
10055
+ * @summary Return the list of all graphs stored in the organization
10056
+ * @param {string} organizationId the Organization identifier
9395
10057
  * @param {*} [options] Override http request option.
9396
10058
  * @throws {RequiredError}
9397
10059
  */
9398
- getCurrentUser: function (options) {
9399
- return localVarFp.getCurrentUser(options).then(function (request) { return request(axios, basePath); });
10060
+ findAllTwingraphs: function (organizationId, options) {
10061
+ return localVarFp.findAllTwingraphs(organizationId, options).then(function (request) { return request(axios, basePath); });
9400
10062
  },
9401
10063
  /**
9402
- *
9403
- * @summary Get the details of a logged-in User with roles for an Organization
10064
+ * get entities in a graph instance
10065
+ * @summary Get entities in a graph instance
9404
10066
  * @param {string} organizationId the Organization identifier
10067
+ * @param {string} graphId the Graph Identifier
10068
+ * @param {'node' | 'relationship'} type the entity model type
10069
+ * @param {Array<string>} ids the entities to get
9405
10070
  * @param {*} [options] Override http request option.
9406
10071
  * @throws {RequiredError}
9407
10072
  */
9408
- getOrganizationCurrentUser: function (organizationId, options) {
9409
- return localVarFp.getOrganizationCurrentUser(organizationId, options).then(function (request) { return request(axios, basePath); });
10073
+ getEntities: function (organizationId, graphId, type, ids, options) {
10074
+ return localVarFp.getEntities(organizationId, graphId, type, ids, options).then(function (request) { return request(axios, basePath); });
9410
10075
  },
9411
10076
  /**
9412
- *
9413
- * @summary Get the details of the logged-in user with roles for a Workspace
10077
+ * Return the metaData of the specified graph
10078
+ * @summary Return the metaData of the specified graph
9414
10079
  * @param {string} organizationId the Organization identifier
9415
- * @param {string} workspaceId the Workspace identifier
10080
+ * @param {string} graphId the Graph Identifier
9416
10081
  * @param {*} [options] Override http request option.
9417
10082
  * @throws {RequiredError}
9418
10083
  */
9419
- getWorkspaceCurrentUser: function (organizationId, workspaceId, options) {
9420
- return localVarFp.getWorkspaceCurrentUser(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
10084
+ getGraphMetaData: function (organizationId, graphId, options) {
10085
+ return localVarFp.getGraphMetaData(organizationId, graphId, options).then(function (request) { return request(axios, basePath); });
9421
10086
  },
9422
10087
  /**
9423
- *
9424
- * @summary Register a new user
9425
- * @param {User} user the User to register
10088
+ * Import a new version of a twin graph
10089
+ * @summary Import a new version of a twin graph
10090
+ * @param {string} organizationId the Organization identifier
10091
+ * @param {TwinGraphImport} twinGraphImport the graph to import
9426
10092
  * @param {*} [options] Override http request option.
9427
10093
  * @throws {RequiredError}
9428
10094
  */
9429
- registerUser: function (user, options) {
9430
- return localVarFp.registerUser(user, options).then(function (request) { return request(axios, basePath); });
10095
+ importGraph: function (organizationId, twinGraphImport, options) {
10096
+ return localVarFp.importGraph(organizationId, twinGraphImport, options).then(function (request) { return request(axios, basePath); });
9431
10097
  },
9432
10098
  /**
9433
- *
9434
- * @summary test platform API call
10099
+ * Get the status of a job
10100
+ * @summary Get the status of a job
10101
+ * @param {string} organizationId the Organization identifier
10102
+ * @param {string} jobId the job identifier
9435
10103
  * @param {*} [options] Override http request option.
9436
10104
  * @throws {RequiredError}
9437
10105
  */
9438
- testPlatform: function (options) {
9439
- return localVarFp.testPlatform(options).then(function (request) { return request(axios, basePath); });
10106
+ jobStatus: function (organizationId, jobId, options) {
10107
+ return localVarFp.jobStatus(organizationId, jobId, options).then(function (request) { return request(axios, basePath); });
9440
10108
  },
9441
10109
  /**
9442
- *
9443
- * @summary Unregister an user
9444
- * @param {string} userId the User identifier
10110
+ * Run a query on a graph instance
10111
+ * @summary Run a query on a graph instance
10112
+ * @param {string} organizationId the Organization identifier
10113
+ * @param {string} graphId the Graph Identifier
10114
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
9445
10115
  * @param {*} [options] Override http request option.
9446
10116
  * @throws {RequiredError}
9447
10117
  */
9448
- unregisterUser: function (userId, options) {
9449
- return localVarFp.unregisterUser(userId, options).then(function (request) { return request(axios, basePath); });
10118
+ query: function (organizationId, graphId, twinGraphQuery, options) {
10119
+ return localVarFp.query(organizationId, graphId, twinGraphQuery, options).then(function (request) { return request(axios, basePath); });
9450
10120
  },
9451
10121
  /**
9452
- *
9453
- * @summary Update a User
9454
- * @param {string} userId the User identifier
9455
- * @param {User} user the new User details. Organization membership is handled via the /organizations endpoint.
10122
+ * update entities in a graph instance
10123
+ * @summary Update entities in a graph instance
10124
+ * @param {string} organizationId the Organization identifier
10125
+ * @param {string} graphId the Graph Identifier
10126
+ * @param {'node' | 'relationship'} type the entity model type
10127
+ * @param {Array<GraphProperties>} graphProperties the entities to update
10128
+ * @param {*} [options] Override http request option.
10129
+ * @throws {RequiredError}
10130
+ */
10131
+ updateEntities: function (organizationId, graphId, type, graphProperties, options) {
10132
+ return localVarFp.updateEntities(organizationId, graphId, type, graphProperties, options).then(function (request) { return request(axios, basePath); });
10133
+ },
10134
+ /**
10135
+ * Update the metaData of the specified graph
10136
+ * @summary Update the metaData of the specified graph
10137
+ * @param {string} organizationId the Organization identifier
10138
+ * @param {string} graphId the Graph Identifier
10139
+ * @param {{ [key: string]: string; }} requestBody the metaData to update
9456
10140
  * @param {*} [options] Override http request option.
9457
10141
  * @throws {RequiredError}
9458
10142
  */
9459
- updateUser: function (userId, user, options) {
9460
- return localVarFp.updateUser(userId, user, options).then(function (request) { return request(axios, basePath); });
10143
+ updateGraphMetaData: function (organizationId, graphId, requestBody, options) {
10144
+ return localVarFp.updateGraphMetaData(organizationId, graphId, requestBody, options).then(function (request) { return request(axios, basePath); });
9461
10145
  },
9462
10146
  };
9463
10147
  };
9464
10148
  /**
9465
- * UserApi - object-oriented interface
10149
+ * TwingraphApi - object-oriented interface
9466
10150
  * @export
9467
- * @class UserApi
10151
+ * @class TwingraphApi
9468
10152
  * @extends {BaseAPI}
9469
10153
  */
9470
- var UserApi = /** @class */ (function (_super) {
9471
- __extends(UserApi, _super);
9472
- function UserApi() {
10154
+ var TwingraphApi = /** @class */ (function (_super) {
10155
+ __extends(TwingraphApi, _super);
10156
+ function TwingraphApi() {
9473
10157
  return _super !== null && _super.apply(this, arguments) || this;
9474
10158
  }
9475
10159
  /**
9476
- *
9477
- * @summary Authorize an User with OAuth2. Delegated to configured OAuth2 service
10160
+ * Delete all versions of a graph and his metadatas
10161
+ * @summary Delete all versions of a graph and his metadatas
10162
+ * @param {string} organizationId the Organization identifier
10163
+ * @param {string} graphId the Graph Identifier
9478
10164
  * @param {*} [options] Override http request option.
9479
10165
  * @throws {RequiredError}
9480
- * @memberof UserApi
10166
+ * @memberof TwingraphApi
9481
10167
  */
9482
- UserApi.prototype.authorizeUser = function (options) {
10168
+ TwingraphApi.prototype._delete = function (organizationId, graphId, options) {
9483
10169
  var _this = this;
9484
- return exports.UserApiFp(this.configuration).authorizeUser(options).then(function (request) { return request(_this.axios, _this.basePath); });
10170
+ return exports.TwingraphApiFp(this.configuration)._delete(organizationId, graphId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9485
10171
  };
9486
10172
  /**
9487
- *
9488
- * @summary List all Users
10173
+ * Run a query on a graph instance and return the result as a zip file in async mode
10174
+ * @summary Run a query on a graph instance and return the result as a zip file in async mode
10175
+ * @param {string} organizationId the Organization identifier
10176
+ * @param {string} graphId the Graph Identifier
10177
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
9489
10178
  * @param {*} [options] Override http request option.
9490
10179
  * @throws {RequiredError}
9491
- * @memberof UserApi
10180
+ * @memberof TwingraphApi
9492
10181
  */
9493
- UserApi.prototype.findAllUsers = function (options) {
10182
+ TwingraphApi.prototype.batchQuery = function (organizationId, graphId, twinGraphQuery, options) {
9494
10183
  var _this = this;
9495
- return exports.UserApiFp(this.configuration).findAllUsers(options).then(function (request) { return request(_this.axios, _this.basePath); });
10184
+ return exports.TwingraphApiFp(this.configuration).batchQuery(organizationId, graphId, twinGraphQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
9496
10185
  };
9497
10186
  /**
9498
- *
9499
- * @summary Get the details of an user
9500
- * @param {string} userId the User identifier
10187
+ * Async batch update by loading a CSV file on a graph instance
10188
+ * @summary Async batch update by loading a CSV file on a graph instance
10189
+ * @param {string} organizationId the Organization identifier
10190
+ * @param {string} graphId the Graph Identifier
10191
+ * @param {TwinGraphQuery} twinGraphQuery
10192
+ * @param {any} body
9501
10193
  * @param {*} [options] Override http request option.
9502
10194
  * @throws {RequiredError}
9503
- * @memberof UserApi
10195
+ * @memberof TwingraphApi
9504
10196
  */
9505
- UserApi.prototype.findUserById = function (userId, options) {
10197
+ TwingraphApi.prototype.batchUploadUpdate = function (organizationId, graphId, twinGraphQuery, body, options) {
9506
10198
  var _this = this;
9507
- return exports.UserApiFp(this.configuration).findUserById(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10199
+ return exports.TwingraphApiFp(this.configuration).batchUploadUpdate(organizationId, graphId, twinGraphQuery, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
9508
10200
  };
9509
10201
  /**
9510
- *
9511
- * @summary Get the details of the logged-in User
10202
+ * create new entities in a graph instance
10203
+ * @summary Create new entities in a graph instance
10204
+ * @param {string} organizationId the Organization identifier
10205
+ * @param {string} graphId the Graph Identifier
10206
+ * @param {'node' | 'relationship'} type the entity model type
10207
+ * @param {Array<GraphProperties>} graphProperties the entities to create
9512
10208
  * @param {*} [options] Override http request option.
9513
10209
  * @throws {RequiredError}
9514
- * @memberof UserApi
10210
+ * @memberof TwingraphApi
9515
10211
  */
9516
- UserApi.prototype.getCurrentUser = function (options) {
10212
+ TwingraphApi.prototype.createEntities = function (organizationId, graphId, type, graphProperties, options) {
9517
10213
  var _this = this;
9518
- return exports.UserApiFp(this.configuration).getCurrentUser(options).then(function (request) { return request(_this.axios, _this.basePath); });
10214
+ return exports.TwingraphApiFp(this.configuration).createEntities(organizationId, graphId, type, graphProperties, options).then(function (request) { return request(_this.axios, _this.basePath); });
9519
10215
  };
9520
10216
  /**
9521
- *
9522
- * @summary Get the details of a logged-in User with roles for an Organization
10217
+ * To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'Id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * Id those colomns represent * The source of the edge * The target of the edge * The Id of the edge All following columns content are up to you.
10218
+ * @summary Create a new graph
9523
10219
  * @param {string} organizationId the Organization identifier
10220
+ * @param {string} graphId the Graph Identifier
10221
+ * @param {any} [body]
9524
10222
  * @param {*} [options] Override http request option.
9525
10223
  * @throws {RequiredError}
9526
- * @memberof UserApi
10224
+ * @memberof TwingraphApi
9527
10225
  */
9528
- UserApi.prototype.getOrganizationCurrentUser = function (organizationId, options) {
10226
+ TwingraphApi.prototype.createGraph = function (organizationId, graphId, body, options) {
9529
10227
  var _this = this;
9530
- return exports.UserApiFp(this.configuration).getOrganizationCurrentUser(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10228
+ return exports.TwingraphApiFp(this.configuration).createGraph(organizationId, graphId, body, options).then(function (request) { return request(_this.axios, _this.basePath); });
9531
10229
  };
9532
10230
  /**
9533
- *
9534
- * @summary Get the details of the logged-in user with roles for a Workspace
10231
+ * delete entities in a graph instance
10232
+ * @summary Delete entities in a graph instance
9535
10233
  * @param {string} organizationId the Organization identifier
9536
- * @param {string} workspaceId the Workspace identifier
10234
+ * @param {string} graphId the Graph Identifier
10235
+ * @param {'node' | 'relationship'} type the entity model type
10236
+ * @param {Array<string>} ids the entities to delete
9537
10237
  * @param {*} [options] Override http request option.
9538
10238
  * @throws {RequiredError}
9539
- * @memberof UserApi
10239
+ * @memberof TwingraphApi
9540
10240
  */
9541
- UserApi.prototype.getWorkspaceCurrentUser = function (organizationId, workspaceId, options) {
10241
+ TwingraphApi.prototype.deleteEntities = function (organizationId, graphId, type, ids, options) {
9542
10242
  var _this = this;
9543
- return exports.UserApiFp(this.configuration).getWorkspaceCurrentUser(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10243
+ return exports.TwingraphApiFp(this.configuration).deleteEntities(organizationId, graphId, type, ids, options).then(function (request) { return request(_this.axios, _this.basePath); });
9544
10244
  };
9545
10245
  /**
9546
- *
9547
- * @summary Register a new user
9548
- * @param {User} user the User to register
10246
+ * Download a graph compressed in a zip file
10247
+ * @summary Download a graph compressed in a zip file
10248
+ * @param {string} organizationId the Organization identifier
10249
+ * @param {string} hash the Graph download identifier
9549
10250
  * @param {*} [options] Override http request option.
9550
10251
  * @throws {RequiredError}
9551
- * @memberof UserApi
10252
+ * @memberof TwingraphApi
9552
10253
  */
9553
- UserApi.prototype.registerUser = function (user, options) {
10254
+ TwingraphApi.prototype.downloadGraph = function (organizationId, hash, options) {
9554
10255
  var _this = this;
9555
- return exports.UserApiFp(this.configuration).registerUser(user, options).then(function (request) { return request(_this.axios, _this.basePath); });
10256
+ return exports.TwingraphApiFp(this.configuration).downloadGraph(organizationId, hash, options).then(function (request) { return request(_this.axios, _this.basePath); });
9556
10257
  };
9557
10258
  /**
9558
- *
9559
- * @summary test platform API call
10259
+ * Return the list of all graphs stored in the organization
10260
+ * @summary Return the list of all graphs stored in the organization
10261
+ * @param {string} organizationId the Organization identifier
9560
10262
  * @param {*} [options] Override http request option.
9561
10263
  * @throws {RequiredError}
9562
- * @memberof UserApi
10264
+ * @memberof TwingraphApi
9563
10265
  */
9564
- UserApi.prototype.testPlatform = function (options) {
10266
+ TwingraphApi.prototype.findAllTwingraphs = function (organizationId, options) {
9565
10267
  var _this = this;
9566
- return exports.UserApiFp(this.configuration).testPlatform(options).then(function (request) { return request(_this.axios, _this.basePath); });
10268
+ return exports.TwingraphApiFp(this.configuration).findAllTwingraphs(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9567
10269
  };
9568
10270
  /**
9569
- *
9570
- * @summary Unregister an user
9571
- * @param {string} userId the User identifier
10271
+ * get entities in a graph instance
10272
+ * @summary Get entities in a graph instance
10273
+ * @param {string} organizationId the Organization identifier
10274
+ * @param {string} graphId the Graph Identifier
10275
+ * @param {'node' | 'relationship'} type the entity model type
10276
+ * @param {Array<string>} ids the entities to get
9572
10277
  * @param {*} [options] Override http request option.
9573
10278
  * @throws {RequiredError}
9574
- * @memberof UserApi
10279
+ * @memberof TwingraphApi
9575
10280
  */
9576
- UserApi.prototype.unregisterUser = function (userId, options) {
10281
+ TwingraphApi.prototype.getEntities = function (organizationId, graphId, type, ids, options) {
9577
10282
  var _this = this;
9578
- return exports.UserApiFp(this.configuration).unregisterUser(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10283
+ return exports.TwingraphApiFp(this.configuration).getEntities(organizationId, graphId, type, ids, options).then(function (request) { return request(_this.axios, _this.basePath); });
9579
10284
  };
9580
10285
  /**
9581
- *
9582
- * @summary Update a User
9583
- * @param {string} userId the User identifier
9584
- * @param {User} user the new User details. Organization membership is handled via the /organizations endpoint.
10286
+ * Return the metaData of the specified graph
10287
+ * @summary Return the metaData of the specified graph
10288
+ * @param {string} organizationId the Organization identifier
10289
+ * @param {string} graphId the Graph Identifier
10290
+ * @param {*} [options] Override http request option.
10291
+ * @throws {RequiredError}
10292
+ * @memberof TwingraphApi
10293
+ */
10294
+ TwingraphApi.prototype.getGraphMetaData = function (organizationId, graphId, options) {
10295
+ var _this = this;
10296
+ return exports.TwingraphApiFp(this.configuration).getGraphMetaData(organizationId, graphId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10297
+ };
10298
+ /**
10299
+ * Import a new version of a twin graph
10300
+ * @summary Import a new version of a twin graph
10301
+ * @param {string} organizationId the Organization identifier
10302
+ * @param {TwinGraphImport} twinGraphImport the graph to import
10303
+ * @param {*} [options] Override http request option.
10304
+ * @throws {RequiredError}
10305
+ * @memberof TwingraphApi
10306
+ */
10307
+ TwingraphApi.prototype.importGraph = function (organizationId, twinGraphImport, options) {
10308
+ var _this = this;
10309
+ return exports.TwingraphApiFp(this.configuration).importGraph(organizationId, twinGraphImport, options).then(function (request) { return request(_this.axios, _this.basePath); });
10310
+ };
10311
+ /**
10312
+ * Get the status of a job
10313
+ * @summary Get the status of a job
10314
+ * @param {string} organizationId the Organization identifier
10315
+ * @param {string} jobId the job identifier
10316
+ * @param {*} [options] Override http request option.
10317
+ * @throws {RequiredError}
10318
+ * @memberof TwingraphApi
10319
+ */
10320
+ TwingraphApi.prototype.jobStatus = function (organizationId, jobId, options) {
10321
+ var _this = this;
10322
+ return exports.TwingraphApiFp(this.configuration).jobStatus(organizationId, jobId, options).then(function (request) { return request(_this.axios, _this.basePath); });
10323
+ };
10324
+ /**
10325
+ * Run a query on a graph instance
10326
+ * @summary Run a query on a graph instance
10327
+ * @param {string} organizationId the Organization identifier
10328
+ * @param {string} graphId the Graph Identifier
10329
+ * @param {TwinGraphQuery} twinGraphQuery the query to run
10330
+ * @param {*} [options] Override http request option.
10331
+ * @throws {RequiredError}
10332
+ * @memberof TwingraphApi
10333
+ */
10334
+ TwingraphApi.prototype.query = function (organizationId, graphId, twinGraphQuery, options) {
10335
+ var _this = this;
10336
+ return exports.TwingraphApiFp(this.configuration).query(organizationId, graphId, twinGraphQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
10337
+ };
10338
+ /**
10339
+ * update entities in a graph instance
10340
+ * @summary Update entities in a graph instance
10341
+ * @param {string} organizationId the Organization identifier
10342
+ * @param {string} graphId the Graph Identifier
10343
+ * @param {'node' | 'relationship'} type the entity model type
10344
+ * @param {Array<GraphProperties>} graphProperties the entities to update
10345
+ * @param {*} [options] Override http request option.
10346
+ * @throws {RequiredError}
10347
+ * @memberof TwingraphApi
10348
+ */
10349
+ TwingraphApi.prototype.updateEntities = function (organizationId, graphId, type, graphProperties, options) {
10350
+ var _this = this;
10351
+ return exports.TwingraphApiFp(this.configuration).updateEntities(organizationId, graphId, type, graphProperties, options).then(function (request) { return request(_this.axios, _this.basePath); });
10352
+ };
10353
+ /**
10354
+ * Update the metaData of the specified graph
10355
+ * @summary Update the metaData of the specified graph
10356
+ * @param {string} organizationId the Organization identifier
10357
+ * @param {string} graphId the Graph Identifier
10358
+ * @param {{ [key: string]: string; }} requestBody the metaData to update
9585
10359
  * @param {*} [options] Override http request option.
9586
10360
  * @throws {RequiredError}
9587
- * @memberof UserApi
10361
+ * @memberof TwingraphApi
9588
10362
  */
9589
- UserApi.prototype.updateUser = function (userId, user, options) {
10363
+ TwingraphApi.prototype.updateGraphMetaData = function (organizationId, graphId, requestBody, options) {
9590
10364
  var _this = this;
9591
- return exports.UserApiFp(this.configuration).updateUser(userId, user, options).then(function (request) { return request(_this.axios, _this.basePath); });
10365
+ return exports.TwingraphApiFp(this.configuration).updateGraphMetaData(organizationId, graphId, requestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
9592
10366
  };
9593
- return UserApi;
10367
+ return TwingraphApi;
9594
10368
  }(base_1.BaseAPI));
9595
- exports.UserApi = UserApi;
10369
+ exports.TwingraphApi = TwingraphApi;
9596
10370
  /**
9597
10371
  * ValidatorApi - axios parameter creator
9598
10372
  * @export
@@ -10896,10 +11670,12 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
10896
11670
  *
10897
11671
  * @summary List all Workspaces
10898
11672
  * @param {string} organizationId the Organization identifier
11673
+ * @param {number} [page] page number to query
11674
+ * @param {number} [size] amount of result by page
10899
11675
  * @param {*} [options] Override http request option.
10900
11676
  * @throws {RequiredError}
10901
11677
  */
10902
- findAllWorkspaces: function (organizationId, options) {
11678
+ findAllWorkspaces: function (organizationId, page, size, options) {
10903
11679
  if (options === void 0) { options = {}; }
10904
11680
  return __awaiter(_this, void 0, void 0, function () {
10905
11681
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10924,6 +11700,12 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
10924
11700
  // authentication oAuth2AuthCode required
10925
11701
  // oauth required
10926
11702
  _a.sent();
11703
+ if (page !== undefined) {
11704
+ localVarQueryParameter['page'] = page;
11705
+ }
11706
+ if (size !== undefined) {
11707
+ localVarQueryParameter['size'] = size;
11708
+ }
10927
11709
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10928
11710
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10929
11711
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -11178,6 +11960,54 @@ exports.WorkspaceApiAxiosParamCreator = function (configuration) {
11178
11960
  });
11179
11961
  });
11180
11962
  },
11963
+ /**
11964
+ *
11965
+ * @summary Import a workspace
11966
+ * @param {string} organizationId the Organization identifier
11967
+ * @param {Workspace} workspace the Workspace to import
11968
+ * @param {*} [options] Override http request option.
11969
+ * @throws {RequiredError}
11970
+ */
11971
+ importWorkspace: function (organizationId, workspace, options) {
11972
+ if (options === void 0) { options = {}; }
11973
+ return __awaiter(_this, void 0, void 0, function () {
11974
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11975
+ return __generator(this, function (_a) {
11976
+ switch (_a.label) {
11977
+ case 0:
11978
+ // verify required parameter 'organizationId' is not null or undefined
11979
+ common_1.assertParamExists('importWorkspace', 'organizationId', organizationId);
11980
+ // verify required parameter 'workspace' is not null or undefined
11981
+ common_1.assertParamExists('importWorkspace', 'workspace', workspace);
11982
+ localVarPath = "/organizations/{organization_id}/workspaces/import"
11983
+ .replace("{" + "organization_id" + "}", encodeURIComponent(String(organizationId)));
11984
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11985
+ if (configuration) {
11986
+ baseOptions = configuration.baseOptions;
11987
+ }
11988
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11989
+ localVarHeaderParameter = {};
11990
+ localVarQueryParameter = {};
11991
+ // authentication oAuth2AuthCode required
11992
+ // oauth required
11993
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oAuth2AuthCode", [], configuration)];
11994
+ case 1:
11995
+ // authentication oAuth2AuthCode required
11996
+ // oauth required
11997
+ _a.sent();
11998
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11999
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
12000
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12001
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12002
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(workspace, localVarRequestOptions, configuration);
12003
+ return [2 /*return*/, {
12004
+ url: common_1.toPathString(localVarUrlObj),
12005
+ options: localVarRequestOptions,
12006
+ }];
12007
+ }
12008
+ });
12009
+ });
12010
+ },
11181
12011
  /**
11182
12012
  *
11183
12013
  * @summary Remove the specified access from the given Organization Workspace
@@ -11638,15 +12468,17 @@ exports.WorkspaceApiFp = function (configuration) {
11638
12468
  *
11639
12469
  * @summary List all Workspaces
11640
12470
  * @param {string} organizationId the Organization identifier
12471
+ * @param {number} [page] page number to query
12472
+ * @param {number} [size] amount of result by page
11641
12473
  * @param {*} [options] Override http request option.
11642
12474
  * @throws {RequiredError}
11643
12475
  */
11644
- findAllWorkspaces: function (organizationId, options) {
12476
+ findAllWorkspaces: function (organizationId, page, size, options) {
11645
12477
  return __awaiter(this, void 0, void 0, function () {
11646
12478
  var localVarAxiosArgs;
11647
12479
  return __generator(this, function (_a) {
11648
12480
  switch (_a.label) {
11649
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllWorkspaces(organizationId, options)];
12481
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.findAllWorkspaces(organizationId, page, size, options)];
11650
12482
  case 1:
11651
12483
  localVarAxiosArgs = _a.sent();
11652
12484
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -11761,6 +12593,27 @@ exports.WorkspaceApiFp = function (configuration) {
11761
12593
  });
11762
12594
  });
11763
12595
  },
12596
+ /**
12597
+ *
12598
+ * @summary Import a workspace
12599
+ * @param {string} organizationId the Organization identifier
12600
+ * @param {Workspace} workspace the Workspace to import
12601
+ * @param {*} [options] Override http request option.
12602
+ * @throws {RequiredError}
12603
+ */
12604
+ importWorkspace: function (organizationId, workspace, options) {
12605
+ return __awaiter(this, void 0, void 0, function () {
12606
+ var localVarAxiosArgs;
12607
+ return __generator(this, function (_a) {
12608
+ switch (_a.label) {
12609
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importWorkspace(organizationId, workspace, options)];
12610
+ case 1:
12611
+ localVarAxiosArgs = _a.sent();
12612
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12613
+ }
12614
+ });
12615
+ });
12616
+ },
11764
12617
  /**
11765
12618
  *
11766
12619
  * @summary Remove the specified access from the given Organization Workspace
@@ -11979,11 +12832,13 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
11979
12832
  *
11980
12833
  * @summary List all Workspaces
11981
12834
  * @param {string} organizationId the Organization identifier
12835
+ * @param {number} [page] page number to query
12836
+ * @param {number} [size] amount of result by page
11982
12837
  * @param {*} [options] Override http request option.
11983
12838
  * @throws {RequiredError}
11984
12839
  */
11985
- findAllWorkspaces: function (organizationId, options) {
11986
- return localVarFp.findAllWorkspaces(organizationId, options).then(function (request) { return request(axios, basePath); });
12840
+ findAllWorkspaces: function (organizationId, page, size, options) {
12841
+ return localVarFp.findAllWorkspaces(organizationId, page, size, options).then(function (request) { return request(axios, basePath); });
11987
12842
  },
11988
12843
  /**
11989
12844
  *
@@ -12042,6 +12897,17 @@ exports.WorkspaceApiFactory = function (configuration, basePath, axios) {
12042
12897
  getWorkspaceSecurityUsers: function (organizationId, workspaceId, options) {
12043
12898
  return localVarFp.getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(axios, basePath); });
12044
12899
  },
12900
+ /**
12901
+ *
12902
+ * @summary Import a workspace
12903
+ * @param {string} organizationId the Organization identifier
12904
+ * @param {Workspace} workspace the Workspace to import
12905
+ * @param {*} [options] Override http request option.
12906
+ * @throws {RequiredError}
12907
+ */
12908
+ importWorkspace: function (organizationId, workspace, options) {
12909
+ return localVarFp.importWorkspace(organizationId, workspace, options).then(function (request) { return request(axios, basePath); });
12910
+ },
12045
12911
  /**
12046
12912
  *
12047
12913
  * @summary Remove the specified access from the given Organization Workspace
@@ -12230,13 +13096,15 @@ var WorkspaceApi = /** @class */ (function (_super) {
12230
13096
  *
12231
13097
  * @summary List all Workspaces
12232
13098
  * @param {string} organizationId the Organization identifier
13099
+ * @param {number} [page] page number to query
13100
+ * @param {number} [size] amount of result by page
12233
13101
  * @param {*} [options] Override http request option.
12234
13102
  * @throws {RequiredError}
12235
13103
  * @memberof WorkspaceApi
12236
13104
  */
12237
- WorkspaceApi.prototype.findAllWorkspaces = function (organizationId, options) {
13105
+ WorkspaceApi.prototype.findAllWorkspaces = function (organizationId, page, size, options) {
12238
13106
  var _this = this;
12239
- return exports.WorkspaceApiFp(this.configuration).findAllWorkspaces(organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13107
+ return exports.WorkspaceApiFp(this.configuration).findAllWorkspaces(organizationId, page, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
12240
13108
  };
12241
13109
  /**
12242
13110
  *
@@ -12305,6 +13173,19 @@ var WorkspaceApi = /** @class */ (function (_super) {
12305
13173
  var _this = this;
12306
13174
  return exports.WorkspaceApiFp(this.configuration).getWorkspaceSecurityUsers(organizationId, workspaceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12307
13175
  };
13176
+ /**
13177
+ *
13178
+ * @summary Import a workspace
13179
+ * @param {string} organizationId the Organization identifier
13180
+ * @param {Workspace} workspace the Workspace to import
13181
+ * @param {*} [options] Override http request option.
13182
+ * @throws {RequiredError}
13183
+ * @memberof WorkspaceApi
13184
+ */
13185
+ WorkspaceApi.prototype.importWorkspace = function (organizationId, workspace, options) {
13186
+ var _this = this;
13187
+ return exports.WorkspaceApiFp(this.configuration).importWorkspace(organizationId, workspace, options).then(function (request) { return request(_this.axios, _this.basePath); });
13188
+ };
12308
13189
  /**
12309
13190
  *
12310
13191
  * @summary Remove the specified access from the given Organization Workspace