@tmlmobilidade/databases 20260618.1616.8 → 20260618.2106.1

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,30 +8,30 @@ declare class SimplifiedApexBankingTapsNewClass extends ClickHouseInterfaceTempl
8
8
  protected readonly orderBy = "agency_id, created_at, _id";
9
9
  protected readonly partitionBy = "toYYYYMM(created_at)";
10
10
  protected readonly schema: ClickHouseTableSchema<{
11
+ is_ok: boolean;
11
12
  _id: string;
12
13
  agency_id: string;
13
14
  created_at: number & {
14
15
  __brand: "UnixTimestamp";
15
16
  };
16
- is_ok: boolean;
17
17
  received_at: number & {
18
18
  __brand: "UnixTimestamp";
19
19
  };
20
20
  apex_version: string;
21
21
  banking_token: string;
22
- card_brand: number;
22
+ card_brand: "0" | "1" | "2" | "3" | "4";
23
23
  card_pan: string;
24
24
  device_id: string;
25
- event_type: number | null;
25
+ event_type: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "10" | "13" | "14" | "15" | "16" | "17" | "18" | null;
26
+ group_dimension: number;
26
27
  is_ok_pcgi: boolean;
27
- line_id: string;
28
+ line_id: string | null;
28
29
  mac_ase_counter_value: number;
29
30
  mac_sam_serial_number: number;
30
- pattern_id: string;
31
- product_id: string;
31
+ pattern_id: string | null;
32
+ product_id: string | null;
32
33
  stop_id: string;
33
- trip_id: string;
34
- units_qty: number;
34
+ trip_id: string | null;
35
35
  updated_at: number & {
36
36
  __brand: "UnixTimestamp";
37
37
  };
@@ -13,6 +13,7 @@ const tableSchema = {
13
13
  created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
14
14
  device_id: { type: 'LowCardinality(String)' },
15
15
  event_type: { type: 'UInt8' },
16
+ group_dimension: { type: 'Int32' },
16
17
  is_ok: { type: 'Bool' },
17
18
  is_ok_pcgi: { type: 'Bool' },
18
19
  line_id: { type: 'LowCardinality(String)' },
@@ -23,9 +24,8 @@ const tableSchema = {
23
24
  received_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
24
25
  stop_id: { type: 'LowCardinality(String)' },
25
26
  trip_id: { type: 'Nullable(String)' },
26
- units_qty: { type: 'Nullable(Int32)' },
27
27
  updated_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
28
- vehicle_id: { type: 'LowCardinality(String)' },
28
+ vehicle_id: { type: 'LowCardinality(Nullable(String))' },
29
29
  };
30
30
  /* * */
31
31
  class SimplifiedApexBankingTapsNewClass extends ClickHouseInterfaceTemplate {
@@ -8,12 +8,12 @@ declare class SimplifiedApexInspectionDecisionsNewClass extends ClickHouseInterf
8
8
  protected readonly orderBy = "agency_id, created_at, _id";
9
9
  protected readonly partitionBy = "toYYYYMM(created_at)";
10
10
  protected readonly schema: ClickHouseTableSchema<{
11
+ is_ok: boolean;
11
12
  _id: string;
12
13
  agency_id: string;
13
14
  created_at: number & {
14
15
  __brand: "UnixTimestamp";
15
16
  };
16
- is_ok: boolean;
17
17
  received_at: number & {
18
18
  __brand: "UnixTimestamp";
19
19
  };
@@ -25,8 +25,8 @@ declare class SimplifiedApexInspectionDecisionsNewClass extends ClickHouseInterf
25
25
  updated_at: number & {
26
26
  __brand: "UnixTimestamp";
27
27
  };
28
- final_control_status: number;
29
- inspection_decision_id: string | null;
28
+ final_control_status: "0" | "1" | "2" | "3" | "4";
29
+ inspection_id: string | null;
30
30
  }>;
31
31
  protected readonly tableName = "inspection_decisions";
32
32
  /**
@@ -10,7 +10,7 @@ const tableSchema = {
10
10
  created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
11
11
  device_id: { type: 'LowCardinality(String)' },
12
12
  final_control_status: { type: 'UInt8' },
13
- inspection_decision_id: { type: 'Nullable(UUID)' },
13
+ inspection_id: { type: 'Nullable(UUID)' },
14
14
  is_ok: { type: 'Bool' },
15
15
  is_ok_pcgi: { type: 'Bool' },
16
16
  mac_ase_counter_value: { type: 'UInt64' },
@@ -8,12 +8,12 @@ declare class SimplifiedApexInspectionsNewClass extends ClickHouseInterfaceTempl
8
8
  protected readonly orderBy = "agency_id, created_at, _id";
9
9
  protected readonly partitionBy = "toYYYYMM(created_at)";
10
10
  protected readonly schema: ClickHouseTableSchema<{
11
+ is_ok: boolean;
11
12
  _id: string;
12
13
  agency_id: string;
13
14
  created_at: number & {
14
15
  __brand: "UnixTimestamp";
15
16
  };
16
- is_ok: boolean;
17
17
  received_at: number & {
18
18
  __brand: "UnixTimestamp";
19
19
  };
@@ -23,19 +23,19 @@ declare class SimplifiedApexInspectionsNewClass extends ClickHouseInterfaceTempl
23
23
  line_id: string;
24
24
  mac_ase_counter_value: number;
25
25
  mac_sam_serial_number: number;
26
- pattern_id: string;
26
+ pattern_id: string | null;
27
27
  product_id: string | null;
28
28
  trip_id: string | null;
29
29
  updated_at: number & {
30
30
  __brand: "UnixTimestamp";
31
31
  };
32
32
  vehicle_id: number | null;
33
- card_serial_number: string | null;
34
- control_destination_stop_id: string;
35
- control_origin_stop_id: string;
36
- control_status: number;
37
- environment_status: number;
38
33
  inspection_id: string | null;
34
+ card_serial_number: string | null;
35
+ control_destination_stop_id: string | null;
36
+ control_origin_stop_id: string | null;
37
+ control_status: "0" | "1" | "2" | "3" | "4";
38
+ environment_status: "0" | "1" | "2" | "3" | "4" | "5" | "6";
39
39
  }>;
40
40
  protected readonly tableName = "inspections";
41
41
  /**
@@ -8,6 +8,7 @@ declare class SimplifiedApexLocationsNewClass extends ClickHouseInterfaceTemplat
8
8
  protected readonly orderBy = "agency_id, created_at, _id";
9
9
  protected readonly partitionBy = "toYYYYMM(created_at)";
10
10
  protected readonly schema: ClickHouseTableSchema<{
11
+ is_ok: boolean;
11
12
  _id: string;
12
13
  agency_id: string;
13
14
  created_at: number & {
@@ -18,6 +19,7 @@ declare class SimplifiedApexLocationsNewClass extends ClickHouseInterfaceTemplat
18
19
  };
19
20
  apex_version: string;
20
21
  device_id: string;
22
+ is_ok_pcgi: boolean;
21
23
  line_id: string;
22
24
  mac_ase_counter_value: number;
23
25
  mac_sam_serial_number: number;
@@ -9,6 +9,8 @@ const tableSchema = {
9
9
  apex_version: { type: 'LowCardinality(String)' },
10
10
  created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
11
11
  device_id: { type: 'LowCardinality(String)' },
12
+ is_ok: { type: 'Bool' },
13
+ is_ok_pcgi: { type: 'Bool' },
12
14
  line_id: { type: 'LowCardinality(Nullable(String))' },
13
15
  mac_ase_counter_value: { type: 'UInt64' },
14
16
  mac_sam_serial_number: { type: 'UInt64' },
@@ -8,6 +8,7 @@ declare class SimplifiedApexOnBoardRefundsNewClass extends ClickHouseInterfaceTe
8
8
  protected readonly orderBy = "agency_id, created_at, _id";
9
9
  protected readonly partitionBy = "toYYYYMM(created_at)";
10
10
  protected readonly schema: ClickHouseTableSchema<{
11
+ is_ok: boolean;
11
12
  _id: string;
12
13
  agency_id: string;
13
14
  created_at: number & {
@@ -19,6 +20,7 @@ declare class SimplifiedApexOnBoardRefundsNewClass extends ClickHouseInterfaceTe
19
20
  price: number;
20
21
  apex_version: string;
21
22
  device_id: string;
23
+ is_ok_pcgi: boolean;
22
24
  line_id: string | null;
23
25
  mac_ase_counter_value: number;
24
26
  mac_sam_serial_number: number;
@@ -31,11 +33,9 @@ declare class SimplifiedApexOnBoardRefundsNewClass extends ClickHouseInterfaceTe
31
33
  };
32
34
  vehicle_id: number | null;
33
35
  card_serial_number: string | null;
34
- block_id: string | null;
35
- card_physical_type: number;
36
- duty_id: string | null;
36
+ card_physical_type: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "10" | "13" | "14" | "15" | "16" | "17" | "18" | "8" | "9" | "11" | "12" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "32" | "33" | "34" | "255";
37
37
  on_board_sale_id: string | null;
38
- payment_method: number;
38
+ payment_method: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8";
39
39
  product_quantity: number;
40
40
  validation_id: string | null;
41
41
  }>;
@@ -7,12 +7,12 @@ const tableSchema = {
7
7
  _id: { type: 'UUID' },
8
8
  agency_id: { type: 'LowCardinality(String)' },
9
9
  apex_version: { type: 'LowCardinality(String)' },
10
- block_id: { type: 'Nullable(String)' },
11
10
  card_physical_type: { type: 'UInt8' },
12
11
  card_serial_number: { type: 'Nullable(UInt64)' },
13
12
  created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
14
13
  device_id: { type: 'LowCardinality(String)' },
15
- duty_id: { type: 'Nullable(String)' },
14
+ is_ok: { type: 'Bool' },
15
+ is_ok_pcgi: { type: 'Bool' },
16
16
  line_id: { type: 'LowCardinality(Nullable(String))' },
17
17
  mac_ase_counter_value: { type: 'UInt64' },
18
18
  mac_sam_serial_number: { type: 'UInt64' },
@@ -8,6 +8,7 @@ declare class SimplifiedApexOnBoardSalesNewClass extends ClickHouseInterfaceTemp
8
8
  protected readonly orderBy = "agency_id, created_at, _id";
9
9
  protected readonly partitionBy = "toYYYYMM(created_at)";
10
10
  protected readonly schema: ClickHouseTableSchema<{
11
+ is_ok: boolean;
11
12
  _id: string;
12
13
  agency_id: string;
13
14
  created_at: number & {
@@ -19,6 +20,7 @@ declare class SimplifiedApexOnBoardSalesNewClass extends ClickHouseInterfaceTemp
19
20
  price: number;
20
21
  apex_version: string;
21
22
  device_id: string;
23
+ is_ok_pcgi: boolean;
22
24
  line_id: string | null;
23
25
  mac_ase_counter_value: number;
24
26
  mac_sam_serial_number: number;
@@ -31,10 +33,8 @@ declare class SimplifiedApexOnBoardSalesNewClass extends ClickHouseInterfaceTemp
31
33
  };
32
34
  vehicle_id: number | null;
33
35
  card_serial_number: string | null;
34
- block_id: string | null;
35
36
  card_physical_type: number;
36
- duty_id: string | null;
37
- payment_method: number;
37
+ payment_method: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8";
38
38
  product_quantity: number;
39
39
  validation_id: string | null;
40
40
  is_passenger: boolean;
@@ -7,12 +7,12 @@ const tableSchema = {
7
7
  _id: { type: 'UUID' },
8
8
  agency_id: { type: 'LowCardinality(String)' },
9
9
  apex_version: { type: 'LowCardinality(String)' },
10
- block_id: { type: 'Nullable(String)' },
11
10
  card_physical_type: { type: 'UInt8' },
12
11
  card_serial_number: { type: 'Nullable(UInt64)' },
13
12
  created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
14
13
  device_id: { type: 'LowCardinality(String)' },
15
- duty_id: { type: 'Nullable(String)' },
14
+ is_ok: { type: 'Bool' },
15
+ is_ok_pcgi: { type: 'Bool' },
16
16
  is_passenger: { type: 'Bool' },
17
17
  line_id: { type: 'LowCardinality(Nullable(String))' },
18
18
  mac_ase_counter_value: { type: 'UInt64' },
@@ -8,18 +8,20 @@ declare class SimplifiedApexValidationsNewClass extends ClickHouseInterfaceTempl
8
8
  protected readonly orderBy = "agency_id, created_at, _id";
9
9
  protected readonly partitionBy = "toYYYYMM(created_at)";
10
10
  protected readonly schema: ClickHouseTableSchema<{
11
+ is_passenger: boolean;
12
+ is_ok: boolean;
13
+ category: string;
11
14
  _id: string;
12
15
  agency_id: string;
13
16
  created_at: number & {
14
17
  __brand: "UnixTimestamp";
15
18
  };
16
- is_ok: boolean;
17
19
  received_at: number & {
18
20
  __brand: "UnixTimestamp";
19
21
  };
20
22
  apex_version: string;
21
23
  device_id: string;
22
- event_type: number;
24
+ event_type: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "10" | "13" | "14" | "15" | "16" | "17" | "18";
23
25
  is_ok_pcgi: boolean;
24
26
  line_id: string | null;
25
27
  mac_ase_counter_value: number;
@@ -28,17 +30,15 @@ declare class SimplifiedApexValidationsNewClass extends ClickHouseInterfaceTempl
28
30
  product_id: string | null;
29
31
  stop_id: string | null;
30
32
  trip_id: string | null;
31
- units_qty: number | null;
32
33
  updated_at: number & {
33
34
  __brand: "UnixTimestamp";
34
35
  };
35
36
  vehicle_id: number | null;
36
37
  card_serial_number: string | null;
37
38
  on_board_sale_id: string | null;
38
- is_passenger: boolean;
39
39
  on_board_refund_id: string | null;
40
- category: "prepaid" | "subscription" | "on_board_sale" | null;
41
- validation_status: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13";
40
+ units_qty: number | null;
41
+ validation_status: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "10" | "13" | "14" | "15" | "8" | "9" | "11" | "12";
42
42
  }>;
43
43
  protected readonly tableName = "validations";
44
44
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/databases",
3
- "version": "20260618.1616.8",
3
+ "version": "20260618.2106.1",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"