@product-live/api-sdk 2.5.1 → 2.8.1

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