@tmlmobilidade/interfaces 20260322.1829.11 → 20260323.417.47

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.
Files changed (37) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/interfaces/auth/roles.d.ts +9 -9
  4. package/dist/interfaces/auth/users.d.ts +12 -12
  5. package/package.json +2 -1
  6. package/dist/clickhouse/index.d.ts +0 -5
  7. package/dist/clickhouse/index.js +0 -5
  8. package/dist/clickhouse/simplified-apex-locations/index.d.ts +0 -2
  9. package/dist/clickhouse/simplified-apex-locations/index.js +0 -2
  10. package/dist/clickhouse/simplified-apex-locations/schema.d.ts +0 -3
  11. package/dist/clickhouse/simplified-apex-locations/schema.js +0 -18
  12. package/dist/clickhouse/simplified-apex-locations/service.d.ts +0 -31
  13. package/dist/clickhouse/simplified-apex-locations/service.js +0 -15
  14. package/dist/clickhouse/simplified-apex-on-board-refunds/index.d.ts +0 -2
  15. package/dist/clickhouse/simplified-apex-on-board-refunds/index.js +0 -2
  16. package/dist/clickhouse/simplified-apex-on-board-refunds/schema.d.ts +0 -3
  17. package/dist/clickhouse/simplified-apex-on-board-refunds/schema.js +0 -28
  18. package/dist/clickhouse/simplified-apex-on-board-refunds/service.d.ts +0 -41
  19. package/dist/clickhouse/simplified-apex-on-board-refunds/service.js +0 -15
  20. package/dist/clickhouse/simplified-apex-on-board-sales/index.d.ts +0 -2
  21. package/dist/clickhouse/simplified-apex-on-board-sales/index.js +0 -2
  22. package/dist/clickhouse/simplified-apex-on-board-sales/schema.d.ts +0 -3
  23. package/dist/clickhouse/simplified-apex-on-board-sales/schema.js +0 -29
  24. package/dist/clickhouse/simplified-apex-on-board-sales/service.d.ts +0 -42
  25. package/dist/clickhouse/simplified-apex-on-board-sales/service.js +0 -15
  26. package/dist/clickhouse/simplified-apex-validations/index.d.ts +0 -2
  27. package/dist/clickhouse/simplified-apex-validations/index.js +0 -2
  28. package/dist/clickhouse/simplified-apex-validations/schema.d.ts +0 -3
  29. package/dist/clickhouse/simplified-apex-validations/schema.js +0 -27
  30. package/dist/clickhouse/simplified-apex-validations/service.d.ts +0 -40
  31. package/dist/clickhouse/simplified-apex-validations/service.js +0 -15
  32. package/dist/clickhouse/simplified-vehicle-events/index.d.ts +0 -2
  33. package/dist/clickhouse/simplified-vehicle-events/index.js +0 -2
  34. package/dist/clickhouse/simplified-vehicle-events/schema.d.ts +0 -3
  35. package/dist/clickhouse/simplified-vehicle-events/schema.js +0 -24
  36. package/dist/clickhouse/simplified-vehicle-events/service.d.ts +0 -32
  37. package/dist/clickhouse/simplified-vehicle-events/service.js +0 -15
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export * from './clickhouse/index.js';
2
1
  export * from './common/index.js';
3
2
  export * from './interfaces/index.js';
4
3
  export * from './providers/index.js';
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  /* * */
2
- export * from './clickhouse/index.js';
3
2
  export * from './common/index.js';
4
3
  export * from './interfaces/index.js';
5
4
  export * from './providers/index.js';
@@ -123,15 +123,15 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
123
123
  agency_ids: string[];
124
124
  };
125
125
  })[];
126
- created_by: string | null;
127
- is_locked: boolean;
128
- updated_by?: string | undefined;
129
126
  created_at: number & {
130
127
  __brand: "UnixTimestamp";
131
128
  };
129
+ created_by: string | null;
132
130
  updated_at: number & {
133
131
  __brand: "UnixTimestamp";
134
132
  };
133
+ updated_by?: string | undefined;
134
+ is_locked: boolean;
135
135
  name: string;
