@tmlmobilidade/go-interfaces-labdb 20260905.1222.34 → 20260905.1934.52

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.
@@ -1,6 +1,6 @@
1
1
  import { ClickHouseInterfaceTemplate } from '../interface.template.js';
2
2
  import { ClickHouseClient } from '@tmlmobilidade/go-clients-clickhouse';
3
- import { HashedShape, RideMatch, type HashedTrip, type RideAnalysisAtLeastOneVehicleEventOnFirstStop, type RideAnalysisAtLeastOneVehicleEventOnLastStop, type RideAnalysisExpectedApexValidationInterval, type RideAnalysisExpectedDriverIdQty, type RideAnalysisExpectedStartTime, type RideAnalysisExpectedVehicleEventDelay, type RideAnalysisExpectedVehicleEventInterval, type RideAnalysisExpectedVehicleEventQty, type RideAnalysisExpectedVehicleIdQty, type RideAnalysisMatchingApexLocations, type RideAnalysisMatchingVehicleIds, type RideAnalysisSimpleOneApexValidation, type RideAnalysisSimpleOneVehicleEventOrApexValidation, type RideAnalysisSimpleThreeVehicleEvents, type RideAnalysisTransactionSequentiality } from '@tmlmobilidade/go-types-operation';
3
+ import { type HashedShape, type HashedTrip, type RideAnalysisAtLeastOneVehicleEventOnFirstStop, type RideAnalysisAtLeastOneVehicleEventOnLastStop, type RideAnalysisExpectedApexValidationInterval, type RideAnalysisExpectedDriverIdQty, type RideAnalysisExpectedStartTime, type RideAnalysisExpectedVehicleEventDelay, type RideAnalysisExpectedVehicleEventInterval, type RideAnalysisExpectedVehicleEventQty, type RideAnalysisExpectedVehicleIdQty, type RideAnalysisMatchingApexLocations, type RideAnalysisMatchingVehicleIds, type RideAnalysisSimpleOneApexValidation, type RideAnalysisSimpleOneVehicleEventOrApexValidation, type RideAnalysisSimpleThreeVehicleEvents, type RideAnalysisTransactionSequentiality, type RideMatch } from '@tmlmobilidade/go-types-operation';
4
4
  import { type Ride } from '@tmlmobilidade/go-types-operation';
5
5
  import { type SimplifiedVehicleEvent } from '@tmlmobilidade/go-types-vehicle-events';
