@product-live/api-sdk 2.5.1 → 2.10.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/DataFactoryFileApi.md +182 -0
- package/JobApi.md +333 -0
- package/JobExecutionApi.md +185 -0
- package/README.md +80 -0
- package/TaskApi.md +375 -0
- package/TaskExecutionApi.md +130 -0
- package/VariableApi.md +315 -0
- package/apis/DataFactoryFileApi.ts +252 -133
- package/apis/JobApi.ts +414 -201
- package/apis/JobExecutionApi.ts +237 -121
- package/apis/TaskApi.ts +458 -213
- package/apis/TaskExecutionApi.ts +174 -90
- package/apis/VariableApi.ts +406 -195
- package/apis/baseapi.ts +37 -0
- package/apis/exception.ts +15 -0
- package/auth/auth.ts +107 -0
- package/configuration.ts +82 -0
- package/dist/apis/DataFactoryFileApi.d.ts +14 -19
- package/dist/apis/DataFactoryFileApi.js +340 -103
- package/dist/apis/DataFactoryFileApi.js.map +1 -1
- package/dist/apis/JobApi.d.ts +19 -30
- package/dist/apis/JobApi.js +524 -165
- package/dist/apis/JobApi.js.map +1 -1
- package/dist/apis/JobExecutionApi.d.ts +14 -18
- package/dist/apis/JobExecutionApi.js +320 -88
- package/dist/apis/JobExecutionApi.js.map +1 -1
- package/dist/apis/TaskApi.d.ts +22 -34
- package/dist/apis/TaskApi.js +584 -171
- package/dist/apis/TaskApi.js.map +1 -1
- package/dist/apis/TaskExecutionApi.d.ts +11 -13
- package/dist/apis/TaskExecutionApi.js +242 -62
- package/dist/apis/TaskExecutionApi.js.map +1 -1
- package/dist/apis/VariableApi.d.ts +20 -31
- package/dist/apis/VariableApi.js +506 -153
- package/dist/apis/VariableApi.js.map +1 -1
- package/dist/apis/baseapi.d.ts +18 -0
- package/dist/apis/baseapi.js +46 -0
- package/dist/apis/baseapi.js.map +1 -0
- package/dist/apis/exception.d.ts +10 -0
- package/dist/apis/exception.js +32 -0
- package/dist/apis/exception.js.map +1 -0
- package/dist/auth/auth.d.ts +42 -0
- package/dist/auth/auth.js +45 -0
- package/dist/auth/auth.js.map +1 -0
- package/dist/configuration.d.ts +18 -0
- package/dist/configuration.js +22 -0
- package/dist/configuration.js.map +1 -0
- package/dist/http/http.d.ts +82 -0
- package/dist/http/http.js +229 -0
- package/dist/http/http.js.map +1 -0
- package/dist/http/isomorphic-fetch.d.ts +5 -0
- package/dist/http/isomorphic-fetch.js +34 -0
- package/dist/http/isomorphic-fetch.js.map +1 -0
- package/dist/index.d.ts +10 -3
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/middleware.d.ts +16 -0
- package/dist/middleware.js +18 -0
- package/dist/middleware.js.map +1 -0
- package/dist/models/CreateJobDto.d.ts +27 -24
- package/dist/models/CreateJobDto.js +77 -62
- package/dist/models/CreateJobDto.js.map +1 -1
- package/dist/models/CreateJobExecutionDto.d.ts +18 -8
- package/dist/models/CreateJobExecutionDto.js +29 -36
- package/dist/models/CreateJobExecutionDto.js.map +1 -1
- package/dist/models/CreateTaskDto.d.ts +20 -10
- package/dist/models/CreateTaskDto.js +41 -42
- package/dist/models/CreateTaskDto.js.map +1 -1
- package/dist/models/CreateVariableDto.d.ts +21 -16
- package/dist/models/CreateVariableDto.js +41 -46
- package/dist/models/CreateVariableDto.js.map +1 -1
- package/dist/models/FileDto.d.ts +22 -15
- package/dist/models/FileDto.js +47 -48
- package/dist/models/FileDto.js.map +1 -1
- package/dist/models/FindVariablesRequest.d.ts +24 -7
- package/dist/models/FindVariablesRequest.js +42 -33
- package/dist/models/FindVariablesRequest.js.map +1 -1
- package/dist/models/GetFiles200Response.d.ts +20 -13
- package/dist/models/GetFiles200Response.js +29 -38
- package/dist/models/GetFiles200Response.js.map +1 -1
- package/dist/models/GetJobExecutionById400Response.d.ts +16 -6
- package/dist/models/GetJobExecutionById400Response.js +17 -30
- package/dist/models/GetJobExecutionById400Response.js.map +1 -1
- package/dist/models/GetJobExecutions200Response.d.ts +20 -13
- package/dist/models/GetJobExecutions200Response.js +29 -38
- package/dist/models/GetJobExecutions200Response.js.map +1 -1
- package/dist/models/GetJobs200Response.d.ts +20 -13
- package/dist/models/GetJobs200Response.js +29 -38
- package/dist/models/GetJobs200Response.js.map +1 -1
- package/dist/models/GetTasks200Response.d.ts +20 -13
- package/dist/models/GetTasks200Response.js +29 -38
- package/dist/models/GetTasks200Response.js.map +1 -1
- package/dist/models/GetVariables200Response.d.ts +20 -13
- package/dist/models/GetVariables200Response.js +29 -38
- package/dist/models/GetVariables200Response.js.map +1 -1
- package/dist/models/HighOrderQuery.d.ts +19 -13
- package/dist/models/HighOrderQuery.js +23 -37
- package/dist/models/HighOrderQuery.js.map +1 -1
- package/dist/models/JobDto.d.ts +32 -32
- package/dist/models/JobDto.js +101 -77
- package/dist/models/JobDto.js.map +1 -1
- package/dist/models/JobExecutionDto.d.ts +28 -21
- package/dist/models/JobExecutionDto.js +83 -66
- package/dist/models/JobExecutionDto.js.map +1 -1
- package/dist/models/LowOrderQuery.d.ts +21 -22
- package/dist/models/LowOrderQuery.js +35 -49
- package/dist/models/LowOrderQuery.js.map +1 -1
- package/dist/models/LowOrderQueryValue.d.ts +16 -0
- package/dist/models/LowOrderQueryValue.js +15 -0
- package/dist/models/LowOrderQueryValue.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +34 -0
- package/dist/models/ObjectSerializer.js +313 -0
- package/dist/models/ObjectSerializer.js.map +1 -0
- package/dist/models/PatchTaskExecutionDto.d.ts +19 -13
- package/dist/models/PatchTaskExecutionDto.js +29 -40
- package/dist/models/PatchTaskExecutionDto.js.map +1 -1
- package/dist/models/Query.d.ts +17 -20
- package/dist/models/Query.js +17 -43
- package/dist/models/Query.js.map +1 -1
- package/dist/models/TaskDto.d.ts +25 -18
- package/dist/models/TaskDto.js +65 -57
- package/dist/models/TaskDto.js.map +1 -1
- package/dist/models/TaskExecutionDto.d.ts +25 -25
- package/dist/models/TaskExecutionDto.js +59 -61
- package/dist/models/TaskExecutionDto.js.map +1 -1
- package/dist/models/UpdateJobDto.d.ts +28 -25
- package/dist/models/UpdateJobDto.js +83 -65
- package/dist/models/UpdateJobDto.js.map +1 -1
- package/dist/models/UpdateTaskDto.d.ts +21 -11
- package/dist/models/UpdateTaskDto.js +47 -45
- package/dist/models/UpdateTaskDto.js.map +1 -1
- package/dist/models/UpdateVariableDto.d.ts +22 -17
- package/dist/models/UpdateVariableDto.js +47 -49
- package/dist/models/UpdateVariableDto.js.map +1 -1
- package/dist/models/VariableDto.d.ts +26 -24
- package/dist/models/VariableDto.js +65 -61
- package/dist/models/VariableDto.js.map +1 -1
- package/dist/models/all.d.ts +25 -0
- package/dist/models/all.js +42 -0
- package/dist/models/all.js.map +1 -0
- package/dist/rxjsStub.d.ts +10 -0
- package/dist/rxjsStub.js +33 -0
- package/dist/rxjsStub.js.map +1 -0
- package/dist/servers.d.ts +17 -0
- package/dist/servers.js +32 -0
- package/dist/servers.js.map +1 -0
- package/dist/types/ObjectParamAPI.d.ts +160 -0
- package/dist/types/ObjectParamAPI.js +129 -0
- package/dist/types/ObjectParamAPI.js.map +1 -0
- package/dist/types/ObservableAPI.d.ts +89 -0
- package/dist/types/ObservableAPI.js +642 -0
- package/dist/types/ObservableAPI.js.map +1 -0
- package/dist/types/PromiseAPI.d.ts +76 -0
- package/dist/types/PromiseAPI.js +148 -0
- package/dist/types/PromiseAPI.js.map +1 -0
- package/dist/util.d.ts +2 -0
- package/dist/util.js +29 -0
- package/dist/util.js.map +1 -0
- package/git_push.sh +51 -0
- package/http/http.ts +229 -0
- package/http/isomorphic-fetch.ts +32 -0
- package/index.ts +12 -5
- package/middleware.ts +66 -0
- package/models/CreateJobDto.ts +88 -144
- package/models/CreateJobExecutionDto.ts +29 -63
- package/models/CreateTaskDto.ts +43 -82
- package/models/CreateVariableDto.ts +46 -92
- package/models/FileDto.ts +53 -101
- package/models/FindVariablesRequest.ts +50 -55
- package/models/GetFiles200Response.ts +37 -82
- package/models/GetJobExecutionById400Response.ts +15 -45
- package/models/GetJobExecutions200Response.ts +37 -82
- package/models/GetJobs200Response.ts +37 -82
- package/models/GetTasks200Response.ts +37 -82
- package/models/GetVariables200Response.ts +37 -82
- package/models/HighOrderQuery.ts +30 -75
- package/models/JobDto.ts +117 -188
- package/models/JobExecutionDto.ts +95 -154
- package/models/LowOrderQuery.ts +44 -99
- package/models/LowOrderQueryValue.ts +29 -0
- package/models/ObjectSerializer.ts +324 -0
- package/models/PatchTaskExecutionDto.ts +36 -78
- package/models/Query.ts +18 -65
- package/models/TaskDto.ts +74 -128
- package/models/TaskExecutionDto.ts +68 -131
- package/models/UpdateJobDto.ts +95 -153
- package/models/UpdateTaskDto.ts +50 -91
- package/models/UpdateVariableDto.ts +53 -101
- package/models/VariableDto.ts +75 -136
- package/models/all.ts +25 -0
- package/package.json +35 -10
- package/rxjsStub.ts +27 -0
- package/servers.ts +55 -0
- package/types/ObjectParamAPI.ts +580 -0
- package/types/ObservableAPI.ts +701 -0
- package/types/PromiseAPI.ts +370 -0
- package/util.ts +37 -0
- package/apis/index.ts +0 -8
- package/dist/apis/index.d.ts +0 -6
- package/dist/apis/index.js +0 -23
- package/dist/apis/index.js.map +0 -1
- package/dist/models/FileControllerGetFiles200Response.d.ts +0 -14
- package/dist/models/FileControllerGetFiles200Response.js +0 -43
- package/dist/models/FileControllerGetFiles200Response.js.map +0 -1
- package/dist/models/JobControllerList200Response.d.ts +0 -14
- package/dist/models/JobControllerList200Response.js +0 -43
- package/dist/models/JobControllerList200Response.js.map +0 -1
- package/dist/models/JobDtoPeriodicityInner.d.ts +0 -8
- package/dist/models/JobDtoPeriodicityInner.js +0 -37
- package/dist/models/JobDtoPeriodicityInner.js.map +0 -1
- package/dist/models/JobDtoTasksInner.d.ts +0 -14
- package/dist/models/JobDtoTasksInner.js +0 -45
- package/dist/models/JobDtoTasksInner.js.map +0 -1
- package/dist/models/JobDtoTitleLocal.d.ts +0 -8
- package/dist/models/JobDtoTitleLocal.js +0 -37
- package/dist/models/JobDtoTitleLocal.js.map +0 -1
- package/dist/models/JobExecutionControllerGetOne400Response.d.ts +0 -7
- package/dist/models/JobExecutionControllerGetOne400Response.js +0 -35
- package/dist/models/JobExecutionControllerGetOne400Response.js.map +0 -1
- package/dist/models/JobExecutionControllerList200Response.d.ts +0 -14
- package/dist/models/JobExecutionControllerList200Response.js +0 -43
- package/dist/models/JobExecutionControllerList200Response.js.map +0 -1
- package/dist/models/JobExecutionDtoInfo.d.ts +0 -7
- package/dist/models/JobExecutionDtoInfo.js +0 -35
- package/dist/models/JobExecutionDtoInfo.js.map +0 -1
- package/dist/models/TaskControllerList200Response.d.ts +0 -14
- package/dist/models/TaskControllerList200Response.js +0 -43
- package/dist/models/TaskControllerList200Response.js.map +0 -1
- package/dist/models/TaskDtoInputKeysInner.d.ts +0 -8
- package/dist/models/TaskDtoInputKeysInner.js +0 -37
- package/dist/models/TaskDtoInputKeysInner.js.map +0 -1
- package/dist/models/VariableControllerList200Response.d.ts +0 -14
- package/dist/models/VariableControllerList200Response.js +0 -43
- package/dist/models/VariableControllerList200Response.js.map +0 -1
- package/dist/models/index.d.ts +0 -24
- package/dist/models/index.js +0 -41
- package/dist/models/index.js.map +0 -1
- package/dist/runtime.d.ts +0 -154
- package/dist/runtime.js +0 -306
- package/dist/runtime.js.map +0 -1
- package/models/ExecuteJob400Response.ts +0 -65
- package/models/ExecuteJobDto.ts +0 -97
- package/models/ExecuteJobDtoInfo.ts +0 -65
- package/models/ExecuteJobDtoJob.ts +0 -81
- package/models/FileControllerGetFiles200Response.ts +0 -98
- package/models/FileCreatedDto.ts +0 -111
- package/models/JobControllerList200Response.ts +0 -98
- package/models/JobDtoPeriodicitiesInner.ts +0 -73
- package/models/JobDtoPeriodicityInner.ts +0 -73
- package/models/JobDtoProject.ts +0 -73
- package/models/JobDtoTasksInner.ts +0 -105
- package/models/JobDtoTitleLocal.ts +0 -73
- package/models/JobExecutionControllerGetOne400Response.ts +0 -65
- package/models/JobExecutionControllerList200Response.ts +0 -98
- package/models/JobExecutionDtoEventsInner.ts +0 -89
- package/models/JobExecutionDtoInfo.ts +0 -65
- package/models/JobExecutionDtoJob.ts +0 -81
- package/models/TaskControllerList200Response.ts +0 -98
- package/models/TaskDtoInputKeysInner.ts +0 -73
- package/models/TaskInstanceDto.ts +0 -143
- package/models/TaskInstanceUpdateDto.ts +0 -107
- package/models/VariableControllerList200Response.ts +0 -98
- package/models/index.ts +0 -26
- package/runtime.ts +0 -425
package/dist/apis/JobApi.js
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
18
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
19
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -8,181 +23,525 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
23
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
24
|
});
|
|
10
25
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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;
|
|
29
47
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
headers: headerParameters,
|
|
34
|
-
query: queryParameters,
|
|
35
|
-
body: (0, models_1.CreateJobDtoToJSON)(requestParameters.createJobDto),
|
|
36
|
-
}, initOverrides);
|
|
37
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.JobDtoFromJSON)(jsonValue));
|
|
38
|
-
});
|
|
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 };
|
|
39
51
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.JobApiResponseProcessor = exports.JobApiRequestFactory = void 0;
|
|
55
|
+
var baseapi_1 = require("./baseapi");
|
|
56
|
+
var http_1 = require("../http/http");
|
|
57
|
+
var FormData = require("form-data");
|
|
58
|
+
var url_1 = require("url");
|
|
59
|
+
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
60
|
+
var exception_1 = require("./exception");
|
|
61
|
+
var util_1 = require("../util");
|
|
62
|
+
var JobApiRequestFactory = (function (_super) {
|
|
63
|
+
__extends(JobApiRequestFactory, _super);
|
|
64
|
+
function JobApiRequestFactory() {
|
|
65
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
45
66
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
JobApiRequestFactory.prototype.createJob = function (createJobDto, _options) {
|
|
68
|
+
var _a, _b, _c;
|
|
69
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
71
|
+
return __generator(this, function (_d) {
|
|
72
|
+
switch (_d.label) {
|
|
73
|
+
case 0:
|
|
74
|
+
_config = _options || this.configuration;
|
|
75
|
+
if (createJobDto === null || createJobDto === undefined) {
|
|
76
|
+
throw new baseapi_1.RequiredError("JobApi", "createJob", "createJobDto");
|
|
77
|
+
}
|
|
78
|
+
localVarPath = '/v1/data_factory/jobs';
|
|
79
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
80
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
81
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
82
|
+
"application/json"
|
|
83
|
+
]);
|
|
84
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
85
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createJobDto, "CreateJobDto", ""), contentType);
|
|
86
|
+
requestContext.setBody(serializedBody);
|
|
87
|
+
authMethod = _config.authMethods["ApiKeyAuthQuery"];
|
|
88
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
89
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
90
|
+
case 1:
|
|
91
|
+
_d.sent();
|
|
92
|
+
_d.label = 2;
|
|
93
|
+
case 2:
|
|
94
|
+
authMethod = _config.authMethods["ApiKeyAuthHeader"];
|
|
95
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
|
|
96
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
97
|
+
case 3:
|
|
98
|
+
_d.sent();
|
|
99
|
+
_d.label = 4;
|
|
100
|
+
case 4:
|
|
101
|
+
defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
|
|
102
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
|
|
103
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
104
|
+
case 5:
|
|
105
|
+
_d.sent();
|
|
106
|
+
_d.label = 6;
|
|
107
|
+
case 6: return [2, requestContext];
|
|
108
|
+
}
|
|
109
|
+
});
|
|
66
110
|
});
|
|
67
|
-
}
|
|
68
|
-
getJobById(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
111
|
+
};
|
|
112
|
+
JobApiRequestFactory.prototype.getJobById = function (id, _options) {
|
|
113
|
+
var _a, _b, _c;
|
|
114
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
115
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
116
|
+
return __generator(this, function (_d) {
|
|
117
|
+
switch (_d.label) {
|
|
118
|
+
case 0:
|
|
119
|
+
_config = _options || this.configuration;
|
|
120
|
+
if (id === null || id === undefined) {
|
|
121
|
+
throw new baseapi_1.RequiredError("JobApi", "getJobById", "id");
|
|
122
|
+
}
|
|
123
|
+
localVarPath = '/v1/data_factory/jobs/{id}'
|
|
124
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
125
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
126
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
127
|
+
authMethod = _config.authMethods["ApiKeyAuthQuery"];
|
|
128
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
129
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
130
|
+
case 1:
|
|
131
|
+
_d.sent();
|
|
132
|
+
_d.label = 2;
|
|
133
|
+
case 2:
|
|
134
|
+
authMethod = _config.authMethods["ApiKeyAuthHeader"];
|
|
135
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
|
|
136
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
137
|
+
case 3:
|
|
138
|
+
_d.sent();
|
|
139
|
+
_d.label = 4;
|
|
140
|
+
case 4:
|
|
141
|
+
defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
|
|
142
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
|
|
143
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
144
|
+
case 5:
|
|
145
|
+
_d.sent();
|
|
146
|
+
_d.label = 6;
|
|
147
|
+
case 6: return [2, requestContext];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
72
150
|
});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
151
|
+
};
|
|
152
|
+
JobApiRequestFactory.prototype.getJobs = function (size, page, _options) {
|
|
153
|
+
var _a, _b, _c;
|
|
154
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
155
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
156
|
+
return __generator(this, function (_d) {
|
|
157
|
+
switch (_d.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
_config = _options || this.configuration;
|
|
160
|
+
localVarPath = '/v1/data_factory/jobs';
|
|
161
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
162
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
163
|
+
if (size !== undefined) {
|
|
164
|
+
requestContext.setQueryParam("size", ObjectSerializer_1.ObjectSerializer.serialize(size, "number", ""));
|
|
165
|
+
}
|
|
166
|
+
if (page !== undefined) {
|
|
167
|
+
requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
|
|
168
|
+
}
|
|
169
|
+
authMethod = _config.authMethods["ApiKeyAuthQuery"];
|
|
170
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
171
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
172
|
+
case 1:
|
|
173
|
+
_d.sent();
|
|
174
|
+
_d.label = 2;
|
|
175
|
+
case 2:
|
|
176
|
+
authMethod = _config.authMethods["ApiKeyAuthHeader"];
|
|
177
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
|
|
178
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
179
|
+
case 3:
|
|
180
|
+
_d.sent();
|
|
181
|
+
_d.label = 4;
|
|
182
|
+
case 4:
|
|
183
|
+
defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
|
|
184
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
|
|
185
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
186
|
+
case 5:
|
|
187
|
+
_d.sent();
|
|
188
|
+
_d.label = 6;
|
|
189
|
+
case 6: return [2, requestContext];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
97
192
|
});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
193
|
+
};
|
|
194
|
+
JobApiRequestFactory.prototype.updateJob = function (id, updateJobDto, _options) {
|
|
195
|
+
var _a, _b, _c;
|
|
196
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
197
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
198
|
+
return __generator(this, function (_d) {
|
|
199
|
+
switch (_d.label) {
|
|
200
|
+
case 0:
|
|
201
|
+
_config = _options || this.configuration;
|
|
202
|
+
if (id === null || id === undefined) {
|
|
203
|
+
throw new baseapi_1.RequiredError("JobApi", "updateJob", "id");
|
|
204
|
+
}
|
|
205
|
+
if (updateJobDto === null || updateJobDto === undefined) {
|
|
206
|
+
throw new baseapi_1.RequiredError("JobApi", "updateJob", "updateJobDto");
|
|
207
|
+
}
|
|
208
|
+
localVarPath = '/v1/data_factory/jobs/{id}'
|
|
209
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
210
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
211
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
212
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
213
|
+
"application/json"
|
|
214
|
+
]);
|
|
215
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
216
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateJobDto, "UpdateJobDto", ""), contentType);
|
|
217
|
+
requestContext.setBody(serializedBody);
|
|
218
|
+
authMethod = _config.authMethods["ApiKeyAuthQuery"];
|
|
219
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
220
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
221
|
+
case 1:
|
|
222
|
+
_d.sent();
|
|
223
|
+
_d.label = 2;
|
|
224
|
+
case 2:
|
|
225
|
+
authMethod = _config.authMethods["ApiKeyAuthHeader"];
|
|
226
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
|
|
227
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
228
|
+
case 3:
|
|
229
|
+
_d.sent();
|
|
230
|
+
_d.label = 4;
|
|
231
|
+
case 4:
|
|
232
|
+
defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
|
|
233
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
|
|
234
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
235
|
+
case 5:
|
|
236
|
+
_d.sent();
|
|
237
|
+
_d.label = 6;
|
|
238
|
+
case 6: return [2, requestContext];
|
|
239
|
+
}
|
|
240
|
+
});
|
|
103
241
|
});
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
242
|
+
};
|
|
243
|
+
JobApiRequestFactory.prototype.updateJobZip = function (id, file, _options) {
|
|
244
|
+
var _a, _b, _c;
|
|
245
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
246
|
+
var _config, localVarPath, requestContext, useForm, localVarFormParams, contentType, authMethod, defaultAuth;
|
|
247
|
+
return __generator(this, function (_d) {
|
|
248
|
+
switch (_d.label) {
|
|
249
|
+
case 0:
|
|
250
|
+
_config = _options || this.configuration;
|
|
251
|
+
if (id === null || id === undefined) {
|
|
252
|
+
throw new baseapi_1.RequiredError("JobApi", "updateJobZip", "id");
|
|
253
|
+
}
|
|
254
|
+
if (file === null || file === undefined) {
|
|
255
|
+
throw new baseapi_1.RequiredError("JobApi", "updateJobZip", "file");
|
|
256
|
+
}
|
|
257
|
+
localVarPath = '/v1/data_factory/jobs/{id}/zip'
|
|
258
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
259
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
260
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
261
|
+
useForm = (0, util_1.canConsumeForm)([
|
|
262
|
+
'multipart/form-data',
|
|
263
|
+
]);
|
|
264
|
+
if (useForm) {
|
|
265
|
+
localVarFormParams = new FormData();
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
localVarFormParams = new url_1.URLSearchParams();
|
|
269
|
+
}
|
|
270
|
+
if (file !== undefined) {
|
|
271
|
+
if (localVarFormParams instanceof FormData) {
|
|
272
|
+
localVarFormParams.append('file', file.data, file.name);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
requestContext.setBody(localVarFormParams);
|
|
276
|
+
if (!useForm) {
|
|
277
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
278
|
+
"multipart/form-data"
|
|
279
|
+
]);
|
|
280
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
281
|
+
}
|
|
282
|
+
authMethod = _config.authMethods["ApiKeyAuthQuery"];
|
|
283
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
284
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
285
|
+
case 1:
|
|
286
|
+
_d.sent();
|
|
287
|
+
_d.label = 2;
|
|
288
|
+
case 2:
|
|
289
|
+
authMethod = _config.authMethods["ApiKeyAuthHeader"];
|
|
290
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 4];
|
|
291
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
292
|
+
case 3:
|
|
293
|
+
_d.sent();
|
|
294
|
+
_d.label = 4;
|
|
295
|
+
case 4:
|
|
296
|
+
defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
|
|
297
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 6];
|
|
298
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
299
|
+
case 5:
|
|
300
|
+
_d.sent();
|
|
301
|
+
_d.label = 6;
|
|
302
|
+
case 6: return [2, requestContext];
|
|
303
|
+
}
|
|
304
|
+
});
|
|
130
305
|
});
|
|
306
|
+
};
|
|
307
|
+
return JobApiRequestFactory;
|
|
308
|
+
}(baseapi_1.BaseAPIRequestFactory));
|
|
309
|
+
exports.JobApiRequestFactory = JobApiRequestFactory;
|
|
310
|
+
var JobApiResponseProcessor = (function () {
|
|
311
|
+
function JobApiResponseProcessor() {
|
|
131
312
|
}
|
|
132
|
-
|
|
133
|
-
return __awaiter(this, void 0, void 0, function
|
|
134
|
-
|
|
135
|
-
return
|
|
313
|
+
JobApiResponseProcessor.prototype.createJob = function (response) {
|
|
314
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
315
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
316
|
+
return __generator(this, function (_q) {
|
|
317
|
+
switch (_q.label) {
|
|
318
|
+
case 0:
|
|
319
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
320
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
321
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
322
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
323
|
+
return [4, response.body.text()];
|
|
324
|
+
case 1:
|
|
325
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
326
|
+
"JobDto", ""]);
|
|
327
|
+
return [2, body];
|
|
328
|
+
case 2:
|
|
329
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
330
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
331
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
332
|
+
return [4, response.body.text()];
|
|
333
|
+
case 3:
|
|
334
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
335
|
+
"GetJobExecutionById400Response", ""]);
|
|
336
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
337
|
+
case 4:
|
|
338
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
339
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
340
|
+
}
|
|
341
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
342
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
343
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
344
|
+
return [4, response.body.text()];
|
|
345
|
+
case 5:
|
|
346
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
347
|
+
"JobDto", ""]);
|
|
348
|
+
return [2, body];
|
|
349
|
+
case 6:
|
|
350
|
+
_o = exception_1.ApiException.bind;
|
|
351
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
352
|
+
return [4, response.getBodyAsAny()];
|
|
353
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
354
|
+
}
|
|
355
|
+
});
|
|
136
356
|
});
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return __awaiter(this, void 0, void 0, function
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
357
|
+
};
|
|
358
|
+
JobApiResponseProcessor.prototype.getJobById = function (response) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
360
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
361
|
+
return __generator(this, function (_q) {
|
|
362
|
+
switch (_q.label) {
|
|
363
|
+
case 0:
|
|
364
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
365
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
366
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
367
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
368
|
+
return [4, response.body.text()];
|
|
369
|
+
case 1:
|
|
370
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
371
|
+
"JobDto", ""]);
|
|
372
|
+
return [2, body];
|
|
373
|
+
case 2:
|
|
374
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
375
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
376
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
377
|
+
return [4, response.body.text()];
|
|
378
|
+
case 3:
|
|
379
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
380
|
+
"GetJobExecutionById400Response", ""]);
|
|
381
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
382
|
+
case 4:
|
|
383
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
384
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
385
|
+
}
|
|
386
|
+
if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
|
|
387
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not found", undefined, response.headers);
|
|
388
|
+
}
|
|
389
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
390
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
391
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
392
|
+
return [4, response.body.text()];
|
|
393
|
+
case 5:
|
|
394
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
395
|
+
"JobDto", ""]);
|
|
396
|
+
return [2, body];
|
|
397
|
+
case 6:
|
|
398
|
+
_o = exception_1.ApiException.bind;
|
|
399
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
400
|
+
return [4, response.getBodyAsAny()];
|
|
401
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
402
|
+
}
|
|
403
|
+
});
|
|
178
404
|
});
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
return __awaiter(this, void 0, void 0, function
|
|
182
|
-
|
|
183
|
-
return
|
|
405
|
+
};
|
|
406
|
+
JobApiResponseProcessor.prototype.getJobs = function (response) {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
408
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
409
|
+
return __generator(this, function (_q) {
|
|
410
|
+
switch (_q.label) {
|
|
411
|
+
case 0:
|
|
412
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
413
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
414
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
415
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
416
|
+
return [4, response.body.text()];
|
|
417
|
+
case 1:
|
|
418
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
419
|
+
"GetJobs200Response", ""]);
|
|
420
|
+
return [2, body];
|
|
421
|
+
case 2:
|
|
422
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
423
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
424
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
425
|
+
return [4, response.body.text()];
|
|
426
|
+
case 3:
|
|
427
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
428
|
+
"GetJobExecutionById400Response", ""]);
|
|
429
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
430
|
+
case 4:
|
|
431
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
432
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
433
|
+
}
|
|
434
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
435
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
436
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
437
|
+
return [4, response.body.text()];
|
|
438
|
+
case 5:
|
|
439
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
440
|
+
"GetJobs200Response", ""]);
|
|
441
|
+
return [2, body];
|
|
442
|
+
case 6:
|
|
443
|
+
_o = exception_1.ApiException.bind;
|
|
444
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
445
|
+
return [4, response.getBodyAsAny()];
|
|
446
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
447
|
+
}
|
|
448
|
+
});
|
|
184
449
|
});
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
450
|
+
};
|
|
451
|
+
JobApiResponseProcessor.prototype.updateJob = function (response) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
453
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
454
|
+
return __generator(this, function (_q) {
|
|
455
|
+
switch (_q.label) {
|
|
456
|
+
case 0:
|
|
457
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
458
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
459
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
460
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
461
|
+
return [4, response.body.text()];
|
|
462
|
+
case 1:
|
|
463
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
464
|
+
"JobDto", ""]);
|
|
465
|
+
return [2, body];
|
|
466
|
+
case 2:
|
|
467
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
468
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
469
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
470
|
+
return [4, response.body.text()];
|
|
471
|
+
case 3:
|
|
472
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
473
|
+
"GetJobExecutionById400Response", ""]);
|
|
474
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
475
|
+
case 4:
|
|
476
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
477
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
478
|
+
}
|
|
479
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
480
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
481
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
482
|
+
return [4, response.body.text()];
|
|
483
|
+
case 5:
|
|
484
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
485
|
+
"JobDto", ""]);
|
|
486
|
+
return [2, body];
|
|
487
|
+
case 6:
|
|
488
|
+
_o = exception_1.ApiException.bind;
|
|
489
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
490
|
+
return [4, response.getBodyAsAny()];
|
|
491
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
};
|
|
496
|
+
JobApiResponseProcessor.prototype.updateJobZip = function (response) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
498
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
499
|
+
return __generator(this, function (_q) {
|
|
500
|
+
switch (_q.label) {
|
|
501
|
+
case 0:
|
|
502
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
503
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
504
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
505
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
506
|
+
return [4, response.body.text()];
|
|
507
|
+
case 1:
|
|
508
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
509
|
+
"JobDto", ""]);
|
|
510
|
+
return [2, body];
|
|
511
|
+
case 2:
|
|
512
|
+
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
513
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request - Malformed syntax", undefined, response.headers);
|
|
514
|
+
}
|
|
515
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
516
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
517
|
+
}
|
|
518
|
+
if (!(0, util_1.isCodeInRange)("413", response.httpStatusCode)) return [3, 4];
|
|
519
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
520
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
521
|
+
return [4, response.body.text()];
|
|
522
|
+
case 3:
|
|
523
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
524
|
+
"GetJobExecutionById400Response", ""]);
|
|
525
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Request Entity Too Large", body, response.headers);
|
|
526
|
+
case 4:
|
|
527
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
528
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
529
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
530
|
+
return [4, response.body.text()];
|
|
531
|
+
case 5:
|
|
532
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
533
|
+
"JobDto", ""]);
|
|
534
|
+
return [2, body];
|
|
535
|
+
case 6:
|
|
536
|
+
_o = exception_1.ApiException.bind;
|
|
537
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
538
|
+
return [4, response.getBodyAsAny()];
|
|
539
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
};
|
|
544
|
+
return JobApiResponseProcessor;
|
|
545
|
+
}());
|
|
546
|
+
exports.JobApiResponseProcessor = JobApiResponseProcessor;
|
|
188
547
|
//# sourceMappingURL=JobApi.js.map
|