@golemio/rush-hour-aggregation 1.0.0-dev.520603218

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.
Files changed (110) hide show
  1. package/LICENSE +11 -0
  2. package/README.md +47 -0
  3. package/db/migrations/postgresql/.config.json +3 -0
  4. package/db/migrations/postgresql/20220405102916-prahaZasekanaAggregation.js +53 -0
  5. package/db/migrations/postgresql/package.json +3 -0
  6. package/db/migrations/postgresql/sqls/20220405102916-prahaZasekanaAggregation-down.sql +6 -0
  7. package/db/migrations/postgresql/sqls/20220405102916-prahaZasekanaAggregation-up.sql +64 -0
  8. package/db/migrations/postgresql/sqls/package.json +3 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.js +25 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/integration-engine/AggregationWorker.d.ts +16 -0
  13. package/dist/integration-engine/AggregationWorker.js +83 -0
  14. package/dist/integration-engine/AggregationWorker.js.map +1 -0
  15. package/dist/integration-engine/WorkerHelper.d.ts +9 -0
  16. package/dist/integration-engine/WorkerHelper.js +52 -0
  17. package/dist/integration-engine/WorkerHelper.js.map +1 -0
  18. package/dist/integration-engine/business/AggregationTask.d.ts +11 -0
  19. package/dist/integration-engine/business/AggregationTask.js +18 -0
  20. package/dist/integration-engine/business/AggregationTask.js.map +1 -0
  21. package/dist/integration-engine/business/interfaces/IAggregationTask.d.ts +6 -0
  22. package/dist/integration-engine/business/interfaces/IAggregationTask.js +3 -0
  23. package/dist/integration-engine/business/interfaces/IAggregationTask.js.map +1 -0
  24. package/dist/integration-engine/dataAccess/AggregationRepository.d.ts +13 -0
  25. package/dist/integration-engine/dataAccess/AggregationRepository.js +60 -0
  26. package/dist/integration-engine/dataAccess/AggregationRepository.js.map +1 -0
  27. package/dist/integration-engine/dataAccess/FcdEventsRepository.d.ts +6 -0
  28. package/dist/integration-engine/dataAccess/FcdEventsRepository.js +38 -0
  29. package/dist/integration-engine/dataAccess/FcdEventsRepository.js.map +1 -0
  30. package/dist/integration-engine/dataAccess/NdicEventRepository.d.ts +6 -0
  31. package/dist/integration-engine/dataAccess/NdicEventRepository.js +38 -0
  32. package/dist/integration-engine/dataAccess/NdicEventRepository.js.map +1 -0
  33. package/dist/integration-engine/dataAccess/TskEventsRepository.d.ts +6 -0
  34. package/dist/integration-engine/dataAccess/TskEventsRepository.js +38 -0
  35. package/dist/integration-engine/dataAccess/TskEventsRepository.js.map +1 -0
  36. package/dist/integration-engine/dataAccess/WazeJamsRepository.d.ts +6 -0
  37. package/dist/integration-engine/dataAccess/WazeJamsRepository.js +40 -0
  38. package/dist/integration-engine/dataAccess/WazeJamsRepository.js.map +1 -0
  39. package/dist/integration-engine/dataAccess/WazeReconstructionsRepository.d.ts +6 -0
  40. package/dist/integration-engine/dataAccess/WazeReconstructionsRepository.js +38 -0
  41. package/dist/integration-engine/dataAccess/WazeReconstructionsRepository.js.map +1 -0
  42. package/dist/integration-engine/index.d.ts +2 -0
  43. package/dist/integration-engine/index.js +16 -0
  44. package/dist/integration-engine/index.js.map +1 -0
  45. package/dist/integration-engine/queueDefinitions.d.ts +3 -0
  46. package/dist/integration-engine/queueDefinitions.js +25 -0
  47. package/dist/integration-engine/queueDefinitions.js.map +1 -0
  48. package/dist/integration-engine/service/AggregationFactory.d.ts +7 -0
  49. package/dist/integration-engine/service/AggregationFactory.js +30 -0
  50. package/dist/integration-engine/service/AggregationFactory.js.map +1 -0
  51. package/dist/integration-engine/service/aggregators/AbstractAggregator.d.ts +8 -0
  52. package/dist/integration-engine/service/aggregators/AbstractAggregator.js +27 -0
  53. package/dist/integration-engine/service/aggregators/AbstractAggregator.js.map +1 -0
  54. package/dist/integration-engine/service/aggregators/FcdEventsAggregator.d.ts +12 -0
  55. package/dist/integration-engine/service/aggregators/FcdEventsAggregator.js +50 -0
  56. package/dist/integration-engine/service/aggregators/FcdEventsAggregator.js.map +1 -0
  57. package/dist/integration-engine/service/aggregators/NdicEventsAggregator.d.ts +11 -0
  58. package/dist/integration-engine/service/aggregators/NdicEventsAggregator.js +57 -0
  59. package/dist/integration-engine/service/aggregators/NdicEventsAggregator.js.map +1 -0
  60. package/dist/integration-engine/service/aggregators/TskEventsAggregator.d.ts +11 -0
  61. package/dist/integration-engine/service/aggregators/TskEventsAggregator.js +49 -0
  62. package/dist/integration-engine/service/aggregators/TskEventsAggregator.js.map +1 -0
  63. package/dist/integration-engine/service/aggregators/WazeJamsAggregator.d.ts +10 -0
  64. package/dist/integration-engine/service/aggregators/WazeJamsAggregator.js +50 -0
  65. package/dist/integration-engine/service/aggregators/WazeJamsAggregator.js.map +1 -0
  66. package/dist/integration-engine/service/aggregators/WazeReconstructionsAggregator.d.ts +10 -0
  67. package/dist/integration-engine/service/aggregators/WazeReconstructionsAggregator.js +49 -0
  68. package/dist/integration-engine/service/aggregators/WazeReconstructionsAggregator.js.map +1 -0
  69. package/dist/schema-definitions/helpers/AggregationTaskType.d.ts +7 -0
  70. package/dist/schema-definitions/helpers/AggregationTaskType.js +12 -0
  71. package/dist/schema-definitions/helpers/AggregationTaskType.js.map +1 -0
  72. package/dist/schema-definitions/sequelize-models/FcdEvents.d.ts +14 -0
  73. package/dist/schema-definitions/sequelize-models/FcdEvents.js +33 -0
  74. package/dist/schema-definitions/sequelize-models/FcdEvents.js.map +1 -0
  75. package/dist/schema-definitions/sequelize-models/NdicEvent.d.ts +20 -0
  76. package/dist/schema-definitions/sequelize-models/NdicEvent.js +44 -0
  77. package/dist/schema-definitions/sequelize-models/NdicEvent.js.map +1 -0
  78. package/dist/schema-definitions/sequelize-models/PrahaZasekanaInfo.d.ts +10 -0
  79. package/dist/schema-definitions/sequelize-models/PrahaZasekanaInfo.js +15 -0
  80. package/dist/schema-definitions/sequelize-models/PrahaZasekanaInfo.js.map +1 -0
  81. package/dist/schema-definitions/sequelize-models/TskEvent.d.ts +12 -0
  82. package/dist/schema-definitions/sequelize-models/TskEvent.js +31 -0
  83. package/dist/schema-definitions/sequelize-models/TskEvent.js.map +1 -0
  84. package/dist/schema-definitions/sequelize-models/WazeJams.d.ts +14 -0
  85. package/dist/schema-definitions/sequelize-models/WazeJams.js +35 -0
  86. package/dist/schema-definitions/sequelize-models/WazeJams.js.map +1 -0
  87. package/dist/schema-definitions/sequelize-models/WazeReconstructions.d.ts +13 -0
  88. package/dist/schema-definitions/sequelize-models/WazeReconstructions.js +33 -0
  89. package/dist/schema-definitions/sequelize-models/WazeReconstructions.js.map +1 -0
  90. package/dist/schema-definitions/sequelize-models/interfaces/IFcdEvent.d.ts +8 -0
  91. package/dist/schema-definitions/sequelize-models/interfaces/IFcdEvent.js +3 -0
  92. package/dist/schema-definitions/sequelize-models/interfaces/IFcdEvent.js.map +1 -0
  93. package/dist/schema-definitions/sequelize-models/interfaces/INdicEvent.d.ts +15 -0
  94. package/dist/schema-definitions/sequelize-models/interfaces/INdicEvent.js +3 -0
  95. package/dist/schema-definitions/sequelize-models/interfaces/INdicEvent.js.map +1 -0
  96. package/dist/schema-definitions/sequelize-models/interfaces/ITskEvent.d.ts +7 -0
  97. package/dist/schema-definitions/sequelize-models/interfaces/ITskEvent.js +3 -0
  98. package/dist/schema-definitions/sequelize-models/interfaces/ITskEvent.js.map +1 -0
  99. package/dist/schema-definitions/sequelize-models/interfaces/IWazeJams.d.ts +9 -0
  100. package/dist/schema-definitions/sequelize-models/interfaces/IWazeJams.js +3 -0
  101. package/dist/schema-definitions/sequelize-models/interfaces/IWazeJams.js.map +1 -0
  102. package/dist/schema-definitions/sequelize-models/interfaces/IWazeReconstructions.d.ts +8 -0
  103. package/dist/schema-definitions/sequelize-models/interfaces/IWazeReconstructions.js +3 -0
  104. package/dist/schema-definitions/sequelize-models/interfaces/IWazeReconstructions.js.map +1 -0
  105. package/package.json +63 -0
  106. package/templates/sqlQueries/FcdEvents.sql +19 -0
  107. package/templates/sqlQueries/NdicEventsFull.sql +85 -0
  108. package/templates/sqlQueries/TskEvents.sql +98 -0
  109. package/templates/sqlQueries/WazeJamsAggregation.sql +27 -0
  110. package/templates/sqlQueries/WazeReconstructionsAggregation.sql +27 -0
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const AggregationRepository_1 = __importDefault(require("../../dataAccess/AggregationRepository"));
16
+ const WazeJamsRepository_1 = __importDefault(require("../../dataAccess/WazeJamsRepository"));
17
+ const AggregationTaskType_1 = require("../../../schema-definitions/helpers/AggregationTaskType");
18
+ const AbstractAggregator_1 = __importDefault(require("./AbstractAggregator"));
19
+ class WazeAggregator extends AbstractAggregator_1.default {
20
+ constructor() {
21
+ super();
22
+ this.sqlQueryScriptName = "WazeJamsAggregation.sql";
23
+ this.aggregate = (from, to) => __awaiter(this, void 0, void 0, function* () {
24
+ const result = yield AggregationRepository_1.default.getInstance().aggregationQuery(AggregationTaskType_1.AggregationTaskType.WAZEJ, {
25
+ from: from.getTime(),
26
+ to: to.getTime(),
27
+ });
28
+ return this.mapToDto(result);
29
+ });
30
+ this.save = (data, updateOnDuplicate) => __awaiter(this, void 0, void 0, function* () {
31
+ yield this.repository.validate(data);
32
+ yield this.repository.saveData(data, updateOnDuplicate);
33
+ });
34
+ this.repository = new WazeJamsRepository_1.default();
35
+ }
36
+ mapToDto(data) {
37
+ return data.map((element) => {
38
+ return {
39
+ id: element.id,
40
+ measured_at: Number.parseInt(element.measured_at),
41
+ geom_origin: element.geom_origin,
42
+ geom_startpoint: element.geom_startpoint,
43
+ traffic_level: element.traffic_level,
44
+ properties: element.properties,
45
+ };
46
+ });
47
+ }
48
+ }
49
+ exports.default = WazeAggregator;
50
+ //# sourceMappingURL=WazeJamsAggregator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WazeJamsAggregator.js","sourceRoot":"","sources":["../../../../src/integration-engine/service/aggregators/WazeJamsAggregator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mGAAyE;AACzE,6FAAmE;AACnE,iGAAuE;AAGvE,8EAAsD;AAEtD,MAAqB,cAAe,SAAQ,4BAAkB;IAI1D;QACI,KAAK,EAAE,CAAC;QAJF,uBAAkB,GAAW,yBAAyB,CAAC;QAQvD,cAAS,GAAG,CAAO,IAAU,EAAE,EAAQ,EAAuB,EAAE;YACtE,MAAM,MAAM,GAAG,MAAM,+BAAqB,CAAC,WAAW,EAAE,CAAC,gBAAgB,CAAY,yCAAmB,CAAC,KAAK,EAAE;gBAC5G,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE;gBACpB,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE;aACnB,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAA,CAAC;QAEQ,SAAI,GAAG,CAAO,IAAgB,EAAE,iBAA0B,EAAiB,EAAE;YACnF,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrC,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAC5D,CAAC,CAAA,CAAC;QAfE,IAAI,CAAC,UAAU,GAAG,IAAI,4BAAkB,EAAE,CAAC;IAC/C,CAAC;IAgBS,QAAQ,CAAC,IAAW;QAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YACxB,OAAO;gBACH,EAAE,EAAE,OAAO,CAAC,EAAE;gBACd,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC;gBACjD,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,eAAe,EAAE,OAAO,CAAC,eAAe;gBACxC,aAAa,EAAE,OAAO,CAAC,aAAa;gBACpC,UAAU,EAAE,OAAO,CAAC,UAAU;aACrB,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAnCD,iCAmCC"}
@@ -0,0 +1,10 @@
1
+ import WazeReconstructions from "../../../schema-definitions/sequelize-models/WazeReconstructions";
2
+ import AbstractAggregator from "./AbstractAggregator";
3
+ export default class WazeReconstructionsAggregator extends AbstractAggregator {
4
+ protected sqlQueryScriptName: string;
5
+ private repository;
6
+ constructor();
7
+ protected aggregate: (from: Date, to: Date) => Promise<WazeReconstructions[]>;
8
+ protected save: (data: WazeReconstructions[], updateOnDuplicate: boolean) => Promise<void>;
9
+ protected mapToDto(data: any[]): WazeReconstructions[];
10
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const AggregationRepository_1 = __importDefault(require("../../dataAccess/AggregationRepository"));
16
+ const WazeReconstructionsRepository_1 = __importDefault(require("../../dataAccess/WazeReconstructionsRepository"));
17
+ const AggregationTaskType_1 = require("../../../schema-definitions/helpers/AggregationTaskType");
18
+ const AbstractAggregator_1 = __importDefault(require("./AbstractAggregator"));
19
+ class WazeReconstructionsAggregator extends AbstractAggregator_1.default {
20
+ constructor() {
21
+ super();
22
+ this.sqlQueryScriptName = "WazeReconstructionsAggregation.sql";
23
+ this.aggregate = (from, to) => __awaiter(this, void 0, void 0, function* () {
24
+ const result = yield AggregationRepository_1.default.getInstance().aggregationQuery(AggregationTaskType_1.AggregationTaskType.WAZER, {
25
+ from: from.getTime(),
26
+ to: to.getTime(),
27
+ });
28
+ return this.mapToDto(result);
29
+ });
30
+ this.save = (data, updateOnDuplicate) => __awaiter(this, void 0, void 0, function* () {
31
+ yield this.repository.validate(data);
32
+ yield this.repository.saveData(data, updateOnDuplicate);
33
+ });
34
+ this.repository = new WazeReconstructionsRepository_1.default();
35
+ }
36
+ mapToDto(data) {
37
+ return data.map((element) => {
38
+ return {
39
+ id: element.id,
40
+ measured_at: Number.parseInt(element.measured_at),
41
+ geom_origin: element.geom_origin,
42
+ geom_startpoint: element.geom_startpoint,
43
+ properties: element.properties,
44
+ };
45
+ });
46
+ }
47
+ }
48
+ exports.default = WazeReconstructionsAggregator;
49
+ //# sourceMappingURL=WazeReconstructionsAggregator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WazeReconstructionsAggregator.js","sourceRoot":"","sources":["../../../../src/integration-engine/service/aggregators/WazeReconstructionsAggregator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mGAAyE;AACzE,mHAAyF;AACzF,iGAAuE;AAGvE,8EAAsD;AAEtD,MAAqB,6BAA8B,SAAQ,4BAAkB;IAIzE;QACI,KAAK,EAAE,CAAC;QAJF,uBAAkB,GAAW,oCAAoC,CAAC;QAQlE,cAAS,GAAG,CAAO,IAAU,EAAE,EAAQ,EAAkC,EAAE;YACjF,MAAM,MAAM,GAAG,MAAM,+BAAqB,CAAC,WAAW,EAAE,CAAC,gBAAgB,CACrE,yCAAmB,CAAC,KAAK,EACzB;gBACI,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE;gBACpB,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE;aACnB,CACJ,CAAC;YAEF,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAA,CAAC;QAEQ,SAAI,GAAG,CAAO,IAA2B,EAAE,iBAA0B,EAAiB,EAAE;YAC9F,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrC,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAC5D,CAAC,CAAA,CAAC;QAlBE,IAAI,CAAC,UAAU,GAAG,IAAI,uCAA6B,EAAE,CAAC;IAC1D,CAAC;IAmBS,QAAQ,CAAC,IAAW;QAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YACxB,OAAO;gBACH,EAAE,EAAE,OAAO,CAAC,EAAE;gBACd,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC;gBACjD,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,eAAe,EAAE,OAAO,CAAC,eAAe;gBACxC,UAAU,EAAE,OAAO,CAAC,UAAU;aACV,CAAC;QAC7B,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AArCD,gDAqCC"}
@@ -0,0 +1,7 @@
1
+ export declare enum AggregationTaskType {
2
+ SDDR = "SDDR",
3
+ FCD = "FCD",
4
+ NDIC = "NDIC",
5
+ WAZER = "WAZER",
6
+ WAZEJ = "WAZEJ"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AggregationTaskType = void 0;
4
+ var AggregationTaskType;
5
+ (function (AggregationTaskType) {
6
+ AggregationTaskType["SDDR"] = "SDDR";
7
+ AggregationTaskType["FCD"] = "FCD";
8
+ AggregationTaskType["NDIC"] = "NDIC";
9
+ AggregationTaskType["WAZER"] = "WAZER";
10
+ AggregationTaskType["WAZEJ"] = "WAZEJ";
11
+ })(AggregationTaskType = exports.AggregationTaskType || (exports.AggregationTaskType = {}));
12
+ //# sourceMappingURL=AggregationTaskType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AggregationTaskType.js","sourceRoot":"","sources":["../../../src/schema-definitions/helpers/AggregationTaskType.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC3B,oCAAa,CAAA;IACb,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,sCAAe,CAAA;IACf,sCAAe,CAAA;AACnB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B"}
@@ -0,0 +1,14 @@
1
+ import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
2
+ import { JSONSchemaType } from "@golemio/core/node_modules/ajv";
3
+ import { Geometry } from "geojson";
4
+ import IFcdEvent from "./interfaces/IFcdEvent";
5
+ import IWazeJams from "./interfaces/IWazeJams";
6
+ export default class FcdEvent extends Model<FcdEvent> implements IFcdEvent {
7
+ source_identification: string;
8
+ measured_at: number;
9
+ oriented_route: Geometry;
10
+ traffic_level: string;
11
+ properties: object;
12
+ static attributeModel: ModelAttributes<FcdEvent>;
13
+ static arrayJsonSchema: JSONSchemaType<IWazeJams[]>;
14
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const SharedSchemaProvider_1 = require("@golemio/core/dist/schema-definitions/SharedSchemaProvider");
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ class FcdEvent extends sequelize_1.Model {
6
+ }
7
+ exports.default = FcdEvent;
8
+ FcdEvent.attributeModel = {
9
+ source_identification: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
10
+ measured_at: { type: sequelize_1.DataTypes.BIGINT, primaryKey: true },
11
+ oriented_route: { type: sequelize_1.DataTypes.GEOMETRY },
12
+ traffic_level: { type: sequelize_1.DataTypes.STRING },
13
+ properties: { type: sequelize_1.DataTypes.JSON },
14
+ };
15
+ FcdEvent.arrayJsonSchema = {
16
+ type: "array",
17
+ items: {
18
+ type: "object",
19
+ properties: {
20
+ source_identification: { type: "string" },
21
+ measured_at: { type: "number" },
22
+ traffic_level: { type: "string" },
23
+ oriented_route: { $ref: "#/definitions/geometry" },
24
+ properties: { type: "object" },
25
+ },
26
+ required: ["source_identification", "measured_at"],
27
+ },
28
+ definitions: {
29
+ // @ts-expect-error since it is referenced definition from other file ts doesnt like it.
30
+ geometry: SharedSchemaProvider_1.SharedSchemaProvider.Geometry,
31
+ },
32
+ };
33
+ //# sourceMappingURL=FcdEvents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FcdEvents.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/FcdEvents.ts"],"names":[],"mappings":";;AAAA,qGAAkG;AAClG,mEAAwF;AAMxF,MAAqB,QAAS,SAAQ,iBAAe;;AAArD,2BAiCC;AA1BiB,uBAAc,GAA8B;IACtD,qBAAqB,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACnE,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACzD,cAAc,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE;IAC5C,aAAa,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IACzC,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,EAAE;CACvC,CAAC;AAEY,wBAAe,GAAgC;IACzD,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,qBAAqB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACjC,cAAc,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YAClD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACjC;QACD,QAAQ,EAAE,CAAC,uBAAuB,EAAE,aAAa,CAAC;KACrD;IACD,WAAW,EAAE;QACT,wFAAwF;QACxF,QAAQ,EAAE,2CAAoB,CAAC,QAAQ;KAC1C;CACJ,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
2
+ import { JSONSchemaType } from "@golemio/core/node_modules/ajv";
3
+ import { Geometry } from "geojson";
4
+ import INdicEvent from "./interfaces/INdicEvent";
5
+ export default class NdicEvent extends Model<NdicEvent> implements INdicEvent {
6
+ situation_id: string;
7
+ situation_record_type: string;
8
+ situation_version_time: string;
9
+ measured_at: number;
10
+ geom_origin: Geometry;
11
+ geom_centroid: Geometry;
12
+ geom_startpoint: Geometry;
13
+ geom_endpoint: Geometry;
14
+ situation_urgency: string;
15
+ geom_symbol_iconimage: string;
16
+ geom_line_pattern: string;
17
+ properties: object;
18
+ static attributeModel: ModelAttributes<NdicEvent>;
19
+ static arrayJsonSchema: JSONSchemaType<INdicEvent[]>;
20
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const SharedSchemaProvider_1 = require("@golemio/core/dist/schema-definitions/SharedSchemaProvider");
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ class NdicEvent extends sequelize_1.Model {
6
+ }
7
+ exports.default = NdicEvent;
8
+ NdicEvent.attributeModel = {
9
+ situation_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
10
+ situation_record_type: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
11
+ situation_version_time: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
12
+ measured_at: { type: sequelize_1.DataTypes.BIGINT, primaryKey: true },
13
+ geom_origin: { type: sequelize_1.DataTypes.GEOMETRY },
14
+ geom_centroid: { type: sequelize_1.DataTypes.GEOMETRY },
15
+ geom_startpoint: { type: sequelize_1.DataTypes.GEOMETRY },
16
+ geom_endpoint: { type: sequelize_1.DataTypes.GEOMETRY },
17
+ situation_urgency: { type: sequelize_1.DataTypes.STRING },
18
+ geom_symbol_iconimage: { type: sequelize_1.DataTypes.STRING },
19
+ geom_line_pattern: { type: sequelize_1.DataTypes.STRING },
20
+ properties: { type: sequelize_1.DataTypes.JSON },
21
+ };
22
+ NdicEvent.arrayJsonSchema = {
23
+ type: "array",
24
+ items: {
25
+ type: "object",
26
+ properties: {
27
+ measured_at: { type: "number" },
28
+ geom_origin: { $ref: "#/definitions/geometry" },
29
+ geom_centroid: { $ref: "#/definitions/geometry" },
30
+ geom_startpoint: { $ref: "#/definitions/geometry" },
31
+ geom_endpoint: { $ref: "#/definitions/geometry" },
32
+ situation_urgency: { type: "string" },
33
+ geom_symbol_iconimage: { type: "string" },
34
+ geom_line_pattern: { type: "string" },
35
+ properties: { type: "object" },
36
+ },
37
+ required: ["measured_at", "geom_origin"],
38
+ },
39
+ definitions: {
40
+ // @ts-expect-error since it is referenced definition from other file ts doesnt like it.
41
+ geometry: SharedSchemaProvider_1.SharedSchemaProvider.Geometry,
42
+ },
43
+ };
44
+ //# sourceMappingURL=NdicEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NdicEvent.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/NdicEvent.ts"],"names":[],"mappings":";;AAAA,qGAAkG;AAClG,mEAAwF;AAKxF,MAAqB,SAAU,SAAQ,iBAAgB;;AAAvD,4BAmDC;AArCiB,wBAAc,GAA+B;IACvD,YAAY,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IAC1D,qBAAqB,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACnE,sBAAsB,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACpE,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACzD,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE;IACzC,aAAa,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE;IAC3C,eAAe,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE;IAC7C,aAAa,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE;IAC3C,iBAAiB,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IAC7C,qBAAqB,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IACjD,iBAAiB,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IAC7C,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,EAAE;CACvC,CAAC;AAEY,yBAAe,GAAiC;IAC1D,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,WAAW,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YAC/C,aAAa,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACjD,eAAe,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACnD,aAAa,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACjD,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACrC,qBAAqB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzC,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACrC,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACjC;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;KAC3C;IACD,WAAW,EAAE;QACT,wFAAwF;QACxF,QAAQ,EAAE,2CAAoB,CAAC,QAAQ;KAC1C;CACJ,CAAC"}
@@ -0,0 +1,10 @@
1
+ export default class PrahaZasekanaInfo {
2
+ static SCHEMA: string;
3
+ static TABLE_NAMES: {
4
+ WAZEJ: string;
5
+ WAZER: string;
6
+ NDIC: string;
7
+ SDDR: string;
8
+ FCD: string;
9
+ };
10
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const AggregationTaskType_1 = require("../helpers/AggregationTaskType");
4
+ class PrahaZasekanaInfo {
5
+ }
6
+ exports.default = PrahaZasekanaInfo;
7
+ PrahaZasekanaInfo.SCHEMA = "praha_zasekana";
8
+ PrahaZasekanaInfo.TABLE_NAMES = {
9
+ [AggregationTaskType_1.AggregationTaskType.WAZEJ]: "waze_jams",
10
+ [AggregationTaskType_1.AggregationTaskType.WAZER]: "waze_reconstructions",
11
+ [AggregationTaskType_1.AggregationTaskType.NDIC]: "ndic_events_full",
12
+ [AggregationTaskType_1.AggregationTaskType.SDDR]: "tsk_std_last_30min",
13
+ [AggregationTaskType_1.AggregationTaskType.FCD]: "fcd_events",
14
+ };
15
+ //# sourceMappingURL=PrahaZasekanaInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrahaZasekanaInfo.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/PrahaZasekanaInfo.ts"],"names":[],"mappings":";;AAAA,wEAAuE;AAEvE,MAAqB,iBAAiB;;AAAtC,oCASC;AARiB,wBAAM,GAAG,gBAAgB,CAAC;AAC1B,6BAAW,GAAG;IACxB,CAAC,yCAAmB,CAAC,KAAK,CAAC,EAAE,WAAW;IACxC,CAAC,yCAAmB,CAAC,KAAK,CAAC,EAAE,sBAAsB;IACnD,CAAC,yCAAmB,CAAC,IAAI,CAAC,EAAE,kBAAkB;IAC9C,CAAC,yCAAmB,CAAC,IAAI,CAAC,EAAE,oBAAoB;IAChD,CAAC,yCAAmB,CAAC,GAAG,CAAC,EAAE,YAAY;CAC1C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
2
+ import { JSONSchemaType } from "@golemio/core/node_modules/ajv";
3
+ import { Geometry } from "geojson";
4
+ import ITskEvent from "./interfaces/ITskEvent";
5
+ export default class TskEvent extends Model<TskEvent> implements ITskEvent {
6
+ measured_at: number;
7
+ geom: Geometry;
8
+ sum: number | null;
9
+ properties: object;
10
+ static attributeModel: ModelAttributes<TskEvent>;
11
+ static arrayJsonSchema: JSONSchemaType<ITskEvent[]>;
12
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const SharedSchemaProvider_1 = require("@golemio/core/dist/schema-definitions/SharedSchemaProvider");
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ class TskEvent extends sequelize_1.Model {
6
+ }
7
+ exports.default = TskEvent;
8
+ TskEvent.attributeModel = {
9
+ measured_at: { type: sequelize_1.DataTypes.BIGINT, primaryKey: true },
10
+ geom: { type: sequelize_1.DataTypes.GEOMETRY, primaryKey: true },
11
+ sum: { type: sequelize_1.DataTypes.INTEGER },
12
+ properties: { type: sequelize_1.DataTypes.JSON },
13
+ };
14
+ TskEvent.arrayJsonSchema = {
15
+ type: "array",
16
+ items: {
17
+ type: "object",
18
+ properties: {
19
+ measured_at: { type: "number" },
20
+ geom: { $ref: "#/definitions/geometry" },
21
+ sum: { type: ["number", "null"] },
22
+ properties: { type: "object" },
23
+ },
24
+ required: ["measured_at", "geom"],
25
+ },
26
+ definitions: {
27
+ // @ts-expect-error since it is referenced definition from other file ts doesnt like it.
28
+ geometry: SharedSchemaProvider_1.SharedSchemaProvider.Geometry,
29
+ },
30
+ };
31
+ //# sourceMappingURL=TskEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TskEvent.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/TskEvent.ts"],"names":[],"mappings":";;AAAA,qGAAkG;AAClG,mEAAwF;AAKxF,MAAqB,QAAS,SAAQ,iBAAe;;AAArD,2BA8BC;AAxBiB,uBAAc,GAA8B;IACtD,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACzD,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE;IACpD,GAAG,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE;IAChC,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,EAAE;CACvC,CAAC;AAEY,wBAAe,GAAgC;IACzD,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,IAAI,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACxC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;YACjC,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACjC;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,MAAM,CAAC;KACpC;IACD,WAAW,EAAE;QACT,wFAAwF;QACxF,QAAQ,EAAE,2CAAoB,CAAC,QAAQ;KAC1C;CACJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
2
+ import { JSONSchemaType } from "@golemio/core/node_modules/ajv";
3
+ import { Geometry } from "geojson";
4
+ import IWazeJams from "./interfaces/IWazeJams";
5
+ export default class WazeJams extends Model<WazeJams> implements IWazeJams {
6
+ id: string;
7
+ measured_at: number;
8
+ geom_origin: Geometry;
9
+ geom_startpoint: Geometry;
10
+ traffic_level: string;
11
+ properties: object;
12
+ static attributeModel: ModelAttributes<WazeJams>;
13
+ static arrayJsonSchema: JSONSchemaType<IWazeJams[]>;
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const SharedSchemaProvider_1 = require("@golemio/core/dist/schema-definitions/SharedSchemaProvider");
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ class WazeJams extends sequelize_1.Model {
6
+ }
7
+ exports.default = WazeJams;
8
+ WazeJams.attributeModel = {
9
+ id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
10
+ measured_at: { type: sequelize_1.DataTypes.BIGINT },
11
+ geom_origin: { type: sequelize_1.DataTypes.GEOMETRY },
12
+ geom_startpoint: { type: sequelize_1.DataTypes.GEOMETRY },
13
+ traffic_level: { type: sequelize_1.DataTypes.STRING },
14
+ properties: { type: sequelize_1.DataTypes.JSON },
15
+ };
16
+ WazeJams.arrayJsonSchema = {
17
+ type: "array",
18
+ items: {
19
+ type: "object",
20
+ properties: {
21
+ id: { type: "string" },
22
+ measured_at: { type: "number" },
23
+ geom_origin: { $ref: "#/definitions/geometry" },
24
+ geom_startpoint: { $ref: "#/definitions/geometry" },
25
+ traffic_level: { type: "string" },
26
+ properties: { type: "object" },
27
+ },
28
+ required: ["id"],
29
+ },
30
+ definitions: {
31
+ // @ts-expect-error since it is referenced definition from other file ts doesnt like it.
32
+ geometry: SharedSchemaProvider_1.SharedSchemaProvider.Geometry,
33
+ },
34
+ };
35
+ //# sourceMappingURL=WazeJams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WazeJams.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/WazeJams.ts"],"names":[],"mappings":";;AAAA,qGAAkG;AAClG,mEAAwF;AAKxF,MAAqB,QAAS,SAAQ,iBAAe;;AAArD,2BAoCC;AA5BiB,uBAAc,GAA8B;IACtD,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IAChD,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IACvC,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE;IACzC,eAAe,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE;IAC7C,aAAa,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IACzC,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,EAAE;CACvC,CAAC;AAEY,wBAAe,GAAgC;IACzD,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACtB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,WAAW,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YAC/C,eAAe,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACnD,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACjC,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACjC;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACnB;IACD,WAAW,EAAE;QACT,wFAAwF;QACxF,QAAQ,EAAE,2CAAoB,CAAC,QAAQ;KAC1C;CACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
2
+ import { JSONSchemaType } from "@golemio/core/node_modules/ajv";
3
+ import { Geometry } from "geojson";
4
+ import IWazeReconstructions from "./interfaces/IWazeReconstructions";
5
+ export default class WazeReconstructions extends Model<WazeReconstructions> implements IWazeReconstructions {
6
+ id: string;
7
+ measured_at: number;
8
+ geom_origin: Geometry;
9
+ geom_startpoint: Geometry;
10
+ properties: object;
11
+ static attributeModel: ModelAttributes<WazeReconstructions>;
12
+ static arrayJsonSchema: JSONSchemaType<IWazeReconstructions[]>;
13
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const SharedSchemaProvider_1 = require("@golemio/core/dist/schema-definitions/SharedSchemaProvider");
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ class WazeReconstructions extends sequelize_1.Model {
6
+ }
7
+ exports.default = WazeReconstructions;
8
+ WazeReconstructions.attributeModel = {
9
+ id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
10
+ measured_at: { type: sequelize_1.DataTypes.BIGINT },
11
+ geom_origin: { type: sequelize_1.DataTypes.GEOMETRY },
12
+ geom_startpoint: { type: sequelize_1.DataTypes.GEOMETRY },
13
+ properties: { type: sequelize_1.DataTypes.JSON },
14
+ };
15
+ WazeReconstructions.arrayJsonSchema = {
16
+ type: "array",
17
+ items: {
18
+ type: "object",
19
+ properties: {
20
+ id: { type: "string" },
21
+ measured_at: { type: "number" },
22
+ geom_origin: { $ref: "#/definitions/geometry" },
23
+ geom_startpoint: { $ref: "#/definitions/geometry" },
24
+ properties: { type: "object" },
25
+ },
26
+ required: ["id"],
27
+ },
28
+ definitions: {
29
+ // @ts-expect-error since it is referenced definition from other file ts doesnt like it.
30
+ geometry: SharedSchemaProvider_1.SharedSchemaProvider.Geometry,
31
+ },
32
+ };
33
+ //# sourceMappingURL=WazeReconstructions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WazeReconstructions.js","sourceRoot":"","sources":["../../../src/schema-definitions/sequelize-models/WazeReconstructions.ts"],"names":[],"mappings":";;AAAA,qGAAkG;AAClG,mEAAwF;AAKxF,MAAqB,mBAAoB,SAAQ,iBAA0B;;AAA3E,sCAiCC;AA1BiB,kCAAc,GAAyC;IACjE,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IAChD,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IACvC,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE;IACzC,eAAe,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,IAAI,EAAE;CACvC,CAAC;AAEY,mCAAe,GAA2C;IACpE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACtB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,WAAW,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YAC/C,eAAe,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACnD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACjC;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACnB;IACD,WAAW,EAAE;QACT,wFAAwF;QACxF,QAAQ,EAAE,2CAAoB,CAAC,QAAQ;KAC1C;CACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Geometry } from "geojson";
2
+ export default interface IFcdEvent {
3
+ source_identification: string;
4
+ measured_at: number;
5
+ oriented_route: Geometry;
6
+ traffic_level: string;
7
+ properties: object;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IFcdEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFcdEvent.js","sourceRoot":"","sources":["../../../../src/schema-definitions/sequelize-models/interfaces/IFcdEvent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { Geometry } from "geojson";
2
+ export default interface ITskEvent {
3
+ situation_id: string;
4
+ situation_record_type: string;
5
+ situation_version_time: string;
6
+ measured_at: number;
7
+ geom_origin: Geometry;
8
+ geom_centroid: Geometry;
9
+ geom_startpoint: Geometry;
10
+ geom_endpoint: Geometry;
11
+ situation_urgency: string;
12
+ geom_symbol_iconimage: string;
13
+ geom_line_pattern: string;
14
+ properties: object;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=INdicEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"INdicEvent.js","sourceRoot":"","sources":["../../../../src/schema-definitions/sequelize-models/interfaces/INdicEvent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { Geometry } from "geojson";
2
+ export default interface ITskEvent {
3
+ measured_at: number;
4
+ geom: Geometry;
5
+ sum: number | null;
6
+ properties: object;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ITskEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITskEvent.js","sourceRoot":"","sources":["../../../../src/schema-definitions/sequelize-models/interfaces/ITskEvent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { Geometry } from "geojson";
2
+ export default interface IWazeJams {
3
+ id: string;
4
+ measured_at: number;
5
+ geom_origin: Geometry;
6
+ geom_startpoint: Geometry;
7
+ traffic_level: string;
8
+ properties: object;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IWazeJams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IWazeJams.js","sourceRoot":"","sources":["../../../../src/schema-definitions/sequelize-models/interfaces/IWazeJams.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { Geometry } from "geojson";
2
+ export default interface IWazeReconstructions {
3
+ id: string;
4
+ measured_at: number;
5
+ geom_origin: Geometry;
6
+ geom_startpoint: Geometry;
7
+ properties: object;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IWazeReconstructions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IWazeReconstructions.js","sourceRoot":"","sources":["../../../../src/schema-definitions/sequelize-models/interfaces/IWazeReconstructions.ts"],"names":[],"mappings":""}