@golemio/flow 1.2.6-dev.985140431 → 1.2.6-dev.985264965

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.
@@ -8,8 +8,29 @@ drop view analytic.v_pedestrians_flow_quality;
8
8
  alter table flow_sinks alter column history_start_timestamp type bigint using extract(epoch from history_start_timestamp) * 1000;
9
9
 
10
10
  -- flow_od_measurements
11
- alter table flow_od_measurements alter column end_timestamp type bigint using extract(epoch from end_timestamp) * 1000;
12
- alter table flow_od_measurements alter column start_timestamp type bigint using extract(epoch from start_timestamp) * 1000;
11
+ drop table if exists flow_od_measurements_old;
12
+ alter table flow_od_measurements rename to flow_od_measurements_old;
13
+ CREATE TABLE flow_od_measurements (
14
+ cube_id int4 NOT NULL,
15
+ analytic_id int4 NOT NULL,
16
+ sequence_number int4 NOT NULL,
17
+ sink_id int4 NOT NULL,
18
+ start_timestamp int8 NOT NULL,
19
+ end_timestamp int8 NOT NULL,
20
+ category varchar(150) NOT NULL,
21
+ origin varchar(150) NOT NULL,
22
+ destination varchar(150) NOT NULL,
23
+ value int4 NOT NULL,
24
+ data_validity varchar(50) NULL,
25
+ create_batch_id int8 NULL,
26
+ created_at timestamptz NULL,
27
+ created_by varchar(150) NULL,
28
+ update_batch_id int8 NULL,
29
+ updated_at timestamptz NULL,
30
+ updated_by varchar(150) NULL,
31
+ CONSTRAINT flow_od_measurementspkey PRIMARY KEY (cube_id, sink_id, start_timestamp, end_timestamp, category, origin, destination, sequence_number)
32
+ );
33
+ CREATE INDEX flow_od_measurements_created_at ON flow_od_measurements USING btree (created_at);
13
34
 
14
35
  -- flow_measurements
15
36
  drop table if exists flow_measurements_old;
@@ -133,8 +133,29 @@ CREATE TABLE flow_measurements_y2026m12 PARTITION OF flow_measurements FOR VALUE
133
133
  CREATE TABLE flow_measurements_y2027up PARTITION OF flow_measurements FOR VALUES FROM ('2027-01-01') TO (maxvalue);
134
134
 
135
135
  -- flow_od_measurements
136
- alter table flow_od_measurements alter column start_timestamp type timestamptz using to_timestamp(start_timestamp / 1000);
137
- alter table flow_od_measurements alter column end_timestamp type timestamptz using to_timestamp(end_timestamp / 1000);
136
+ drop table if exists flow_od_measurements_old;
137
+ alter table flow_od_measurements rename to flow_od_measurements_old;
138
+ CREATE TABLE flow_od_measurements (
139
+ cube_id int4 NOT NULL,
140
+ analytic_id int4 NOT NULL,
141
+ sequence_number int4 NOT NULL,
142
+ sink_id int4 NOT NULL,
143
+ start_timestamp timestamptz NOT NULL,
144
+ end_timestamp timestamptz NOT NULL,
145
+ category varchar(150) NOT NULL,
146
+ origin varchar(150) NOT NULL,
147
+ destination varchar(150) NOT NULL,
148
+ value int4 NOT NULL,
149
+ data_validity varchar(50) NULL,
150
+ create_batch_id int8 NULL,
151
+ created_at timestamptz NULL,
152
+ created_by varchar(150) NULL,
153
+ update_batch_id int8 NULL,
154
+ updated_at timestamptz NULL,
155
+ updated_by varchar(150) NULL,
156
+ CONSTRAINT flow_od_measurementspkey_new PRIMARY KEY (cube_id, sink_id, start_timestamp, end_timestamp, category, origin, destination, sequence_number)
157
+ );
158
+ CREATE INDEX flow_od_measurements_created_at_new ON flow_od_measurements USING btree (created_at);
138
159
 
139
160
  -- flow_sinks
140
161
  alter table flow_sinks alter column history_start_timestamp type timestamptz using to_timestamp(history_start_timestamp / 1000);
@@ -112,8 +112,8 @@ const outputODMeasurementsJsonSchema = {
112
112
  cube_id: { type: "number" },
113
113
  sequence_number: { type: "number" },
114
114
  analytic_id: { type: "number" },
115
- start_timestamp: { type: "string", required: ["toISOString"] },
116
- end_timestamp: { type: "string", required: ["toISOString"] },
115
+ start_timestamp: { type: "object", required: ["toISOString"] },
116
+ end_timestamp: { type: "object", required: ["toISOString"] },
117
117
  category: { type: "string" },
118
118
  origin: { type: "string" },
119
119
  destination: { type: "string" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/flow",
3
- "version": "1.2.6-dev.985140431",
3
+ "version": "1.2.6-dev.985264965",
4
4
  "description": "Golemio Flow Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",