@tmlmobilidade/databases 20260623.1548.1 → 20260624.53.12
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/interfaces/apex/simplified/simplified-apex-banking-taps.js +3 -3
- package/dist/interfaces/apex/simplified/simplified-apex-inspection-decisions.js +3 -3
- package/dist/interfaces/apex/simplified/simplified-apex-inspections.js +3 -3
- package/dist/interfaces/apex/simplified/simplified-apex-locations.js +3 -3
- package/dist/interfaces/apex/simplified/simplified-apex-refunds.js +3 -3
- package/dist/interfaces/apex/simplified/simplified-apex-sales.js +3 -3
- package/dist/interfaces/apex/simplified/simplified-apex-validations.js +3 -3
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ const tableSchema = {
|
|
|
10
10
|
banking_token: { type: 'String' },
|
|
11
11
|
card_brand: { type: 'UInt8' },
|
|
12
12
|
card_pan: { type: 'String' },
|
|
13
|
-
created_at: { type: '
|
|
13
|
+
created_at: { type: 'Int64' },
|
|
14
14
|
device_id: { type: 'LowCardinality(String)' },
|
|
15
15
|
event_type: { type: 'UInt8' },
|
|
16
16
|
group_dimension: { type: 'Int32' },
|
|
@@ -22,10 +22,10 @@ const tableSchema = {
|
|
|
22
22
|
operational_date: { type: 'UInt32' },
|
|
23
23
|
pattern_id: { type: 'LowCardinality(String)' },
|
|
24
24
|
product_id: { type: 'LowCardinality(String)' },
|
|
25
|
-
received_at: { type: '
|
|
25
|
+
received_at: { type: 'Int64' },
|
|
26
26
|
stop_id: { type: 'LowCardinality(String)' },
|
|
27
27
|
trip_id: { type: 'Nullable(String)' },
|
|
28
|
-
updated_at: { type: '
|
|
28
|
+
updated_at: { type: 'Int64' },
|
|
29
29
|
vehicle_id: { type: 'LowCardinality(Nullable(String))' },
|
|
30
30
|
};
|
|
31
31
|
/* * */
|
|
@@ -7,7 +7,7 @@ const tableSchema = {
|
|
|
7
7
|
_id: { type: 'UUID' },
|
|
8
8
|
agency_id: { type: 'LowCardinality(String)' },
|
|
9
9
|
apex_version: { type: 'LowCardinality(String)' },
|
|
10
|
-
created_at: { type: '
|
|
10
|
+
created_at: { type: 'Int64' },
|
|
11
11
|
device_id: { type: 'LowCardinality(String)' },
|
|
12
12
|
final_control_status: { type: 'UInt8' },
|
|
13
13
|
inspection_id: { type: 'Nullable(UUID)' },
|
|
@@ -16,8 +16,8 @@ const tableSchema = {
|
|
|
16
16
|
mac_ase_counter_value: { type: 'UInt64' },
|
|
17
17
|
mac_sam_serial_number: { type: 'UInt64' },
|
|
18
18
|
operational_date: { type: 'UInt32' },
|
|
19
|
-
received_at: { type: '
|
|
20
|
-
updated_at: { type: '
|
|
19
|
+
received_at: { type: 'Int64' },
|
|
20
|
+
updated_at: { type: 'Int64' },
|
|
21
21
|
};
|
|
22
22
|
/* * */
|
|
23
23
|
class SimplifiedApexInspectionDecisionsNewClass extends ClickHouseInterfaceTemplate {
|
|
@@ -11,7 +11,7 @@ const tableSchema = {
|
|
|
11
11
|
control_destination_stop_id: { type: 'LowCardinality(Nullable(String))' },
|
|
12
12
|
control_origin_stop_id: { type: 'LowCardinality(Nullable(String))' },
|
|
13
13
|
control_status: { type: 'UInt8' },
|
|
14
|
-
created_at: { type: '
|
|
14
|
+
created_at: { type: 'Int64' },
|
|
15
15
|
device_id: { type: 'LowCardinality(String)' },
|
|
16
16
|
environment_status: { type: 'UInt8' },
|
|
17
17
|
inspection_id: { type: 'Nullable(UUID)' },
|
|
@@ -23,9 +23,9 @@ const tableSchema = {
|
|
|
23
23
|
operational_date: { type: 'UInt32' },
|
|
24
24
|
pattern_id: { type: 'LowCardinality(Nullable(String))' },
|
|
25
25
|
product_id: { type: 'LowCardinality(Nullable(String))' },
|
|
26
|
-
received_at: { type: '
|
|
26
|
+
received_at: { type: 'Int64' },
|
|
27
27
|
trip_id: { type: 'Nullable(String)' },
|
|
28
|
-
updated_at: { type: '
|
|
28
|
+
updated_at: { type: 'Int64' },
|
|
29
29
|
vehicle_id: { type: 'LowCardinality(Nullable(String))' },
|
|
30
30
|
};
|
|
31
31
|
/* * */
|
|
@@ -7,7 +7,7 @@ const tableSchema = {
|
|
|
7
7
|
_id: { type: 'UUID' },
|
|
8
8
|
agency_id: { type: 'LowCardinality(String)' },
|
|
9
9
|
apex_version: { type: 'LowCardinality(String)' },
|
|
10
|
-
created_at: { type: '
|
|
10
|
+
created_at: { type: 'Int64' },
|
|
11
11
|
device_id: { type: 'LowCardinality(String)' },
|
|
12
12
|
is_ok: { type: 'Bool' },
|
|
13
13
|
is_ok_pcgi: { type: 'Bool' },
|
|
@@ -16,10 +16,10 @@ const tableSchema = {
|
|
|
16
16
|
mac_sam_serial_number: { type: 'UInt64' },
|
|
17
17
|
operational_date: { type: 'UInt32' },
|
|
18
18
|
pattern_id: { type: 'LowCardinality(Nullable(String))' },
|
|
19
|
-
received_at: { type: '
|
|
19
|
+
received_at: { type: 'Int64' },
|
|
20
20
|
stop_id: { type: 'LowCardinality(Nullable(String))' },
|
|
21
21
|
trip_id: { type: 'Nullable(String)' },
|
|
22
|
-
updated_at: { type: '
|
|
22
|
+
updated_at: { type: 'Int64' },
|
|
23
23
|
vehicle_id: { type: 'LowCardinality(Nullable(String))' },
|
|
24
24
|
};
|
|
25
25
|
/* * */
|
|
@@ -9,7 +9,7 @@ const tableSchema = {
|
|
|
9
9
|
apex_version: { type: 'LowCardinality(String)' },
|
|
10
10
|
card_physical_type: { type: 'UInt8' },
|
|
11
11
|
card_serial_number: { type: 'Nullable(UInt64)' },
|
|
12
|
-
created_at: { type: '
|
|
12
|
+
created_at: { type: 'Int64' },
|
|
13
13
|
device_id: { type: 'LowCardinality(String)' },
|
|
14
14
|
is_ok: { type: 'Bool' },
|
|
15
15
|
is_ok_pcgi: { type: 'Bool' },
|
|
@@ -23,10 +23,10 @@ const tableSchema = {
|
|
|
23
23
|
price: { type: 'Int32' },
|
|
24
24
|
product_id: { type: 'LowCardinality(Nullable(String))' },
|
|
25
25
|
product_quantity: { type: 'Int32' },
|
|
26
|
-
received_at: { type: '
|
|
26
|
+
received_at: { type: 'Int64' },
|
|
27
27
|
stop_id: { type: 'LowCardinality(Nullable(String))' },
|
|
28
28
|
trip_id: { type: 'Nullable(String)' },
|
|
29
|
-
updated_at: { type: '
|
|
29
|
+
updated_at: { type: 'Int64' },
|
|
30
30
|
validation_id: { type: 'Nullable(UUID)' },
|
|
31
31
|
vehicle_id: { type: 'LowCardinality(Nullable(String))' },
|
|
32
32
|
};
|
|
@@ -9,7 +9,7 @@ const tableSchema = {
|
|
|
9
9
|
apex_version: { type: 'LowCardinality(String)' },
|
|
10
10
|
card_physical_type: { type: 'UInt8' },
|
|
11
11
|
card_serial_number: { type: 'Nullable(UInt64)' },
|
|
12
|
-
created_at: { type: '
|
|
12
|
+
created_at: { type: 'Int64' },
|
|
13
13
|
device_id: { type: 'LowCardinality(String)' },
|
|
14
14
|
is_ok: { type: 'Bool' },
|
|
15
15
|
is_ok_pcgi: { type: 'Bool' },
|
|
@@ -24,10 +24,10 @@ const tableSchema = {
|
|
|
24
24
|
price: { type: 'Int32' },
|
|
25
25
|
product_id: { type: 'LowCardinality(Nullable(String))' },
|
|
26
26
|
product_quantity: { type: 'Int32' },
|
|
27
|
-
received_at: { type: '
|
|
27
|
+
received_at: { type: 'Int64' },
|
|
28
28
|
stop_id: { type: 'LowCardinality(Nullable(String))' },
|
|
29
29
|
trip_id: { type: 'Nullable(String)' },
|
|
30
|
-
updated_at: { type: '
|
|
30
|
+
updated_at: { type: 'Int64' },
|
|
31
31
|
validation_id: { type: 'Nullable(UUID)' },
|
|
32
32
|
vehicle_id: { type: 'LowCardinality(Nullable(String))' },
|
|
33
33
|
};
|
|
@@ -9,7 +9,7 @@ const tableSchema = {
|
|
|
9
9
|
apex_version: { type: 'LowCardinality(String)' },
|
|
10
10
|
card_serial_number: { type: 'Nullable(UInt64)' },
|
|
11
11
|
category: { type: 'LowCardinality(String)' },
|
|
12
|
-
created_at: { type: '
|
|
12
|
+
created_at: { type: 'Int64' },
|
|
13
13
|
device_id: { type: 'LowCardinality(String)' },
|
|
14
14
|
event_type: { type: 'UInt8' },
|
|
15
15
|
is_ok: { type: 'Bool' },
|
|
@@ -23,11 +23,11 @@ const tableSchema = {
|
|
|
23
23
|
operational_date: { type: 'UInt32' },
|
|
24
24
|
pattern_id: { type: 'LowCardinality(Nullable(String))' },
|
|
25
25
|
product_id: { type: 'LowCardinality(Nullable(String))' },
|
|
26
|
-
received_at: { type: '
|
|
26
|
+
received_at: { type: 'Int64' },
|
|
27
27
|
stop_id: { type: 'LowCardinality(Nullable(String))' },
|
|
28
28
|
trip_id: { type: 'Nullable(String)' },
|
|
29
29
|
units_qty: { type: 'Nullable(Int32)' },
|
|
30
|
-
updated_at: { type: '
|
|
30
|
+
updated_at: { type: 'Int64' },
|
|
31
31
|
validation_status: { type: 'LowCardinality(String)' },
|
|
32
32
|
vehicle_id: { type: 'LowCardinality(Nullable(String))' },
|
|
33
33
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/databases",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20260624.53.12",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "iso@tmlmobilidade.pt",
|
|
6
6
|
"name": "TML-ISO"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"watch": "tsc-watch --onSuccess 'resolve-tspaths'"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@clickhouse/client": "1.
|
|
39
|
+
"@clickhouse/client": "1.22.0",
|
|
40
40
|
"@tmlmobilidade/go-types-apex": "*",
|
|
41
41
|
"@tmlmobilidade/go-types-performance": "*",
|
|
42
42
|
"@tmlmobilidade/logger": "*",
|