@revengai/sdk 3.70.0 → 3.71.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.
Files changed (35) hide show
  1. package/README.md +3 -2
  2. package/dist/apis/AnalysesBulkActionsApi.d.ts +15 -0
  3. package/dist/apis/AnalysesBulkActionsApi.js +288 -0
  4. package/dist/apis/AnalysesBulkActionsApi.js.map +1 -0
  5. package/dist/apis/AnalysesCoreApi.d.ts +0 -7
  6. package/dist/apis/AnalysesCoreApi.js +0 -214
  7. package/dist/apis/AnalysesCoreApi.js.map +1 -1
  8. package/dist/apis/FunctionsAIDecompilationApi.d.ts +2 -1
  9. package/dist/apis/FunctionsAIDecompilationApi.js +9 -2
  10. package/dist/apis/FunctionsAIDecompilationApi.js.map +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js +2 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/models/FunctionMappingFull.d.ts +3 -0
  15. package/dist/models/FunctionMappingFull.js +6 -0
  16. package/dist/models/FunctionMappingFull.js.map +1 -1
  17. package/dist/models/ObjectSerializer.d.ts +1 -0
  18. package/dist/models/ObjectSerializer.js +2 -0
  19. package/dist/models/ObjectSerializer.js.map +1 -1
  20. package/dist/models/RegenerateTarget.d.ts +4 -0
  21. package/dist/models/RegenerateTarget.js +9 -0
  22. package/dist/models/RegenerateTarget.js.map +1 -0
  23. package/dist/models/all.d.ts +1 -0
  24. package/dist/models/all.js +1 -0
  25. package/dist/models/all.js.map +1 -1
  26. package/dist/types/ObjectParamAPI.d.ts +29 -22
  27. package/dist/types/ObjectParamAPI.js +58 -50
  28. package/dist/types/ObjectParamAPI.js.map +1 -1
  29. package/dist/types/ObservableAPI.d.ts +14 -6
  30. package/dist/types/ObservableAPI.js +60 -50
  31. package/dist/types/ObservableAPI.js.map +1 -1
  32. package/dist/types/PromiseAPI.d.ts +12 -6
  33. package/dist/types/PromiseAPI.js +68 -60
  34. package/dist/types/PromiseAPI.js.map +1 -1
  35. package/package.json +1 -1
