@golemio/pid 2.6.4-dev.826255468 → 2.6.4-dev.826447303
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/vehicle-positions/workers/runs/helpers/CommonMessageProcessor.js
CHANGED
|
@@ -13,6 +13,7 @@ exports.CommonMessageProcessor = void 0;
|
|
|
13
13
|
const config_1 = require("@golemio/core/dist/integration-engine/config");
|
|
14
14
|
const queueprocessors_1 = require("@golemio/core/dist/integration-engine/queueprocessors");
|
|
15
15
|
const vehicle_positions_1 = require("../../../../../schema-definitions/vehicle-positions");
|
|
16
|
+
const const_1 = require("../../../../../const");
|
|
16
17
|
class CommonMessageProcessor {
|
|
17
18
|
constructor(runsRepository) {
|
|
18
19
|
this.runsRepository = runsRepository;
|
|
@@ -23,7 +24,8 @@ class CommonMessageProcessor {
|
|
|
23
24
|
const record = yield this.runsRepository.getRunRecordForUpdate(element.run);
|
|
24
25
|
let outputMsg;
|
|
25
26
|
if (record) {
|
|
26
|
-
if (!element.run_message.actual_stop_timestamp_scheduled
|
|
27
|
+
if (!element.run_message.actual_stop_timestamp_scheduled &&
|
|
28
|
+
!const_1.ArrayNotPublicRegistrationNumbers.includes(element.run.registration_number)) {
|
|
27
29
|
const lastRecordMessage = yield this.runsRepository["runsMessagesRepository"].getLastMessage(record.id);
|
|
28
30
|
if (!lastRecordMessage || !lastRecordMessage.actual_stop_timestamp_scheduled)
|
|
29
31
|
return;
|
package/dist/integration-engine/vehicle-positions/workers/runs/helpers/CommonMessageProcessor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonMessageProcessor.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/vehicle-positions/workers/runs/helpers/CommonMessageProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAsE;AACtE,2FAAqF;AAGrF,2FAA0D;
|
|
1
|
+
{"version":3,"file":"CommonMessageProcessor.js","sourceRoot":"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7BkE,CAAC;CA8BxE;AA/BD,wDA+BC"}
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -530,6 +530,13 @@ paths:
|
|
|
530
530
|
schema:
|
|
531
531
|
type: boolean
|
|
532
532
|
example: true
|
|
533
|
+
- name: includeNotPublic
|
|
534
|
+
in: query
|
|
535
|
+
description: Enrich result dataset with not public trips (trips without run schedule)
|
|
536
|
+
schema:
|
|
537
|
+
type: boolean
|
|
538
|
+
default: false
|
|
539
|
+
example: true
|
|
533
540
|
- name: includePositions
|
|
534
541
|
in: query
|
|
535
542
|
description: Enrich result dataset with positions
|