UNPKG

ravendb

Version:
23 lines 958 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ElasticSearchEtlConfiguration = void 0; const EtlConfiguration_js_1 = require("../EtlConfiguration.js"); class ElasticSearchEtlConfiguration extends EtlConfiguration_js_1.EtlConfiguration { elasticIndexes; etlType = "ElasticSearch"; serialize(conventions) { const result = super.serialize(conventions); result.EtlType = this.etlType; result.ElasticIndexes = this.elasticIndexes ? this.elasticIndexes.map(this.serializeSearchIndex) : null; return result; } serializeSearchIndex(searchIndex) { return { IndexName: searchIndex.indexName, DocumentIdProperty: searchIndex.documentIdProperty, InsertOnlyMode: searchIndex.insertOnlyMode }; } } exports.ElasticSearchEtlConfiguration = ElasticSearchEtlConfiguration; //# sourceMappingURL=ElasticSearchEtlConfiguration.js.map