package/README.md CHANGED
@@ -56,12 +56,12 @@ Class | Method | HTTP request | Description
56
56
  *AgentApi* | [**getCapabilitiesResultV2AnalysesAnalysisIdAgentCapabilitiesGet**](docs/AgentApi.md#getCapabilitiesResultV2AnalysesAnalysisIdAgentCapabilitiesGet) | **GET** /v2/analyses/{analysis_id}/agent/capabilities | Get Capabilities Result
57
57
  *AgentApi* | [**getReportAnalysisResultV2AnalysesAnalysisIdAgentReportAnalysisGet**](docs/AgentApi.md#getReportAnalysisResultV2AnalysesAnalysisIdAgentReportAnalysisGet) | **GET** /v2/analyses/{analysis_id}/agent/report-analysis | Get Report Analysis Result
58
58
  *AgentApi* | [**getTriageResultV2AnalysesAnalysisIdAgentTriageGet**](docs/AgentApi.md#getTriageResultV2AnalysesAnalysisIdAgentTriageGet) | **GET** /v2/analyses/{analysis_id}/agent/triage | Get Triage Result
59
+ *AnalysesBulkActionsApi* | [**bulkAddAnalysisTags**](docs/AnalysesBulkActionsApi.md#bulkAddAnalysisTags) | **PATCH** /v2/analyses/tags/add | Bulk Add Analysis Tags
60
+ *AnalysesBulkActionsApi* | [**bulkDeleteAnalyses**](docs/AnalysesBulkActionsApi.md#bulkDeleteAnalyses) | **PATCH** /v2/analyses/delete | Bulk Delete Analyses
59
61
  *AnalysesCommentsApi* | [**createAnalysisComment**](docs/AnalysesCommentsApi.md#createAnalysisComment) | **POST** /v2/analyses/{analysis_id}/comments | Create a comment for this analysis
60
62
  *AnalysesCommentsApi* | [**deleteAnalysisComment**](docs/AnalysesCommentsApi.md#deleteAnalysisComment) | **DELETE** /v2/analyses/{analysis_id}/comments/{comment_id} | Delete a comment
61
63
  *AnalysesCommentsApi* | [**getAnalysisComments**](docs/AnalysesCommentsApi.md#getAnalysisComments) | **GET** /v2/analyses/{analysis_id}/comments | Get comments for this analysis
62
64
  *AnalysesCommentsApi* | [**updateAnalysisComment**](docs/AnalysesCommentsApi.md#updateAnalysisComment) | **PATCH** /v2/analyses/{analysis_id}/comments/{comment_id} | Update a comment
63
- *AnalysesCoreApi* | [**bulkAddAnalysisTags**](docs/AnalysesCoreApi.md#bulkAddAnalysisTags) | **PATCH** /v2/analyses/tags/add | Bulk Add Analysis Tags
64
- *AnalysesCoreApi* | [**bulkDeleteAnalyses**](docs/AnalysesCoreApi.md#bulkDeleteAnalyses) | **PATCH** /v2/analyses/delete | Bulk Delete Analyses
65
65
  *AnalysesCoreApi* | [**createAnalysis**](docs/AnalysesCoreApi.md#createAnalysis) | **POST** /v2/analyses | Create Analysis
66
66
  *AnalysesCoreApi* | [**deleteAnalysis**](docs/AnalysesCoreApi.md#deleteAnalysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis
67
67
  *AnalysesCoreApi* | [**getAnalysisBasicInfo**](docs/AnalysesCoreApi.md#getAnalysisBasicInfo) | **GET** /v2/analyses/{analysis_id}/basic | Gets basic analysis information
@@ -427,6 +427,7 @@ Class | Method | HTTP request | Description
427
427
  - [QueuedWorkflowTaskResponse](QueuedWorkflowTaskResponse.md)
428
428
  - [ReAnalysisForm](ReAnalysisForm.md)
429
429
  - [Recent](Recent.md)
430
+ - [RegenerateTarget](RegenerateTarget.md)
430
431
  - [Registry](Registry.md)
431
432
  - [RelativeBinaryResponse](RelativeBinaryResponse.md)
432
433
  - [ReportAnalysisResponse](ReportAnalysisResponse.md)
@@ -0,0 +1,15 @@
1
+ import { BaseAPIRequestFactory } from './baseapi';
2
+ import { Configuration } from '../configuration';
3
+ import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
4
+ import { AnalysisBulkAddTagsRequest } from '../models/AnalysisBulkAddTagsRequest';
5
+ import { BaseResponseAnalysisBulkAddTagsResponse } from '../models/BaseResponseAnalysisBulkAddTagsResponse';
6
+ import { BaseResponseDict } from '../models/BaseResponseDict';
7
+ import { BulkDeleteAnalysesRequest } from '../models/BulkDeleteAnalysesRequest';
8
+ export declare class AnalysesBulkActionsApiRequestFactory extends BaseAPIRequestFactory {
9
+ bulkAddAnalysisTags(analysisBulkAddTagsRequest: AnalysisBulkAddTagsRequest, endpointUrl?: string, localCacheDir?: string, localCacheMaxSizeMb?: number, customerSamplesBucket?: string, firmwareSamplesBucket?: string, maxRetryAttempts?: number, _options?: Configuration): Promise<RequestContext>;
10
+ bulkDeleteAnalyses(bulkDeleteAnalysesRequest: BulkDeleteAnalysesRequest, endpointUrl?: string, localCacheDir?: string, localCacheMaxSizeMb?: number, customerSamplesBucket?: string, firmwareSamplesBucket?: string, maxRetryAttempts?: number, _options?: Configuration): Promise<RequestContext>;
11
+ }
12
+ export declare class AnalysesBulkActionsApiResponseProcessor {
13
+ bulkAddAnalysisTagsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseAnalysisBulkAddTagsResponse>>;
14
+ bulkDeleteAnalysesWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseDict>>;
15
+ }
@@ -0,0 +1,288 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.AnalysesBulkActionsApiResponseProcessor = exports.AnalysesBulkActionsApiRequestFactory = void 0;
55
+ var baseapi_1 = require("./baseapi");
56
+ var http_1 = require("../http/http");
57
+ var ObjectSerializer_1 = require("../models/ObjectSerializer");
58
+ var exception_1 = require("./exception");
59
+ var util_1 = require("../util");
60
+ var AnalysesBulkActionsApiRequestFactory = (function (_super) {
61
+ __extends(AnalysesBulkActionsApiRequestFactory, _super);
62
+ function AnalysesBulkActionsApiRequestFactory() {
63
+ return _super !== null && _super.apply(this, arguments) || this;
64
+ }
65
+ AnalysesBulkActionsApiRequestFactory.prototype.bulkAddAnalysisTags = function (analysisBulkAddTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _options) {
66
+ var _a;
67
+ return __awaiter(this, void 0, void 0, function () {
68
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
69
+ return __generator(this, function (_b) {
70
+ switch (_b.label) {
71
+ case 0:
72
+ _config = _options || this.configuration;
73
+ if (analysisBulkAddTagsRequest === null || analysisBulkAddTagsRequest === undefined) {
74
+ throw new baseapi_1.RequiredError("AnalysesBulkActionsApi", "bulkAddAnalysisTags", "analysisBulkAddTagsRequest");
75
+ }
76
+ localVarPath = '/v2/analyses/tags/add';
77
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
78
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
79
+ if (endpointUrl !== undefined) {
80
+ requestContext.setQueryParam("endpoint_url", ObjectSerializer_1.ObjectSerializer.serialize(endpointUrl, "string", ""));
81
+ }
82
+ if (localCacheDir !== undefined) {
83
+ requestContext.setQueryParam("local_cache_dir", ObjectSerializer_1.ObjectSerializer.serialize(localCacheDir, "string", ""));
84
+ }
85
+ if (localCacheMaxSizeMb !== undefined) {
86
+ requestContext.setQueryParam("local_cache_max_size_mb", ObjectSerializer_1.ObjectSerializer.serialize(localCacheMaxSizeMb, "number", ""));
87
+ }
88
+ if (customerSamplesBucket !== undefined) {
89
+ requestContext.setQueryParam("customer_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(customerSamplesBucket, "string", ""));
90
+ }
91
+ if (firmwareSamplesBucket !== undefined) {
92
+ requestContext.setQueryParam("firmware_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(firmwareSamplesBucket, "string", ""));
93
+ }
94
+ if (maxRetryAttempts !== undefined) {
95
+ requestContext.setQueryParam("max_retry_attempts", ObjectSerializer_1.ObjectSerializer.serialize(maxRetryAttempts, "number", ""));
96
+ }
97
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
98
+ "application/json"
99
+ ]);
100
+ requestContext.setHeaderParam("Content-Type", contentType);
101
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(analysisBulkAddTagsRequest, "AnalysisBulkAddTagsRequest", ""), contentType);
102
+ requestContext.setBody(serializedBody);
103
+ authMethod = _config.authMethods["APIKey"];
104
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
105
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
106
+ case 1:
107
+ _b.sent();
108
+ _b.label = 2;
109
+ case 2:
110
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
111
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
112
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
113
+ case 3:
114
+ _b.sent();
115
+ _b.label = 4;
116
+ case 4: return [2, requestContext];
117
+ }
118
+ });
119
+ });
120
+ };
121
+ AnalysesBulkActionsApiRequestFactory.prototype.bulkDeleteAnalyses = function (bulkDeleteAnalysesRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _options) {
122
+ var _a;
123
+ return __awaiter(this, void 0, void 0, function () {
124
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
125
+ return __generator(this, function (_b) {
126
+ switch (_b.label) {
127
+ case 0:
128
+ _config = _options || this.configuration;
129
+ if (bulkDeleteAnalysesRequest === null || bulkDeleteAnalysesRequest === undefined) {
130
+ throw new baseapi_1.RequiredError("AnalysesBulkActionsApi", "bulkDeleteAnalyses", "bulkDeleteAnalysesRequest");
131
+ }
132
+ localVarPath = '/v2/analyses/delete';
133
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
134
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
135
+ if (endpointUrl !== undefined) {
136
+ requestContext.setQueryParam("endpoint_url", ObjectSerializer_1.ObjectSerializer.serialize(endpointUrl, "string", ""));
137
+ }
138
+ if (localCacheDir !== undefined) {
139
+ requestContext.setQueryParam("local_cache_dir", ObjectSerializer_1.ObjectSerializer.serialize(localCacheDir, "string", ""));
140
+ }
141
+ if (localCacheMaxSizeMb !== undefined) {
142
+ requestContext.setQueryParam("local_cache_max_size_mb", ObjectSerializer_1.ObjectSerializer.serialize(localCacheMaxSizeMb, "number", ""));
143
+ }
144
+ if (customerSamplesBucket !== undefined) {
145
+ requestContext.setQueryParam("customer_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(customerSamplesBucket, "string", ""));
146
+ }
147
+ if (firmwareSamplesBucket !== undefined) {
148
+ requestContext.setQueryParam("firmware_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(firmwareSamplesBucket, "string", ""));
149
+ }
150
+ if (maxRetryAttempts !== undefined) {
151
+ requestContext.setQueryParam("max_retry_attempts", ObjectSerializer_1.ObjectSerializer.serialize(maxRetryAttempts, "number", ""));
152
+ }
153
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
154
+ "application/json"
155
+ ]);
156
+ requestContext.setHeaderParam("Content-Type", contentType);
157
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(bulkDeleteAnalysesRequest, "BulkDeleteAnalysesRequest", ""), contentType);
158
+ requestContext.setBody(serializedBody);
159
+ authMethod = _config.authMethods["APIKey"];
160
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
161
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
162
+ case 1:
163
+ _b.sent();
164
+ _b.label = 2;
165
+ case 2:
166
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
167
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
168
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
169
+ case 3:
170
+ _b.sent();
171
+ _b.label = 4;
172
+ case 4: return [2, requestContext];
173
+ }
174
+ });
175
+ });
176
+ };
177
+ return AnalysesBulkActionsApiRequestFactory;
178
+ }(baseapi_1.BaseAPIRequestFactory));
179
+ exports.AnalysesBulkActionsApiRequestFactory = AnalysesBulkActionsApiRequestFactory;
180
+ var AnalysesBulkActionsApiResponseProcessor = (function () {
181
+ function AnalysesBulkActionsApiResponseProcessor() {
182
+ }
183
+ AnalysesBulkActionsApiResponseProcessor.prototype.bulkAddAnalysisTagsWithHttpInfo = function (response) {
184
+ return __awaiter(this, void 0, void 0, function () {
185
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
186
+ return __generator(this, function (_q) {
187
+ switch (_q.label) {
188
+ case 0:
189
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
190
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
191
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
192
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
193
+ return [4, response.body.text()];
194
+ case 1:
195
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
196
+ "BaseResponseAnalysisBulkAddTagsResponse", ""]);
197
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
198
+ case 2:
199
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
200
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
201
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
202
+ return [4, response.body.text()];
203
+ case 3:
204
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
205
+ "BaseResponse", ""]);
206
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
207
+ case 4:
208
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
209
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
210
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
211
+ return [4, response.body.text()];
212
+ case 5:
213
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
214
+ "BaseResponseAnalysisBulkAddTagsResponse", ""]);
215
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
216
+ case 6:
217
+ _o = exception_1.ApiException.bind;
218
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
219
+ return [4, response.getBodyAsAny()];
220
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
221
+ }
222
+ });
223
+ });
224
+ };
225
+ AnalysesBulkActionsApiResponseProcessor.prototype.bulkDeleteAnalysesWithHttpInfo = function (response) {
226
+ return __awaiter(this, void 0, void 0, function () {
227
+ 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, _w, _x;
228
+ return __generator(this, function (_y) {
229
+ switch (_y.label) {
230
+ case 0:
231
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
232
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
233
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
234
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
235
+ return [4, response.body.text()];
236
+ case 1:
237
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
238
+ "BaseResponseDict", ""]);
239
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
240
+ case 2:
241
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
242
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
243
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
244
+ return [4, response.body.text()];
245
+ case 3:
246
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
247
+ "BaseResponse", ""]);
248
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
249
+ case 4:
250
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
251
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
252
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
253
+ return [4, response.body.text()];
254
+ case 5:
255
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
256
+ "BaseResponse", ""]);
257
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
258
+ case 6:
259
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 8];
260
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
261
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
262
+ return [4, response.body.text()];
263
+ case 7:
264
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
265
+ "BaseResponse", ""]);
266
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
267
+ case 8:
268
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
269
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
270
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
271
+ return [4, response.body.text()];
272
+ case 9:
273
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
274
+ "BaseResponseDict", ""]);
275
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
276
+ case 10:
277
+ _w = exception_1.ApiException.bind;
278
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
279
+ return [4, response.getBodyAsAny()];
280
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
281
+ }
282
+ });
283
+ });
284
+ };
285
+ return AnalysesBulkActionsApiResponseProcessor;
286
+ }());
287
+ exports.AnalysesBulkActionsApiResponseProcessor = AnalysesBulkActionsApiResponseProcessor;
288
+ //# sourceMappingURL=AnalysesBulkActionsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnalysesBulkActionsApi.js","sourceRoot":"","sources":["../../apis/AnalysesBulkActionsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAmF;AAEnF,qCAA6F;AAC7F,+DAA4D;AAC5D,yCAAyC;AACzC,gCAAsD;AAatD;IAA0D,wDAAqB;IAA/E;;IAsLA,CAAC;IAzKgB,kEAAmB,GAAhC,UAAiC,0BAAsD,EAAE,WAAoB,EAAE,aAAsB,EAAE,mBAA4B,EAAE,qBAA8B,EAAE,qBAA8B,EAAE,gBAAyB,EAAE,QAAwB;;;;;;;wBAChR,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;wBAG7C,IAAI,0BA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CAAC,CAAC;;6BAInG,CAAA,QAAQ,CAAC,cAAc,IAAI,GAAG,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,CAAA,EAAhE,eAAgE;wBACjC,KAAA,CAAA,KAAA,mCAAgB,CAAA,CAAC,WAAW,CAAA;wBACvD,KAAA,CAAA,KAAA,mCAAgB,CAAA,CAAC,KAAK,CAAA;wBAAC,WAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAA;;wBAD/C,IAAI,GAAqB,cAC3B,cAAuB,SAA0B,EAAE,WAAW,EAAC;4BAC/D,kBAAkB,EAAE,EAAE,EACL;wBACrB,WAAO,IAAI,eAAQ,CAAC,QAAQ,CAAC,cAAc,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,EAAC;;6BAG9E,wBAAY;sCAA4B,QAAQ,CAAC,cAAc,EAAE,0BAA0B;wBAAE,WAAM,QAAQ,CAAC,YAAY,EAAE,EAAA;6BAApI,MAAM,cAAI,wBAAY,aAAiF,SAA6B,EAAE,QAAQ,CAAC,OAAO,MAAC,CAAC;;;;KAC3J;IAEL,8CAAC;AAAD,CAAC,AAxFD,IAwFC;AAxFY,0FAAuC"}
@@ -1,13 +1,11 @@
1
1
  import { BaseAPIRequestFactory } from './baseapi';
