@golemio/rush-hour-aggregation 1.1.3 → 1.1.4-dev.884888818
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/integration-engine/AggregationWorker.js +2 -2
- package/dist/integration-engine/AggregationWorker.js.map +1 -1
- package/dist/integration-engine/WorkerHelper.js +5 -5
- package/dist/integration-engine/WorkerHelper.js.map +1 -1
- package/dist/integration-engine/dataAccess/AggregationRepository.js +2 -2
- package/dist/integration-engine/dataAccess/AggregationRepository.js.map +1 -1
- package/dist/integration-engine/service/AggregationFactory.js +2 -2
- package/dist/integration-engine/service/AggregationFactory.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ exports.AggregationWorker = void 0;
|
|
|
16
16
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
17
17
|
const config_1 = require("@golemio/core/dist/integration-engine/config");
|
|
18
18
|
const luxon_1 = require("@golemio/core/dist/shared/luxon");
|
|
19
|
-
const
|
|
19
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
20
20
|
const AggregationTaskType_1 = require("../schema-definitions/helpers/AggregationTaskType");
|
|
21
21
|
const AggregationFactory_1 = __importDefault(require("./service/AggregationFactory"));
|
|
22
22
|
const WorkerHelper_1 = __importDefault(require("./WorkerHelper"));
|
|
@@ -37,7 +37,7 @@ class AggregationWorker extends integration_engine_1.BaseWorker {
|
|
|
37
37
|
yield this.processTask(task.type, task.from, task.to, task.updateOnDuplicate, task.refreshView);
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
|
-
throw new
|
|
40
|
+
throw new golemio_errors_1.GeneralError(`Unable to process task: ${JSON.stringify(task)}.`, this.constructor.name);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
this.refreshHistoricViews = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AggregationWorker.js","sourceRoot":"","sources":["../../src/integration-engine/AggregationWorker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8EAAwE;AACxE,yEAAsE;AACtE,2DAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"AggregationWorker.js","sourceRoot":"","sources":["../../src/integration-engine/AggregationWorker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8EAAwE;AACxE,yEAAsE;AACtE,2DAAqE;AACrE,6EAAwE;AAExE,2FAAuE;AAEvE,sFAA8D;AAC9D,kEAA0C;AAE1C,MAAa,iBAAkB,SAAQ,+BAAU;IAO7C;QACI,KAAK,EAAE,CAAC;QAHJ,6BAAwB,GAAW,EAAE,CAAC;QAOvC,kBAAa,GAAG,CAAO,OAAgB,EAAE,EAAE;YAC9C,MAAM,IAAI,GAAG,sBAAY,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAChD,wBAAG,CAAC,KAAK,CAAC,sBAAsB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACxD,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;gBACxB,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;aAChC;iBAAM,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;gBAClC,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;aACrC;iBAAM,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,EAAE;gBAC1C,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;aACnG;iBAAM;gBACH,MAAM,IAAI,6BAAY,CAAC,2BAA2B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,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,UAAU,GAAG,gBAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;YAE9F,OAAO,UAAU,IAAI,UAAU,GAAG,WAAW,CAAC;SACjD;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;;AAlDL,8CA4FC;AA3FiB,6BAAW,GAAG,eAAM,CAAC,oBAAoB,GAAG,GAAG,GAAG,uBAAuB,CAAC;AAC1E,uCAAqB,GAAG,eAAe,CAAC;AACxC,gDAA8B,GAAG,sBAAsB,CAAC"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const AggregationTaskType_1 = require("../schema-definitions/helpers/AggregationTaskType");
|
|
7
7
|
const helpers_1 = require("@golemio/core/dist/integration-engine/helpers");
|
|
8
8
|
const luxon_1 = require("@golemio/core/dist/shared/luxon");
|
|
9
|
-
const
|
|
9
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
10
10
|
const AggregationTask_1 = __importDefault(require("./business/AggregationTask"));
|
|
11
11
|
class WorkerHelper {
|
|
12
12
|
static parseMessage(message) {
|
|
@@ -16,12 +16,12 @@ class WorkerHelper {
|
|
|
16
16
|
return {};
|
|
17
17
|
const type = AggregationTaskType_1.AggregationTaskType[(_a = task.type) === null || _a === void 0 ? void 0 : _a.toUpperCase()];
|
|
18
18
|
if (!type)
|
|
19
|
-
throw new
|
|
19
|
+
throw new golemio_errors_1.GeneralError(`Unknown aggregation task type ${JSON.stringify(task)}`, this.constructor.name);
|
|
20
20
|
if (!task.from || !task.to)
|
|
21
|
-
throw new
|
|
21
|
+
throw new golemio_errors_1.GeneralError(`Unsupported aggregation task ${JSON.stringify(task)}`, this.constructor.name);
|
|
22
22
|
const result = new AggregationTask_1.default(luxon_1.DateTime.fromISO(task.from).toJSDate(), luxon_1.DateTime.fromISO(task.to).toJSDate(), type, task.updateOnDuplicate ? task.updateOnDuplicate.toString().toLowerCase() == "true" : undefined, task.refreshView ? task.refreshView.toString().toLowerCase() == "true" : undefined);
|
|
23
23
|
if (result.from > result.to)
|
|
24
|
-
throw new
|
|
24
|
+
throw new golemio_errors_1.GeneralError(`Unsupported task date range ${JSON.stringify(task)}`, this.constructor.name);
|
|
25
25
|
return result;
|
|
26
26
|
}
|
|
27
27
|
static parseContent(messageContent) {
|
|
@@ -29,7 +29,7 @@ class WorkerHelper {
|
|
|
29
29
|
return messageContent.length > 0 ? JSON.parse(messageContent) : undefined;
|
|
30
30
|
}
|
|
31
31
|
catch (err) {
|
|
32
|
-
throw new
|
|
32
|
+
throw new golemio_errors_1.GeneralError(`Unable to parse json from message: ${messageContent}`, this.constructor.name, err);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkerHelper.js","sourceRoot":"","sources":["../../src/integration-engine/WorkerHelper.ts"],"names":[],"mappings":";;;;;AAAA,2FAAuE;AACvE,2EAAoE;AACpE,2DAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"WorkerHelper.js","sourceRoot":"","sources":["../../src/integration-engine/WorkerHelper.ts"],"names":[],"mappings":";;;;;AAAA,2FAAuE;AACvE,2EAAoE;AACpE,2DAAyE;AACzE,6EAAwE;AAExE,iFAAyD;AAEzD,MAAqB,YAAY;IACtB,MAAM,CAAC,YAAY,CAAC,OAAgB;;QACvC,MAAM,IAAI,GAAG,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEnE,IAAI,CAAC,IAAI;YAAE,OAAO,EAAqB,CAAC;QAExC,MAAM,IAAI,GAAS,yCAAoB,CAAC,MAAA,IAAI,CAAC,IAAI,0CAAE,WAAW,EAAE,CAAC,CAAC;QAClE,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,6BAAY,CA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,MAAM,MAAM,GAAsB,EAAE,CAAC;IACrC,MAAM,SAAS,GAAG,YAAY,CAAC,iBAAiB,CAAC,IAAI,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC;IACxE,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE;QAC1B,aAAG,CAAC,KAAK,CAAC,wBAAwB,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,QAAQ,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAC5F,MAAM,CAAC,IAAI,CAAC,IAAI,yBAAe,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,iBAAiB,EAAE,WAAW,CAAC,CAAC,CAAC;KACpG;IAED,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
const AggregationTaskType_1 = require("../../schema-definitions/helpers/AggregationTaskType");
|
|
16
16
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
17
17
|
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
18
|
-
const
|
|
18
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
19
19
|
const fs_1 = __importDefault(require("fs"));
|
|
20
20
|
const path_1 = __importDefault(require("path"));
|
|
21
21
|
class AggregationRepository {
|
|
@@ -34,7 +34,7 @@ class AggregationRepository {
|
|
|
34
34
|
if (!this.sqlQueries.get(type)) {
|
|
35
35
|
const queryFileName = this.sqlQueriesFileNames.get(type);
|
|
36
36
|
if (!queryFileName)
|
|
37
|
-
throw new
|
|
37
|
+
throw new golemio_errors_1.FatalError(`Couldn't find sql query for type: ${type}`, this.constructor.name);
|
|
38
38
|
const pathToQuery = path_1.default.resolve(__dirname, this.relativeModuleRootPath, this.sqlQueriesFolder, queryFileName);
|
|
39
39
|
this.sqlQueries.set(type, fs_1.default.readFileSync(pathToQuery).toString());
|
|
40
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AggregationRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/dataAccess/AggregationRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,8FAAuE;AACvE,8EAA0E;AAC1E,mEAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"AggregationRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/dataAccess/AggregationRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,8FAAuE;AACvE,8EAA0E;AAC1E,mEAAqF;AACrF,6EAAsE;AACtE,4CAAoB;AACpB,gDAAwB;AAExB,MAAqB,qBAAqB;IAetC;QAXQ,2BAAsB,GAAW,WAAW,CAAC,CAAC,wBAAwB;QACtE,qBAAgB,GAAW,uBAAuB,CAAC;QAqBpD,qBAAgB,GAAG,CACtB,IAAyB,EACzB,QAA6B,EAC7B,YAAiC,EACrB,EAAE;YACd,OAAO,MAAM,sCAAiB,CAAC,aAAa,EAAE,CAAC,KAAK,CAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;gBAC7E,IAAI,EAAE,sBAAU,CAAC,MAAM;gBACvB,GAAG,EAAE,IAAI;gBACT,IAAI,EAAE,QAAQ;gBACd,YAAY,EAAE,YAAY;aAC7B,CAAC,CAAC;QACP,CAAC,CAAA,CAAC;QAEQ,iBAAY,GAAG,CAAC,IAAyB,EAAU,EAAE;YAC3D,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAC5B,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACzD,IAAI,CAAC,aAAa;oBAAE,MAAM,IAAI,2BAAU,CAAC,qCAAqC,IAAI,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;gBAE7G,MAAM,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;gBAC/G,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,YAAE,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;aACtE;YAED,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC;QACtC,CAAC,CAAC;QAjCE,IAAI,CAAC,mBAAmB,GAAG,IAAI,GAAG,CAA8B;YAC5D,CAAC,yCAAmB,CAAC,GAAG,EAAE,eAAe,CAAC;YAC1C,CAAC,yCAAmB,CAAC,IAAI,EAAE,oBAAoB,CAAC;YAChD,CAAC,yCAAmB,CAAC,IAAI,EAAE,eAAe,CAAC;YAC3C,CAAC,yCAAmB,CAAC,KAAK,EAAE,yBAAyB,CAAC;YACtD,CAAC,yCAAmB,CAAC,KAAK,EAAE,oCAAoC,CAAC;SACpE,CAAC,CAAC;QACH,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAA+B,CAAC;IAC7D,CAAC;IAjBM,MAAM,CAAC,WAAW;QACrB,IAAI,CAAC,qBAAqB,CAAC,QAAQ,EAAE;YACjC,qBAAqB,CAAC,QAAQ,GAAG,IAAI,qBAAqB,EAAE,CAAC;SAChE;QAED,OAAO,qBAAqB,CAAC,QAAQ,CAAC;IAC1C,CAAC;CAqCJ;AAlDD,wCAkDC"}
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const AggregationTaskType_1 = require("../../schema-definitions/helpers/AggregationTaskType");
|
|
7
|
-
const
|
|
7
|
+
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
8
8
|
const FcdEventsAggregator_1 = __importDefault(require("./aggregators/FcdEventsAggregator"));
|
|
9
9
|
const NdicEventsAggregator_1 = __importDefault(require("./aggregators/NdicEventsAggregator"));
|
|
10
10
|
const TskEventsAggregator_1 = __importDefault(require("./aggregators/TskEventsAggregator"));
|
|
@@ -22,7 +22,7 @@ class AggregationFactory {
|
|
|
22
22
|
}
|
|
23
23
|
get(type) {
|
|
24
24
|
if (!this.products.has(type)) {
|
|
25
|
-
throw new
|
|
25
|
+
throw new golemio_errors_1.GeneralError(`Unknown aggregation task type: ${type}`, this.constructor.name);
|
|
26
26
|
}
|
|
27
27
|
return this.products.get(type);
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AggregationFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/service/AggregationFactory.ts"],"names":[],"mappings":";;;;;AAAA,8FAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"AggregationFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/service/AggregationFactory.ts"],"names":[],"mappings":";;;;;AAAA,8FAAuE;AACvE,6EAAwE;AACxE,4FAAoE;AAEpE,8FAAsE;AACtE,4FAAoE;AACpE,0FAAkE;AAClE,gHAAwF;AAExF,MAAqB,kBAAkB;IAGnC;QACI,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,CAA2C;YAC9D,CAAC,yCAAmB,CAAC,GAAG,EAAE,IAAI,6BAAmB,EAAE,CAAC;YACpD,CAAC,yCAAmB,CAAC,IAAI,EAAE,IAAI,8BAAoB,EAAE,CAAC;YACtD,CAAC,yCAAmB,CAAC,IAAI,EAAE,IAAI,6BAAmB,EAAE,CAAC;YACrD,CAAC,yCAAmB,CAAC,KAAK,EAAE,IAAI,4BAAkB,EAAE,CAAC;YACrD,CAAC,yCAAmB,CAAC,KAAK,EAAE,IAAI,uCAA6B,EAAE,CAAC;SACnE,CAAC,CAAC;IACP,CAAC;IAEM,GAAG,CAAC,IAAyB;QAChC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAC1B,MAAM,IAAI,6BAAY,CAAC,kCAAkC,IAAI,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SAC3F;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC;IACpC,CAAC;CACJ;AApBD,qCAoBC"}
|