navidev-adt-api
Version:
API de conexión al Abap Developer Tools
61 lines (60 loc) • 2.58 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const adtConnection_1 = require("../adtConnection/adtConnection");
const atcApp_1 = __importDefault(require("./atcApp"));
__exportStar(require("./atcTypes"), exports);
class AdtAtc {
constructor(logonData) {
this.connectionController = new adtConnection_1.AdtConnection(logonData);
this.atcApp = new atcApp_1.default(this.connectionController);
}
/**
* Obtiene la parametrización
*/
getCustomizing() {
return __awaiter(this, void 0, void 0, function* () {
return this.atcApp.getCustomizing();
});
}
getDefaultVariant() {
return __awaiter(this, void 0, void 0, function* () {
return this.atcApp.getDefaultVariant();
});
}
/**
* Devuelve el id de worklist en los procesos donde se usa el ATC
* @returns
*/
getWorklist() {
return __awaiter(this, void 0, void 0, function* () {
return this.atcApp.getWorklist();
});
}
}
exports.default = AdtAtc;