lambdaorm-base
Version:
24 lines • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SchemaStateBuilder = void 0;
const application_1 = require("../application");
class SchemaStateBuilder {
// eslint-disable-next-line no-useless-constructor
constructor(exp, facade, helper) {
this.exp = exp;
this.facade = facade;
this.helper = helper;
}
build() {
const source = new application_1.DataSourceConfigService();
const model = new application_1.DomainConfigService();
const mapping = new application_1.MappingsConfigService();
const stage = new application_1.StageConfigService();
const view = new application_1.ViewsConfigService();
const routeService = new application_1.RouteService(stage, this.exp);
const loadSchema = new application_1.LoadSchema(source, model, mapping, stage, view, this.helper);
return new application_1.SchemaState(source, model, mapping, stage, view, routeService, this.facade, loadSchema, this.helper);
}
}
exports.SchemaStateBuilder = SchemaStateBuilder;
//# sourceMappingURL=stateBuilder.js.map