2
2
  import { Configuration } from '../configuration';
3
3
  import { RequestContext, ResponseContext, HttpFile, HttpInfo } from '../http/http';
4
- import { AnalysisBulkAddTagsRequest } from '../models/AnalysisBulkAddTagsRequest';
5
4
  import { AnalysisCreateRequest } from '../models/AnalysisCreateRequest';
6
5
  import { AnalysisUpdateRequest } from '../models/AnalysisUpdateRequest';
7
6
  import { AnalysisUpdateTagsRequest } from '../models/AnalysisUpdateTagsRequest';
8
7
  import { AppApiRestV2AnalysesEnumsOrderBy } from '../models/AppApiRestV2AnalysesEnumsOrderBy';
9
8
  import { BaseResponse } from '../models/BaseResponse';
10
- import { BaseResponseAnalysisBulkAddTagsResponse } from '../models/BaseResponseAnalysisBulkAddTagsResponse';
11
9
  import { BaseResponseAnalysisCreateResponse } from '../models/BaseResponseAnalysisCreateResponse';
12
10
  import { BaseResponseAnalysisDetailResponse } from '../models/BaseResponseAnalysisDetailResponse';
13
11
  import { BaseResponseAnalysisFunctionMapping } from '../models/BaseResponseAnalysisFunctionMapping';