6
6
  export declare class OperationDatabase {
@@ -1,7 +1,6 @@
1
1
  import { type ClickHouseTableSchema } from '@tmlmobilidade/go-clients-clickhouse';
2
- import { RideMatch, type HashedShape, type HashedTrip, type Ride, type RideAnalysisAtLeastOneVehicleEventOnFirstStop, type RideAnalysisAtLeastOneVehicleEventOnLastStop, type RideAnalysisExpectedApexValidationInterval, type RideAnalysisExpectedDriverIdQty, type RideAnalysisExpectedStartTime, type RideAnalysisExpectedVehicleEventDelay, type RideAnalysisExpectedVehicleEventInterval, type RideAnalysisExpectedVehicleEventQty, type RideAnalysisExpectedVehicleIdQty, type RideAnalysisMatchingApexLocations, type RideAnalysisMatchingVehicleIds, type RideAnalysisSimpleOneApexValidation, type RideAnalysisSimpleOneVehicleEventOrApexValidation, type RideAnalysisSimpleThreeVehicleEvents, type RideAnalysisTransactionSequentiality } from '@tmlmobilidade/go-types-operation';
2
+ import { type HashedShape, type HashedTrip, type Ride, type RideAnalysisAtLeastOneVehicleEventOnFirstStop, type RideAnalysisAtLeastOneVehicleEventOnLastStop, type RideAnalysisExpectedApexValidationInterval, type RideAnalysisExpectedDriverIdQty, type RideAnalysisExpectedStartTime, type RideAnalysisExpectedVehicleEventDelay, type RideAnalysisExpectedVehicleEventInterval, type RideAnalysisExpectedVehicleEventQty, type RideAnalysisExpectedVehicleIdQty, type RideAnalysisMatchingApexLocations, type RideAnalysisMatchingVehicleIds, type RideAnalysisSimpleOneApexValidation, type RideAnalysisSimpleOneVehicleEventOrApexValidation, type RideAnalysisSimpleThreeVehicleEvents, type RideAnalysisTransactionSequentiality, type RideMatch } from '@tmlmobilidade/go-types-operation';
3
3
  import { type SimplifiedVehicleEvent } from '@tmlmobilidade/go-types-vehicle-events';
4
- export declare const simplifiedVehicleEventTableSchema: ClickHouseTableSchema<SimplifiedVehicleEvent>;
5
4
  export declare const hashedShapeTableSchema: ClickHouseTableSchema<HashedShape>;
6
5
  export declare const hashedTripTableSchema: ClickHouseTableSchema<HashedTrip>;
7
6
  export declare const rideAnalysisAtLeastOneVehicleEventOnFirstStopTableSchema: ClickHouseTableSchema<RideAnalysisAtLeastOneVehicleEventOnFirstStop>;
@@ -19,5 +18,6 @@ export declare const rideAnalysisSimpleOneApexValidationTableSchema: ClickHouseT
19
18
  export declare const rideAnalysisSimpleOneVehicleEventOrApexValidationTableSchema: ClickHouseTableSchema<RideAnalysisSimpleOneVehicleEventOrApexValidation>;
20
19
  export declare const rideAnalysisSimpleThreeVehicleEventsTableSchema: ClickHouseTableSchema<RideAnalysisSimpleThreeVehicleEvents>;
21
20
  export declare const rideAnalysisTransactionSequentialityTableSchema: ClickHouseTableSchema<RideAnalysisTransactionSequentiality>;
22
- export declare const ridesTableSchema: ClickHouseTableSchema<Ride>;
23
21
  export declare const rideMatchesTableSchema: ClickHouseTableSchema<RideMatch>;
22
+ export declare const ridesTableSchema: ClickHouseTableSchema<Ride>;
23
+ export declare const simplifiedVehicleEventTableSchema: ClickHouseTableSchema<SimplifiedVehicleEvent>;
@@ -1,25 +1,5 @@
1
1
  /* * */
2
2
  /* * */
3
- export const simplifiedVehicleEventTableSchema = {
4
- _id: { type: 'String' },
5
- agency_id: { type: 'LowCardinality(String)' },
6
- bearing: { type: 'Nullable(UInt16) CODEC(T64, ZSTD)' },
7
- created_at: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
8
- current_status: { type: 'LowCardinality(Nullable(String))' },
9
- driver_id: { type: 'LowCardinality(Nullable(String))' },
10
- extra_trip_id: { type: 'Nullable(String)' },
11
- geohash: { materialized: 'geohashEncode(longitude, latitude, 7)', type: 'FixedString(7)' },
12
- latitude: { type: 'Float32 CODEC(Gorilla, ZSTD)' },
13
- longitude: { type: 'Float32 CODEC(Gorilla, ZSTD)' },
14
- odometer: { type: 'Nullable(UInt32)' },
15
- operational_date: { type: 'UInt32' },
16
- received_at: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
17
- speed: { type: 'Nullable(UInt8) CODEC(T64, ZSTD)' },
18
- stop_id: { type: 'LowCardinality(Nullable(String))' },
19
- trip_id: { type: 'String' },
20
- vehicle_id: { type: 'LowCardinality(String)' },
21
- };
22
- /* * */
23
3
  export const hashedShapeTableSchema = {
24
4
  _id: { type: 'String' },
25
5
  agency_id: { type: 'LowCardinality(String)' },
@@ -150,6 +130,17 @@ export const rideAnalysisTransactionSequentialityTableSchema = {
150
130
  missing_transactions_qty: { type: 'Nullable(UInt16) CODEC(T64, ZSTD)' },
151
131
  };
152
132
  /* * */
133
+ export const rideMatchesTableSchema = {
134
+ _id: { type: 'String' },
135
+ agency_id: { type: 'LowCardinality(String)' },
136
+ operational_dates: { type: 'Array(UInt32) CODEC(ZSTD)' },
137
+ processing_status: { type: 'LowCardinality(String)' },
138
+ trip_id: { type: 'LowCardinality(String)' },
139
+ updated_at: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
140
+ window_end: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
141
+ window_start: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
142
+ };
143
+ /* * */
153
144
  export const ridesTableSchema = {
154
145
  _id: { type: 'String' },
155
146
  agency_code: { type: 'LowCardinality(String)' },
@@ -199,13 +190,22 @@ export const ridesTableSchema = {
199
190
  vehicle_ids: { type: 'Array(LowCardinality(String))' },
200
191
  };
201
192
  /* * */
202
- export const rideMatchesTableSchema = {
193
+ export const simplifiedVehicleEventTableSchema = {
203
194
  _id: { type: 'String' },
204
195
  agency_id: { type: 'LowCardinality(String)' },
205
- operational_dates: { type: 'Array(UInt32) CODEC(ZSTD)' },
206
- processing_status: { type: 'LowCardinality(String)' },
207
- trip_id: { type: 'LowCardinality(String)' },
208
- updated_at: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
209
- window_end: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
210
- window_start: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
196
+ bearing: { type: 'Nullable(UInt16) CODEC(T64, ZSTD)' },
197
+ created_at: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
198
+ current_status: { type: 'LowCardinality(Nullable(String))' },
199
+ driver_id: { type: 'LowCardinality(Nullable(String))' },
200
+ extra_trip_id: { type: 'Nullable(String)' },
201
+ geohash: { materialized: 'geohashEncode(longitude, latitude, 7)', type: 'FixedString(7)' },
202
+ latitude: { type: 'Float32 CODEC(Gorilla, ZSTD)' },
203
+ longitude: { type: 'Float32 CODEC(Gorilla, ZSTD)' },
204
+ odometer: { type: 'Nullable(UInt32)' },
205
+ operational_date: { type: 'UInt32' },
206
+ received_at: { type: 'Int64 CODEC(DoubleDelta, ZSTD)' },
207
+ speed: { type: 'Nullable(UInt8) CODEC(T64, ZSTD)' },
208
+ stop_id: { type: 'LowCardinality(Nullable(String))' },
209
+ trip_id: { type: 'String' },
210
+ vehicle_id: { type: 'LowCardinality(String)' },
211
211
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-interfaces-labdb",
3
- "version": "20260905.1222.34",
3
+ "version": "20260905.1934.52",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"