136
136
  _id: string;
137
137
  }>;
@@ -253,15 +253,15 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
253
253
  agency_ids: string[];
254
254
  };
255
255
  })[];
256
- created_by: string | null;
257
- is_locked: boolean;
258
- updated_by?: string | undefined;
259
256
  created_at: number & {
260
257
  __brand: "UnixTimestamp";
261
258
  };
259
+ created_by: string | null;
262
260
  updated_at: number & {
263
261
  __brand: "UnixTimestamp";
264
262
  };
263
+ updated_by?: string | undefined;
264
+ is_locked: boolean;
265
265
  name: string;
266
266
  _id: string;
267
267
  }[]>;
@@ -379,15 +379,15 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
379
379
  agency_ids: string[];
380
380
  };
381
381
  })[];
382
- created_by: string | null;
383
- is_locked: boolean;
384
- updated_by?: string | undefined;
385
382
  created_at: number & {
386
383
  __brand: "UnixTimestamp";
387
384
  };
385
+ created_by: string | null;
388
386
  updated_at: number & {
389
387
  __brand: "UnixTimestamp";
390
388
  };
389
+ updated_by?: string | undefined;
390
+ is_locked: boolean;
391
391
  name: string;
392
392
  _id: string;
393
393
  }>;
@@ -149,15 +149,15 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
149
149
  })[];
150
150
  session_ids: any;
151
151
  verification_token_ids: any;
152
- created_by: string | null;
153
- is_locked: boolean;
154
- updated_by?: string | undefined;
155
152
  created_at: number & {
156
153
  __brand: "UnixTimestamp";
157
154
  };
155
+ created_by: string | null;
158
156
  updated_at: number & {
159
157
  __brand: "UnixTimestamp";
160
158
  };
159
+ updated_by?: string | undefined;
160
+ is_locked: boolean;
161
161
  email: string;
162
162
  email_verified: import("@tmlmobilidade/types").UnixTimestamp | null;
163
163
  first_name: string;
@@ -286,15 +286,15 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
286
286
  })[];
287
287
  session_ids: any;
288
288
  verification_token_ids: any;
289
- created_by: string | null;
290
- is_locked: boolean;
291
- updated_by?: string | undefined;
292
289
  created_at: number & {
293
290
  __brand: "UnixTimestamp";
294
291
  };
292
+ created_by: string | null;
295
293
  updated_at: number & {
296
294
  __brand: "UnixTimestamp";
297
295
  };
296
+ updated_by?: string | undefined;
297
+ is_locked: boolean;
298
298
  email: string;
299
299
  email_verified: import("@tmlmobilidade/types").UnixTimestamp | null;
300
300
  first_name: string;
@@ -427,15 +427,15 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
427
427
  })[];
428
428
  session_ids: any;
429
429
  verification_token_ids: any;
430
- created_by: string | null;
431
- is_locked: boolean;
432
- updated_by?: string | undefined;
433
430
  created_at: number & {
434
431
  __brand: "UnixTimestamp";
435
432
  };
433
+ created_by: string | null;
436
434
  updated_at: number & {
437
435
  __brand: "UnixTimestamp";
438
436
  };
437
+ updated_by?: string | undefined;
438
+ is_locked: boolean;
439
439
  email: string;
440
440
  email_verified: import("@tmlmobilidade/types").UnixTimestamp | null;
441
441
  first_name: string;
@@ -564,15 +564,15 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
564
564
  })[];
565
565
  session_ids: any;
566
566
  verification_token_ids: any;
567
- created_by: string | null;
568
- is_locked: boolean;
569
- updated_by?: string | undefined;
570
567
  created_at: number & {
571
568
  __brand: "UnixTimestamp";
572
569
  };
570
+ created_by: string | null;
573
571
  updated_at: number & {
574
572
  __brand: "UnixTimestamp";
575
573
  };
574
+ updated_by?: string | undefined;
575
+ is_locked: boolean;
576
576
  email: string;
577
577
  email_verified: import("@tmlmobilidade/types").UnixTimestamp | null;
