@wbg-mde/r-factory
Version:
Metadata editor R integration module
29 lines (28 loc) • 1.27 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const repository_1 = require("@wbg-mde/repository");
const api_helper_1 = require("../shared/api-helper");
let Stringlength = class Stringlength {
calcStringLength(variables, csvPath) {
return api_helper_1.APIHelper.call('stringLength', 'post', {
"listOfVariables": variables,
"datafile": csvPath
}).then((response) => {
return response.data;
});
}
};
Stringlength = __decorate([
repository_1.Trace({
params: {
calcStringLength: [0]
}
})
], Stringlength);
exports.Stringlength = Stringlength;