UNPKG

@ournet/news-data

Version:
25 lines (24 loc) 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const dynamo_news_repository_1 = require("./news/dynamo-news-repository"); const dynamo_event_repository_1 = require("./events/dynamo-event-repository"); const dynamo_article_content_repository_1 = require("./article-content/dynamo-article-content-repository"); const VERSION_SUFFIX = "v0"; class NewsRepositoryBuilder { static build(client, esHost, tableSuffix) { return new dynamo_news_repository_1.DynamoNewsRepository(client, esHost, tableSuffix || VERSION_SUFFIX); } } exports.NewsRepositoryBuilder = NewsRepositoryBuilder; class EventRepositoryBuilder { static build(client, tableSuffix) { return new dynamo_event_repository_1.DynamoEventRepository(client, tableSuffix || VERSION_SUFFIX); } } exports.EventRepositoryBuilder = EventRepositoryBuilder; class ArticleContentRepositoryBuilder { static build(client, tableSuffix) { return new dynamo_article_content_repository_1.DynamoArticleContentRepository(client, tableSuffix || VERSION_SUFFIX); } } exports.ArticleContentRepositoryBuilder = ArticleContentRepositoryBuilder;