@golemio/fypr 1.8.1-dev.2639581231 → 1.8.1-dev.2644370450
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/db/example/06_information_panels_presets.sql +34 -33
- package/db/migrations/postgresql/20260630135757-add-route-id-to-presets-routes.js +16 -0
- package/db/migrations/postgresql/sqls/20260630135757-add-route-id-to-presets-routes-down.sql +46 -0
- package/db/migrations/postgresql/sqls/20260630135757-add-route-id-to-presets-routes-up.sql +52 -0
- package/dist/integration-engine/workers/tasks/UpdatePresetsTask.js +1 -0
- package/dist/integration-engine/workers/tasks/UpdatePresetsTask.js.map +1 -1
- package/dist/schema-definitions/models/InformationPanelPresetsRoutesModel.d.ts +1 -0
- package/dist/schema-definitions/models/InformationPanelPresetsRoutesModel.js +6 -1
- package/dist/schema-definitions/models/InformationPanelPresetsRoutesModel.js.map +1 -1
- package/dist/schema-definitions/models/interfaces/IInformationPanelPresetRoute.d.ts +1 -0
- package/dist/schema-definitions/models/interfaces/IPresetRouteAgg.d.ts +1 -0
- package/docs/openapi-output.yaml +7 -0
- package/package.json +1 -1
|
@@ -176,37 +176,38 @@ INSERT INTO fypr.information_panels_presets_routes (
|
|
|
176
176
|
preset_id,
|
|
177
177
|
stop_id,
|
|
178
178
|
route_type,
|
|
179
|
-
route_short_name
|
|
179
|
+
route_short_name,
|
|
180
|
+
route_id
|
|
180
181
|
) VALUES
|
|
181
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '1'),
|
|
182
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '18'),
|
|
183
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '2'),
|
|
184
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '20'),
|
|
185
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '22'),
|
|
186
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '23'),
|
|
187
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '25'),
|
|
188
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '26'),
|
|
189
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '8'),
|
|
190
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '91'),
|
|
191
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '96'),
|
|
192
|
-
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '97'),
|
|
193
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '136'),
|
|
194
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '177'),
|
|
195
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '182'),
|
|
196
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '183'),
|
|
197
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '195'),
|
|
198
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '913'),
|
|
199
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '914'),
|
|
200
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '136'),
|
|
201
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '177'),
|
|
202
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '182'),
|
|
203
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '183'),
|
|
204
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '195'),
|
|
205
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '913'),
|
|
206
|
-
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '914'),
|
|
207
|
-
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z1P', 0, '16'),
|
|
208
|
-
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z1P', 0, '8'),
|
|
209
|
-
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z1P', 0, '94'),
|
|
210
|
-
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z2P', 0, '16'),
|
|
211
|
-
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z2P', 0, '8'),
|
|
212
|
-
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z2P', 0, '94');
|
|
182
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '1', 'L1'),
|
|
183
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '18', 'L18'),
|
|
184
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '2', 'L2'),
|
|
185
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '20', 'L20'),
|
|
186
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '22', 'L22'),
|
|
187
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '23', 'L23'),
|
|
188
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '25', 'L25'),
|
|
189
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '26', 'L26'),
|
|
190
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '8', 'L8'),
|
|
191
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '91', 'L91'),
|
|
192
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '96', 'L96'),
|
|
193
|
+
('aaaaaaaa-0001-4000-8000-000000000001'::uuid, 'U163Z2P', 0, '97', 'L97'),
|
|
194
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '136', 'L136'),
|
|
195
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '177', 'L177'),
|
|
196
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '182', 'L182'),
|
|
197
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '183', 'L183'),
|
|
198
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '195', 'L195'),
|
|
199
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '913', 'L913'),
|
|
200
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z4P', 3, '914', 'L914'),
|
|
201
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '136', 'L136'),
|
|
202
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '177', 'L177'),
|
|
203
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '182', 'L182'),
|
|
204
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '183', 'L183'),
|
|
205
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '195', 'L195'),
|
|
206
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '913', 'L913'),
|
|
207
|
+
('aaaaaaaa-0002-4000-8000-000000000002'::uuid, 'U134Z5P', 3, '914', 'L914'),
|
|
208
|
+
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z1P', 0, '16', 'L16'),
|
|
209
|
+
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z1P', 0, '8', 'L8'),
|
|
210
|
+
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z1P', 0, '94', 'L94'),
|
|
211
|
+
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z2P', 0, '16', 'L16'),
|
|
212
|
+
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z2P', 0, '8', 'L8'),
|
|
213
|
+
('aaaaaaaa-0003-4000-8000-000000000003'::uuid, 'U134Z2P', 0, '94', 'L94');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('fs/promises');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const runSql = (db, name) =>
|
|
7
|
+
fs.readFile(path.join(__dirname, 'sqls', name), 'utf-8').then((sql) => {
|
|
8
|
+
console.log('received data: ' + sql);
|
|
9
|
+
return db.runSql(sql);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
exports.up = (db) => runSql(db, '20260630135757-add-route-id-to-presets-routes-up.sql');
|
|
13
|
+
|
|
14
|
+
exports.down = (db) => runSql(db, '20260630135757-add-route-id-to-presets-routes-down.sql');
|
|
15
|
+
|
|
16
|
+
exports._meta = { version: 1 };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
DROP VIEW IF EXISTS v_information_panels_for_mvt_with_routes;
|
|
2
|
+
DROP VIEW IF EXISTS v_information_panels_presets_routes_agg;
|
|
3
|
+
|
|
4
|
+
ALTER TABLE information_panels_presets_routes
|
|
5
|
+
DROP COLUMN route_id;
|
|
6
|
+
|
|
7
|
+
CREATE OR REPLACE VIEW v_information_panels_presets_routes_agg AS
|
|
8
|
+
SELECT
|
|
9
|
+
p.information_panel_document_id,
|
|
10
|
+
p.route_name,
|
|
11
|
+
p.note,
|
|
12
|
+
COALESCE(
|
|
13
|
+
JSONB_AGG(
|
|
14
|
+
JSONB_BUILD_OBJECT(
|
|
15
|
+
'stop_id', r.stop_id,
|
|
16
|
+
'route_type', r.route_type,
|
|
17
|
+
'route_short_name', r.route_short_name
|
|
18
|
+
)
|
|
19
|
+
) FILTER (WHERE r.preset_id IS NOT NULL),
|
|
20
|
+
'[]'::jsonb
|
|
21
|
+
) AS routes,
|
|
22
|
+
p.is_testing
|
|
23
|
+
FROM information_panels_presets p
|
|
24
|
+
INNER JOIN information_panels ip ON ip.document_id = p.information_panel_document_id
|
|
25
|
+
LEFT JOIN information_panels_presets_routes r ON r.preset_id = p.id
|
|
26
|
+
GROUP BY p.id;
|
|
27
|
+
|
|
28
|
+
CREATE VIEW v_information_panels_for_mvt_with_routes AS
|
|
29
|
+
SELECT
|
|
30
|
+
ip.id,
|
|
31
|
+
ip.preset,
|
|
32
|
+
ip.geometry,
|
|
33
|
+
concat_ws(' ', ip.name, ip.stop_name, STRING_AGG(p.note, ' ')) AS search_fields,
|
|
34
|
+
JSONB_AGG(JSONB_BUILD_OBJECT(
|
|
35
|
+
'route_name', p.route_name,
|
|
36
|
+
'route_type', r.route_type,
|
|
37
|
+
'route_short_name', r.route_short_name
|
|
38
|
+
)) AS routes
|
|
39
|
+
FROM information_panels ip
|
|
40
|
+
INNER JOIN information_panels_presets p
|
|
41
|
+
ON p.information_panel_document_id = ip.document_id AND NOT p.is_testing
|
|
42
|
+
INNER JOIN information_panels_presets_routes r ON r.preset_id = p.id
|
|
43
|
+
WHERE ip.state = 'Hotovo'
|
|
44
|
+
AND ip.geometry IS NOT NULL
|
|
45
|
+
AND ip.data_source = 'Golemio'
|
|
46
|
+
GROUP BY ip.id;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
ALTER TABLE information_panels_presets_routes
|
|
2
|
+
ADD COLUMN route_id VARCHAR(50) NOT NULL DEFAULT '';
|
|
3
|
+
|
|
4
|
+
ALTER TABLE information_panels_presets_routes
|
|
5
|
+
ALTER COLUMN route_id DROP DEFAULT;
|
|
6
|
+
|
|
7
|
+
DROP VIEW IF EXISTS v_information_panels_for_mvt_with_routes;
|
|
8
|
+
DROP VIEW IF EXISTS v_information_panels_presets_routes_agg;
|
|
9
|
+
|
|
10
|
+
CREATE OR REPLACE VIEW v_information_panels_presets_routes_agg AS
|
|
11
|
+
SELECT
|
|
12
|
+
p.information_panel_document_id,
|
|
13
|
+
p.route_name,
|
|
14
|
+
p.note,
|
|
15
|
+
COALESCE(
|
|
16
|
+
JSONB_AGG(
|
|
17
|
+
JSONB_BUILD_OBJECT(
|
|
18
|
+
'stop_id', r.stop_id,
|
|
19
|
+
'route_type', r.route_type,
|
|
20
|
+
'route_short_name', r.route_short_name,
|
|
21
|
+
'route_id', r.route_id
|
|
22
|
+
)
|
|
23
|
+
) FILTER (WHERE r.preset_id IS NOT NULL),
|
|
24
|
+
'[]'::jsonb
|
|
25
|
+
) AS routes,
|
|
26
|
+
p.is_testing
|
|
27
|
+
FROM information_panels_presets p
|
|
28
|
+
INNER JOIN information_panels ip ON ip.document_id = p.information_panel_document_id
|
|
29
|
+
LEFT JOIN information_panels_presets_routes r ON r.preset_id = p.id
|
|
30
|
+
GROUP BY p.id;
|
|
31
|
+
|
|
32
|
+
CREATE VIEW v_information_panels_for_mvt_with_routes AS
|
|
33
|
+
SELECT
|
|
34
|
+
ip.id,
|
|
35
|
+
ip.preset,
|
|
36
|
+
ip.geometry,
|
|
37
|
+
concat_ws(' ', ip.name, ip.stop_name, STRING_AGG(p.note, ' ')) AS search_fields,
|
|
38
|
+
-- Cast to text so mvt-maps' FilterBuilder can process the column via `NULLIF(routes, '')::jsonb`
|
|
39
|
+
JSONB_AGG(JSONB_BUILD_OBJECT(
|
|
40
|
+
'route_name', p.route_name,
|
|
41
|
+
'route_type', r.route_type,
|
|
42
|
+
'route_short_name', r.route_short_name,
|
|
43
|
+
'route_id', r.route_id
|
|
44
|
+
))::text AS routes
|
|
45
|
+
FROM information_panels ip
|
|
46
|
+
INNER JOIN information_panels_presets p
|
|
47
|
+
ON p.information_panel_document_id = ip.document_id AND NOT p.is_testing
|
|
48
|
+
INNER JOIN information_panels_presets_routes r ON r.preset_id = p.id
|
|
49
|
+
WHERE ip.state = 'Hotovo'
|
|
50
|
+
AND ip.geometry IS NOT NULL
|
|
51
|
+
AND ip.data_source = 'Golemio'
|
|
52
|
+
GROUP BY ip.id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdatePresetsTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdatePresetsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qEAA0D;AAC1D,4GAAuG;AACvG,wHAAmH;AACnH,sHAAiH;AACjH,2EAAsE;AACtE,gHAAsF;AAKtF,wEAAqE;AACrE,8EAA0E;AAC1E,6EAAyF;AACzF,iEAAwE;AACxE,mFAAkF;AAClF,4CAAgD;AAGzC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,sCAAiB;IAQpD,YACoC,MAAqB,EAErD,iBAAqE,EAErE,sBAA+E,EAE/E,uBAAiF;QAEjF,KAAK,CAAC,4BAAgB,CAAC,WAAW,EAAE,CAAC,CAAC;QANrB,sBAAiB,GAAjB,iBAAiB,CAAmC;QAEpD,2BAAsB,GAAtB,sBAAsB,CAAwC;QAE9D,4BAAuB,GAAvB,uBAAuB,CAAyC;QAd5D,cAAS,GAAG,yBAAyB,CAAC;QACtC,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QAIlC,qBAAgB,GAAG,IAAI,uCAAmB,CAAC,0BAA0B,EAAE,mDAAwB,CAAC,CAAC;QAY9G,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAS,qBAAqB,EAAE,EAAE,CAAC,CAAC;QACjE,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,C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ttri
|
|
|
7
7
|
stop_id: string;
|
|
8
8
|
route_type: number;
|
|
9
9
|
route_short_name: string;
|
|
10
|
+
route_id: string;
|
|
10
11
|
created_at: CreationOptional<Date>;
|
|
11
12
|
updated_at: CreationOptional<Date>;
|
|
12
13
|
static readonly attributeModel: ModelAttributes<InformationPanelPresetsRoutesModel>;
|
|
@@ -30,6 +30,10 @@ InformationPanelPresetsRoutesModel.attributeModel = {
|
|
|
30
30
|
allowNull: false,
|
|
31
31
|
type: sequelize_1.DataTypes.STRING(50),
|
|
32
32
|
},
|
|
33
|
+
route_id: {
|
|
34
|
+
allowNull: false,
|
|
35
|
+
type: sequelize_1.DataTypes.STRING(50),
|
|
36
|
+
},
|
|
33
37
|
created_at: { type: sequelize_1.DataTypes.DATE, allowNull: false },
|
|
34
38
|
updated_at: { type: sequelize_1.DataTypes.DATE, allowNull: false },
|
|
35
39
|
};
|
|
@@ -42,8 +46,9 @@ InformationPanelPresetsRoutesModel.jsonSchema = {
|
|
|
42
46
|
stop_id: { type: "string" },
|
|
43
47
|
route_type: { type: "number" },
|
|
44
48
|
route_short_name: { type: "string" },
|
|
49
|
+
route_id: { type: "string" },
|
|
45
50
|
},
|
|
46
|
-
required: ["preset_id", "stop_id", "route_type", "route_short_name"],
|
|
51
|
+
required: ["preset_id", "stop_id", "route_type", "route_short_name", "route_id"],
|
|
47
52
|
additionalProperties: false,
|
|
48
53
|
},
|
|
49
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InformationPanelPresetsRoutesModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/InformationPanelPresetsRoutesModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;AAI7C,MAAa,kCACT,SAAQ,iBAGP;
|
|
1
|
+
{"version":3,"file":"InformationPanelPresetsRoutesModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/InformationPanelPresetsRoutesModel.ts"],"names":[],"mappings":";;;AACA,mEAO6C;AAI7C,MAAa,kCACT,S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pC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC/B;QACD,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,kBAAkB,EAAE,UAAU,CAAC;QAChF,oBAAoB,EAAE,KAAK;KAC9B;CACJ,CAAC"}
|
package/docs/openapi-output.yaml
CHANGED
|
@@ -1170,6 +1170,7 @@ components:
|
|
|
1170
1170
|
- stop_id
|
|
1171
1171
|
- route_type
|
|
1172
1172
|
- route_short_name
|
|
1173
|
+
- route_id
|
|
1173
1174
|
properties:
|
|
1174
1175
|
stop_id:
|
|
1175
1176
|
type: string
|
|
@@ -1185,6 +1186,12 @@ components:
|
|
|
1185
1186
|
type: string
|
|
1186
1187
|
example: "22"
|
|
1187
1188
|
description: Short name of the route.
|
|
1189
|
+
route_id:
|
|
1190
|
+
type: string
|
|
1191
|
+
example: "L22"
|
|
1192
|
+
description: >-
|
|
1193
|
+
GTFS route identifier (e.g. L22 for tram 22,
|
|
1194
|
+
L991 for metro A, L992 for metro B).
|
|
1188
1195
|
|
|
1189
1196
|
InformationPanelBase:
|
|
1190
1197
|
description: >-
|