@revengai/sdk 3.107.0 → 3.110.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 +8 -0
- package/dist/apis/AnalysesCoreApi.d.ts +2 -2
- package/dist/apis/AnalysesCoreApi.js +70 -46
- package/dist/apis/AnalysesCoreApi.js.map +1 -1
- package/dist/apis/FunctionsCoreApi.d.ts +8 -2
- package/dist/apis/FunctionsCoreApi.js +236 -8
- package/dist/apis/FunctionsCoreApi.js.map +1 -1
- package/dist/models/ArchiveContentEntry.d.ts +22 -0
- package/dist/models/ArchiveContentEntry.js +35 -0
- package/dist/models/ArchiveContentEntry.js.map +1 -0
- package/dist/models/BatchBinaryMatchResult.d.ts +1 -0
- package/dist/models/BatchBinaryMatchResult.js +6 -0
- package/dist/models/BatchBinaryMatchResult.js.map +1 -1
- package/dist/models/ImportedFunctionCallerEntry.d.ts +23 -0
- package/dist/models/ImportedFunctionCallerEntry.js +41 -0
- package/dist/models/ImportedFunctionCallerEntry.js.map +1 -0
- package/dist/models/ImportedFunctionDetailOutputBody.d.ts +29 -0
- package/dist/models/ImportedFunctionDetailOutputBody.js +71 -0
- package/dist/models/ImportedFunctionDetailOutputBody.js.map +1 -0
- package/dist/models/ImportedFunctionEntry.d.ts +27 -0
- package/dist/models/ImportedFunctionEntry.js +65 -0
- package/dist/models/ImportedFunctionEntry.js.map +1 -0
- package/dist/models/ListArchiveContentsOutputBody.d.ts +25 -0
- package/dist/models/ListArchiveContentsOutputBody.js +47 -0
- package/dist/models/ListArchiveContentsOutputBody.js.map +1 -0
- package/dist/models/ListImportedFunctionsOutputBody.d.ts +22 -0
- package/dist/models/ListImportedFunctionsOutputBody.js +29 -0
- package/dist/models/ListImportedFunctionsOutputBody.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +6 -0
- package/dist/models/ObjectSerializer.js +18 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/StartMatchingForAnalysisInputBody.d.ts +1 -0
- package/dist/models/StartMatchingForAnalysisInputBody.js +6 -0
- package/dist/models/StartMatchingForAnalysisInputBody.js.map +1 -1
- package/dist/models/StartMatchingForFunctionsInputBody.d.ts +1 -0
- package/dist/models/StartMatchingForFunctionsInputBody.js +6 -0
- package/dist/models/StartMatchingForFunctionsInputBody.js.map +1 -1
- package/dist/models/StartMatchingOutputBody.d.ts +1 -0
- package/dist/models/StartMatchingOutputBody.js +6 -0
- package/dist/models/StartMatchingOutputBody.js.map +1 -1
- package/dist/models/TriggerDynamicExecutionInputBody.d.ts +3 -0
- package/dist/models/TriggerDynamicExecutionInputBody.js +18 -0
- package/dist/models/TriggerDynamicExecutionInputBody.js.map +1 -1
- package/dist/models/all.d.ts +6 -0
- package/dist/models/all.js +6 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +25 -6
- package/dist/types/ObjectParamAPI.js +24 -8
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +14 -8
- package/dist/types/ObservableAPI.js +186 -130
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +14 -8
- package/dist/types/PromiseAPI.js +36 -16
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
|
@@ -1036,7 +1036,7 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
|
|
|
1036
1036
|
});
|
|
1037
1037
|
});
|
|
1038
1038
|
};
|
|
1039
|
-
FunctionsCoreApiRequestFactory.prototype.getFunctionsMatches = function (functionIds, _options) {
|
|
1039
|
+
FunctionsCoreApiRequestFactory.prototype.getFunctionsMatches = function (matchId, functionIds, _options) {
|
|
1040
1040
|
var _a;
|
|
1041
1041
|
return __awaiter(this, void 0, void 0, function () {
|
|
1042
1042
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -1044,12 +1044,12 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
|
|
|
1044
1044
|
switch (_b.label) {
|
|
1045
1045
|
case 0:
|
|
1046
1046
|
_config = _options || this.configuration;
|
|
1047
|
-
if (functionIds === null || functionIds === undefined) {
|
|
1048
|
-
throw new baseapi_1.RequiredError("FunctionsCoreApi", "getFunctionsMatches", "functionIds");
|
|
1049
|
-
}
|
|
1050
1047
|
localVarPath = '/v3/functions/matches';
|
|
1051
1048
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1052
1049
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1050
|
+
if (matchId !== undefined) {
|
|
1051
|
+
requestContext.setQueryParam("match_id", ObjectSerializer_1.ObjectSerializer.serialize(matchId, "string", ""));
|
|
1052
|
+
}
|
|
1053
1053
|
if (functionIds !== undefined) {
|
|
1054
1054
|
requestContext.setQueryParam("function_ids", ObjectSerializer_1.ObjectSerializer.serialize(functionIds, "Array<number>", "int64"));
|
|
1055
1055
|
}
|
|
@@ -1078,7 +1078,7 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
|
|
|
1078
1078
|
});
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
1081
|
-
FunctionsCoreApiRequestFactory.prototype.getFunctionsMatchingStatus = function (functionIds, _options) {
|
|
1081
|
+
FunctionsCoreApiRequestFactory.prototype.getFunctionsMatchingStatus = function (matchId, functionIds, _options) {
|
|
1082
1082
|
var _a;
|
|
1083
1083
|
return __awaiter(this, void 0, void 0, function () {
|
|
1084
1084
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -1086,12 +1086,12 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
|
|
|
1086
1086
|
switch (_b.label) {
|
|
1087
1087
|
case 0:
|
|
1088
1088
|
_config = _options || this.configuration;
|
|
1089
|
-
if (functionIds === null || functionIds === undefined) {
|
|
1090
|
-
throw new baseapi_1.RequiredError("FunctionsCoreApi", "getFunctionsMatchingStatus", "functionIds");
|
|
1091
|
-
}
|
|
1092
1089
|
localVarPath = '/v3/functions/matches/status';
|
|
1093
1090
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1094
1091
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1092
|
+
if (matchId !== undefined) {
|
|
1093
|
+
requestContext.setQueryParam("match_id", ObjectSerializer_1.ObjectSerializer.serialize(matchId, "string", ""));
|
|
1094
|
+
}
|
|
1095
1095
|
if (functionIds !== undefined) {
|
|
1096
1096
|
requestContext.setQueryParam("function_ids", ObjectSerializer_1.ObjectSerializer.serialize(functionIds, "Array<number>", "int64"));
|
|
1097
1097
|
}
|
|
@@ -1120,6 +1120,50 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
|
|
|
1120
1120
|
});
|
|
1121
1121
|
});
|
|
1122
1122
|
};
|
|
1123
|
+
FunctionsCoreApiRequestFactory.prototype.getImportedFunction = function (analysisId, importedFunctionId, _options) {
|
|
1124
|
+
var _a;
|
|
1125
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1126
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1127
|
+
return __generator(this, function (_b) {
|
|
1128
|
+
switch (_b.label) {
|
|
1129
|
+
case 0:
|
|
1130
|
+
_config = _options || this.configuration;
|
|
1131
|
+
if (analysisId === null || analysisId === undefined) {
|
|
1132
|
+
throw new baseapi_1.RequiredError("FunctionsCoreApi", "getImportedFunction", "analysisId");
|
|
1133
|
+
}
|
|
1134
|
+
if (importedFunctionId === null || importedFunctionId === undefined) {
|
|
1135
|
+
throw new baseapi_1.RequiredError("FunctionsCoreApi", "getImportedFunction", "importedFunctionId");
|
|
1136
|
+
}
|
|
1137
|
+
localVarPath = '/v3/analyses/{analysis_id}/imported-functions/{imported_function_id}'
|
|
1138
|
+
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)))
|
|
1139
|
+
.replace('{' + 'imported_function_id' + '}', encodeURIComponent(String(importedFunctionId)));
|
|
1140
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1141
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1142
|
+
authMethod = _config.authMethods["APIKey"];
|
|
1143
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1144
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1145
|
+
case 1:
|
|
1146
|
+
_b.sent();
|
|
1147
|
+
_b.label = 2;
|
|
1148
|
+
case 2:
|
|
1149
|
+
authMethod = _config.authMethods["bearerAuth"];
|
|
1150
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
|
|
1151
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1152
|
+
case 3:
|
|
1153
|
+
_b.sent();
|
|
1154
|
+
_b.label = 4;
|
|
1155
|
+
case 4:
|
|
1156
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1157
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
|
|
1158
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1159
|
+
case 5:
|
|
1160
|
+
_b.sent();
|
|
1161
|
+
_b.label = 6;
|
|
1162
|
+
case 6: return [2, requestContext];
|
|
1163
|
+
}
|
|
1164
|
+
});
|
|
1165
|
+
});
|
|
1166
|
+
};
|
|
1123
1167
|
FunctionsCoreApiRequestFactory.prototype.listAnalysisFunctions = function (analysisId, offset, limit, _options) {
|
|
1124
1168
|
var _a;
|
|
1125
1169
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1166,6 +1210,52 @@ var FunctionsCoreApiRequestFactory = (function (_super) {
|
|
|
1166
1210
|
});
|
|
1167
1211
|
});
|
|
1168
1212
|
};
|
|
1213
|
+
FunctionsCoreApiRequestFactory.prototype.listImportedFunctions = function (analysisId, offset, limit, _options) {
|
|
1214
|
+
var _a;
|
|
1215
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1216
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1217
|
+
return __generator(this, function (_b) {
|
|
1218
|
+
switch (_b.label) {
|
|
1219
|
+
case 0:
|
|
1220
|
+
_config = _options || this.configuration;
|
|
1221
|
+
if (analysisId === null || analysisId === undefined) {
|
|
1222
|
+
throw new baseapi_1.RequiredError("FunctionsCoreApi", "listImportedFunctions", "analysisId");
|
|
1223
|
+
}
|
|
1224
|
+
localVarPath = '/v3/analyses/{analysis_id}/imported-functions'
|
|
1225
|
+
.replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
|
|
1226
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1227
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1228
|
+
if (offset !== undefined) {
|
|
1229
|
+
requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", "int64"));
|
|
1230
|
+
}
|
|
1231
|
+
if (limit !== undefined) {
|
|
1232
|
+
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int64"));
|
|
1233
|
+
}
|
|
1234
|
+
authMethod = _config.authMethods["APIKey"];
|
|
1235
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1236
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1237
|
+
case 1:
|
|
1238
|
+
_b.sent();
|
|
1239
|
+
_b.label = 2;
|
|
1240
|
+
case 2:
|
|
1241
|
+
authMethod = _config.authMethods["bearerAuth"];
|
|
1242
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
|
|
1243
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1244
|
+
case 3:
|
|
1245
|
+
_b.sent();
|
|
1246
|
+
_b.label = 4;
|
|
1247
|
+
case 4:
|
|
1248
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1249
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
|
|
1250
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1251
|
+
case 5:
|
|
1252
|
+
_b.sent();
|
|
1253
|
+
_b.label = 6;
|
|
1254
|
+
case 6: return [2, requestContext];
|
|
1255
|
+
}
|
|
1256
|
+
});
|
|
1257
|
+
});
|
|
1258
|
+
};
|
|
1169
1259
|
FunctionsCoreApiRequestFactory.prototype.startFunctionsMatching = function (startMatchingForFunctionsInputBody, _options) {
|
|
1170
1260
|
var _a;
|
|
1171
1261
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2549,6 +2639,75 @@ var FunctionsCoreApiResponseProcessor = (function () {
|
|
|
2549
2639
|
});
|
|
2550
2640
|
});
|
|
2551
2641
|
};
|
|
2642
|
+
FunctionsCoreApiResponseProcessor.prototype.getImportedFunctionWithHttpInfo = function (response) {
|
|
2643
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2644
|
+
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;
|
|
2645
|
+
return __generator(this, function (_2) {
|
|
2646
|
+
switch (_2.label) {
|
|
2647
|
+
case 0:
|
|
2648
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2649
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
2650
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2651
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2652
|
+
return [4, response.body.text()];
|
|
2653
|
+
case 1:
|
|
2654
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
2655
|
+
"ImportedFunctionDetailOutputBody", ""]);
|
|
2656
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2657
|
+
case 2:
|
|
2658
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
2659
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2660
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2661
|
+
return [4, response.body.text()];
|
|
2662
|
+
case 3:
|
|
2663
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
2664
|
+
"APIError", ""]);
|
|
2665
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
2666
|
+
case 4:
|
|
2667
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
2668
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2669
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2670
|
+
return [4, response.body.text()];
|
|
2671
|
+
case 5:
|
|
2672
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
2673
|
+
"APIError", ""]);
|
|
2674
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
2675
|
+
case 6:
|
|
2676
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
2677
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2678
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2679
|
+
return [4, response.body.text()];
|
|
2680
|
+
case 7:
|
|
2681
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
2682
|
+
"APIError", ""]);
|
|
2683
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
2684
|
+
case 8:
|
|
2685
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
2686
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2687
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2688
|
+
return [4, response.body.text()];
|
|
2689
|
+
case 9:
|
|
2690
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
2691
|
+
"APIError", ""]);
|
|
2692
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
2693
|
+
case 10:
|
|
2694
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
2695
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2696
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2697
|
+
return [4, response.body.text()];
|
|
2698
|
+
case 11:
|
|
2699
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
2700
|
+
"ImportedFunctionDetailOutputBody", ""]);
|
|
2701
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2702
|
+
case 12:
|
|
2703
|
+
_0 = exception_1.ApiException.bind;
|
|
2704
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2705
|
+
return [4, response.getBodyAsAny()];
|
|
2706
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
2707
|
+
}
|
|
2708
|
+
});
|
|
2709
|
+
});
|
|
2710
|
+
};
|
|
2552
2711
|
FunctionsCoreApiResponseProcessor.prototype.listAnalysisFunctionsWithHttpInfo = function (response) {
|
|
2553
2712
|
return __awaiter(this, void 0, void 0, function () {
|
|
2554
2713
|
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;
|
|
@@ -2618,6 +2777,75 @@ var FunctionsCoreApiResponseProcessor = (function () {
|
|
|
2618
2777
|
});
|
|
2619
2778
|
});
|
|
2620
2779
|
};
|
|
2780
|
+
FunctionsCoreApiResponseProcessor.prototype.listImportedFunctionsWithHttpInfo = function (response) {
|
|
2781
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2782
|
+
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;
|
|
2783
|
+
return __generator(this, function (_2) {
|
|
2784
|
+
switch (_2.label) {
|
|
2785
|
+
case 0:
|
|
2786
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2787
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
2788
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2789
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2790
|
+
return [4, response.body.text()];
|
|
2791
|
+
case 1:
|
|
2792
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
2793
|
+
"ListImportedFunctionsOutputBody", ""]);
|
|
2794
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2795
|
+
case 2:
|
|
2796
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
2797
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2798
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2799
|
+
return [4, response.body.text()];
|
|
2800
|
+
case 3:
|
|
2801
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
2802
|
+
"APIError", ""]);
|
|
2803
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
|
|
2804
|
+
case 4:
|
|
2805
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
2806
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2807
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2808
|
+
return [4, response.body.text()];
|
|
2809
|
+
case 5:
|
|
2810
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
2811
|
+
"APIError", ""]);
|
|
2812
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
|
|
2813
|
+
case 6:
|
|
2814
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
2815
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2816
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2817
|
+
return [4, response.body.text()];
|
|
2818
|
+
case 7:
|
|
2819
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
2820
|
+
"APIError", ""]);
|
|
2821
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
|
|
2822
|
+
case 8:
|
|
2823
|
+
if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
|
|
2824
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2825
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2826
|
+
return [4, response.body.text()];
|
|
2827
|
+
case 9:
|
|
2828
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
2829
|
+
"APIError", ""]);
|
|
2830
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
|
|
2831
|
+
case 10:
|
|
2832
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
2833
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2834
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2835
|
+
return [4, response.body.text()];
|
|
2836
|
+
case 11:
|
|
2837
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
2838
|
+
"ListImportedFunctionsOutputBody", ""]);
|
|
2839
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2840
|
+
case 12:
|
|
2841
|
+
_0 = exception_1.ApiException.bind;
|
|
2842
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2843
|
+
return [4, response.getBodyAsAny()];
|
|
2844
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
2845
|
+
}
|
|
2846
|
+
});
|
|
2847
|
+
});
|
|
2848
|
+
};
|
|
2621
2849
|
FunctionsCoreApiResponseProcessor.prototype.startFunctionsMatchingWithHttpInfo = function (response) {
|
|
2622
2850
|
return __awaiter(this, void 0, void 0, function () {
|
|
2623
2851
|
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, body, _0, _1, _2, _3, _4, _5;
|