@golemio/core 3.3.0-dev.2644036130 → 3.3.0-rc.2646964518
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/BaseApp.js.map +1 -1
- package/dist/helpers/ConfigLoader.js.map +1 -1
- package/dist/helpers/DateTime.js.map +1 -1
- package/dist/helpers/HealthCheck.js.map +1 -1
- package/dist/helpers/LightshipStarter.js +1 -2
- package/dist/helpers/LightshipStarter.js.map +1 -1
- package/dist/helpers/configuration/SimpleConfig.js.map +1 -1
- package/dist/helpers/data-access/amqp/AlternateExchangeCreator.js +1 -1
- package/dist/helpers/data-access/amqp/AlternateExchangeCreator.js.map +1 -1
- package/dist/helpers/data-access/amqp/AmqpConnector.js +2 -1
- package/dist/helpers/data-access/amqp/AmqpConnector.js.map +1 -1
- package/dist/helpers/data-access/azure/AbstractAzureService.js.map +1 -1
- package/dist/helpers/data-access/azure/AzureBearerTokenProvider.js.map +1 -1
- package/dist/helpers/data-access/azure/buildBearerTokenProvider.js.map +1 -1
- package/dist/helpers/data-access/feature-flags/FeatureFlagServiceFactory.js.map +1 -1
- package/dist/helpers/data-access/opensearch/OpenSearchConnector.js.map +1 -1
- package/dist/helpers/data-access/opensearch/OpenSearchService.js.map +1 -1
- package/dist/helpers/data-access/opensearch/OpenSearchSyncOrchestrator.js +1 -1
- package/dist/helpers/data-access/opensearch/OpenSearchSyncOrchestrator.js.map +1 -1
- package/dist/helpers/data-access/opensearch/czechAnalyzer.d.ts +6 -0
- package/dist/helpers/data-access/opensearch/czechAnalyzer.js +30 -0
- package/dist/helpers/data-access/opensearch/czechAnalyzer.js.map +1 -0
- package/dist/helpers/data-access/opensearch/index.d.ts +1 -5
- package/dist/helpers/data-access/opensearch/index.js +5 -9
- package/dist/helpers/data-access/opensearch/index.js.map +1 -1
- package/dist/helpers/data-access/postgres/DatabaseConnector.js +3 -10
- package/dist/helpers/data-access/postgres/DatabaseConnector.js.map +1 -1
- package/dist/helpers/data-access/postgres/IDatabaseInfo.d.ts +0 -1
- package/dist/helpers/data-access/postgres/repositories/AbstractCachedRepository.js.map +1 -1
- package/dist/helpers/data-access/pubsub/subscribers/AbstractSubscriber.d.ts +1 -0
- package/dist/helpers/data-access/pubsub/subscribers/RedisSubscriber.js.map +1 -1
- package/dist/helpers/data-access/redis/IoRedisConnector.js.map +1 -1
- package/dist/helpers/data-access/storage/AbstractStorageService.d.ts +4 -0
- package/dist/helpers/data-access/storage/AzureBlobStorageService.d.ts +4 -0
- package/dist/helpers/data-access/storage/AzureBlobStorageService.js.map +1 -1
- package/dist/helpers/data-access/storage/NoopStorageService.d.ts +3 -0
- package/dist/helpers/data-access/storage/StorageServiceFactory.js.map +1 -1
- package/dist/helpers/data-access/table-storage/TableStorageServiceFactory.js.map +1 -1
- package/dist/helpers/data-access/table-storage/providers/AzureTableStorageService.js.map +1 -1
- package/dist/helpers/inspector/InspectorUtils.js.map +1 -1
- package/dist/helpers/logger/LoggerEmitter.d.ts +1 -0
- package/dist/helpers/logger/LoggerProvider.js.map +1 -1
- package/dist/helpers/logger/RequestLoggerProvider.js.map +1 -1
- package/dist/helpers/parser/queryParser.js.map +1 -1
- package/dist/helpers/routing/AbstractGeoJsonRouter.d.ts +1 -1
- package/dist/helpers/routing/AbstractGeoJsonRouter.js.map +1 -1
- package/dist/helpers/tools/memory/MemoryMonitor.d.ts +1 -0
- package/dist/helpers/tools/memory/MemoryMonitor.js +7 -17
- package/dist/helpers/tools/memory/MemoryMonitor.js.map +1 -1
- package/dist/helpers/tools/memory/MemoryMonitoringDecorator.js +3 -2
- package/dist/helpers/tools/memory/MemoryMonitoringDecorator.js.map +1 -1
- package/dist/helpers/tools/memory/examples/MemoryMonitoringExamples.js.map +1 -1
- package/dist/helpers/transformation/AbstractTransformation.js.map +1 -1
- package/dist/helpers/utils.js.map +1 -1
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/input-gateway/config/InputGatewayConfiguration.js +1 -2
- package/dist/input-gateway/config/InputGatewayConfiguration.js.map +1 -1
- package/dist/input-gateway/connectors/AMQPConnector.js +2 -3
- package/dist/input-gateway/connectors/AMQPConnector.js.map +1 -1
- package/dist/input-gateway/controllers/BaseController.js +1 -0
- package/dist/input-gateway/controllers/BaseController.js.map +1 -1
- package/dist/input-gateway/data-access/StorageServiceProvider.js +1 -2
- package/dist/input-gateway/data-access/StorageServiceProvider.js.map +1 -1
- package/dist/input-gateway/helpers/CheckContentTypeMiddleware.js.map +1 -1
- package/dist/input-gateway/helpers/ErrorPreprocessorMiddleware.js.map +1 -1
- package/dist/input-gateway/helpers/Logger.d.ts +1 -0
- package/dist/input-gateway/helpers/LoggerEmitterProvider.js +1 -2
- package/dist/input-gateway/helpers/LoggerEmitterProvider.js.map +1 -1
- package/dist/input-gateway/helpers/ResponseTimeMiddleware.js.map +1 -1
- package/dist/input-gateway/helpers/SaveRawDataMiddleware.js +1 -2
- package/dist/input-gateway/helpers/SaveRawDataMiddleware.js.map +1 -1
- package/dist/input-gateway/ioc/Di.js +1 -0
- package/dist/input-gateway/ioc/Di.js.map +1 -1
- package/dist/input-gateway/middleware/CsvParserMiddleware.js +1 -2
- package/dist/input-gateway/middleware/CsvParserMiddleware.js.map +1 -1
- package/dist/input-gateway/models/RedisModel.d.ts +1 -1
- package/dist/input-gateway/models/RedisModel.js.map +1 -1
- package/dist/integration-engine/config/IntegrationEngineConfiguration.js +3 -4
- package/dist/integration-engine/config/IntegrationEngineConfiguration.js.map +1 -1
- package/dist/integration-engine/connectors/AMQPConnector.js +3 -3
- package/dist/integration-engine/connectors/AMQPConnector.js.map +1 -1
- package/dist/integration-engine/connectors/index.js +4 -0
- package/dist/integration-engine/connectors/index.js.map +1 -1
- package/dist/integration-engine/data-access/RawDataStorage.js.map +1 -1
- package/dist/integration-engine/data-access/StorageServiceProvider.js +1 -2
- package/dist/integration-engine/data-access/StorageServiceProvider.js.map +1 -1
- package/dist/integration-engine/data-access/pubsub/subscribers/RedisSubscriber.js.map +1 -1
- package/dist/integration-engine/datasources/DataSource.js.map +1 -1
- package/dist/integration-engine/datasources/DataSourceStream.d.ts +1 -0
- package/dist/integration-engine/datasources/DataSourceStream.js.map +1 -1
- package/dist/integration-engine/datasources/DataSourceStreamManager.js.map +1 -1
- package/dist/integration-engine/datasources/DataSourceStreamed.js.map +1 -1
- package/dist/integration-engine/datasources/RetryDataSource.js.map +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/CSVDataTypeStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/JSONDataTypeStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/XMLDataTypeStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/ZipFileDataTypeStrategy.d.ts +2 -0
- package/dist/integration-engine/datasources/datatype-strategy/ZipFileDataTypeStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/index.d.ts +0 -5
- package/dist/integration-engine/datasources/index.js +0 -5
- package/dist/integration-engine/datasources/index.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/FTPProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/GoogleCloudStorageProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategyStreamed.d.ts +1 -4
- package/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategyStreamed.js +1 -30
- package/dist/integration-engine/datasources/protocol-strategy/HTTPRequestProtocolStrategyStreamed.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/IProtocolStrategy.d.ts +3 -0
- package/dist/integration-engine/datasources/protocol-strategy/PaginatedHTTPProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategy.js +2 -2
- package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategyStreamed.js +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategyStreamed.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/ProtocolStrategy.d.ts +0 -2
- package/dist/integration-engine/datasources/protocol-strategy/ProtocolStrategy.js +7 -42
- package/dist/integration-engine/datasources/protocol-strategy/ProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/SFTPProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/helpers/FTPFileProcessor.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/interfaces/IHTTPRequestSettings.d.ts +3 -0
- package/dist/integration-engine/helpers/FileCompressor.d.ts +2 -0
- package/dist/integration-engine/helpers/FileCompressor.js.map +1 -1
- package/dist/integration-engine/helpers/GeocodeApi.js +1 -2
- package/dist/integration-engine/helpers/GeocodeApi.js.map +1 -1
- package/dist/integration-engine/helpers/IntegrationErrorHandler.js.map +1 -1
- package/dist/integration-engine/helpers/Logger.d.ts +1 -0
- package/dist/integration-engine/helpers/LoggerEmitterProvider.js +1 -2
- package/dist/integration-engine/helpers/LoggerEmitterProvider.js.map +1 -1
- package/dist/integration-engine/ioc/Di.js +2 -2
- package/dist/integration-engine/ioc/Di.js.map +1 -1
- package/dist/integration-engine/models/PostgresModel.d.ts +1 -1
- package/dist/integration-engine/models/PostgresModel.js.map +1 -1
- package/dist/integration-engine/models/RedisModel.d.ts +1 -1
- package/dist/integration-engine/models/RedisModel.js.map +1 -1
- package/dist/integration-engine/models/postgres/AuditAttributeModel.js +5 -5
- package/dist/integration-engine/models/postgres/AuditAttributeModel.js.map +1 -1
- package/dist/integration-engine/queueprocessors/QueueProcessor.js.map +1 -1
- package/dist/integration-engine/queueprocessors/helpers.js.map +1 -1
- package/dist/integration-engine/transformations/BaseTransformation.js.map +1 -1
- package/dist/integration-engine/workers/AbstractTask.js.map +1 -1
- package/dist/integration-engine/workers/AbstractTaskJsonSchema.js.map +1 -1
- package/dist/integration-engine/workers/AbstractTaskWithoutValidation.js +1 -1
- package/dist/integration-engine/workers/AbstractTaskWithoutValidation.js.map +1 -1
- package/dist/integration-engine/workers/AbstractWorker.js +2 -2
- package/dist/integration-engine/workers/AbstractWorker.js.map +1 -1
- package/dist/integration-engine/workers/BaseWorker.d.ts +1 -1
- package/dist/integration-engine/workers/BaseWorker.js.map +1 -1
- package/dist/integration-engine/workers/helpers/AbortableTask.js.map +1 -1
- package/dist/integration-engine/workers/helpers/MessageDataParser.js.map +1 -1
- package/dist/integration-engine/workers/helpers/MessageDataValidator.js.map +1 -1
- package/dist/integration-engine/workers/webhooks/CloudflareCachePurgeWebhook.js.map +1 -1
- package/dist/monitoring/metrics/metrics-builder.js.map +1 -1
- package/dist/monitoring/metrics/metrics-middleware.js.map +1 -1
- package/dist/monitoring/metrics/metrics-service.d.ts +3 -2
- package/dist/monitoring/metrics/metrics-service.js.map +1 -1
- package/dist/monitoring/opentelemetry/instrumentation/configs/amqplib.js.map +1 -1
- package/dist/monitoring/opentelemetry/instrumentation/configs/aws-sdk.js.map +1 -1
- package/dist/monitoring/opentelemetry/instrumentation/configs/http.js.map +1 -1
- package/dist/monitoring/opentelemetry/trace-provider.js.map +1 -1
- package/dist/output-gateway/CacheHeaderMiddleware.d.ts +1 -0
- package/dist/output-gateway/CacheHeaderMiddleware.js +1 -2
- package/dist/output-gateway/CacheHeaderMiddleware.js.map +1 -1
- package/dist/output-gateway/CompressionByDefaultMiddleware.js +1 -2
- package/dist/output-gateway/CompressionByDefaultMiddleware.js.map +1 -1
- package/dist/output-gateway/Geo.js.map +1 -1
- package/dist/output-gateway/Logger.d.ts +1 -0
- package/dist/output-gateway/Utils.js.map +1 -1
- package/dist/output-gateway/Validation.js +1 -1
- package/dist/output-gateway/Validation.js.map +1 -1
- package/dist/output-gateway/config/OutputGatewayConfiguration.js +1 -2
- package/dist/output-gateway/config/OutputGatewayConfiguration.js.map +1 -1
- package/dist/output-gateway/ioc/Di.js +0 -1
- package/dist/output-gateway/ioc/Di.js.map +1 -1
- package/dist/output-gateway/routes/BaseRouter.js.map +1 -1
- package/dist/output-gateway/routes/GeoJsonRouter.d.ts +1 -1
- package/dist/output-gateway/routes/GeoJsonRouter.js.map +1 -1
- package/dist/output-gateway/routes/typeguards/RouterExpireParametersTypeGuard.js.map +1 -1
- package/dist/shared/class-transformer.js +7 -17
- package/dist/shared/class-transformer.js.map +1 -1
- package/dist/shared/class-validator.js +7 -17
- package/dist/shared/class-validator.js.map +1 -1
- package/dist/shared/express-validator.js +7 -17
- package/dist/shared/express-validator.js.map +1 -1
- package/dist/shared/golemio-errors.js +7 -17
- package/dist/shared/golemio-errors.js.map +1 -1
- package/dist/shared/golemio-validator.js +7 -17
- package/dist/shared/golemio-validator.js.map +1 -1
- package/dist/shared/lightship.js +7 -17
- package/dist/shared/lightship.js.map +1 -1
- package/dist/shared/luxon.js +7 -17
- package/dist/shared/luxon.js.map +1 -1
- package/dist/shared/pino.js +7 -17
- package/dist/shared/pino.js.map +1 -1
- package/dist/shared/qs.js +7 -17
- package/dist/shared/qs.js.map +1 -1
- package/dist/shared/redis-semaphore.js +7 -17
- package/dist/shared/redis-semaphore.js.map +1 -1
- package/package.json +10 -11
- package/tsconfig.base.json +7 -8
- package/dist/helpers/data-access/opensearch/czechAnalysis.d.ts +0 -14
- package/dist/helpers/data-access/opensearch/czechAnalysis.js +0 -73
- package/dist/helpers/data-access/opensearch/czechAnalysis.js.map +0 -1
- package/dist/helpers/data-access/opensearch/expandAcronyms.d.ts +0 -1
- package/dist/helpers/data-access/opensearch/expandAcronyms.js +0 -19
- package/dist/helpers/data-access/opensearch/expandAcronyms.js.map +0 -1
- package/dist/helpers/data-access/opensearch/liveSearchQuery.d.ts +0 -18
- package/dist/helpers/data-access/opensearch/liveSearchQuery.js +0 -41
- package/dist/helpers/data-access/opensearch/liveSearchQuery.js.map +0 -1
- package/dist/integration-engine/datasources/BatchWritable.d.ts +0 -14
- package/dist/integration-engine/datasources/BatchWritable.js +0 -42
- package/dist/integration-engine/datasources/BatchWritable.js.map +0 -1
- package/dist/integration-engine/datasources/DataSourceStreamedPipeline.d.ts +0 -24
- package/dist/integration-engine/datasources/DataSourceStreamedPipeline.js +0 -72
- package/dist/integration-engine/datasources/DataSourceStreamedPipeline.js.map +0 -1
- package/dist/integration-engine/datasources/datatype-strategy/JSONStreamTransformer.d.ts +0 -4
- package/dist/integration-engine/datasources/datatype-strategy/JSONStreamTransformer.js +0 -12
- package/dist/integration-engine/datasources/datatype-strategy/JSONStreamTransformer.js.map +0 -1
- package/dist/integration-engine/datasources/protocol-strategy/IStreamingProtocolStrategy.d.ts +0 -4
- package/dist/integration-engine/datasources/protocol-strategy/IStreamingProtocolStrategy.js +0 -3
- package/dist/integration-engine/datasources/protocol-strategy/IStreamingProtocolStrategy.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"golemio-validator.js","sourceRoot":"","sources":["../../src/shared/golemio-validator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"golemio-validator.js","sourceRoot":"","sources":["../../src/shared/golemio-validator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgD;AAChD,iBAAS,SAAS,CAAC"}
|
package/dist/shared/lightship.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
const lightship = __importStar(require("lightship"));
|
|
36
26
|
module.exports = lightship;
|
|
37
27
|
//# sourceMappingURL=lightship.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lightship.js","sourceRoot":"","sources":["../../src/shared/lightship.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lightship.js","sourceRoot":"","sources":["../../src/shared/lightship.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAuC;AACvC,iBAAS,SAAS,CAAC"}
|
package/dist/shared/luxon.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
const Luxon = __importStar(require("luxon"));
|
|
36
26
|
module.exports = Luxon;
|
|
37
27
|
//# sourceMappingURL=luxon.js.map
|
package/dist/shared/luxon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"luxon.js","sourceRoot":"","sources":["../../src/shared/luxon.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"luxon.js","sourceRoot":"","sources":["../../src/shared/luxon.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,iBAAS,KAAK,CAAC"}
|
package/dist/shared/pino.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.pinoHttp = exports.pino = void 0;
|
|
37
27
|
exports.pino = __importStar(require("pino"));
|
package/dist/shared/pino.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pino.js","sourceRoot":"","sources":["../../src/shared/pino.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pino.js","sourceRoot":"","sources":["../../src/shared/pino.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6B;AAC7B,sDAAsC"}
|
package/dist/shared/qs.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
const qs = __importStar(require("qs"));
|
|
36
26
|
module.exports = qs;
|
|
37
27
|
//# sourceMappingURL=qs.js.map
|
package/dist/shared/qs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qs.js","sourceRoot":"","sources":["../../src/shared/qs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"qs.js","sourceRoot":"","sources":["../../src/shared/qs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,iBAAS,EAAE,CAAC"}
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
const redisSemaphore = __importStar(require("redis-semaphore"));
|
|
36
26
|
module.exports = redisSemaphore;
|
|
37
27
|
//# sourceMappingURL=redis-semaphore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis-semaphore.js","sourceRoot":"","sources":["../../src/shared/redis-semaphore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redis-semaphore.js","sourceRoot":"","sources":["../../src/shared/redis-semaphore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAkD;AAClD,iBAAS,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/core",
|
|
3
|
-
"version": "3.3.0-
|
|
3
|
+
"version": "3.3.0-rc.2646964518",
|
|
4
4
|
"description": "Golemio Core Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"build": "rimraf ./dist && tspc -p ./tsconfig.build.json",
|
|
9
9
|
"build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
|
|
10
10
|
"build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
|
|
11
|
-
"test": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r
|
|
11
|
+
"test": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r tsconfig-paths/register --file 'test/setup.ts' -r dotenv/config 'test/**/*.test.ts'",
|
|
12
12
|
"test-debug": "run-s 'test -- --inspect-brk=9230'",
|
|
13
|
-
"code-coverage": "nyc run-s test",
|
|
13
|
+
"code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
|
|
14
14
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
15
15
|
"lint": "eslint --cache \"{src,test}/**/*.ts\"",
|
|
16
16
|
"validate-dependencies": "dependency-cruiser --config .dependency-cruiser.js src"
|
|
@@ -32,13 +32,11 @@
|
|
|
32
32
|
"@commitlint/cli": "^19.3.0",
|
|
33
33
|
"@commitlint/config-conventional": "^16.2.1",
|
|
34
34
|
"@golemio/eslint-config": "1.1.4",
|
|
35
|
-
"@swc-node/register": "^1.11.1",
|
|
36
35
|
"@swc/core": "^1.15.33",
|
|
37
36
|
"@types/chai": "^5.2.3",
|
|
38
37
|
"@types/chai-as-promised": "^8.0.2",
|
|
39
38
|
"@types/content-type": "^1.1.3",
|
|
40
39
|
"@types/debug": "0.0.31",
|
|
41
|
-
"@types/jsonstream": "^0.8.33",
|
|
42
40
|
"@types/mocha": "^10.0.10",
|
|
43
41
|
"@types/node": "^24.12.4",
|
|
44
42
|
"@types/sinon": "^21.0.0",
|
|
@@ -63,10 +61,12 @@
|
|
|
63
61
|
"sinon": "^21.0.1",
|
|
64
62
|
"source-map-support": "0.5.21",
|
|
65
63
|
"supertest": "^7.1.4",
|
|
66
|
-
"ts-
|
|
64
|
+
"ts-node": "^10.9.1",
|
|
65
|
+
"ts-patch": "3.0.0-beta3",
|
|
66
|
+
"tsconfig-paths": "^4.2.0",
|
|
67
67
|
"typedoc": "^0.24.8",
|
|
68
|
-
"typescript": "
|
|
69
|
-
"typescript-transform-paths": "^4.
|
|
68
|
+
"typescript": "5.1.3",
|
|
69
|
+
"typescript-transform-paths": "^3.4.6"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@abraham/reflection": "^0.10.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@google-cloud/storage": "^7.19.0",
|
|
79
79
|
"@opensearch-project/opensearch": "^3.6.0",
|
|
80
80
|
"@opentelemetry/api": "^1.9.0",
|
|
81
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "^0.
|
|
81
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "^0.204.0",
|
|
82
82
|
"@opentelemetry/instrumentation-amqplib": "^0.50.0",
|
|
83
83
|
"@opentelemetry/instrumentation-aws-sdk": "^0.56.0",
|
|
84
84
|
"@opentelemetry/instrumentation-express": "^0.52.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@types/geojson": "^7946.0.10",
|
|
93
93
|
"@types/luxon": "^2.3.1",
|
|
94
94
|
"@types/qs": "^6.9.18",
|
|
95
|
-
"ajv": "^8.
|
|
95
|
+
"ajv": "^8.10.0",
|
|
96
96
|
"amqplib": "^0.10.8",
|
|
97
97
|
"basic-ftp": "^6.0.1",
|
|
98
98
|
"class-transformer": "^0.5.1",
|
|
@@ -107,7 +107,6 @@
|
|
|
107
107
|
"html-entities": "^2.4.0",
|
|
108
108
|
"iconv-lite": "^0.6.2",
|
|
109
109
|
"ioredis": "^5.4.1",
|
|
110
|
-
"JSONStream": "^1.3.5",
|
|
111
110
|
"lightship": "9.0.2",
|
|
112
111
|
"luxon": "^2.5.2",
|
|
113
112
|
"moment-timezone": "^0.5.26",
|
package/tsconfig.base.json
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
"target": "ES2021",
|
|
5
5
|
"lib": ["ES2021", "DOM"],
|
|
6
6
|
"module": "CommonJS",
|
|
7
|
-
"types": ["node", "mocha"],
|
|
8
7
|
"strict": true,
|
|
9
8
|
"declaration": true,
|
|
10
9
|
"allowSyntheticDefaultImports": true,
|
|
@@ -14,25 +13,25 @@
|
|
|
14
13
|
"sourceMap": true,
|
|
15
14
|
"useUnknownInCatchVariables": false,
|
|
16
15
|
"paths": {
|
|
17
|
-
"#helpers": ["./src/helpers
|
|
16
|
+
"#helpers": ["./src/helpers"],
|
|
18
17
|
"#helpers/*": ["./src/helpers/*"],
|
|
19
18
|
|
|
20
|
-
"#monitoring": ["./src/monitoring
|
|
19
|
+
"#monitoring": ["./src/monitoring"],
|
|
21
20
|
"#monitoring/*": ["./src/monitoring/*"],
|
|
22
21
|
|
|
23
|
-
"#ig/": ["./src/input-gateway
|
|
22
|
+
"#ig/": ["./src/input-gateway"],
|
|
24
23
|
"#ig/*": ["./src/input-gateway/*"],
|
|
25
24
|
|
|
26
|
-
"#ie": ["./src/integration-engine
|
|
25
|
+
"#ie": ["./src/integration-engine"],
|
|
27
26
|
"#ie/*": ["./src/integration-engine/*"],
|
|
28
27
|
|
|
29
|
-
"#og": ["./src/output-gateway
|
|
28
|
+
"#og": ["./src/output-gateway"],
|
|
30
29
|
"#og/*": ["./src/output-gateway/*"],
|
|
31
30
|
|
|
32
|
-
"#sch": ["./src/schema-definitions
|
|
31
|
+
"#sch": ["./src/schema-definitions"],
|
|
33
32
|
"#sch/*": ["./src/schema-definitions/*"],
|
|
34
33
|
|
|
35
|
-
"src": ["./src
|
|
34
|
+
"src": ["./src"],
|
|
36
35
|
"src/*": ["./src/*"]
|
|
37
36
|
}
|
|
38
37
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Types } from "@opensearch-project/opensearch";
|
|
2
|
-
export interface ICzechAnalysisOptions {
|
|
3
|
-
synonyms?: string[];
|
|
4
|
-
edgeNgramMin?: number;
|
|
5
|
-
edgeNgramMax?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface IBaseIndexSettingsOptions extends ICzechAnalysisOptions {
|
|
8
|
-
numberOfShards?: number;
|
|
9
|
-
}
|
|
10
|
-
type Analysis = Types.Indices_Common.IndexSettingsAnalysis;
|
|
11
|
-
export declare const buildCzechAnalysis: (options?: ICzechAnalysisOptions) => Analysis;
|
|
12
|
-
export declare const buildBaseIndexSettings: (options?: IBaseIndexSettingsOptions) => Types.Indices_Common.IndexSettings;
|
|
13
|
-
export declare const czechText: () => Types.Common_Mapping.TextProperty;
|
|
14
|
-
export {};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.czechText = exports.buildBaseIndexSettings = exports.buildCzechAnalysis = void 0;
|
|
4
|
-
// Reusable Czech analysis recipe (holds no vocabulary; the caller passes synonyms in). czechText()
|
|
5
|
-
// maps each field via a hunspell lemma path (ranking) plus an edge_ngram ".prefix" sub-field
|
|
6
|
-
// (prefix/derivational recall), and — when `synonyms` is given — a query-time synonym_graph.
|
|
7
|
-
//
|
|
8
|
-
// hunspell needs the cs_CZ dictionary on every node, and the filter ordering below is load-bearing.
|
|
9
|
-
// Full rationale (paths, ordering trap, dependency caveat) lives in docs/opensearch-czech-search.md.
|
|
10
|
-
// Changing this analysis is a mapping change: existing indexes must be dropped, recreated, and reseeded.
|
|
11
|
-
const HUNSPELL_LOCALE = "cs_CZ";
|
|
12
|
-
const DEFAULT_EDGE_NGRAM_MIN = 2;
|
|
13
|
-
const DEFAULT_EDGE_NGRAM_MAX = 20;
|
|
14
|
-
const buildCzechAnalysis = (options = {}) => {
|
|
15
|
-
const synonyms = options.synonyms ?? [];
|
|
16
|
-
const edgeNgramMin = options.edgeNgramMin ?? DEFAULT_EDGE_NGRAM_MIN;
|
|
17
|
-
const edgeNgramMax = options.edgeNgramMax ?? DEFAULT_EDGE_NGRAM_MAX;
|
|
18
|
-
const hasSynonyms = synonyms.length > 0;
|
|
19
|
-
const filter = {
|
|
20
|
-
czech_stop: { type: "stop", stopwords: "_czech_" },
|
|
21
|
-
cs_hunspell: { type: "hunspell", locale: HUNSPELL_LOCALE, dedup: true },
|
|
22
|
-
cs_edge_ngram: { type: "edge_ngram", min_gram: edgeNgramMin, max_gram: edgeNgramMax },
|
|
23
|
-
};
|
|
24
|
-
if (hasSynonyms) {
|
|
25
|
-
// synonym_graph is search-time only; wired into cs_lemma_search, never an index-time analyzer.
|
|
26
|
-
filter.cs_synonym = { type: "synonym_graph", synonyms };
|
|
27
|
-
}
|
|
28
|
-
// Search-time twin of cs_lemma. cs_synonym must precede czech_stop or synonym_graph rejects
|
|
29
|
-
// multi-word entries with an inner stopword — see docs/opensearch-czech-search.md.
|
|
30
|
-
const lemmaSearchFilter = hasSynonyms
|
|
31
|
-
? ["lowercase", "cs_synonym", "czech_stop", "cs_hunspell", "asciifolding"]
|
|
32
|
-
: ["lowercase", "czech_stop", "cs_hunspell", "asciifolding"];
|
|
33
|
-
return {
|
|
34
|
-
filter,
|
|
35
|
-
analyzer: {
|
|
36
|
-
// asciifolding runs after hunspell so it still sees the diacritic-bearing form to look up.
|
|
37
|
-
cs_lemma: {
|
|
38
|
-
type: "custom",
|
|
39
|
-
tokenizer: "standard",
|
|
40
|
-
filter: ["lowercase", "czech_stop", "cs_hunspell", "asciifolding"],
|
|
41
|
-
},
|
|
42
|
-
cs_lemma_search: { type: "custom", tokenizer: "standard", filter: lemmaSearchFilter },
|
|
43
|
-
// Index side stores prefixes; query side matches the whole token against them (no ngram).
|
|
44
|
-
cs_prefix_index: { type: "custom", tokenizer: "standard", filter: ["lowercase", "asciifolding", "cs_edge_ngram"] },
|
|
45
|
-
cs_prefix_search: { type: "custom", tokenizer: "standard", filter: ["lowercase", "asciifolding"] },
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
exports.buildCzechAnalysis = buildCzechAnalysis;
|
|
50
|
-
// min_gram..max_gram spans more than the default allowed ngram diff of 1, so the index must raise
|
|
51
|
-
// max_ngram_diff or edge_ngram creation is rejected.
|
|
52
|
-
const buildBaseIndexSettings = (options = {}) => {
|
|
53
|
-
const edgeNgramMin = options.edgeNgramMin ?? DEFAULT_EDGE_NGRAM_MIN;
|
|
54
|
-
const edgeNgramMax = options.edgeNgramMax ?? DEFAULT_EDGE_NGRAM_MAX;
|
|
55
|
-
return {
|
|
56
|
-
number_of_shards: options.numberOfShards ?? 1,
|
|
57
|
-
max_ngram_diff: edgeNgramMax - edgeNgramMin,
|
|
58
|
-
analysis: (0, exports.buildCzechAnalysis)(options),
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
exports.buildBaseIndexSettings = buildBaseIndexSettings;
|
|
62
|
-
// Lemma field for ranking + a ".prefix" edge_ngram sub-field for derivational/prefix recall. The
|
|
63
|
-
// analyzer names match those produced by buildCzechAnalysis.
|
|
64
|
-
const czechText = () => ({
|
|
65
|
-
type: "text",
|
|
66
|
-
analyzer: "cs_lemma",
|
|
67
|
-
search_analyzer: "cs_lemma_search",
|
|
68
|
-
fields: {
|
|
69
|
-
prefix: { type: "text", analyzer: "cs_prefix_index", search_analyzer: "cs_prefix_search" },
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
exports.czechText = czechText;
|
|
73
|
-
//# sourceMappingURL=czechAnalysis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"czechAnalysis.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/opensearch/czechAnalysis.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const expandAcronyms: (query: string, expansions: Record<string, string>) => string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.expandAcronyms = void 0;
|
|
4
|
-
// Appends the full form of every query token that is a known acronym, keeping the original tokens (so
|
|
5
|
-
// a literal-acronym match still fires) — forward-only and additive, never a substitution. `expansions`
|
|
6
|
-
// is the caller's lowercased acronym -> full-form map; matching is case-insensitive. Why this runs in
|
|
7
|
-
// the query layer (not as an index synonym) and why both forms are kept: docs/opensearch-czech-search.md.
|
|
8
|
-
const expandAcronyms = (query, expansions) => {
|
|
9
|
-
const matched = [];
|
|
10
|
-
for (const token of query.split(/\s+/)) {
|
|
11
|
-
const expansion = expansions[token.toLowerCase()];
|
|
12
|
-
if (expansion) {
|
|
13
|
-
matched.push(expansion);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return matched.length > 0 ? `${query} ${matched.join(" ")}` : query;
|
|
17
|
-
};
|
|
18
|
-
exports.expandAcronyms = expandAcronyms;
|
|
19
|
-
//# sourceMappingURL=expandAcronyms.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expandAcronyms.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/opensearch/expandAcronyms.ts"],"names":[],"mappings":";;;AAAA,sGAAsG;AACtG,uGAAuG;AACvG,sGAAsG;AACtG,0GAA0G;AACnG,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,UAAkC,EAAU,EAAE;IACxF,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;QACrC,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;QAClD,IAAI,SAAS,EAAE,CAAC;YACZ,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5B,CAAC;IACL,CAAC;IAED,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AACxE,CAAC,CAAC;AAVW,QAAA,cAAc,kBAUzB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { API, Types } from "@opensearch-project/opensearch";
|
|
2
|
-
type QueryContainer = Types.Common_QueryDsl.QueryContainer;
|
|
3
|
-
type SearchRequestBody = API.Search_RequestBody;
|
|
4
|
-
export interface IFuzzyOptions {
|
|
5
|
-
fields?: string[];
|
|
6
|
-
fuzziness?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ILiveSearchQueryOptions {
|
|
9
|
-
query: string;
|
|
10
|
-
fields: string[];
|
|
11
|
-
limit?: number;
|
|
12
|
-
offset?: number;
|
|
13
|
-
filter?: QueryContainer[];
|
|
14
|
-
wildcardFields?: string[];
|
|
15
|
-
fuzzy?: boolean | IFuzzyOptions;
|
|
16
|
-
}
|
|
17
|
-
export declare const buildLiveSearchQuery: (options: ILiveSearchQueryOptions) => SearchRequestBody;
|
|
18
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildLiveSearchQuery = void 0;
|
|
4
|
-
const DEFAULT_SEARCH_LIMIT = 10;
|
|
5
|
-
const DEFAULT_FUZZINESS = "AUTO";
|
|
6
|
-
const PREFIX_SUBFIELD_SUFFIX = ".prefix";
|
|
7
|
-
const buildLiveSearchQuery = (options) => {
|
|
8
|
-
const trimmed = options.query.trim();
|
|
9
|
-
const bool = { filter: options.filter ?? [] };
|
|
10
|
-
if (!trimmed) {
|
|
11
|
-
bool.must = [{ match_all: {} }];
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
const shoulds = [{ multi_match: { query: trimmed, fields: options.fields, type: "bool_prefix" } }];
|
|
15
|
-
const fuzzy = options.fuzzy ?? true;
|
|
16
|
-
if (fuzzy !== false) {
|
|
17
|
-
const fuzzyOptions = typeof fuzzy === "object" ? fuzzy : {};
|
|
18
|
-
const fuzzyFields = fuzzyOptions.fields ?? options.fields.filter((field) => !field.endsWith(PREFIX_SUBFIELD_SUFFIX));
|
|
19
|
-
shoulds.push({
|
|
20
|
-
multi_match: { query: trimmed, fields: fuzzyFields, fuzziness: fuzzyOptions.fuzziness ?? DEFAULT_FUZZINESS },
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
if (options.wildcardFields?.length) {
|
|
24
|
-
const escaped = trimmed.replace(/[\\*?]/g, "\\$&");
|
|
25
|
-
for (const field of options.wildcardFields) {
|
|
26
|
-
shoulds.push({ wildcard: { [field]: { value: `*${escaped}*`, case_insensitive: true } } });
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
bool.should = shoulds;
|
|
30
|
-
bool.minimum_should_match = 1;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
query: { bool },
|
|
34
|
-
_source: false,
|
|
35
|
-
from: options.offset ?? 0,
|
|
36
|
-
size: options.limit ?? DEFAULT_SEARCH_LIMIT,
|
|
37
|
-
track_total_hits: true,
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
exports.buildLiveSearchQuery = buildLiveSearchQuery;
|
|
41
|
-
//# sourceMappingURL=liveSearchQuery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"liveSearchQuery.js","sourceRoot":"","sources":["../../../../src/helpers/data-access/opensearch/liveSearchQuery.ts"],"names":[],"mappings":";;;AAYA,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACjC,MAAM,sBAAsB,GAAG,SAAS,CAAC;AAuBlC,MAAM,oBAAoB,GAAG,CAAC,OAAgC,EAAqB,EAAE;IACxF,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACrC,MAAM,IAAI,GAAc,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC;IAEzD,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;IACpC,CAAC;SAAM,CAAC;QACJ,MAAM,OAAO,GAAqB,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC;QAErH,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC;QACpC,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YAClB,MAAM,YAAY,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5D,MAAM,WAAW,GAAG,YAAY,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC;YACrH,OAAO,CAAC,IAAI,CAAC;gBACT,WAAW,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,CAAC,SAAS,IAAI,iBAAiB,EAAE;aAC/G,CAAC,CAAC;QACP,CAAC;QAED,IAAI,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC;YACjC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACnD,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;gBACzC,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,OAAO,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YAC/F,CAAC;QACL,CAAC;QAED,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;QACtB,IAAI,CAAC,oBAAoB,GAAG,CAAC,CAAC;IAClC,CAAC;IAED,OAAO;QACH,KAAK,EAAE,EAAE,IAAI,EAAE;QACf,OAAO,EAAE,KAAK;QACd,IAAI,EAAE,OAAO,CAAC,MAAM,IAAI,CAAC;QACzB,IAAI,EAAE,OAAO,CAAC,KAAK,IAAI,oBAAoB;QAC3C,gBAAgB,EAAE,IAAI;KACzB,CAAC;AACN,CAAC,CAAC;AApCW,QAAA,oBAAoB,wBAoC/B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Writable } from "node:stream";
|
|
2
|
-
export interface BatchWritableOptions<T> {
|
|
3
|
-
batchSize: number;
|
|
4
|
-
onFlush: (batch: T[]) => Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
export declare class BatchWritable<T> extends Writable {
|
|
7
|
-
private batch;
|
|
8
|
-
private readonly batchSize;
|
|
9
|
-
private readonly onFlush;
|
|
10
|
-
constructor(options: BatchWritableOptions<T>);
|
|
11
|
-
_write(item: T, _encoding: BufferEncoding, callback: (err?: Error | null) => void): void;
|
|
12
|
-
_final(callback: (err?: Error | null) => void): void;
|
|
13
|
-
private flush;
|
|
14
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BatchWritable = void 0;
|
|
4
|
-
const node_stream_1 = require("node:stream");
|
|
5
|
-
class BatchWritable extends node_stream_1.Writable {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
super({
|
|
8
|
-
objectMode: true,
|
|
9
|
-
});
|
|
10
|
-
this.batch = [];
|
|
11
|
-
this.batchSize = options.batchSize;
|
|
12
|
-
this.onFlush = options.onFlush;
|
|
13
|
-
}
|
|
14
|
-
_write(item, _encoding, callback) {
|
|
15
|
-
this.batch.push(item);
|
|
16
|
-
if (this.batch.length < this.batchSize) {
|
|
17
|
-
callback();
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
this.flush(callback);
|
|
21
|
-
}
|
|
22
|
-
_final(callback) {
|
|
23
|
-
if (this.batch.length === 0) {
|
|
24
|
-
callback();
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
this.flush(callback);
|
|
28
|
-
}
|
|
29
|
-
async flush(callback) {
|
|
30
|
-
const fullBatch = this.batch;
|
|
31
|
-
this.batch = [];
|
|
32
|
-
try {
|
|
33
|
-
await this.onFlush(fullBatch);
|
|
34
|
-
callback();
|
|
35
|
-
}
|
|
36
|
-
catch (err) {
|
|
37
|
-
callback(err instanceof Error ? err : new Error(String(err)));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.BatchWritable = BatchWritable;
|
|
42
|
-
//# sourceMappingURL=BatchWritable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BatchWritable.js","sourceRoot":"","sources":["../../../src/integration-engine/datasources/BatchWritable.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAOvC,MAAa,aAAiB,SAAQ,sBAAQ;IAK1C,YAAY,OAAgC;QACxC,KAAK,CAAC;YACF,UAAU,EAAE,IAAI;SACnB,CAAC,CAAC;QAPC,UAAK,GAAQ,EAAE,CAAC;QAQpB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IACnC,CAAC;IAEe,MAAM,CAAC,IAAO,EAAE,SAAyB,EAAE,QAAsC;QAC7F,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YACrC,QAAQ,EAAE,CAAC;YACX,OAAO;QACX,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC;IAEe,MAAM,CAAC,QAAsC;QACzD,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,QAAQ,EAAE,CAAC;YACX,OAAO;QACX,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC;IAEO,KAAK,CAAC,KAAK,CAAC,QAAsC;QACtD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC;YACD,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAC9B,QAAQ,EAAE,CAAC;QACf,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,QAAQ,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAClE,CAAC;IACL,CAAC;CACJ;AAxCD,sCAwCC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IDataSource } from "./IDataSource";
|
|
2
|
-
import { IValidator } from "@golemio/validator";
|
|
3
|
-
import { Transform } from "node:stream";
|
|
4
|
-
import { DataSource } from "./DataSource";
|
|
5
|
-
import { IStreamingProtocolStrategy } from "./protocol-strategy/IStreamingProtocolStrategy";
|
|
6
|
-
export interface DataSourceStreamedPipelineOptions {
|
|
7
|
-
validator?: IValidator | null;
|
|
8
|
-
batchSize?: number;
|
|
9
|
-
timeoutMs?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare class DataSourceStreamedPipeline<T extends object = any> extends DataSource implements IDataSource {
|
|
12
|
-
static readonly DEFAULT_BATCH_SIZE: number;
|
|
13
|
-
static readonly DEFAULT_PIPELINE_TIMEOUT_MS: number;
|
|
14
|
-
private readonly streamTransformer;
|
|
15
|
-
private readonly batchSize;
|
|
16
|
-
private readonly timeoutMs;
|
|
17
|
-
private dataProcessor;
|
|
18
|
-
constructor(name: string, streamingStrategy: IStreamingProtocolStrategy, streamTransformer: Transform, options?: DataSourceStreamedPipelineOptions);
|
|
19
|
-
private get streamingStrategy();
|
|
20
|
-
setDataProcessor(fn: (batch: T[]) => Promise<void>): this;
|
|
21
|
-
proceed(): Promise<void>;
|
|
22
|
-
private createBatchWriter;
|
|
23
|
-
private validateAndProcess;
|
|
24
|
-
}
|