@tmlmobilidade/interfaces 20260323.417.47 → 20260324.1249.38
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/vehicle-events/index.d.ts +0 -1
- package/dist/interfaces/vehicle-events/index.js +0 -1
- package/dist/interfaces/vehicle-events/simplified-vehicle-events.d.ts +4 -0
- package/dist/interfaces/vehicle-events/simplified-vehicle-events.js +4 -0
- package/package.json +2 -2
- package/dist/interfaces/vehicle-events/raw-vehicle-events.d.ts +0 -19
- package/dist/interfaces/vehicle-events/raw-vehicle-events.js +0 -36
|
@@ -9,5 +9,9 @@ declare class SimplifiedVehicleEventsClass extends MongoCollectionClass<Simplifi
|
|
|
9
9
|
protected getCollectionName(): string;
|
|
10
10
|
protected getEnvName(): string;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated This collection is no longer used and will be removed in a future release.
|
|
14
|
+
* Use `simplifiedVehicleEventsNew` instead, which is the SQL version of this collection.
|
|
15
|
+
*/
|
|
12
16
|
export declare const simplifiedVehicleEvents: SimplifiedVehicleEventsClass;
|
|
13
17
|
export {};
|
|
@@ -30,4 +30,8 @@ class SimplifiedVehicleEventsClass extends MongoCollectionClass {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
/* * */
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated This collection is no longer used and will be removed in a future release.
|
|
35
|
+
* Use `simplifiedVehicleEventsNew` instead, which is the SQL version of this collection.
|
|
36
|
+
*/
|
|
33
37
|
export const simplifiedVehicleEvents = asyncSingletonProxy(SimplifiedVehicleEventsClass);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/interfaces",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20260324.1249.38",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "iso@tmlmobilidade.pt",
|
|
6
6
|
"name": "TML-ISO"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@tmlmobilidade/utils": "*",
|
|
50
50
|
"@tmlmobilidade/writers": "*",
|
|
51
51
|
"bcryptjs": "3.0.3",
|
|
52
|
-
"mongodb": "7.1.
|
|
52
|
+
"mongodb": "7.1.1",
|
|
53
53
|
"oci-common": "2.126.2",
|
|
54
54
|
"oci-objectstorage": "2.126.2",
|
|
55
55
|
"zod": "3.25.76"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MongoCollectionClass } from '../../common/mongo-collection.js';
|
|
2
|
-
import { type IndexDescription } from 'mongodb';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
declare class RawVehicleEventsClass extends MongoCollectionClass<any, any, any> {
|
|
5
|
-
private static _instance;
|
|
6
|
-
protected createSchema: z.ZodSchema;
|
|
7
|
-
protected updateSchema: z.ZodSchema;
|
|
8
|
-
private constructor();
|
|
9
|
-
static getInstance(): Promise<RawVehicleEventsClass>;
|
|
10
|
-
protected getCollectionIndexes(): IndexDescription[];
|
|
11
|
-
protected getCollectionName(): string;
|
|
12
|
-
protected getEnvName(): string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated This should not be used anymore. Only inside the `tracker` module
|
|
16
|
-
* and then you should use the services provided by the local package.
|
|
17
|
-
*/
|
|
18
|
-
export declare const rawVehicleEvents: RawVehicleEventsClass;
|
|
19
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { MongoCollectionClass } from '../../common/mongo-collection.js';
|
|
3
|
-
import { asyncSingletonProxy } from '@tmlmobilidade/utils';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
/* * */
|
|
6
|
-
class RawVehicleEventsClass extends MongoCollectionClass {
|
|
7
|
-
static _instance;
|
|
8
|
-
createSchema = z.any();
|
|
9
|
-
updateSchema = z.any();
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
}
|
|
13
|
-
static async getInstance() {
|
|
14
|
-
if (!RawVehicleEventsClass._instance) {
|
|
15
|
-
const instance = new RawVehicleEventsClass();
|
|
16
|
-
await instance.connect();
|
|
17
|
-
RawVehicleEventsClass._instance = instance;
|
|
18
|
-
}
|
|
19
|
-
return RawVehicleEventsClass._instance;
|
|
20
|
-
}
|
|
21
|
-
getCollectionIndexes() {
|
|
22
|
-
return [];
|
|
23
|
-
}
|
|
24
|
-
getCollectionName() {
|
|
25
|
-
return 'raw_vehicle_events';
|
|
26
|
-
}
|
|
27
|
-
getEnvName() {
|
|
28
|
-
return 'DATABASE_URI';
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
/* * */
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated This should not be used anymore. Only inside the `tracker` module
|
|
34
|
-
* and then you should use the services provided by the local package.
|
|
35
|
-
*/
|
|
36
|
-
export const rawVehicleEvents = asyncSingletonProxy(RawVehicleEventsClass);
|