@revengai/sdk 3.79.0 → 3.80.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.
@@ -1,10 +0,0 @@
1
- import { BaseAPIRequestFactory } from './baseapi';
2
- import { Configuration } from '../configuration';
3
- import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
4
- import { QueuePositionResponse } from '../models/QueuePositionResponse';
5
- export declare class AnalysesApiRequestFactory extends BaseAPIRequestFactory {
6
- getAnalysisQueuePosition(analysisId: number, _options?: Configuration): Promise<RequestContext>;
7
- }
8
- export declare class AnalysesApiResponseProcessor {
9
- getAnalysisQueuePositionWithHttpInfo(response: ResponseContext): Promise<HttpInfo<QueuePositionResponse>>;
10
- }
@@ -1,176 +0,0 @@
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.AnalysesApiResponseProcessor = exports.AnalysesApiRequestFactory = 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 AnalysesApiRequestFactory = (function (_super) {
61
- __extends(AnalysesApiRequestFactory, _super);
62
- function AnalysesApiRequestFactory() {
63
- return _super !== null && _super.apply(this, arguments) || this;
64
- }
65
- AnalysesApiRequestFactory.prototype.getAnalysisQueuePosition = function (analysisId, _options) {
66
- var _a;
67
- return __awaiter(this, void 0, void 0, function () {
68
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
69
- return __generator(this, function (_b) {
70
- switch (_b.label) {
71
- case 0:
72
- _config = _options || this.configuration;
73
- if (analysisId === null || analysisId === undefined) {
74
- throw new baseapi_1.RequiredError("AnalysesApi", "getAnalysisQueuePosition", "analysisId");
75
- }
76
- localVarPath = '/v2/analyses/{analysis_id}/queue-position'
77
- .replace('{' + 'analysis_id' + '}', encodeURIComponent(String(analysisId)));
78
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
79
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
80
- authMethod = _config.authMethods["APIKey"];
81
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
82
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
83
- case 1:
84
- _b.sent();
85
- _b.label = 2;
86
- case 2:
87
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
88
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
89
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
90
- case 3:
91
- _b.sent();
92
- _b.label = 4;
93
- case 4: return [2, requestContext];
94
- }
95
- });
96
- });
97
- };
98
- return AnalysesApiRequestFactory;
99
- }(baseapi_1.BaseAPIRequestFactory));
100
- exports.AnalysesApiRequestFactory = AnalysesApiRequestFactory;
101
- var AnalysesApiResponseProcessor = (function () {
102
- function AnalysesApiResponseProcessor() {
103
- }
104
- AnalysesApiResponseProcessor.prototype.getAnalysisQueuePositionWithHttpInfo = function (response) {
105
- return __awaiter(this, void 0, void 0, function () {
106
- 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;
107
- return __generator(this, function (_2) {
108
- switch (_2.label) {
109
- case 0:
110
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
111
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
112
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
113
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
114
- return [4, response.body.text()];
115
- case 1:
116
- body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
117
- "QueuePositionResponse", ""]);
118
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
119
- case 2:
120
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
121
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
122
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
123
- return [4, response.body.text()];
124
- case 3:
125
- body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
126
- "APIError", ""]);
127
- throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
128
- case 4:
129
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
130
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
131
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
132
- return [4, response.body.text()];
133
- case 5:
134
- body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
135
- "APIError", ""]);
136
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
137
- case 6:
138
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
139
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
140
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
141
- return [4, response.body.text()];
142
- case 7:
143
- body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
144
- "APIError", ""]);
145
- throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
146
- case 8:
147
- if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
148
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
149
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
150
- return [4, response.body.text()];
151
- case 9:
152
- body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
153
- "APIError", ""]);
154
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
155
- case 10:
156
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
157
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
158
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
159
- return [4, response.body.text()];
160
- case 11:
161
- body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
162
- "QueuePositionResponse", ""]);
163
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
164
- case 12:
165
- _0 = exception_1.ApiException.bind;
166
- _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
167
- return [4, response.getBodyAsAny()];
168
- case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
169
- }
170
- });
171
- });
172
- };
173
- return AnalysesApiResponseProcessor;
174
- }());
175
- exports.AnalysesApiResponseProcessor = AnalysesApiResponseProcessor;
176
- //# sourceMappingURL=AnalysesApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnalysesApi.js","sourceRoot":"","sources":["../../apis/AnalysesApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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