@golemio/core 1.6.10-dev.875711159 → 1.6.10-dev.877285695
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/ConfigLoader.js +1 -1
- package/dist/helpers/ConfigLoader.js.map +1 -1
- package/dist/helpers/logger/LoggerProvider.js +4 -4
- package/dist/helpers/logger/LoggerProvider.js.map +1 -1
- package/dist/input-gateway/connectors/AMQPConnector.js +3 -3
- package/dist/input-gateway/connectors/AMQPConnector.js.map +1 -1
- package/dist/input-gateway/controllers/BaseController.js +1 -1
- package/dist/input-gateway/controllers/BaseController.js.map +1 -1
- package/dist/input-gateway/data-access/FeatureFlagServiceWrapper.js +1 -1
- package/dist/input-gateway/data-access/FeatureFlagServiceWrapper.js.map +1 -1
- package/dist/input-gateway/data-access/StorageServiceProvider.js +1 -1
- package/dist/input-gateway/data-access/StorageServiceProvider.js.map +1 -1
- package/dist/input-gateway/helpers/ErrorPreprocessorMiddleware.d.ts +1 -1
- package/dist/input-gateway/helpers/ErrorPreprocessorMiddleware.js +5 -4
- package/dist/input-gateway/helpers/ErrorPreprocessorMiddleware.js.map +1 -1
- package/dist/input-gateway/helpers/SaveRawDataMiddleware.js +1 -1
- package/dist/input-gateway/helpers/SaveRawDataMiddleware.js.map +1 -1
- package/dist/integration-engine/connectors/AMQPConnector.js +6 -6
- package/dist/integration-engine/connectors/AMQPConnector.js.map +1 -1
- package/dist/integration-engine/connectors/PostgresConnector.js +3 -3
- package/dist/integration-engine/connectors/PostgresConnector.js.map +1 -1
- package/dist/integration-engine/connectors/RedisConnector.js +4 -4
- package/dist/integration-engine/connectors/RedisConnector.js.map +1 -1
- package/dist/integration-engine/data-access/FeatureFlagServiceWrapper.js +1 -1
- package/dist/integration-engine/data-access/FeatureFlagServiceWrapper.js.map +1 -1
- package/dist/integration-engine/data-access/StorageServiceProvider.js +1 -1
- package/dist/integration-engine/data-access/StorageServiceProvider.js.map +1 -1
- package/dist/integration-engine/data-access/pubsub/subscribers/RedisSubscriber.js +1 -1
- package/dist/integration-engine/data-access/pubsub/subscribers/RedisSubscriber.js.map +1 -1
- package/dist/integration-engine/datasources/DataSource.js +2 -2
- package/dist/integration-engine/datasources/DataSource.js.map +1 -1
- package/dist/integration-engine/datasources/DataSourceStream.js +1 -1
- package/dist/integration-engine/datasources/DataSourceStream.js.map +1 -1
- package/dist/integration-engine/datasources/DataSourceStreamManager.js +2 -2
- package/dist/integration-engine/datasources/DataSourceStreamManager.js.map +1 -1
- package/dist/integration-engine/datasources/DataSourceStreamed.js +3 -3
- package/dist/integration-engine/datasources/DataSourceStreamed.js.map +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/CSVDataTypeStrategy.js +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/CSVDataTypeStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/JSONDataTypeStrategy.js +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/JSONDataTypeStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/XMLDataTypeStrategy.js +1 -1
- package/dist/integration-engine/datasources/datatype-strategy/XMLDataTypeStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/FTPProtocolStrategy.js +3 -3
- package/dist/integration-engine/datasources/protocol-strategy/FTPProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/GoogleCloudStorageProtocolStrategy.js +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/GoogleCloudStorageProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategy.js +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategyStreamed.js +1 -1
- package/dist/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategyStreamed.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/SFTPProtocolStrategy.js +2 -2
- package/dist/integration-engine/datasources/protocol-strategy/SFTPProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/helpers/GeocodeApi.js +4 -4
- package/dist/integration-engine/helpers/GeocodeApi.js.map +1 -1
- package/dist/integration-engine/helpers/IntegrationErrorHandler.d.ts +5 -5
- package/dist/integration-engine/helpers/IntegrationErrorHandler.js +9 -13
- package/dist/integration-engine/helpers/IntegrationErrorHandler.js.map +1 -1
- package/dist/integration-engine/models/PostgresModel.js +10 -10
- package/dist/integration-engine/models/PostgresModel.js.map +1 -1
- package/dist/integration-engine/models/RedisModel.js +2 -2
- package/dist/integration-engine/models/RedisModel.js.map +1 -1
- package/dist/integration-engine/queueprocessors/QueueProcessor.js +4 -4
- package/dist/integration-engine/queueprocessors/QueueProcessor.js.map +1 -1
- package/dist/integration-engine/transformations/BaseTransformation.js +1 -1
- package/dist/integration-engine/transformations/BaseTransformation.js.map +1 -1
- package/dist/integration-engine/workers/BaseWorker.js +2 -2
- package/dist/integration-engine/workers/BaseWorker.js.map +1 -1
- package/dist/integration-engine/workers/helpers/MessageDataParser.js +1 -1
- package/dist/integration-engine/workers/helpers/MessageDataParser.js.map +1 -1
- package/dist/integration-engine/workers/helpers/MessageDataValidator.js +2 -2
- package/dist/integration-engine/workers/helpers/MessageDataValidator.js.map +1 -1
- package/dist/monitoring/sentry/sentry-provider.js +1 -1
- package/dist/monitoring/sentry/sentry-provider.js.map +1 -1
- package/dist/output-gateway/Geo.js +1 -1
- package/dist/output-gateway/Geo.js.map +1 -1
- package/dist/output-gateway/Validation.js +5 -4
- package/dist/output-gateway/Validation.js.map +1 -1
- package/dist/output-gateway/data-access/FeatureFlagServiceWrapper.js +1 -1
- package/dist/output-gateway/data-access/FeatureFlagServiceWrapper.js.map +1 -1
- package/dist/output-gateway/redis/RedisConnector.js +3 -3
- package/dist/output-gateway/redis/RedisConnector.js.map +1 -1
- package/package.json +2 -2
|
@@ -37,7 +37,7 @@ class CSVDataTypeStrategy {
|
|
|
37
37
|
readable
|
|
38
38
|
.pipe((0, fast_csv_1.parse)(this.dataTypeSettings.fastcsvParams))
|
|
39
39
|
.on("error", (error) => {
|
|
40
|
-
reject(new errors_1.
|
|
40
|
+
reject(new errors_1.GeneralError("Error while parsing source data.", this.constructor.name, error));
|
|
41
41
|
})
|
|
42
42
|
.on("data", (row) => {
|
|
43
43
|
resultsArray.push(this.dataTypeSettings.subscribe(row));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSVDataTypeStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/datatype-strategy/CSVDataTypeStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"CSVDataTypeStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/datatype-strategy/CSVDataTypeStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA+C;AAC/C,uCAAiD;AACjD,mCAAkC;AAGlC,MAAa,mBAAmB;IAI5B,YAAY,QAAsB;QAC9B,IAAI,CAAC,gBAAgB,GAAG,QAAQ,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;IAC5B,CAAC;IAEM,mBAAmB,CAAC,QAAsB;QAC7C,IAAI,CAAC,gBAAgB,GAAG,QAAQ,CAAC;IACrC,CAAC;IAEM,SAAS,CAAC,cAAkC;QAC/C,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC;IACjC,CAAC;IAEY,SAAS,CAAC,IAAS;;YAC5B,MAAM,QAAQ,GAAG,IAAI,iBAAQ,EAAE,CAAC;YAChC,QAAQ,CAAC,KAAK,GAAG,GAAG,EAAE;gBAClB,wCAAwC;YAC5C,CAAC,CAAC;YACF,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAEpB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACnC,IAAI,YAAY,GAAU,EAAE,CAAC;gBAC7B,QAAQ;qBACH,IAAI,CAAC,IAAA,gBAAY,EAAC,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;qBACvD,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;oBACnB,MAAM,CAAC,IAAI,qBAAY,CAAC,kCAAkC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;gBAC/F,CAAC,CAAC;qBACD,EAAE,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE;oBAChB,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC5D,CAAC,CAAC;qBACD,EAAE,CAAC,KAAK,EAAE,CAAC,QAAgB,EAAE,EAAE;oBAC5B,IAAI,IAAI,CAAC,MAAM,EAAE;wBACb,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;qBACnD;oBACD,OAAO,OAAO,CAAC,YAAY,CAAC,CAAC;gBACjC,CAAC,CAAC,CAAC;YACX,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AA3CD,kDA2CC"}
|
|
@@ -38,7 +38,7 @@ class JSONDataTypeStrategy {
|
|
|
38
38
|
return data;
|
|
39
39
|
}
|
|
40
40
|
catch (err) {
|
|
41
|
-
throw new errors_1.
|
|
41
|
+
throw new errors_1.GeneralError("Error while parsing source data.", this.constructor.name, err);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONDataTypeStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/datatype-strategy/JSONDataTypeStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgD;AAEhD,
|
|
1
|
+
{"version":3,"file":"JSONDataTypeStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/datatype-strategy/JSONDataTypeStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgD;AAEhD,4CAA+C;AAE/C,MAAa,oBAAoB;IAI7B,YAAY,QAAuB;QAC/B,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;IAC5B,CAAC;IAEM,mBAAmB,CAAC,QAAuB;QAC9C,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;IAC5C,CAAC;IAEM,SAAS,CAAC,cAAkC;QAC/C,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC;IACjC,CAAC;IAEY,SAAS,CAAC,IAAS;;YAC5B,IAAI;gBACA,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;oBAC1B,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC3B;gBAED,IAAI,IAAI,CAAC,WAAW,EAAE;oBAClB,IAAI,GAAG,IAAA,sBAAc,EAAM,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;iBACtD;gBAED,IAAI,IAAI,CAAC,MAAM,EAAE;oBACb,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;iBACnC;gBACD,OAAO,IAAI,CAAC;aACf;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,qBAAY,CAAC,kCAAkC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aAC1F;QACL,CAAC;KAAA;CACJ;AAnCD,oDAmCC"}
|
|
@@ -38,7 +38,7 @@ class XMLDataTypeStrategy {
|
|
|
38
38
|
return parsed;
|
|
39
39
|
}
|
|
40
40
|
catch (err) {
|
|
41
|
-
throw new errors_1.
|
|
41
|
+
throw new errors_1.GeneralError("Error while parsing source data.", this.constructor.name, err);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XMLDataTypeStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/datatype-strategy/XMLDataTypeStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAgD;AAEhD,
|
|
1
|
+
{"version":3,"file":"XMLDataTypeStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/datatype-strategy/XMLDataTypeStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAgD;AAEhD,4CAA+C;AAC/C,oDAA4B;AAE5B,MAAa,mBAAmB;IAI5B,YAAY,QAAsB;QAC9B,IAAI,CAAC,gBAAgB,GAAG,QAAQ,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;IAC5B,CAAC;IAEM,mBAAmB,CAAC,QAAsB;QAC7C,IAAI,CAAC,gBAAgB,GAAG,QAAQ,CAAC;IACrC,CAAC;IAEM,SAAS,CAAC,cAAkC;QAC/C,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC;IACjC,CAAC;IAEY,SAAS,CAAC,IAAS;;YAC5B,IAAI;gBACA,IAAI,MAAM,GAAG,MAAM,gBAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;gBACvF,MAAM,GAAG,IAAA,sBAAc,EAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;gBACnE,IAAI,IAAI,CAAC,MAAM,EAAE;oBACb,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;iBACvC;gBACD,OAAO,MAAM,CAAC;aACjB;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,qBAAY,CAAC,kCAAkC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aAC1F;QACL,CAAC;KAAA;CACJ;AA7BD,kDA6BC"}
|
|
@@ -42,7 +42,7 @@ class FTPProtocolStrategy extends ProtocolStrategy_1.ProtocolStrategy {
|
|
|
42
42
|
yield dirHandle.close();
|
|
43
43
|
}
|
|
44
44
|
catch (err) {
|
|
45
|
-
throw new errors_1.
|
|
45
|
+
throw new errors_1.GeneralError("FTP download path is not a directory", this.constructor.name, err);
|
|
46
46
|
}
|
|
47
47
|
try {
|
|
48
48
|
yield this.ftpClient.access(this.connectionSettings.url);
|
|
@@ -50,7 +50,7 @@ class FTPProtocolStrategy extends ProtocolStrategy_1.ProtocolStrategy {
|
|
|
50
50
|
yield this.ftpClient.downloadTo(fs_1.default.createWriteStream(path_1.default.join(this.downloadPath, this.connectionSettings.filename)), this.connectionSettings.filename);
|
|
51
51
|
}
|
|
52
52
|
catch (err) {
|
|
53
|
-
throw new errors_1.
|
|
53
|
+
throw new errors_1.GeneralError("Error while downloading FTP files", this.constructor.name, err);
|
|
54
54
|
}
|
|
55
55
|
finally {
|
|
56
56
|
this.ftpClient.close();
|
|
@@ -69,7 +69,7 @@ class FTPProtocolStrategy extends ProtocolStrategy_1.ProtocolStrategy {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
catch (err) {
|
|
72
|
-
throw new errors_1.
|
|
72
|
+
throw new errors_1.GeneralError("Error while processing downloaded FTP files", this.constructor.name, err);
|
|
73
73
|
}
|
|
74
74
|
return { data: result };
|
|
75
75
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FTPProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/FTPProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2DAAwH;AACxH,yDAAsF;AACtF,2CAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"FTPProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/FTPProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2DAAwH;AACxH,yDAAsF;AACtF,2CAAkC;AAClC,4CAA+C;AAC/C,yCAAmC;AACnC,4CAAoB;AACpB,oDAA4B;AAC5B,4CAAoB;AACpB,gDAAwB;AACxB,iEAA8D;AAM9D,MAAM,eAAe,GAA0B;IAC3C,MAAM,EAAE,YAAE,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,iCAAa,CAAC,IAAI;IAC9B,UAAU,EAAE,iCAAa,CAAC,IAAI;CACjC,CAAC;AAEF,MAAa,mBAAoB,SAAQ,mCAAgB;IAMrD,YAAY,QAAsB;QAC9B,KAAK,iCAAM,eAAe,GAAK,QAAQ,EAAG,CAAC;QAQxC,0BAAqB,GAAG,CAAC,QAAsB,EAAQ,EAAE;YAC5D,IAAI,CAAC,kBAAkB,mCAAQ,eAAe,GAAK,QAAQ,CAAE,CAAC;YAC9D,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAO,CAAC;YACpD,IAAI,CAAC,aAAa,GAAG,IAAI,mCAAgB,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1F,CAAC,CAAC;QAEK,eAAU,GAAG,GAAkC,EAAE;YACpD,IAAI;gBACA,MAAM,SAAS,GAAG,MAAM,YAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,YAAE,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;gBACtF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;aAC3B;YAAC,OAAO,GAAG,EAAE;gBACV,MAA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AAI,mCAAgB,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1F,CAAC;CA6DJ;AA1ED,kDA0EC"}
|
package/dist/integration-engine/datasources/protocol-strategy/GoogleCloudStorageProtocolStrategy.js
CHANGED
|
@@ -49,7 +49,7 @@ class GoogleCloudStorageProtocolStrategy extends ProtocolStrategy_1.ProtocolStra
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
catch (err) {
|
|
52
|
-
throw new errors_1.
|
|
52
|
+
throw new errors_1.GeneralError("Error while getting data from server.", this.constructor.name, err);
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
this.getLastModified = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleCloudStorageProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/GoogleCloudStorageProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"GoogleCloudStorageProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/GoogleCloudStorageProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA+C;AAC/C,mDAAsD;AACtD,yCAAwC;AAExC,yDAAsF;AAEtF,MAAa,kCAAmC,SAAQ,mCAAgB;IAIpE,YAAY,QAAqC;QAC7C,KAAK,CAAC,QAAQ,CAAC,CAAC;QAIb,0BAAqB,GAAG,CAAC,QAAqC,EAAQ,EAAE;YAC3E,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC;YACnC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;QACtE,CAAC,CAAC;QAEK,eAAU,GAAG,GAAuB,EAAE;YACzC,IAAI;gBACA,4BAA4B;gBAC5B,IAAI,CAAC,K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uC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aAC/F;QACL,CAAC,CAAA,CAAC;QAEK,oBAAe,GAAG,GAAiC,EAAE;YACxD,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC/C,CAAC,CAAA,CAAC;QAlDE,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;IACtE,CAAC;CAkDJ;AAzDD,gFAyDC"}
|
|
@@ -89,7 +89,7 @@ class HTTPProtocolStrategy extends ProtocolStrategy_1.ProtocolStrategy {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
catch (err) {
|
|
92
|
-
throw new errors_1.
|
|
92
|
+
throw new errors_1.GeneralError("Error while getting data from server.", this.constructor.name, err);
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
this.getLastModified = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HTTPProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yDAAsF;AACtF,2CAAkC;AAClC,iEAA4D;AAC5D,yCAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"HTTPProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yDAAsF;AACtF,2CAAkC;AAClC,iEAA4D;AAC5D,yCAAwC;AACxC,4CAA+C;AAC/C,kDAAkD;AAClD,2DAA6B;AAC7B,oDAA4B;AAC5B,4CAAoB;AACpB,gDAAwB;AACxB,+BAAiC;AACjC,+BAAoC;AAEpC,MAAM,MAAM,GAAG,IAAA,gBAAS,EAAC,aAAE,CAAC,CAAC;AAE7B,M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IAAI,CAAC,cAAc,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAO,CAAC,CAAC;IAC9E,CAAC;CAyFJ;AAhGD,oDAgGC"}
|
package/dist/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategyStreamed.js
CHANGED
|
@@ -55,7 +55,7 @@ class HTTPProtocolStrategyStreamed extends HTTPProtocolStrategy_1.HTTPProtocolSt
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
catch (err) {
|
|
58
|
-
throw new errors_1.
|
|
58
|
+
throw new errors_1.GeneralError("Error while getting data from server.", this.constructor.name, err);
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
}
|
package/dist/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategyStreamed.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HTTPProtocolStrategyStreamed.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategyStreamed.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"HTTPProtocolStrategyStreamed.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/HTTPProtocolStrategyStreamed.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAA+C;AAC/C,kDAA0D;AAC1D,kDAA0B;AAC1B,sCAAmD;AACnD,iEAA8F;AAG9F,MAAa,4BAA6B,SAAQ,2CAAoB;IAAtE;;QAGI;;WAEG;QACI,yBAAoB,GAAG,CAAC,eAAoB,EAAgC,EAAE;YACjF,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;YACvC,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;QA0DK,eAAU,GAAG,GAAuB,EAAE;YACzC,IAAI;gBACA,IAAI,CAAC,kBAAkB,CAAC,UAAU,GAAG,IAAI,eAAK,CAAC,KAAK,CAAC;oBACjD,kBAAkB,EAAE,KAAK;iB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I,CAAC,CAAC;wBACrB,aAAa,GAAG,IAAI,CAAC;qBACxB;gBACL,CAAC,CAAC,CAAC;gBACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;oBACtB,yCAAyC;oBACzC,IAAI,CAAC,aAAa,EAAE;wBAChB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;wBACrB,aAAa,GAAG,IAAI,CAAC;qBACxB;gBACL,CAAC,CAAC,CAAC;gBACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAU,EAAE,EAAE;oBAClC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBACnC,CAAC,CAAC,CAAC;aACN;YACD,OAAO,SAAS,CAAC;QACrB,CAAC;KAAA;CAqCJ;AAtGD,oEAsGC"}
|
|
@@ -40,7 +40,7 @@ class PostgresProtocolStrategy extends ProtocolStrategy_1.ProtocolStrategy {
|
|
|
40
40
|
yield connection.close();
|
|
41
41
|
}
|
|
42
42
|
catch (err) {
|
|
43
|
-
throw new errors_1.
|
|
43
|
+
throw new errors_1.GeneralError("Error while deleting data from server.", this.constructor.name, err);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
this.getRawData = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -60,7 +60,7 @@ class PostgresProtocolStrategy extends ProtocolStrategy_1.ProtocolStrategy {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
catch (err) {
|
|
63
|
-
throw new errors_1.
|
|
63
|
+
throw new errors_1.GeneralError("Error while getting data from server.", this.constructor.name, err);
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
}
|
package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostgresProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA2C;AAC3C,0EAAqE;AAErE,yDAAsF;AACtF,2CAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"PostgresProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA2C;AAC3C,0EAAqE;AAErE,yDAAsF;AACtF,2CAAkC;AAClC,4CAA+C;AAE/C,MAAa,wBAAyB,SAAQ,mCAAgB;IAG1D,YAAY,QAA2B;QACnC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAGb,0BAAqB,GAAG,CAAC,QAA2B,EAAQ,EAAE;YACjE,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC;QACvC,CAAC,CAAC;QAEK,oBAAe,GAAG,GAAuB,EAAE;YAC9C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC/C,CAAC,CAAA,CAAC;QAEK,eAAU,GAAG,GAAwB,EAAE;YAC1C,IAAI;gBACA,MAAM,SAAS,GAAG,IAAI,qCAAiB,CAAC,eAAM,EAAE,aAAG,CAAC,CAAC;gBACrD,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;gBAErF,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC,eAAe,kCACnG,CAAC,IAAI,CAAC,kBAAkB,CAAC,2BAA2B;oBACnD,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,2BAA2B;oBACrD,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,GAClE,CAAC,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,EA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,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;gBAEzG,yDAAyD;gBACzD,oEAAoE;gBACpE,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC;gBAEzB,OAAO;oBACH,IAAI,EAAE,OAAO;iBAChB,CAAC;aACL;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,qBAAY,CAAC,uCAAuC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aAC/F;QACL,CAAC,CAAA,CAAC;IA5DF,CAAC;CA6DJ;AAlED,4DAkEC"}
|
package/dist/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategyStreamed.js
CHANGED
|
@@ -100,7 +100,7 @@ class PostgresProtocolStrategyStreamed extends PostgresProtocolStrategy_1.Postgr
|
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
catch (err) {
|
|
103
|
-
throw new errors_1.
|
|
103
|
+
throw new errors_1.GeneralError("Error while getting data from server.", this.constructor.name, err);
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostgresProtocolStrategyStreamed.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategyStreamed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAoC;AACpC,0EAAqE;AACrE,sCAAmD;AAEnD,yEAAsG;AACtG,2CAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"PostgresProtocolStrategyStreamed.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/PostgresProtocolStrategyStreamed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAoC;AACpC,0EAAqE;AACrE,sCAAmD;AAEnD,yEAAsG;AACtG,2CAAkC;AAClC,4CAA+C;AAE/C,MAAa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tF;iCACJ;gCAAC,OAAO,GAAG,EAAE;oCACV,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;iCAC3B;4BACL,CAAC;yBAAA;wBACK,OAAO;;gCACT,IAAI,kBAAkB,EAAE;oCACpB,IAAI;wCACA,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC;wCACzB,kBAAkB,GAAG,KAAK,CAAC;qCAC9B;oCAAC,OAAO,GAAG,EAAE;wCACV,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;qCAC3B;iCACJ;4BACL,CAAC;yBAAA;qBACJ,CAAC;iBACL,CAAC;aACL;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,qBAAY,CAAC,uCAAuC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aAC/F;QACL,CAAC,CAAA,CAAC;IACN,CAAC;CAAA;AA5FD,4EA4FC"}
|
|
@@ -47,7 +47,7 @@ class SFTPProtocolStrategy extends ProtocolStrategy_1.ProtocolStrategy {
|
|
|
47
47
|
return rawData;
|
|
48
48
|
}
|
|
49
49
|
catch (err) {
|
|
50
|
-
throw new errors_1.
|
|
50
|
+
throw new errors_1.GeneralError("Error while getting data from server.", this.constructor.name, err);
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
this.getLastModified = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -70,7 +70,7 @@ class SFTPProtocolStrategy extends ProtocolStrategy_1.ProtocolStrategy {
|
|
|
70
70
|
return lastMod.name;
|
|
71
71
|
}
|
|
72
72
|
catch (err) {
|
|
73
|
-
throw new errors_1.
|
|
73
|
+
throw new errors_1.GeneralError("Error while getting data from server.", this.constructor.name, err);
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
this.connect = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SFTPProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/SFTPProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"SFTPProtocolStrategy.js","sourceRoot":"","sources":["../../../../src/integration-engine/datasources/protocol-strategy/SFTPProtocolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAA+C;AAC/C,wEAAoC;AACpC,4DAA+B;AAE/B,yDAAsF;AAEtF,MAAa,oBAAqB,SAAQ,mCAAgB;IAKtD,YAAY,QAAuB;QAC/B,KAAK,CAAC,QAAQ,CAAC,CAAC;QAHZ,cAAS,GAAG,KAAK,CAAC;QAOnB,0BAAqB,GAAG,CAAC,QAAuB,EAAQ,EAAE;YAC7D,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC;QACvC,CAAC,CAAC;QAEK,eAAU,GAAG,GAAuB,EAAE;YACzC,IAAI;gBACA,cAAc;gBACd,uBAAuB;gBACvB,8FAA8F;gBAC9F,mGAAmG;gBACnG,KAAK;gBACL,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;gBAErB,IAAI,WAAW,GAAG,CAAC,CAAC;gBACpB,IAAI,OAAY,CAAC;gBAEjB,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAS,EAAE,EAAE;oBACpF,IAAI,IAAI,CAAC,UAAU,GAAG,WAAW,EAAE;wBAC/B,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC;wBAC9B,OAAO,GAAG,IAAI,CAAC;qBAClB;gBACL,CAAC,CAAC,CAAC;gBAEH,MAAM,OAAO,GAAG;oBACZ,IAAI,EAAE,oBAAK,CAAC,MAAM,CACd,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,C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AAkB,CAAC,UAAU;oBAC9C,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI;oBAClC,QAAQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,QAAQ;oBAC1C,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI;oBAClC,QAAQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,QAAQ;iBAC7C,CAAC,CAAC;gBACH,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;aACzB;QACL,CAAC,CAAA,CAAC;QAEM,eAAU,GAAG,GAAwB,EAAE;YAC3C,IAAI,IAAI,CAAC,SAAS,EAAE;gBAChB,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;gBAC5B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;aAC1B;QACL,CAAC,CAAA,CAAC;QAtFE,IAAI,CAAC,UAAU,GAAG,IAAI,0BAAI,EAAE,CAAC;IACjC,CAAC;CAsFJ;AA9FD,oDA8FC"}
|
|
@@ -82,7 +82,7 @@ let GeocodeApi = class GeocodeApi {
|
|
|
82
82
|
return address;
|
|
83
83
|
}
|
|
84
84
|
catch (err) {
|
|
85
|
-
throw new errors_1.
|
|
85
|
+
throw new errors_1.RecoverableError("Retrieving of the open street map nominatim data failed.", this.constructor.name, err);
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
/**
|
|
@@ -103,13 +103,13 @@ let GeocodeApi = class GeocodeApi {
|
|
|
103
103
|
const resp = yield axios_1.default.request(options);
|
|
104
104
|
const result = resp.data;
|
|
105
105
|
if (result.length === 0) {
|
|
106
|
-
throw new errors_1.
|
|
106
|
+
throw new errors_1.RecoverableError("Geo coordinates were not found for address: '" + street + ", " + city + "'", this.constructor.name);
|
|
107
107
|
}
|
|
108
108
|
return [parseFloat(result[0].lon), parseFloat(result[0].lat)];
|
|
109
109
|
}
|
|
110
110
|
catch (err) {
|
|
111
111
|
this.log.error(err);
|
|
112
|
-
throw new errors_1.
|
|
112
|
+
throw new errors_1.RecoverableError("Retrieving of the open street map nominatim data failed.", this.constructor.name, err);
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
/**
|
|
@@ -149,7 +149,7 @@ let GeocodeApi = class GeocodeApi {
|
|
|
149
149
|
return address;
|
|
150
150
|
}
|
|
151
151
|
catch (err) {
|
|
152
|
-
throw new errors_1.
|
|
152
|
+
throw new errors_1.RecoverableError("Retrieving address from Photon failed.", this.constructor.name, err);
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
this.openStreetApiUrlReverse = config.OPEN_STREET_MAP_API_URL_REVERSE;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeocodeApi.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/GeocodeApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,gCAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"GeocodeApi.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/GeocodeApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,gCAAyC;AACzC,4CAAmD;AACnD,kDAA0B;AAC1B,uCAA8C;AAW9C;;GAEG;AAEH,IAAa,UAAU,GAAvB,MAAa,UAAU;IAKnB,YACmC,MAAsB,EACL,GAAY;QAAZ,QAAG,GAAH,GAAG,CAAS;QAOhE;;;;;WAKG;QACI,uBAAkB,GAAG,CAAO,GAAW,EAAE,GAAW,EAA2B,EAAE;YACpF,MAAM,OAAO,GAAG;gBACZ,OAAO,EAAE;oBACL,eAAe,EAAE,UAAU;oBAC3B,OAAO,EAAE,wBAAwB;iBACpC;gBACD,GAAG,EAAE,IAAI,CAAC,uBAAuB,GAAG,OAAO,GAAG,GAAG,GAAG,OAAO,GAAG,GAAG;aACpE,CAAC;YAEF,IAAI;gBACA,MAAM,IAAI,GAAG,MAAM,eAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBAC1C,MAAM,UAAU,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sBAAsB,CAAC,QAAQ;oBAC/C,WAAW,EAAE,sBAAsB,CAAC,QAAQ;oBAC5C,cAAc,EAAE,sBAAsB,CAAC,MAAM;iBAChD,CAAC;gBAEF,OAAO,OAAO,CAAC;aAClB;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,yBAAgB,CAAC,wCAAwC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;aACpG;QACL,CAAC,CAAA,CAAC;QAnIE,IAAI,CAAC,uBAAuB,GAAG,MAAM,CAAC,+BAA+B,CAAC;QACtE,IAAI,CAAC,sBAAsB,GAAG,MAAM,CAAC,8BAA8B,CAAC;QACpE,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC,0BAA0B,CAAC;IACjE,CAAC;CAiIJ,CAAA;AA7IY,UAAU;IADtB,IAAA,qBAAU,GAAE;IAOJ,WAAA,IAAA,iBAAM,EAAC,oBAAc,CAAC,MAAM,CAAC,CAAA;IAC7B,WAAA,IAAA,iBAAM,EAAC,oBAAc,CAAC,MAAM,CAAC,CAAA;;GAPzB,UAAU,CA6ItB;AA7IY,gCAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { ErrorHandler, IGolemioError } from "@golemio/errors";
|
|
2
|
+
export interface IExtendedGolemioErrorObject extends IGolemioError {
|
|
3
3
|
ack: boolean;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
@@ -9,9 +9,9 @@ export interface IExtendedCustomErrorObject extends IGolemioError {
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class IntegrationErrorHandler extends ErrorHandler {
|
|
11
11
|
/**
|
|
12
|
-
* Handle the error. The function logs the error, kills the application if it's unknown
|
|
12
|
+
* Handle the error. The function logs the error, kills the application if it's unknown/fatal error.
|
|
13
13
|
*
|
|
14
|
-
* @param err Error (
|
|
14
|
+
* @param err Error (GolemioError) object to catch and process
|
|
15
15
|
*/
|
|
16
|
-
static handle(err: Error
|
|
16
|
+
static handle(err: Error): IExtendedGolemioErrorObject;
|
|
17
17
|
}
|
|
@@ -35,25 +35,21 @@ const node_1 = require("@sentry/node");
|
|
|
35
35
|
*/
|
|
36
36
|
class IntegrationErrorHandler extends errors_1.ErrorHandler {
|
|
37
37
|
/**
|
|
38
|
-
* Handle the error. The function logs the error, kills the application if it's unknown
|
|
38
|
+
* Handle the error. The function logs the error, kills the application if it's unknown/fatal error.
|
|
39
39
|
*
|
|
40
|
-
* @param err Error (
|
|
40
|
+
* @param err Error (GolemioError) object to catch and process
|
|
41
41
|
*/
|
|
42
42
|
static handle(err) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
];
|
|
47
|
-
if (err instanceof errors_1.CustomError && err.isOperational) {
|
|
48
|
-
// is warning
|
|
49
|
-
if (err.status && warningErrorCodes.indexOf(err.status) !== -1) {
|
|
43
|
+
if (err instanceof errors_1.GeneralError) {
|
|
44
|
+
if (err instanceof errors_1.RecoverableError) {
|
|
45
|
+
// warning: ack message - do not retry
|
|
50
46
|
helpers_1.log.warn(err);
|
|
51
47
|
sentry.setTag("status", "ack");
|
|
52
48
|
sentry.captureMessage(err.toString(), node_1.Severity.Warning);
|
|
53
49
|
return Object.assign(Object.assign({}, err.toObject()), { ack: true });
|
|
54
|
-
// is error
|
|
55
50
|
}
|
|
56
51
|
else {
|
|
52
|
+
// error: nack message - retry processing
|
|
57
53
|
helpers_1.log.error(err);
|
|
58
54
|
sentry.setTag("status", "nack");
|
|
59
55
|
sentry.captureException(err);
|
|
@@ -61,16 +57,16 @@ class IntegrationErrorHandler extends errors_1.ErrorHandler {
|
|
|
61
57
|
}
|
|
62
58
|
}
|
|
63
59
|
else {
|
|
64
|
-
// Unexpected
|
|
60
|
+
// Unexpected and Fatal errors
|
|
65
61
|
const msg = {
|
|
66
|
-
message: "[IE handler] Unexpected
|
|
62
|
+
message: "[IE handler] Unexpected fatal error. Exit.",
|
|
67
63
|
cause: err.message,
|
|
68
64
|
stack: err.stack,
|
|
69
65
|
};
|
|
70
66
|
helpers_1.log.error({ message: msg });
|
|
71
67
|
// if anything fails, process is killed
|
|
72
68
|
sentry.captureMessage(`Exiting: ${err.toString()}`, node_1.Severity.Fatal);
|
|
73
|
-
return process.exit(
|
|
69
|
+
return process.exit(1);
|
|
74
70
|
}
|
|
75
71
|
}
|
|
76
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationErrorHandler.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/IntegrationErrorHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gCAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"IntegrationErrorHandler.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/IntegrationErrorHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gCAAkC;AAClC,4CAA8F;AAC9F,qDAAuC;AACvC,uCAAwC;AAMxC;;;;GAIG;AACH,MAAa,uBAAwB,SAAQ,qBAAY;IACrD;;;;OAIG;IACI,MAAM,CAAC,MAAM,CAAC,GAAU;QAC3B,IAAI,GAAG,YAAY,qBAAY,EAAE;YAC7B,IAAI,GAAG,YAAY,yBAAgB,EAAE;gBACjC,sCAAsC;gBACtC,aAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACd,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;gBAC/B,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,eAAQ,CAAC,OAAO,CAAC,CAAC;gBACxD,uCAAY,GAAG,CAAC,QAAQ,EAAE,GAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAG;aAClD;iBAAM;gBACH,yCAAyC;gBACzC,aAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACf,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;gBAChC,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;gBAC7B,uCAAY,GAAG,CAAC,QAAQ,EAAE,GAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAG;aACnD;SACJ;aAAM;YACH,8BAA8B;YAC9B,MAAM,GAAG,GAAG;gBACR,OAAO,EAAE,4CAA4C;gBACrD,KAAK,EAAE,GAAG,CAAC,OAAO;gBAClB,KAAK,EAAE,GAAG,CAAC,KAAK;aACnB,CAAC;YACF,aAAG,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;YAC5B,uCAAuC;YACvC,MAAM,CAAC,cAAc,CAAC,YAAY,GAAG,CAAC,QAAQ,EAAE,EAAE,EAAE,eAAQ,CAAC,KAAK,CAAC,CAAC;YACpE,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SAC1B;IACL,CAAC;CACJ;AAlCD,0DAkCC"}
|
|
@@ -30,7 +30,7 @@ class PostgresModel {
|
|
|
30
30
|
return yield this.validator.Validate(data);
|
|
31
31
|
}
|
|
32
32
|
catch (err) {
|
|
33
|
-
throw new errors_1.
|
|
33
|
+
throw new errors_1.GeneralError("Error while validating data." + err.message, this.name, err);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
@@ -48,7 +48,7 @@ class PostgresModel {
|
|
|
48
48
|
yield this.validator.Validate(data);
|
|
49
49
|
}
|
|
50
50
|
catch (err) {
|
|
51
|
-
throw new errors_1.
|
|
51
|
+
throw new errors_1.GeneralError("Error while validating data.", this.name, err);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
@@ -81,7 +81,7 @@ class PostgresModel {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
catch (err) {
|
|
84
|
-
throw new errors_1.
|
|
84
|
+
throw new errors_1.GeneralError("Error while saving to database.", this.name, err);
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
this.truncate = (useTmpTable = false) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -100,7 +100,7 @@ class PostgresModel {
|
|
|
100
100
|
}
|
|
101
101
|
catch (err) {
|
|
102
102
|
yield t.rollback();
|
|
103
|
-
throw new errors_1.
|
|
103
|
+
throw new errors_1.GeneralError("Error while truncating data.", this.name, err);
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
this.find = (opts, useTmpTable = false) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -109,7 +109,7 @@ class PostgresModel {
|
|
|
109
109
|
return yield model.findAll(opts);
|
|
110
110
|
}
|
|
111
111
|
catch (err) {
|
|
112
|
-
throw new errors_1.
|
|
112
|
+
throw new errors_1.GeneralError("Error while getting from database.", this.name, err);
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
this.findOne = (opts, useTmpTable = false) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -118,7 +118,7 @@ class PostgresModel {
|
|
|
118
118
|
return yield model.findOne(opts);
|
|
119
119
|
}
|
|
120
120
|
catch (err) {
|
|
121
|
-
throw new errors_1.
|
|
121
|
+
throw new errors_1.GeneralError("Error while getting from database.", this.name, err);
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
this.findAndCountAll = (opts, useTmpTable = false) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -127,7 +127,7 @@ class PostgresModel {
|
|
|
127
127
|
return yield model.findAndCountAll(opts);
|
|
128
128
|
}
|
|
129
129
|
catch (err) {
|
|
130
|
-
throw new errors_1.
|
|
130
|
+
throw new errors_1.GeneralError("Error while getting from database.", this.name, err);
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
this.update = (data, opts, useTmpTable = false) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -148,7 +148,7 @@ class PostgresModel {
|
|
|
148
148
|
}
|
|
149
149
|
catch (err) {
|
|
150
150
|
this.log.error(JSON.stringify({ message: err.message, errors: err.errors, fields: err.fields }));
|
|
151
|
-
throw new errors_1.
|
|
151
|
+
throw new errors_1.GeneralError("Error while saving to database.", this.name, err);
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
this.insertOrUpdate = (model, data) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -169,7 +169,7 @@ class PostgresModel {
|
|
|
169
169
|
catch (err) {
|
|
170
170
|
this.log.error(JSON.stringify({ message: err.message, errors: err.errors, fields: err.fields }));
|
|
171
171
|
yield t.rollback();
|
|
172
|
-
throw new errors_1.
|
|
172
|
+
throw new errors_1.GeneralError("Error while saving to database.", this.name, err);
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
this.getSequelizeModelSafely = (useTmpTable) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -180,7 +180,7 @@ class PostgresModel {
|
|
|
180
180
|
yield model.sync();
|
|
181
181
|
}
|
|
182
182
|
else if (useTmpTable && !this.tmpSequelizeModel) {
|
|
183
|
-
throw new errors_1.
|
|
183
|
+
throw new errors_1.GeneralError("Temporary model is not defined.", this.name);
|
|
184
184
|
}
|
|
185
185
|
return model;
|
|
186
186
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostgresModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/PostgresModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAAqE;AAErE,
|
|
1
|
+
{"version":3,"file":"PostgresModel.js","sourceRoot":"","sources":["../../../src/integration-engine/models/PostgresModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAAqE;AAErE,4CAA+C;AAE/C,yCAA8F;AAC9F,wEAAiE;AAEjE,MAAa,aAAa;IAkBtB,YAAY,IAAY,EAAE,QAA4B,EAAE,SAAqB;;QA+CtE,SAAI,GAAG,CAAO,IAAS,EAAE,cAAuB,KAAK,EAAgB,EAAE;YAC1E,kBAAkB;YAClB,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,KAAK,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EACpB,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,yBAAyB,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC,qCAAe,CAAC,CAAC,CAAC,EAAE,CAAC,kCAElG,QAAQ,CAAC,2BAA2B,KACvC,MAAM,EAAE,KAAK,IAEpB,CAAC;SACT;aAAM;YACH,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;SACjC;QAED,IAAI,QAAQ,CAAC,kBAAkB,EAAE;YAC7B,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACzC,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;gBAC1C,IAAI,IAAI,CAAC,iBAAiB,EAAE;oBACxB,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;iBAChD;YACL,CAAC,CAAC,CAAC;SACN;QAED,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,EAAE;YAC3B,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACtC;QAED,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;IAC1C,CAAC;CAuLJ;AAtPD,sCAsPC"}
|
|
@@ -159,7 +159,7 @@ class RedisModel {
|
|
|
159
159
|
yield this.validator.Validate(data);
|
|
160
160
|
}
|
|
161
161
|
catch (err) {
|
|
162
|
-
throw new errors_1.
|
|
162
|
+
throw new errors_1.GeneralError("Error while validating data.", this.name, err);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
else if (!this.validator && this.isKeyConstructedFromData) {
|
|
@@ -169,7 +169,7 @@ class RedisModel {
|
|
|
169
169
|
this.buildKey = (key, data) => {
|
|
170
170
|
// checking if the value is type of object
|
|
171
171
|
if (this.isKeyConstructedFromData && typeof data !== "object") {
|
|
172
|
-
throw new errors_1.
|
|
172
|
+
throw new errors_1.GeneralError("The data must be a type of object.", this.constructor.name);
|
|
173
173
|
}
|
|
174
174
|
return this.isKeyConstructedFromData ? (0, utils_1.getSubProperty)(key, data) : key;
|
|
175
175
|
};
|