@@ -20,7 +18,6 @@ import { BaseResponseParams } from '../models/BaseResponseParams';
20
18
  import { BaseResponseRecent } from '../models/BaseResponseRecent';
21
19
  import { BaseResponseStatus } from '../models/BaseResponseStatus';
22
20
  import { BaseResponseUploadResponse } from '../models/BaseResponseUploadResponse';
23
- import { BulkDeleteAnalysesRequest } from '../models/BulkDeleteAnalysesRequest';
24
21
  import { DynamicExecutionStatusInput } from '../models/DynamicExecutionStatusInput';
25
22
  import { InsertAnalysisLogRequest } from '../models/InsertAnalysisLogRequest';
26
23
  import { ModelName } from '../models/ModelName';
@@ -31,8 +28,6 @@ import { StatusInput } from '../models/StatusInput';
31
28
  import { UploadFileType } from '../models/UploadFileType';
32
29
  import { Workspace } from '../models/Workspace';
33
30
  export declare class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory {
34
- bulkAddAnalysisTags(analysisBulkAddTagsRequest: AnalysisBulkAddTagsRequest, endpointUrl?: string, localCacheDir?: string, localCacheMaxSizeMb?: number, customerSamplesBucket?: string, firmwareSamplesBucket?: string, maxRetryAttempts?: number, _options?: Configuration): Promise<RequestContext>;
35
- bulkDeleteAnalyses(bulkDeleteAnalysesRequest: BulkDeleteAnalysesRequest, endpointUrl?: string, localCacheDir?: string, localCacheMaxSizeMb?: number, customerSamplesBucket?: string, firmwareSamplesBucket?: string, maxRetryAttempts?: number, _options?: Configuration): Promise<RequestContext>;
36
31
  createAnalysis(analysisCreateRequest: AnalysisCreateRequest, endpointUrl?: string, localCacheDir?: string, localCacheMaxSizeMb?: number, customerSamplesBucket?: string, firmwareSamplesBucket?: string, maxRetryAttempts?: number, xRevEngApplication?: string, _options?: Configuration): Promise<RequestContext>;
37
32
  deleteAnalysis(analysisId: number, endpointUrl?: string, localCacheDir?: string, localCacheMaxSizeMb?: number, customerSamplesBucket?: string, firmwareSamplesBucket?: string, maxRetryAttempts?: number, _options?: Configuration): Promise<RequestContext>;
38
33
  getAnalysisBasicInfo(analysisId: number, _options?: Configuration): Promise<RequestContext>;
@@ -50,8 +45,6 @@ export declare class AnalysesCoreApiRequestFactory extends BaseAPIRequestFactory
50
45
  uploadFile(uploadFileType: UploadFileType, file: HttpFile, packedPassword?: string, endpointUrl?: string, localCacheDir?: string, localCacheMaxSizeMb?: number, customerSamplesBucket?: string, firmwareSamplesBucket?: string, maxRetryAttempts?: number, forceOverwrite?: boolean, _options?: Configuration): Promise<RequestContext>;
51
46
  }