578
578
  first_name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/interfaces",
3
- "version": "20260322.1829.11",
3
+ "version": "20260323.417.47",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"
@@ -38,6 +38,7 @@
38
38
  "dependencies": {
39
39
  "@tmlmobilidade/clickhouse": "*",
40
40
  "@tmlmobilidade/consts": "*",
41
+ "@tmlmobilidade/databases": "*",
41
42
  "@tmlmobilidade/dates": "*",
42
43
  "@tmlmobilidade/emails": "*",
43
44
  "@tmlmobilidade/files": "*",
@@ -1,5 +0,0 @@
1
- export * from './simplified-apex-locations/index.js';
2
- export * from './simplified-apex-on-board-refunds/index.js';
3
- export * from './simplified-apex-on-board-sales/index.js';
4
- export * from './simplified-apex-validations/index.js';
5
- export * from './simplified-vehicle-events/index.js';
@@ -1,5 +0,0 @@
1
- export * from './simplified-apex-locations/index.js';
2
- export * from './simplified-apex-on-board-refunds/index.js';
3
- export * from './simplified-apex-on-board-sales/index.js';
4
- export * from './simplified-apex-validations/index.js';
5
- export * from './simplified-vehicle-events/index.js';
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,3 +0,0 @@
1
- import { ClickHouseColumn } from '@tmlmobilidade/clickhouse';
2
- import { type SimplifiedApexLocation } from '@tmlmobilidade/types';
3
- export declare const simplifiedApexLocationsSchema: ClickHouseColumn<SimplifiedApexLocation>[];
@@ -1,18 +0,0 @@
1
- /* * */
2
- /* * */
3
- export const simplifiedApexLocationsSchema = [
4
- { name: '_id', primaryKey: true, type: 'String' },
5
- { name: 'created_at', type: 'Int64' },
6
- { name: 'updated_at', type: 'Int64' },
7
- { name: 'agency_id', type: 'String' },
8
- { name: 'apex_version', type: 'String' },
9
- { name: 'device_id', type: 'String' },
10
- { name: 'line_id', type: 'String' },
11
- { name: 'mac_ase_counter_value', type: 'Int64' },
12
- { name: 'mac_sam_serial_number', type: 'Int64' },
13
- { name: 'pattern_id', type: 'String' },
14
- { name: 'received_at', type: 'Int64' },
15
- { name: 'stop_id', type: 'String' },
16
- { name: 'trip_id', type: 'String' },
17
- { name: 'vehicle_id', type: 'Int64' },
18
- ];
@@ -1,31 +0,0 @@
1
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
2
- import { type SimplifiedApexValidation } from '@tmlmobilidade/types';
3
- declare class SimplifiedApexLocationsNewClass extends ClickHouseTable<SimplifiedApexValidation> {
4
- databaseName: string;
5
- schema: import("@tmlmobilidade/clickhouse").ClickHouseColumn<{
6
- _id: string;
7
- created_at: number & {
8
- __brand: "UnixTimestamp";
9
- };
10
- updated_at: number & {
11
- __brand: "UnixTimestamp";
12
- };
13
- agency_id: string;
14
- apex_version: string;
15
- device_id: string;
16
- line_id: string;
17
- mac_ase_counter_value: number;
18
- mac_sam_serial_number: number;
19
- pattern_id: string;
20
- received_at: number & {
21
- __brand: "UnixTimestamp";
22
- };
23
- stop_id: string;
24
- trip_id: string;
25
- vehicle_id: number;
26
- }>[];
27
- tableName: string;
28
- postInit(): Promise<void>;
29
- }
30
- export declare const simplifiedApexLocationsNew: SimplifiedApexLocationsNewClass;
31
- export {};
@@ -1,15 +0,0 @@
1
- /* * */
2
- import { simplifiedApexLocationsSchema } from './schema.js';
3
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
4
- /* * */
5
- class SimplifiedApexLocationsNewClass extends ClickHouseTable {
6
- //
7
- databaseName = 'operation';
8
- schema = simplifiedApexLocationsSchema;
9
- tableName = 'simplified_apex_locations';
10
- async postInit() {
11
- console.log('Post init ClickHouse service for Simplified Apex Locations...');
12
- }
13
- }
14
- /* * */
15
- export const simplifiedApexLocationsNew = new SimplifiedApexLocationsNewClass();
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,3 +0,0 @@
1
- import { ClickHouseColumn } from '@tmlmobilidade/clickhouse';
2
- import { SimplifiedApexOnBoardRefund } from '@tmlmobilidade/types';
3
- export declare const simplifiedApexOnBoardRefundsSchema: ClickHouseColumn<SimplifiedApexOnBoardRefund>[];
@@ -1,28 +0,0 @@
1
- /* * */
2
- /* * */
3
- export const simplifiedApexOnBoardRefundsSchema = [
4
- { name: '_id', type: 'String' },
5
- { name: 'created_at', type: 'String' },
6
- { name: 'updated_at', type: 'String' },
7
- { name: 'agency_id', type: 'String' },
8
- { name: 'apex_version', type: 'String' },
9
- { name: 'device_id', type: 'String' },
10
- { name: 'line_id', type: 'String' },
11
- { name: 'mac_ase_counter_value', type: 'String' },
12
- { name: 'mac_sam_serial_number', type: 'String' },
13
- { name: 'pattern_id', type: 'String' },
14
- { name: 'received_at', type: 'String' },
15
- { name: 'stop_id', type: 'String' },
16
- { name: 'trip_id', type: 'String' },
17
- { name: 'vehicle_id', type: 'String' },
18
- { name: 'block_id', type: 'String' },
19
- { name: 'card_physical_type', type: 'String' },
20
- { name: 'card_serial_number', type: 'String' },
21
- { name: 'duty_id', type: 'String' },
22
- { name: 'on_board_sale_id', type: 'String' },
23
- { name: 'payment_method', type: 'String' },
24
- { name: 'price', type: 'String' },
25
- { name: 'product_long_id', type: 'String' },
26
- { name: 'product_quantity', type: 'String' },
27
- { name: 'validation_id', type: 'String' },
28
- ];
@@ -1,41 +0,0 @@
1
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
2
- import { type SimplifiedApexOnBoardRefund } from '@tmlmobilidade/types';
3
- declare class SimplifiedApexOnBoardRefundsNewClass extends ClickHouseTable<SimplifiedApexOnBoardRefund> {
4
- databaseName: string;
5
- schema: import("@tmlmobilidade/clickhouse").ClickHouseColumn<{
6
- _id: string;
7
- created_at: number & {
8
- __brand: "UnixTimestamp";
9
- };
10
- updated_at: number & {
11
- __brand: "UnixTimestamp";
12
- };
13
- agency_id: string;
14
- apex_version: string;
15
- device_id: string;
16
- line_id: string | null;
17
- mac_ase_counter_value: number;
18
- mac_sam_serial_number: number;
19
- pattern_id: string | null;
20
- received_at: number & {
21
- __brand: "UnixTimestamp";
22
- };
23
- stop_id: string | null;
24
- trip_id: string | null;
25
- vehicle_id: number | null;
26
- block_id: string | null;
27
- card_physical_type: number;
28
- card_serial_number: string;
29
- duty_id: string | null;
30
- on_board_sale_id: string | null;
31
- payment_method: number;
32
- price: number;
33
- product_long_id: string;
34
- product_quantity: number;
35
- validation_id: string | null;
36
- }>[];
37
- tableName: string;
38
- postInit(): Promise<void>;
39
- }
40
- export declare const simplifiedApexOnBoardRefundsNew: SimplifiedApexOnBoardRefundsNewClass;
41
- export {};
@@ -1,15 +0,0 @@
1
- /* * */
2
- import { simplifiedApexOnBoardRefundsSchema } from './schema.js';
3
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
4
- /* * */
5
- class SimplifiedApexOnBoardRefundsNewClass extends ClickHouseTable {
6
- //
7
- databaseName = 'operation';
8
- schema = simplifiedApexOnBoardRefundsSchema;
9
- tableName = 'simplified_apex_on-board-refunds';
10
- async postInit() {
11
- console.log('Post init ClickHouse service for Simplified Apex On-Board Refunds...');
12
- }
13
- }
14
- /* * */
15
- export const simplifiedApexOnBoardRefundsNew = new SimplifiedApexOnBoardRefundsNewClass();
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,3 +0,0 @@
1
- import { ClickHouseColumn } from '@tmlmobilidade/clickhouse';
2
- import { SimplifiedApexOnBoardSale } from '@tmlmobilidade/types';
3
- export declare const simplifiedApexOnBoardSalesSchema: ClickHouseColumn<SimplifiedApexOnBoardSale>[];
@@ -1,29 +0,0 @@
1
- /* * */
2
- /* * */
3
- export const simplifiedApexOnBoardSalesSchema = [
4
- { name: '_id', type: 'String' },
5
- { name: 'created_at', type: 'String' },
6
- { name: 'updated_at', type: 'String' },
7
- { name: 'agency_id', type: 'String' },
8
- { name: 'apex_version', type: 'String' },
9
- { name: 'device_id', type: 'String' },
10
- { name: 'line_id', type: 'String' },
11
- { name: 'mac_ase_counter_value', type: 'String' },
12
- { name: 'mac_sam_serial_number', type: 'String' },
13
- { name: 'pattern_id', type: 'String' },
14
- { name: 'received_at', type: 'String' },
15
- { name: 'stop_id', type: 'String' },
16
- { name: 'trip_id', type: 'String' },
17
- { name: 'vehicle_id', type: 'String' },
18
- { name: 'block_id', type: 'String' },
19
- { name: 'card_physical_type', type: 'String' },
20
- { name: 'card_serial_number', type: 'String' },
21
- { name: 'duty_id', type: 'String' },
22
- { name: 'payment_method', type: 'String' },
23
- { name: 'price', type: 'String' },
24
- { name: 'product_long_id', type: 'String' },
25
- { name: 'product_quantity', type: 'String' },
26
- { name: 'validation_id', type: 'String' },
27
- { name: 'is_passenger', type: 'String' },
28
- { name: 'on_board_refund_id', type: 'String' },
29
- ];
@@ -1,42 +0,0 @@
1
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
2
- import { type SimplifiedApexOnBoardSale } from '@tmlmobilidade/types';
3
- declare class SimplifiedApexOnBoardSalesNewClass extends ClickHouseTable<SimplifiedApexOnBoardSale> {
4
- databaseName: string;
5
- schema: import("@tmlmobilidade/clickhouse").ClickHouseColumn<{
6
- _id: string;
7
- created_at: number & {
8
- __brand: "UnixTimestamp";
9
- };
10
- updated_at: number & {
11
- __brand: "UnixTimestamp";
12
- };
13
- agency_id: string;
14
- apex_version: string;
15
- device_id: string;
16
- line_id: string | null;
17
- mac_ase_counter_value: number;
18
- mac_sam_serial_number: number;
19
- pattern_id: string | null;
20
- received_at: number & {
21
- __brand: "UnixTimestamp";
22
- };
23
- stop_id: string | null;
24
- trip_id: string | null;
25
- vehicle_id: number | null;
26
- block_id: string | null;
27
- card_physical_type: number;
28
- card_serial_number: string;
29
- duty_id: string | null;
30
- payment_method: number;
31
- price: number;
32
- product_long_id: string;
33
- product_quantity: number;
34
- validation_id: string | null;
35
- is_passenger: boolean;
36
- on_board_refund_id: string | null;
37
- }>[];
38
- tableName: string;
39
- postInit(): Promise<void>;
40
- }
41
- export declare const simplifiedApexOnBoardSalesNew: SimplifiedApexOnBoardSalesNewClass;
42
- export {};
@@ -1,15 +0,0 @@
1
- /* * */
2
- import { simplifiedApexOnBoardSalesSchema } from './schema.js';
3
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
4
- /* * */
5
- class SimplifiedApexOnBoardSalesNewClass extends ClickHouseTable {
6
- //
7
- databaseName = 'operation';
8
- schema = simplifiedApexOnBoardSalesSchema;
9
- tableName = 'simplified_apex_on-board-sales';
10
- async postInit() {
11
- console.log('Post init ClickHouse service for Simplified Apex On-Board Sales...');
12
- }
13
- }
14
- /* * */
15
- export const simplifiedApexOnBoardSalesNew = new SimplifiedApexOnBoardSalesNewClass();
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,3 +0,0 @@
1
- import { type ClickHouseColumn } from '@tmlmobilidade/clickhouse';
2
- import { type SimplifiedApexValidation } from '@tmlmobilidade/types';
3
- export declare const simplifiedApexValidationsSchema: ClickHouseColumn<SimplifiedApexValidation>[];
@@ -1,27 +0,0 @@
1
- /* * */
2
- /* * */
3
- export const simplifiedApexValidationsSchema = [
4
- { name: '_id', primaryKey: true, type: 'String' },
5
- { name: 'agency_id', type: 'String' },
6
- { name: 'apex_version', type: 'String' },
7
- { name: 'card_serial_number', type: 'String' },
8
- { name: 'category', type: 'String' },
9
- { name: 'created_at', type: 'Int64' },
10
- { name: 'device_id', type: 'String' },
11
- { name: 'event_type', type: 'Int64' },
12
- { name: 'is_passenger', type: 'Bool' },
13
- { name: 'line_id', type: 'String' },
14
- { name: 'mac_ase_counter_value', type: 'Int64' },
15
- { name: 'mac_sam_serial_number', type: 'Int64' },
16
- { name: 'on_board_refund_id', type: 'Nullable(String)' },
17
- { name: 'on_board_sale_id', type: 'Nullable(String)' },
18
- { name: 'pattern_id', type: 'String' },
19
- { name: 'product_id', type: 'String' },
20
- { name: 'received_at', type: 'Int64' },
21
- { name: 'stop_id', type: 'String' },
22
- { name: 'trip_id', type: 'String' },
23
- { name: 'units_qty', type: 'Nullable(Int64)' },
24
- { name: 'updated_at', type: 'Int64' },
25
- { name: 'validation_status', type: 'Int64' },
26
- { name: 'vehicle_id', type: 'Int64' },
27
- ];
@@ -1,40 +0,0 @@
1
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
2
- import { type SimplifiedApexValidation } from '@tmlmobilidade/types';
3
- declare class SimplifiedApexValidationsNewClass extends ClickHouseTable<SimplifiedApexValidation> {
4
- databaseName: string;
5
- schema: import("@tmlmobilidade/clickhouse").ClickHouseColumn<{
6
- _id: string;
7
- created_at: number & {
8
- __brand: "UnixTimestamp";
9
- };
10
- updated_at: number & {
11
- __brand: "UnixTimestamp";
12
- };
13
- agency_id: string;
14
- apex_version: string;
15
- device_id: string;
16
- line_id: string;
17
- mac_ase_counter_value: number;
18
- mac_sam_serial_number: number;
19
- pattern_id: string;
20
- received_at: number & {
21
- __brand: "UnixTimestamp";
22
- };
23
- stop_id: string;
24
- trip_id: string;
25
- vehicle_id: number;
26
- card_serial_number: string;
27
- on_board_sale_id: string | null;
28
- is_passenger: boolean;
29
- on_board_refund_id: string | null;
30
- category: "on_board_sale" | "prepaid" | "subscription";
31
- event_type: number;
32
- product_id: string;
33
- units_qty: number | null;
34
- validation_status: 0 | 1 | 2 | 12 | 4 | 3 | 5 | 6 | 11 | 10 | 7 | 8 | 9 | 13;
35
- }>[];
36
- tableName: string;
37
- postInit(): Promise<void>;
38
- }
39
- export declare const simplifiedApexValidationsNew: SimplifiedApexValidationsNewClass;
40
- export {};
@@ -1,15 +0,0 @@
1
- /* * */
2
- import { simplifiedApexValidationsSchema } from './schema.js';
3
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
4
- /* * */
5
- class SimplifiedApexValidationsNewClass extends ClickHouseTable {
6
- //
7
- databaseName = 'operation';
8
- schema = simplifiedApexValidationsSchema;
9
- tableName = 'simplified_apex_validations';
10
- async postInit() {
11
- console.log('Post init ClickHouse service for Simplified Apex Validations...');
12
- }
13
- }
14
- /* * */
15
- export const simplifiedApexValidationsNew = new SimplifiedApexValidationsNewClass();
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,2 +0,0 @@
1
- export * from './schema.js';
2
- export * from './service.js';
@@ -1,3 +0,0 @@
1
- import { type ClickHouseColumn } from '@tmlmobilidade/clickhouse';
2
- import { type SimplifiedVehicleEvent } from '@tmlmobilidade/types';
3
- export declare const simplifiedVehicleEventsSchema: ClickHouseColumn<SimplifiedVehicleEvent>[];
@@ -1,24 +0,0 @@
1
- /* * */
2
- /* * */
3
- export const simplifiedVehicleEventsSchema = [
4
- //
5
- // Required Fields
6
- { name: '_id', type: 'String' },
7
- { name: 'agency_id', type: 'String' },
8
- { name: 'created_at', type: 'UInt64' },
9
- { name: 'latitude', type: 'Float64' },
10
- { name: 'longitude', type: 'Float64' },
11
- { name: 'received_at', type: 'UInt64' },
12
- { name: 'trip_id', type: 'String' },
13
- { name: 'vehicle_id', type: 'String' },
14
- // Optional Fields
15
- { name: 'bearing', type: 'Nullable(Float64)' },
16
- { name: 'current_status', type: 'Nullable(String)' },
17
- { name: 'door', type: 'Nullable(String)' },
18
- { name: 'driver_id', type: 'Nullable(String)' },
19
- { name: 'extra_trip_id', type: 'Nullable(String)' },
20
- { name: 'odometer', type: 'Nullable(Float64)' },
21
- { name: 'pattern_id', type: 'Nullable(String)' },
22
- { name: 'stop_id', type: 'Nullable(String)' },
23
- ];
24
- /* * */
@@ -1,32 +0,0 @@
1
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
2
- import { type SimplifiedVehicleEvent } from '@tmlmobilidade/types';
3
- declare class SimplifiedVehicleEventsNewClass extends ClickHouseTable<SimplifiedVehicleEvent> {
4
- databaseName: string;
5
- schema: import("@tmlmobilidade/clickhouse").ClickHouseColumn<{
6
- _id: string;
7
- created_at: number & {
8
- __brand: "UnixTimestamp";
9
- };
10
- latitude: number;
11
- longitude: number;
12
- agency_id: string;
13
- pattern_id: string | null;
14
- received_at: number & {
15
- __brand: "UnixTimestamp";
16
- };
17
- stop_id: string | null;
18
- trip_id: string;
19
- vehicle_id: string;
20
- bearing: number | null;
21
- odometer: number | null;
22
- speed: number | null;
23
- current_status: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null;
24
- door: string | null;
25
- driver_id: string | null;
26
- extra_trip_id: string | null;
27
- }>[];
28
- tableName: string;
29
- postInit(): Promise<void>;
30
- }
31
- export declare const simplifiedVehicleEventsNew: SimplifiedVehicleEventsNewClass;
32
- export {};
@@ -1,15 +0,0 @@
1
- /* * */
2
- import { simplifiedVehicleEventsSchema } from './schema.js';
3
- import { ClickHouseTable } from '@tmlmobilidade/clickhouse';
4
- /* * */
5
- class SimplifiedVehicleEventsNewClass extends ClickHouseTable {
6
- //
7
- databaseName = 'operation';
8
- schema = simplifiedVehicleEventsSchema;
9
- tableName = 'simplified_vehicle_events';
10
- async postInit() {
11
- console.log('Post init ClickHouse service for Simplified Vehicle Events...');
12
- }
13
- }
14
- /* * */
15
- export const simplifiedVehicleEventsNew = new SimplifiedVehicleEventsNewClass();