@golemio/pid
Version:
Golemio PID Module
35 lines • 2.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.JISContainer = void 0;
const Di_1 = require("../../ioc/Di");
const JISInfotextsDataSourceFactory_1 = require("../datasources/JISInfotextsDataSourceFactory");
const JISInfotextsRepository_1 = require("../repositories/JISInfotextsRepository");
const JISInfotextsRopidGTFSStopsRepository_1 = require("../repositories/JISInfotextsRopidGTFSStopsRepository");
const JISMetadataRepository_1 = require("../repositories/JISMetadataRepository");
const JISInfotextsDataService_1 = require("../services/JISInfotextsDataService");
const JISInfotextsTransformation_1 = require("../transformations/JISInfotextsTransformation");
const RefreshJISInfotextsTask_1 = require("../workers/tasks/RefreshJISInfotextsTask");
const JISContainerToken_1 = require("./JISContainerToken");
const FetchJISInfotextsTask_1 = require("../workers/tasks/FetchJISInfotextsTask");
//#region Initialization
const JISContainer = Di_1.PidContainer.createChildContainer();
exports.JISContainer = JISContainer;
//#endregion
//#region Data Sources
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotextsDataSourceFactory, JISInfotextsDataSourceFactory_1.JISInfotextsDataSourceFactory);
//#endregion
//#region Repositories
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotextsRepository, JISInfotextsRepository_1.JISInfotextsRepository);
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotextsRopidGTFSStopsRepository, JISInfotextsRopidGTFSStopsRepository_1.JISInfotextsRopidGTFSStopsRepository);
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISMetadataRepository, JISMetadataRepository_1.JISMetadataRepository);
//#endregion
//#region Services
JISContainer.register(JISContainerToken_1.JISContainerToken.JISInfotextsDataService, JISInfotextsDataService_1.JISInfotextsDataService);
//#endregion
//#region Tasks
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.RefreshJISInfotextsTask, RefreshJISInfotextsTask_1.RefreshJISInfotextsTask);
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.FetchJISInfotextsTask, FetchJISInfotextsTask_1.FetchJISInfotextsTask);
//#endregion
//#region Transformations
JISContainer.registerSingleton(JISContainerToken_1.JISContainerToken.JISInfotextsTransformation, JISInfotextsTransformation_1.JISInfotextsTransformation);
//# sourceMappingURL=Di.js.map