@tmlmobilidade/databases 20260323.400.54 → 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.
@@ -3,8 +3,8 @@ import { type ClickHouseColumn } from '../../types/index.js';
3
3
  import { type SimplifiedApexLocation } from '@tmlmobilidade/types';
4
4
  declare class SimplifiedApexLocationsNewClass extends ClickHouseInterfaceTemplate<SimplifiedApexLocation> {
5
5
  private static _instance;
6
- readonly databaseName = "operation";
7
- readonly schema: ClickHouseColumn<{
6
+ protected readonly databaseName = "operation";
7
+ protected readonly schema: ClickHouseColumn<{
8
8
  _id: string;
9
9
  created_at: number & {
10
10
  __brand: "UnixTimestamp";
@@ -26,7 +26,7 @@ declare class SimplifiedApexLocationsNewClass extends ClickHouseInterfaceTemplat
26
26
  trip_id: string;
27
27
  vehicle_id: number;
28
28
  }>[];
29
- readonly tableName = "simplified_apex_locations";
29
+ protected readonly tableName = "simplified_apex_locations";
30
30
  /**
31
31
  * Returns the singleton instance of the subclass.
32
32
  */
@@ -3,8 +3,8 @@ import { type ClickHouseColumn } from '../../types/index.js';
3
3
  import { type SimplifiedApexOnBoardRefund } from '@tmlmobilidade/types';
4
4
  declare class SimplifiedApexOnBoardRefundsNewClass extends ClickHouseInterfaceTemplate<SimplifiedApexOnBoardRefund> {
5
5
  private static _instance;
6
- readonly databaseName = "operation";
7
- readonly schema: ClickHouseColumn<{
6
+ protected readonly databaseName = "operation";
7
+ protected readonly schema: ClickHouseColumn<{
8
8
  _id: string;
9
9
  created_at: number & {
10
10
  __brand: "UnixTimestamp";
@@ -36,7 +36,7 @@ declare class SimplifiedApexOnBoardRefundsNewClass extends ClickHouseInterfaceTe
36
36
  product_quantity: number;
37
37
  validation_id: string | null;
38
38
  }>[];
39
- readonly tableName = "simplified_apex_on_board_refunds";
39
+ protected readonly tableName = "simplified_apex_on_board_refunds";
40
40
  /**
41
41
  * Returns the singleton instance of the subclass.
42
42
  */
@@ -3,8 +3,8 @@ import { type ClickHouseColumn } from '../../types/index.js';
3
3
  import { type SimplifiedApexOnBoardSale } from '@tmlmobilidade/types';
4
4
  declare class SimplifiedApexOnBoardSalesNewClass extends ClickHouseInterfaceTemplate<SimplifiedApexOnBoardSale> {
5
5
  private static _instance;
6
- readonly databaseName = "operation";
7
- readonly schema: ClickHouseColumn<{
6
+ protected readonly databaseName = "operation";
7
+ protected readonly schema: ClickHouseColumn<{
8
8
  _id: string;
9
9
  created_at: number & {
10
10
  __brand: "UnixTimestamp";
@@ -37,7 +37,7 @@ declare class SimplifiedApexOnBoardSalesNewClass extends ClickHouseInterfaceTemp
37
37
  is_passenger: boolean;
38
38
  on_board_refund_id: string | null;
39
39
  }>[];
40
- readonly tableName = "simplified_apex_on_board_sales";
40
+ protected readonly tableName = "simplified_apex_on_board_sales";
41
41
  /**
42
42
  * Returns the singleton instance of the subclass.
43
43
  */
@@ -3,8 +3,8 @@ import { type ClickHouseColumn } from '../../types/index.js';
3
3
  import { type SimplifiedApexValidation } from '@tmlmobilidade/types';
4
4
  declare class SimplifiedApexValidationsNewClass extends ClickHouseInterfaceTemplate<SimplifiedApexValidation> {
5
5
  private static _instance;
6
- readonly databaseName = "operation";
7
- readonly schema: ClickHouseColumn<{
6
+ protected readonly databaseName = "operation";
7
+ protected readonly schema: ClickHouseColumn<{
8
8
  _id: string;
9
9
  created_at: number & {
10
10
  __brand: "UnixTimestamp";
@@ -35,7 +35,7 @@ declare class SimplifiedApexValidationsNewClass extends ClickHouseInterfaceTempl
35
35
  units_qty: number | null;
36
36
  validation_status: 0 | 1 | 2 | 12 | 4 | 3 | 5 | 6 | 11 | 10 | 7 | 8 | 9 | 13;
37
37
  }>[];
38
- readonly tableName = "simplified_apex_validations";
38
+ protected readonly tableName = "simplified_apex_validations";
39
39
  /**
40
40
  * Returns the singleton instance of the subclass.
41
41
  */
@@ -1,11 +1,11 @@
1
1
  import { type ClickHouseColumn, type ClickHouseTableEngine } from '../types/index.js';
2
2
  import { type ClickHouseClient, type DataFormat } from '@clickhouse/client';
3
3
  export declare abstract class ClickHouseInterfaceTemplate<T> {
4
- abstract readonly databaseName: string;
5
- readonly engine: ClickHouseTableEngine;
6
- readonly orderBy: string;
7
- abstract readonly schema: ClickHouseColumn<T>[];
8
- abstract readonly tableName: string;
4
+ protected readonly abstract databaseName: string;
5
+ protected readonly engine: ClickHouseTableEngine;
6
+ protected readonly orderBy: string;
7
+ protected readonly abstract schema: ClickHouseColumn<T>[];
8
+ protected readonly abstract tableName: string;
9
9
  private client;
10
10
  /**
11
11
  * Disallow direct instantiation of the service.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/databases",
3
- "version": "20260323.400.54",
3
+ "version": "20260323.417.47",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"