1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
|
4 | var experimental_executions_1 = require("./execution/experimental-executions");
|
5 | var attributesMapLoader_1 = require("./utils/attributesMapLoader");
|
6 | var execute_afm_1 = require("./execution/execute-afm");
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | var ExecutionModule = (function () {
|
15 | function ExecutionModule(xhr, md) {
|
16 | this.executeAfmModule = new execute_afm_1.ExecuteAfmModule(xhr);
|
17 | this.executeAfm = this.executeAfmModule.executeAfm.bind(this.executeAfmModule);
|
18 | this.getExecutionResponse = this.executeAfmModule.getExecutionResponse.bind(this.executeAfmModule);
|
19 | this._executeVisualization = this.executeAfmModule._executeVisualization.bind(this.executeAfmModule);
|
20 | this._getVisExecutionResponse = this.executeAfmModule._getVisExecutionResponse.bind(this.executeAfmModule);
|
21 | this.getPartialExecutionResult = this.executeAfmModule.getPartialExecutionResult.bind(this.executeAfmModule);
|
22 | this.getExecutionResult = this.executeAfmModule.getExecutionResult.bind(this.executeAfmModule);
|
23 | this.xhr = xhr;
|
24 | this.md = md;
|
25 | }
|
26 | ExecutionModule.prototype.getData = function (projectId, columns, executionConfiguration, settings) {
|
27 | if (executionConfiguration === void 0) { executionConfiguration = {}; }
|
28 | if (settings === void 0) { settings = {}; }
|
29 | return this.getExperimentalExecutionsModule().getData(projectId, columns, executionConfiguration, settings);
|
30 | };
|
31 | ExecutionModule.prototype.mdToExecutionDefinitionsAndColumns = function (projectId, mdObj, options) {
|
32 | if (options === void 0) { options = {}; }
|
33 | return this.getExperimentalExecutionsModule().mdToExecutionDefinitionsAndColumns(projectId, mdObj, options);
|
34 | };
|
35 | ExecutionModule.prototype.getExperimentalExecutionsModule = function () {
|
36 | var loaderModule = new attributesMapLoader_1.AttributesMapLoaderModule(this.md);
|
37 | return new experimental_executions_1.ExperimentalExecutionsModule(this.xhr, loaderModule.loadAttributesMap.bind(loaderModule));
|
38 | };
|
39 | return ExecutionModule;
|
40 | }());
|
41 | exports.ExecutionModule = ExecutionModule;
|