@revengai/sdk 3.89.0 → 3.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -4
- package/dist/apis/AnalysesCoreApi.d.ts +4 -7
- package/dist/apis/AnalysesCoreApi.js +243 -345
- package/dist/apis/AnalysesCoreApi.js.map +1 -1
- package/dist/apis/CollectionsApi.d.ts +18 -0
- package/dist/apis/CollectionsApi.js +526 -0
- package/dist/apis/CollectionsApi.js.map +1 -1
- package/dist/apis/SearchApi.d.ts +1 -1
- package/dist/apis/SearchApi.js +4 -1
- package/dist/apis/SearchApi.js.map +1 -1
- package/dist/models/Binary.d.ts +26 -0
- package/dist/models/Binary.js +59 -0
- package/dist/models/Binary.js.map +1 -0
- package/dist/models/CollectionListItemBody.d.ts +30 -0
- package/dist/models/CollectionListItemBody.js +83 -0
- package/dist/models/CollectionListItemBody.js.map +1 -0
- package/dist/models/CreateCollectionInputBody.d.ts +32 -0
- package/dist/models/CreateCollectionInputBody.js +61 -0
- package/dist/models/CreateCollectionInputBody.js.map +1 -0
- package/dist/models/CreateCollectionOutputBody.d.ts +31 -0
- package/dist/models/CreateCollectionOutputBody.js +83 -0
- package/dist/models/CreateCollectionOutputBody.js.map +1 -0
- package/dist/models/GetCollectionOutputBody.d.ts +34 -0
- package/dist/models/GetCollectionOutputBody.js +101 -0
- package/dist/models/GetCollectionOutputBody.js.map +1 -0
- package/dist/models/ListCollectionsOutputBody.d.ts +24 -0
- package/dist/models/ListCollectionsOutputBody.js +41 -0
- package/dist/models/ListCollectionsOutputBody.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +10 -1
- package/dist/models/ObjectSerializer.js +31 -3
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/PatchCollectionBinariesInputBody.d.ts +20 -0
- package/dist/models/PatchCollectionBinariesInputBody.js +23 -0
- package/dist/models/PatchCollectionBinariesInputBody.js.map +1 -0
- package/dist/models/PatchCollectionBinariesOutputBody.d.ts +21 -0
- package/dist/models/PatchCollectionBinariesOutputBody.js +23 -0
- package/dist/models/PatchCollectionBinariesOutputBody.js.map +1 -0
- package/dist/models/{QueuePositionResponse.d.ts → PatchCollectionTagsInputBody.d.ts} +2 -2
- package/dist/models/PatchCollectionTagsInputBody.js +23 -0
- package/dist/models/PatchCollectionTagsInputBody.js.map +1 -0
- package/dist/models/PatchCollectionTagsOutputBody.d.ts +20 -0
- package/dist/models/PatchCollectionTagsOutputBody.js +23 -0
- package/dist/models/PatchCollectionTagsOutputBody.js.map +1 -0
- package/dist/models/all.d.ts +10 -1
- package/dist/models/all.js +10 -1
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +62 -22
- package/dist/types/ObjectParamAPI.js +46 -20
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +24 -9
- package/dist/types/ObservableAPI.js +606 -494
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +24 -9
- package/dist/types/PromiseAPI.js +74 -34
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
- package/dist/models/QueuePositionResponse.js +0 -23
- package/dist/models/QueuePositionResponse.js.map +0 -1
|
@@ -377,39 +377,6 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
|
|
|
377
377
|
});
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
|
-
AnalysesCoreApiRequestFactory.prototype.getAnalysisQueuePosition = function (analysisId, _options) {
|
|
381
|
-
var _a;
|
|
382
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
383
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
384
|
-
return __generator(this, function (_b) {
|
|
385
|
-
switch (_b.label) {
|
|
386
|
-
case 0:
|
|
387
|
-
_config = _options || this.configuration;
|
|
388
|
-
if (analysisId === null || analysisId === undefined) {
|
|
389
|
-
throw new baseapi_1.RequiredError("AnalysesCoreApi", "getAnalysisQueuePosition", "analysisId");
|
|
390
|
-
}
|
|
391
|
-
localVarPath = '/v2/analyses/{analysis_id}/queue-position'
|
|
392
|
-
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
393
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
394
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
395
|
-
authMethod = _config.authMethods["APIKey"];
|
|
396
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
397
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
398
|
-
case 1:
|
|
399
|
-
_b.sent();
|
|
400
|
-
_b.label = 2;
|
|
401
|
-
case 2:
|
|
402
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
403
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
404
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
405
|
-
case 3:
|
|
406
|
-
_b.sent();
|
|
407
|
-
_b.label = 4;
|
|
408
|
-
case 4: return [2, requestContext];
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
380
|
AnalysesCoreApiRequestFactory.prototype.getAnalysisStatus = function (analysisId, _options) {
|
|
414
381
|
var _a;
|
|
415
382
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -443,90 +410,6 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
|
|
|
443
410
|
});
|
|
444
411
|
});
|
|
445
412
|
};
|
|
446
|
-
AnalysesCoreApiRequestFactory.prototype.getAnalysisStrings = function (analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, _options) {
|
|
447
|
-
var _a;
|
|
448
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
449
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
450
|
-
return __generator(this, function (_b) {
|
|
451
|
-
switch (_b.label) {
|
|
452
|
-
case 0:
|
|
453
|
-
_config = _options || this.configuration;
|
|
454
|
-
if (analysisId === null || analysisId === undefined) {
|
|
455
|
-
throw new baseapi_1.RequiredError("AnalysesCoreApi", "getAnalysisStrings", "analysisId");
|
|
456
|
-
}
|
|
457
|
-
localVarPath = '/v3/analyses/{analysis_id}/functions/strings'
|
|
458
|
-
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
459
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
460
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
461
|
-
if (page !== undefined) {
|
|
462
|
-
requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int64"));
|
|
463
|
-
}
|
|
464
|
-
if (pageSize !== undefined) {
|
|
465
|
-
requestContext.setQueryParam("page_size", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"));
|
|
466
|
-
}
|
|
467
|
-
if (search !== undefined) {
|
|
468
|
-
requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
|
|
469
|
-
}
|
|
470
|
-
if (functionSearch !== undefined) {
|
|
471
|
-
requestContext.setQueryParam("function_search", ObjectSerializer_1.ObjectSerializer.serialize(functionSearch, "string", ""));
|
|
472
|
-
}
|
|
473
|
-
if (orderBy !== undefined) {
|
|
474
|
-
requestContext.setQueryParam("order_by", ObjectSerializer_1.ObjectSerializer.serialize(orderBy, "'value' | 'length'", ""));
|
|
475
|
-
}
|
|
476
|
-
if (sortOrder !== undefined) {
|
|
477
|
-
requestContext.setQueryParam("sort_order", ObjectSerializer_1.ObjectSerializer.serialize(sortOrder, "'ASC' | 'DESC'", ""));
|
|
478
|
-
}
|
|
479
|
-
authMethod = _config.authMethods["APIKey"];
|
|
480
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
481
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
482
|
-
case 1:
|
|
483
|
-
_b.sent();
|
|
484
|
-
_b.label = 2;
|
|
485
|
-
case 2:
|
|
486
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
487
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
488
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
489
|
-
case 3:
|
|
490
|
-
_b.sent();
|
|
491
|
-
_b.label = 4;
|
|
492
|
-
case 4: return [2, requestContext];
|
|
493
|
-
}
|
|
494
|
-
});
|
|
495
|
-
});
|
|
496
|
-
};
|
|
497
|
-
AnalysesCoreApiRequestFactory.prototype.getAnalysisStringsStatus = function (analysisId, _options) {
|
|
498
|
-
var _a;
|
|
499
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
500
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
501
|
-
return __generator(this, function (_b) {
|
|
502
|
-
switch (_b.label) {
|
|
503
|
-
case 0:
|
|
504
|
-
_config = _options || this.configuration;
|
|
505
|
-
if (analysisId === null || analysisId === undefined) {
|
|
506
|
-
throw new baseapi_1.RequiredError("AnalysesCoreApi", "getAnalysisStringsStatus", "analysisId");
|
|
507
|
-
}
|
|
508
|
-
localVarPath = '/v3/analyses/{analysis_id}/functions/strings/status'
|
|
509
|
-
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
510
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
511
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
512
|
-
authMethod = _config.authMethods["APIKey"];
|
|
513
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
514
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
515
|
-
case 1:
|
|
516
|
-
_b.sent();
|
|
517
|
-
_b.label = 2;
|
|
518
|
-
case 2:
|
|
519
|
-
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
520
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
521
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
522
|
-
case 3:
|
|
523
|
-
_b.sent();
|
|
524
|
-
_b.label = 4;
|
|
525
|
-
case 4: return [2, requestContext];
|
|
526
|
-
}
|
|
527
|
-
});
|
|
528
|
-
});
|
|
529
|
-
};
|
|
530
413
|
AnalysesCoreApiRequestFactory.prototype.insertAnalysisLog = function (analysisId, insertAnalysisLogRequest, _options) {
|
|
531
414
|
var _a;
|
|
532
415
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -914,6 +797,90 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
|
|
|
914
797
|
});
|
|
915
798
|
});
|
|
916
799
|
};
|
|
800
|
+
AnalysesCoreApiRequestFactory.prototype.v3GetAnalysisStrings = function (analysisId, page, pageSize, search, functionSearch, orderBy, sortOrder, _options) {
|
|
801
|
+
var _a;
|
|
802
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
803
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
804
|
+
return __generator(this, function (_b) {
|
|
805
|
+
switch (_b.label) {
|
|
806
|
+
case 0:
|
|
807
|
+
_config = _options || this.configuration;
|
|
808
|
+
if (analysisId === null || analysisId === undefined) {
|
|
809
|
+
throw new baseapi_1.RequiredError("AnalysesCoreApi", "v3GetAnalysisStrings", "analysisId");
|
|
810
|
+
}
|
|
811
|
+
localVarPath = '/v3/analyses/{analysis_id}/functions/strings'
|
|
812
|
+
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
813
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
814
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
815
|
+
if (page !== undefined) {
|
|
816
|
+
requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int64"));
|
|
817
|
+
}
|
|
818
|
+
if (pageSize !== undefined) {
|
|
819
|
+
requestContext.setQueryParam("page_size", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"));
|
|
820
|
+
}
|
|
821
|
+
if (search !== undefined) {
|
|
822
|
+
requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
|
|
823
|
+
}
|
|
824
|
+
if (functionSearch !== undefined) {
|
|
825
|
+
requestContext.setQueryParam("function_search", ObjectSerializer_1.ObjectSerializer.serialize(functionSearch, "string", ""));
|
|
826
|
+
}
|
|
827
|
+
if (orderBy !== undefined) {
|
|
828
|
+
requestContext.setQueryParam("order_by", ObjectSerializer_1.ObjectSerializer.serialize(orderBy, "'value' | 'length'", ""));
|
|
829
|
+
}
|
|
830
|
+
if (sortOrder !== undefined) {
|
|
831
|
+
requestContext.setQueryParam("sort_order", ObjectSerializer_1.ObjectSerializer.serialize(sortOrder, "'ASC' | 'DESC'", ""));
|
|
832
|
+
}
|
|
833
|
+
authMethod = _config.authMethods["APIKey"];
|
|
834
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
835
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
836
|
+
case 1:
|
|
837
|
+
_b.sent();
|
|
838
|
+
_b.label = 2;
|
|
839
|
+
case 2:
|
|
840
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
841
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
842
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
843
|
+
case 3:
|
|
844
|
+
_b.sent();
|
|
845
|
+
_b.label = 4;
|
|
846
|
+
case 4: return [2, requestContext];
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
});
|
|
850
|
+
};
|
|
851
|
+
AnalysesCoreApiRequestFactory.prototype.v3GetAnalysisStringsStatus = function (analysisId, _options) {
|
|
852
|
+
var _a;
|
|
853
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
854
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
855
|
+
return __generator(this, function (_b) {
|
|
856
|
+
switch (_b.label) {
|
|
857
|
+
case 0:
|
|
858
|
+
_config = _options || this.configuration;
|
|
859
|
+
if (analysisId === null || analysisId === undefined) {
|
|
860
|
+
throw new baseapi_1.RequiredError("AnalysesCoreApi", "v3GetAnalysisStringsStatus", "analysisId");
|
|
861
|
+
}
|
|
862
|
+
localVarPath = '/v3/analyses/{analysis_id}/functions/strings/status'
|
|
863
|
+
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
864
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
865
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
866
|
+
authMethod = _config.authMethods["APIKey"];
|
|
867
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
868
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
869
|
+
case 1:
|
|
870
|
+
_b.sent();
|
|
871
|
+
_b.label = 2;
|
|
872
|
+
case 2:
|
|
873
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
874
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
875
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
876
|
+
case 3:
|
|
877
|
+
_b.sent();
|
|
878
|
+
_b.label = 4;
|
|
879
|
+
case 4: return [2, requestContext];
|
|
880
|
+
}
|
|
881
|
+
});
|
|
882
|
+
});
|
|
883
|
+
};
|
|
917
884
|
return AnalysesCoreApiRequestFactory;
|
|
918
885
|
}(baseapi_1.BaseAPIRequestFactory));
|
|
919
886
|
exports.AnalysesCoreApiRequestFactory = AnalysesCoreApiRequestFactory;
|
|
@@ -1418,11 +1385,11 @@ var AnalysesCoreApiResponseProcessor = (function () {
|
|
|
1418
1385
|
});
|
|
1419
1386
|
});
|
|
1420
1387
|
};
|
|
1421
|
-
AnalysesCoreApiResponseProcessor.prototype.
|
|
1388
|
+
AnalysesCoreApiResponseProcessor.prototype.getAnalysisStatusWithHttpInfo = function (response) {
|
|
1422
1389
|
return __awaiter(this, void 0, void 0, function () {
|
|
1423
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m,
|
|
1424
|
-
return __generator(this, function (
|
|
1425
|
-
switch (
|
|
1390
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1391
|
+
return __generator(this, function (_q) {
|
|
1392
|
+
switch (_q.label) {
|
|
1426
1393
|
case 0:
|
|
1427
1394
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1428
1395
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1430,77 +1397,50 @@ var AnalysesCoreApiResponseProcessor = (function () {
|
|
|
1430
1397
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1431
1398
|
return [4, response.body.text()];
|
|
1432
1399
|
case 1:
|
|
1433
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1434
|
-
"
|
|
1400
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1401
|
+
"BaseResponseStatus", ""]);
|
|
1435
1402
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1436
1403
|
case 2:
|
|
1437
|
-
if (!(0, util_1.isCodeInRange)("
|
|
1404
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1438
1405
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1439
1406
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1440
1407
|
return [4, response.body.text()];
|
|
1441
1408
|
case 3:
|
|
1442
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1443
|
-
"
|
|
1444
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
1409
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1410
|
+
"BaseResponse", ""]);
|
|
1411
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
|
|
1445
1412
|
case 4:
|
|
1446
|
-
if (!(
|
|
1413
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1447
1414
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1448
1415
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1449
1416
|
return [4, response.body.text()];
|
|
1450
1417
|
case 5:
|
|
1451
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1452
|
-
"
|
|
1453
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1454
|
-
case 6:
|
|
1455
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1456
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1457
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1458
|
-
return [4, response.body.text()];
|
|
1459
|
-
case 7:
|
|
1460
|
-
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1461
|
-
"APIError", ""]);
|
|
1462
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1463
|
-
case 8:
|
|
1464
|
-
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1465
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1466
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1467
|
-
return [4, response.body.text()];
|
|
1468
|
-
case 9:
|
|
1469
|
-
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1470
|
-
"APIError", ""]);
|
|
1471
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1472
|
-
case 10:
|
|
1473
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1474
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1475
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1476
|
-
return [4, response.body.text()];
|
|
1477
|
-
case 11:
|
|
1478
|
-
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1479
|
-
"QueuePositionResponse", ""]);
|
|
1418
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1419
|
+
"BaseResponseStatus", ""]);
|
|
1480
1420
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1481
|
-
case
|
|
1482
|
-
|
|
1483
|
-
|
|
1421
|
+
case 6:
|
|
1422
|
+
_o = exception_1.ApiException.bind;
|
|
1423
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1484
1424
|
return [4, response.getBodyAsAny()];
|
|
1485
|
-
case
|
|
1425
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1486
1426
|
}
|
|
1487
1427
|
});
|
|
1488
1428
|
});
|
|
1489
1429
|
};
|
|
1490
|
-
AnalysesCoreApiResponseProcessor.prototype.
|
|
1430
|
+
AnalysesCoreApiResponseProcessor.prototype.insertAnalysisLogWithHttpInfo = function (response) {
|
|
1491
1431
|
return __awaiter(this, void 0, void 0, function () {
|
|
1492
1432
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1493
1433
|
return __generator(this, function (_q) {
|
|
1494
1434
|
switch (_q.label) {
|
|
1495
1435
|
case 0:
|
|
1496
1436
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1497
|
-
if (!(0, util_1.isCodeInRange)("
|
|
1437
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1498
1438
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1499
1439
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1500
1440
|
return [4, response.body.text()];
|
|
1501
1441
|
case 1:
|
|
1502
1442
|
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1503
|
-
"
|
|
1443
|
+
"BaseResponse", ""]);
|
|
1504
1444
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1505
1445
|
case 2:
|
|
1506
1446
|
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
@@ -1518,187 +1458,7 @@ var AnalysesCoreApiResponseProcessor = (function () {
|
|
|
1518
1458
|
return [4, response.body.text()];
|
|
1519
1459
|
case 5:
|
|
1520
1460
|
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1521
|
-
"
|
|
1522
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1523
|
-
case 6:
|
|
1524
|
-
_o = exception_1.ApiException.bind;
|
|
1525
|
-
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1526
|
-
return [4, response.getBodyAsAny()];
|
|
1527
|
-
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1528
|
-
}
|
|
1529
|
-
});
|
|
1530
|
-
});
|
|
1531
|
-
};
|
|
1532
|
-
AnalysesCoreApiResponseProcessor.prototype.getAnalysisStringsWithHttpInfo = function (response) {
|
|
1533
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1534
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
1535
|
-
return __generator(this, function (_2) {
|
|
1536
|
-
switch (_2.label) {
|
|
1537
|
-
case 0:
|
|
1538
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1539
|
-
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1540
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1541
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1542
|
-
return [4, response.body.text()];
|
|
1543
|
-
case 1:
|
|
1544
|
-
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1545
|
-
"ListAnalysisStringsOutputBody", ""]);
|
|
1546
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1547
|
-
case 2:
|
|
1548
|
-
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1549
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1550
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1551
|
-
return [4, response.body.text()];
|
|
1552
|
-
case 3:
|
|
1553
|
-
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1554
|
-
"APIError", ""]);
|
|
1555
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1556
|
-
case 4:
|
|
1557
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1558
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1559
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1560
|
-
return [4, response.body.text()];
|
|
1561
|
-
case 5:
|
|
1562
|
-
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1563
|
-
"APIError", ""]);
|
|
1564
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1565
|
-
case 6:
|
|
1566
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1567
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1568
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1569
|
-
return [4, response.body.text()];
|
|
1570
|
-
case 7:
|
|
1571
|
-
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1572
|
-
"APIError", ""]);
|
|
1573
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1574
|
-
case 8:
|
|
1575
|
-
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1576
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1577
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1578
|
-
return [4, response.body.text()];
|
|
1579
|
-
case 9:
|
|
1580
|
-
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1581
|
-
"APIError", ""]);
|
|
1582
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1583
|
-
case 10:
|
|
1584
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1585
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1586
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1587
|
-
return [4, response.body.text()];
|
|
1588
|
-
case 11:
|
|
1589
|
-
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1590
|
-
"ListAnalysisStringsOutputBody", ""]);
|
|
1591
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1592
|
-
case 12:
|
|
1593
|
-
_0 = exception_1.ApiException.bind;
|
|
1594
|
-
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1595
|
-
return [4, response.getBodyAsAny()];
|
|
1596
|
-
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1597
|
-
}
|
|
1598
|
-
});
|
|
1599
|
-
});
|
|
1600
|
-
};
|
|
1601
|
-
AnalysesCoreApiResponseProcessor.prototype.getAnalysisStringsStatusWithHttpInfo = function (response) {
|
|
1602
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1603
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
1604
|
-
return __generator(this, function (_2) {
|
|
1605
|
-
switch (_2.label) {
|
|
1606
|
-
case 0:
|
|
1607
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1608
|
-
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1609
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1610
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1611
|
-
return [4, response.body.text()];
|
|
1612
|
-
case 1:
|
|
1613
|
-
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1614
|
-
"GetAnalysisStringsStatusOutputBody", ""]);
|
|
1615
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1616
|
-
case 2:
|
|
1617
|
-
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1618
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1619
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1620
|
-
return [4, response.body.text()];
|
|
1621
|
-
case 3:
|
|
1622
|
-
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1623
|
-
"APIError", ""]);
|
|
1624
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1625
|
-
case 4:
|
|
1626
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1627
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1628
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1629
|
-
return [4, response.body.text()];
|
|
1630
|
-
case 5:
|
|
1631
|
-
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1632
|
-
"APIError", ""]);
|
|
1633
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1634
|
-
case 6:
|
|
1635
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1636
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1637
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1638
|
-
return [4, response.body.text()];
|
|
1639
|
-
case 7:
|
|
1640
|
-
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1641
|
-
"APIError", ""]);
|
|
1642
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1643
|
-
case 8:
|
|
1644
|
-
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1645
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1646
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1647
|
-
return [4, response.body.text()];
|
|
1648
|
-
case 9:
|
|
1649
|
-
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1650
|
-
"APIError", ""]);
|
|
1651
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1652
|
-
case 10:
|
|
1653
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1654
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1655
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1656
|
-
return [4, response.body.text()];
|
|
1657
|
-
case 11:
|
|
1658
|
-
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1659
|
-
"GetAnalysisStringsStatusOutputBody", ""]);
|
|
1660
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1661
|
-
case 12:
|
|
1662
|
-
_0 = exception_1.ApiException.bind;
|
|
1663
|
-
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1664
|
-
return [4, response.getBodyAsAny()];
|
|
1665
|
-
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1666
|
-
}
|
|
1667
|
-
});
|
|
1668
|
-
});
|
|
1669
|
-
};
|
|
1670
|
-
AnalysesCoreApiResponseProcessor.prototype.insertAnalysisLogWithHttpInfo = function (response) {
|
|
1671
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1672
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1673
|
-
return __generator(this, function (_q) {
|
|
1674
|
-
switch (_q.label) {
|
|
1675
|
-
case 0:
|
|
1676
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1677
|
-
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1678
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1679
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1680
|
-
return [4, response.body.text()];
|
|
1681
|
-
case 1:
|
|
1682
|
-
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1683
|
-
"BaseResponse", ""]);
|
|
1684
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1685
|
-
case 2:
|
|
1686
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1687
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1688
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1689
|
-
return [4, response.body.text()];
|
|
1690
|
-
case 3:
|
|
1691
|
-
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1692
|
-
"BaseResponse", ""]);
|
|
1693
|
-
throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
|
|
1694
|
-
case 4:
|
|
1695
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1696
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1697
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1698
|
-
return [4, response.body.text()];
|
|
1699
|
-
case 5:
|
|
1700
|
-
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1701
|
-
"BaseResponse", ""]);
|
|
1461
|
+
"BaseResponse", ""]);
|
|
1702
1462
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1703
1463
|
case 6:
|
|
1704
1464
|
_o = exception_1.ApiException.bind;
|
|
@@ -2021,6 +1781,144 @@ var AnalysesCoreApiResponseProcessor = (function () {
|
|
|
2021
1781
|
});
|
|
2022
1782
|
});
|
|
2023
1783
|
};
|
|
1784
|
+
AnalysesCoreApiResponseProcessor.prototype.v3GetAnalysisStringsWithHttpInfo = function (response) {
|
|
1785
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1786
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
1787
|
+
return __generator(this, function (_2) {
|
|
1788
|
+
switch (_2.label) {
|
|
1789
|
+
case 0:
|
|
1790
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1791
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1792
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1793
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1794
|
+
return [4, response.body.text()];
|
|
1795
|
+
case 1:
|
|
1796
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1797
|
+
"ListAnalysisStringsOutputBody", ""]);
|
|
1798
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1799
|
+
case 2:
|
|
1800
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1801
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1802
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1803
|
+
return [4, response.body.text()];
|
|
1804
|
+
case 3:
|
|
1805
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1806
|
+
"APIError", ""]);
|
|
1807
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1808
|
+
case 4:
|
|
1809
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1810
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1811
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1812
|
+
return [4, response.body.text()];
|
|
1813
|
+
case 5:
|
|
1814
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1815
|
+
"APIError", ""]);
|
|
1816
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1817
|
+
case 6:
|
|
1818
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1819
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1820
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1821
|
+
return [4, response.body.text()];
|
|
1822
|
+
case 7:
|
|
1823
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1824
|
+
"APIError", ""]);
|
|
1825
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1826
|
+
case 8:
|
|
1827
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1828
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1829
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1830
|
+
return [4, response.body.text()];
|
|
1831
|
+
case 9:
|
|
1832
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1833
|
+
"APIError", ""]);
|
|
1834
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1835
|
+
case 10:
|
|
1836
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1837
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1838
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1839
|
+
return [4, response.body.text()];
|
|
1840
|
+
case 11:
|
|
1841
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1842
|
+
"ListAnalysisStringsOutputBody", ""]);
|
|
1843
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1844
|
+
case 12:
|
|
1845
|
+
_0 = exception_1.ApiException.bind;
|
|
1846
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1847
|
+
return [4, response.getBodyAsAny()];
|
|
1848
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1849
|
+
}
|
|
1850
|
+
});
|
|
1851
|
+
});
|
|
1852
|
+
};
|
|
1853
|
+
AnalysesCoreApiResponseProcessor.prototype.v3GetAnalysisStringsStatusWithHttpInfo = function (response) {
|
|
1854
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1855
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
1856
|
+
return __generator(this, function (_2) {
|
|
1857
|
+
switch (_2.label) {
|
|
1858
|
+
case 0:
|
|
1859
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1860
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1861
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1862
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1863
|
+
return [4, response.body.text()];
|
|
1864
|
+
case 1:
|
|
1865
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1866
|
+
"GetAnalysisStringsStatusOutputBody", ""]);
|
|
1867
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1868
|
+
case 2:
|
|
1869
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1870
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1871
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1872
|
+
return [4, response.body.text()];
|
|
1873
|
+
case 3:
|
|
1874
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1875
|
+
"APIError", ""]);
|
|
1876
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
1877
|
+
case 4:
|
|
1878
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1879
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1880
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1881
|
+
return [4, response.body.text()];
|
|
1882
|
+
case 5:
|
|
1883
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1884
|
+
"APIError", ""]);
|
|
1885
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
1886
|
+
case 6:
|
|
1887
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
1888
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1889
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1890
|
+
return [4, response.body.text()];
|
|
1891
|
+
case 7:
|
|
1892
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1893
|
+
"APIError", ""]);
|
|
1894
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
1895
|
+
case 8:
|
|
1896
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
1897
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1898
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1899
|
+
return [4, response.body.text()];
|
|
1900
|
+
case 9:
|
|
1901
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1902
|
+
"APIError", ""]);
|
|
1903
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
1904
|
+
case 10:
|
|
1905
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1906
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1907
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1908
|
+
return [4, response.body.text()];
|
|
1909
|
+
case 11:
|
|
1910
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1911
|
+
"GetAnalysisStringsStatusOutputBody", ""]);
|
|
1912
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1913
|
+
case 12:
|
|
1914
|
+
_0 = exception_1.ApiException.bind;
|
|
1915
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1916
|
+
return [4, response.getBodyAsAny()];
|
|
1917
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1918
|
+
}
|
|
1919
|
+
});
|
|
1920
|
+
});
|
|
1921
|
+
};
|
|
2024
1922
|
return AnalysesCoreApiResponseProcessor;
|
|
2025
1923
|
}());
|
|
2026
1924
|
exports.AnalysesCoreApiResponseProcessor = AnalysesCoreApiResponseProcessor;
|