52
47
  export declare class AnalysesCoreApiResponseProcessor {
53
- bulkAddAnalysisTagsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseAnalysisBulkAddTagsResponse>>;
54
- bulkDeleteAnalysesWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseDict>>;
55
48
  createAnalysisWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseAnalysisCreateResponse>>;
56
49
  deleteAnalysisWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseDict>>;
57
50
  getAnalysisBasicInfoWithHttpInfo(response: ResponseContext): Promise<HttpInfo<BaseResponseBasic>>;
@@ -62,118 +62,6 @@ var AnalysesCoreApiRequestFactory = (function (_super) {
62
62
  function AnalysesCoreApiRequestFactory() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- AnalysesCoreApiRequestFactory.prototype.bulkAddAnalysisTags = function (analysisBulkAddTagsRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _options) {
66
- var _a;
67
- return __awaiter(this, void 0, void 0, function () {
68
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
69
- return __generator(this, function (_b) {
70
- switch (_b.label) {
71
- case 0:
72
- _config = _options || this.configuration;
73
- if (analysisBulkAddTagsRequest === null || analysisBulkAddTagsRequest === undefined) {
74
- throw new baseapi_1.RequiredError("AnalysesCoreApi", "bulkAddAnalysisTags", "analysisBulkAddTagsRequest");
75
- }
76
- localVarPath = '/v2/analyses/tags/add';
77
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
78
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
79
- if (endpointUrl !== undefined) {
80
- requestContext.setQueryParam("endpoint_url", ObjectSerializer_1.ObjectSerializer.serialize(endpointUrl, "string", ""));
81
- }
82
- if (localCacheDir !== undefined) {
83
- requestContext.setQueryParam("local_cache_dir", ObjectSerializer_1.ObjectSerializer.serialize(localCacheDir, "string", ""));
84
- }
85
- if (localCacheMaxSizeMb !== undefined) {
86
- requestContext.setQueryParam("local_cache_max_size_mb", ObjectSerializer_1.ObjectSerializer.serialize(localCacheMaxSizeMb, "number", ""));
87
- }
88
- if (customerSamplesBucket !== undefined) {
89
- requestContext.setQueryParam("customer_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(customerSamplesBucket, "string", ""));
90
- }
91
- if (firmwareSamplesBucket !== undefined) {
92
- requestContext.setQueryParam("firmware_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(firmwareSamplesBucket, "string", ""));
93
- }
94
- if (maxRetryAttempts !== undefined) {
95
- requestContext.setQueryParam("max_retry_attempts", ObjectSerializer_1.ObjectSerializer.serialize(maxRetryAttempts, "number", ""));
96
- }
97
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
98
- "application/json"
99
- ]);
100
- requestContext.setHeaderParam("Content-Type", contentType);
101
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(analysisBulkAddTagsRequest, "AnalysisBulkAddTagsRequest", ""), contentType);
102
- requestContext.setBody(serializedBody);
103
- authMethod = _config.authMethods["APIKey"];
104
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
105
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
106
- case 1:
107
- _b.sent();
108
- _b.label = 2;
109
- case 2:
110
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
111
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
112
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
113
- case 3:
114
- _b.sent();
115
- _b.label = 4;
116
- case 4: return [2, requestContext];
117
- }
118
- });
119
- });
120
- };
121
- AnalysesCoreApiRequestFactory.prototype.bulkDeleteAnalyses = function (bulkDeleteAnalysesRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, _options) {
122
- var _a;
123
- return __awaiter(this, void 0, void 0, function () {
124
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
125
- return __generator(this, function (_b) {
126
- switch (_b.label) {
127
- case 0:
128
- _config = _options || this.configuration;
129
- if (bulkDeleteAnalysesRequest === null || bulkDeleteAnalysesRequest === undefined) {
130
- throw new baseapi_1.RequiredError("AnalysesCoreApi", "bulkDeleteAnalyses", "bulkDeleteAnalysesRequest");
131
- }
132
- localVarPath = '/v2/analyses/delete';
133
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
134
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
135
- if (endpointUrl !== undefined) {
136
- requestContext.setQueryParam("endpoint_url", ObjectSerializer_1.ObjectSerializer.serialize(endpointUrl, "string", ""));
137
- }
138
- if (localCacheDir !== undefined) {
139
- requestContext.setQueryParam("local_cache_dir", ObjectSerializer_1.ObjectSerializer.serialize(localCacheDir, "string", ""));
140
- }
141
- if (localCacheMaxSizeMb !== undefined) {
142
- requestContext.setQueryParam("local_cache_max_size_mb", ObjectSerializer_1.ObjectSerializer.serialize(localCacheMaxSizeMb, "number", ""));
143
- }
144
- if (customerSamplesBucket !== undefined) {
145
- requestContext.setQueryParam("customer_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(customerSamplesBucket, "string", ""));
146
- }
147
- if (firmwareSamplesBucket !== undefined) {
148
- requestContext.setQueryParam("firmware_samples_bucket", ObjectSerializer_1.ObjectSerializer.serialize(firmwareSamplesBucket, "string", ""));
149
- }
150
- if (maxRetryAttempts !== undefined) {
151
- requestContext.setQueryParam("max_retry_attempts", ObjectSerializer_1.ObjectSerializer.serialize(maxRetryAttempts, "number", ""));
152
- }
153
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
154
- "application/json"
155
- ]);
156
- requestContext.setHeaderParam("Content-Type", contentType);
157
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(bulkDeleteAnalysesRequest, "BulkDeleteAnalysesRequest", ""), contentType);
158
- requestContext.setBody(serializedBody);
159
- authMethod = _config.authMethods["APIKey"];
160
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
161
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
162
- case 1:
163
- _b.sent();
164
- _b.label = 2;
165
- case 2:
166
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
167
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
168
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
169
- case 3:
170
- _b.sent();
171
- _b.label = 4;
172
- case 4: return [2, requestContext];
173
- }
174
- });
175
- });
176
- };
177
65
  AnalysesCoreApiRequestFactory.prototype.createAnalysis = function (analysisCreateRequest, endpointUrl, localCacheDir, localCacheMaxSizeMb, customerSamplesBucket, firmwareSamplesBucket, maxRetryAttempts, xRevEngApplication, _options) {
178
66
  var _a;
179
67
  return __awaiter(this, void 0, void 0, function () {
@@ -984,108 +872,6 @@ exports.AnalysesCoreApiRequestFactory = AnalysesCoreApiRequestFactory;
984
872
  var AnalysesCoreApiResponseProcessor = (function () {
985
873
  function AnalysesCoreApiResponseProcessor() {
986
874
  }
987
- AnalysesCoreApiResponseProcessor.prototype.bulkAddAnalysisTagsWithHttpInfo = function (response) {
988
- return __awaiter(this, void 0, void 0, function () {
989
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
990
- return __generator(this, function (_q) {
991
- switch (_q.label) {
992
- case 0:
993
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
994
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
995
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
996
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
997
- return [4, response.body.text()];
998
- case 1:
999
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1000
- "BaseResponseAnalysisBulkAddTagsResponse", ""]);
1001
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1002
- case 2:
1003
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1004
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1005
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1006
- return [4, response.body.text()];
1007
- case 3:
1008
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1009
- "BaseResponse", ""]);
1010
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1011
- case 4:
1012
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1013
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1014
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1015
- return [4, response.body.text()];
1016
- case 5:
1017
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1018
- "BaseResponseAnalysisBulkAddTagsResponse", ""]);
1019
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1020
- case 6:
1021
- _o = exception_1.ApiException.bind;
1022
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1023
- return [4, response.getBodyAsAny()];
1024
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1025
- }
1026
- });
1027
- });
1028
- };
1029
- AnalysesCoreApiResponseProcessor.prototype.bulkDeleteAnalysesWithHttpInfo = function (response) {
1030
- return __awaiter(this, void 0, void 0, function () {
1031
- 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, _w, _x;
1032
- return __generator(this, function (_y) {
1033
- switch (_y.label) {
1034
- case 0:
1035
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1036
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1037
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1038
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1039
- return [4, response.body.text()];
1040
- case 1:
1041
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1042
- "BaseResponseDict", ""]);
1043
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1044
- case 2:
1045
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1046
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1047
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1048
- return [4, response.body.text()];
1049
- case 3:
1050
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1051
- "BaseResponse", ""]);
1052
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
1053
- case 4:
1054
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1055
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1056
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1057
- return [4, response.body.text()];
1058
- case 5:
1059
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1060
- "BaseResponse", ""]);
1061
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1062
- case 6:
1063
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 8];
1064
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1065
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1066
- return [4, response.body.text()];
1067
- case 7:
1068
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1069
- "BaseResponse", ""]);
1070
- throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1071
- case 8:
1072
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1073
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1074
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1075
- return [4, response.body.text()];
1076
- case 9:
1077
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1078
- "BaseResponseDict", ""]);
1079
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1080
- case 10:
1081
- _w = exception_1.ApiException.bind;
1082
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1083
- return [4, response.getBodyAsAny()];
1084
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1085
- }
1086
- });
1087
- });
1088
- };
1089
875
  AnalysesCoreApiResponseProcessor.prototype.createAnalysisWithHttpInfo = function (response) {
1090
876
  return __awaiter(this, void 0, void 0, function () {
1091
877
  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, _w, _x;