@tmlmobilidade/interfaces 20250901.2042.59 → 20250902.1255.46
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/src/interfaces/agencies/index.d.ts +1 -0
- package/dist/src/interfaces/agencies/index.js +1 -0
- package/dist/src/interfaces/alerts/index.d.ts +2 -0
- package/dist/src/interfaces/alerts/index.js +2 -0
- package/dist/src/interfaces/auth/index.d.ts +4 -0
- package/dist/src/interfaces/auth/index.js +4 -0
- package/dist/src/interfaces/files/index.d.ts +1 -0
- package/dist/src/interfaces/files/index.js +1 -0
- package/dist/src/interfaces/gtfs-validations/index.d.ts +1 -0
- package/dist/src/interfaces/gtfs-validations/index.js +1 -0
- package/dist/src/interfaces/index.d.ts +14 -26
- package/dist/src/interfaces/index.js +14 -27
- package/dist/src/interfaces/locations/index.d.ts +1 -0
- package/dist/src/interfaces/locations/index.js +1 -0
- package/dist/src/interfaces/organizations/index.d.ts +1 -0
- package/dist/src/interfaces/organizations/index.js +1 -0
- package/dist/src/interfaces/plans/index.d.ts +1 -0
- package/dist/src/interfaces/plans/index.js +1 -0
- package/dist/src/interfaces/proposed-changes/index.d.ts +1 -0
- package/dist/src/interfaces/proposed-changes/index.js +1 -0
- package/dist/src/interfaces/rides/index.d.ts +4 -0
- package/dist/src/interfaces/rides/index.js +4 -0
- package/dist/src/interfaces/rides/ride-annotations.d.ts +63 -0
- package/dist/src/interfaces/rides/ride-annotations.js +48 -0
- package/dist/src/interfaces/simplified-apex/index.d.ts +7 -0
- package/dist/src/interfaces/simplified-apex/index.js +7 -0
- package/dist/src/interfaces/simplified-apex/{sams.interface.d.ts → sams.d.ts} +4 -4
- package/dist/src/interfaces/simplified-apex/{sams.interface.js → sams.js} +9 -9
- package/dist/src/interfaces/stops/index.d.ts +1 -0
- package/dist/src/interfaces/stops/index.js +1 -0
- package/dist/src/interfaces/vehicle-events/index.d.ts +1 -0
- package/dist/src/interfaces/vehicle-events/index.js +1 -0
- package/dist/src/interfaces/zones/index.d.ts +1 -0
- package/dist/src/interfaces/zones/index.js +1 -0
- package/dist/src/interfaces/zones/{zones.interface.d.ts → zones.d.ts} +4 -7
- package/dist/src/interfaces/zones/{zones.interface.js → zones.js} +4 -7
- package/package.json +4 -4
- /package/dist/src/interfaces/agencies/{agencies.interface.d.ts → agencies.d.ts} +0 -0
- /package/dist/src/interfaces/agencies/{agencies.interface.js → agencies.js} +0 -0
- /package/dist/src/interfaces/alerts/{alerts-realtime.interface.d.ts → alerts-realtime.d.ts} +0 -0
- /package/dist/src/interfaces/alerts/{alerts-realtime.interface.js → alerts-realtime.js} +0 -0
- /package/dist/src/interfaces/alerts/{alerts.interface.d.ts → alerts.d.ts} +0 -0
- /package/dist/src/interfaces/alerts/{alerts.interface.js → alerts.js} +0 -0
- /package/dist/src/interfaces/auth/{roles.interface.d.ts → roles.d.ts} +0 -0
- /package/dist/src/interfaces/auth/{roles.interface.js → roles.js} +0 -0
- /package/dist/src/interfaces/auth/{sessions.interface.d.ts → sessions.d.ts} +0 -0
- /package/dist/src/interfaces/auth/{sessions.interface.js → sessions.js} +0 -0
- /package/dist/src/interfaces/auth/{users.interface.d.ts → users.d.ts} +0 -0
- /package/dist/src/interfaces/auth/{users.interface.js → users.js} +0 -0
- /package/dist/src/interfaces/auth/{verification-tokens.interface.d.ts → verification-tokens.d.ts} +0 -0
- /package/dist/src/interfaces/auth/{verification-tokens.interface.js → verification-tokens.js} +0 -0
- /package/dist/src/interfaces/files/{files.interface.d.ts → files.d.ts} +0 -0
- /package/dist/src/interfaces/files/{files.interface.js → files.js} +0 -0
- /package/dist/src/interfaces/gtfs-validations/{gtfs-validations.interface.d.ts → gtfs-validations.d.ts} +0 -0
- /package/dist/src/interfaces/gtfs-validations/{gtfs-validations.interface.js → gtfs-validations.js} +0 -0
- /package/dist/src/interfaces/locations/{locations.interface.d.ts → locations.d.ts} +0 -0
- /package/dist/src/interfaces/locations/{locations.interface.js → locations.js} +0 -0
- /package/dist/src/interfaces/organizations/{organizations.interface.d.ts → organizations.d.ts} +0 -0
- /package/dist/src/interfaces/organizations/{organizations.interface.js → organizations.js} +0 -0
- /package/dist/src/interfaces/plans/{plans.interface.d.ts → plans.d.ts} +0 -0
- /package/dist/src/interfaces/plans/{plans.interface.js → plans.js} +0 -0
- /package/dist/src/interfaces/{proposedChanges/proposedChanges.interface.d.ts → proposed-changes/proposed-changes.d.ts} +0 -0
- /package/dist/src/interfaces/{proposedChanges/proposedChanges.interface.js → proposed-changes/proposed-changes.js} +0 -0
- /package/dist/src/interfaces/rides/{hashed-shapes.interface.d.ts → hashed-shapes.d.ts} +0 -0
- /package/dist/src/interfaces/rides/{hashed-shapes.interface.js → hashed-shapes.js} +0 -0
- /package/dist/src/interfaces/rides/{hashed-trips.interface.d.ts → hashed-trips.d.ts} +0 -0
- /package/dist/src/interfaces/rides/{hashed-trips.interface.js → hashed-trips.js} +0 -0
- /package/dist/src/interfaces/rides/{rides.interface.d.ts → rides.d.ts} +0 -0
- /package/dist/src/interfaces/rides/{rides.interface.js → rides.js} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-inspection-decisions.interface.d.ts → simplified-apex-inspection-decisions.d.ts} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-inspection-decisions.interface.js → simplified-apex-inspection-decisions.js} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-inspections.interface.d.ts → simplified-apex-inspections.d.ts} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-inspections.interface.js → simplified-apex-inspections.js} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-locations.interface.d.ts → simplified-apex-locations.d.ts} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-locations.interface.js → simplified-apex-locations.js} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-on-board-refunds.interface.d.ts → simplified-apex-on-board-refunds.d.ts} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-on-board-refunds.interface.js → simplified-apex-on-board-refunds.js} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-on-board-sales.interface.d.ts → simplified-apex-on-board-sales.d.ts} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-on-board-sales.interface.js → simplified-apex-on-board-sales.js} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-validations.interface.d.ts → simplified-apex-validations.d.ts} +0 -0
- /package/dist/src/interfaces/simplified-apex/{simplified-apex-validations.interface.js → simplified-apex-validations.js} +0 -0
- /package/dist/src/interfaces/stops/{stops.interface.d.ts → stops.d.ts} +0 -0
- /package/dist/src/interfaces/stops/{stops.interface.js → stops.js} +0 -0
- /package/dist/src/interfaces/vehicle-events/{vehicle-events.interface.d.ts → vehicle-events.d.ts} +0 -0
- /package/dist/src/interfaces/vehicle-events/{vehicle-events.interface.js → vehicle-events.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './agencies.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './agencies.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './files.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './files.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './gtfs-validations.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './gtfs-validations.js';
|
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
export * from './agencies/
|
|
2
|
-
export * from './alerts/
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './rides/hashed-trips.interface.js';
|
|
16
|
-
export * from './rides/rides.interface.js';
|
|
17
|
-
export * from './simplified-apex/sams.interface.js';
|
|
18
|
-
export * from './simplified-apex/simplified-apex-inspection-decisions.interface.js';
|
|
19
|
-
export * from './simplified-apex/simplified-apex-inspections.interface.js';
|
|
20
|
-
export * from './simplified-apex/simplified-apex-locations.interface.js';
|
|
21
|
-
export * from './simplified-apex/simplified-apex-on-board-refunds.interface.js';
|
|
22
|
-
export * from './simplified-apex/simplified-apex-on-board-sales.interface.js';
|
|
23
|
-
export * from './simplified-apex/simplified-apex-validations.interface.js';
|
|
24
|
-
export * from './stops/stops.interface.js';
|
|
25
|
-
export * from './vehicle-events/vehicle-events.interface.js';
|
|
26
|
-
export * from './zones/zones.interface.js';
|
|
1
|
+
export * from './agencies/index.js';
|
|
2
|
+
export * from './alerts/index.js';
|
|
3
|
+
export * from './auth/index.js';
|
|
4
|
+
export * from './files/index.js';
|
|
5
|
+
export * from './gtfs-validations/index.js';
|
|
6
|
+
export * from './locations/index.js';
|
|
7
|
+
export * from './organizations/index.js';
|
|
8
|
+
export * from './plans/index.js';
|
|
9
|
+
export * from './proposed-changes/index.js';
|
|
10
|
+
export * from './rides/index.js';
|
|
11
|
+
export * from './simplified-apex/index.js';
|
|
12
|
+
export * from './stops/index.js';
|
|
13
|
+
export * from './vehicle-events/index.js';
|
|
14
|
+
export * from './zones/index.js';
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './rides/hashed-shapes.interface.js';
|
|
16
|
-
export * from './rides/hashed-trips.interface.js';
|
|
17
|
-
export * from './rides/rides.interface.js';
|
|
18
|
-
export * from './simplified-apex/sams.interface.js';
|
|
19
|
-
export * from './simplified-apex/simplified-apex-inspection-decisions.interface.js';
|
|
20
|
-
export * from './simplified-apex/simplified-apex-inspections.interface.js';
|
|
21
|
-
export * from './simplified-apex/simplified-apex-locations.interface.js';
|
|
22
|
-
export * from './simplified-apex/simplified-apex-on-board-refunds.interface.js';
|
|
23
|
-
export * from './simplified-apex/simplified-apex-on-board-sales.interface.js';
|
|
24
|
-
export * from './simplified-apex/simplified-apex-validations.interface.js';
|
|
25
|
-
export * from './stops/stops.interface.js';
|
|
26
|
-
export * from './vehicle-events/vehicle-events.interface.js';
|
|
27
|
-
export * from './zones/zones.interface.js';
|
|
1
|
+
export * from './agencies/index.js';
|
|
2
|
+
export * from './alerts/index.js';
|
|
3
|
+
export * from './auth/index.js';
|
|
4
|
+
export * from './files/index.js';
|
|
5
|
+
export * from './gtfs-validations/index.js';
|
|
6
|
+
export * from './locations/index.js';
|
|
7
|
+
export * from './organizations/index.js';
|
|
8
|
+
export * from './plans/index.js';
|
|
9
|
+
export * from './proposed-changes/index.js';
|
|
10
|
+
export * from './rides/index.js';
|
|
11
|
+
export * from './simplified-apex/index.js';
|
|
12
|
+
export * from './stops/index.js';
|
|
13
|
+
export * from './vehicle-events/index.js';
|
|
14
|
+
export * from './zones/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './locations.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './locations.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './organizations.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './organizations.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './plans.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './plans.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './proposed-changes.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './proposed-changes.js';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { MongoCollectionClass } from '../../mongo-collection.js';
|
|
2
|
+
import { CreateRideAnnotationDto, RideAnnotation, UpdateRideAnnotationDto } from '@tmlmobilidade/types';
|
|
3
|
+
import { IndexDescription } from 'mongodb';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
declare class RideAnnotationsClass extends MongoCollectionClass<RideAnnotation, CreateRideAnnotationDto, UpdateRideAnnotationDto> {
|
|
6
|
+
private static _instance;
|
|
7
|
+
protected createSchema: z.ZodSchema;
|
|
8
|
+
protected updateSchema: z.ZodSchema;
|
|
9
|
+
private constructor();
|
|
10
|
+
static getInstance(): Promise<RideAnnotationsClass>;
|
|
11
|
+
/**
|
|
12
|
+
* Finds ride documents by Ride ID.
|
|
13
|
+
* @param rideId - The Ride ID to search for.
|
|
14
|
+
* @returns A promise that resolves to an array of matching ride documents.
|
|
15
|
+
*/
|
|
16
|
+
findByRideId(rideId: string): Promise<import("mongodb").WithId<{
|
|
17
|
+
_id: string;
|
|
18
|
+
is_locked: boolean;
|
|
19
|
+
acceptance: {
|
|
20
|
+
_id: string;
|
|
21
|
+
status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
22
|
+
created_by: string | null;
|
|
23
|
+
analysis_summary: Record<string, "error" | "pass" | "fail" | "skip"> | null;
|
|
24
|
+
mode: "manual" | "auto";
|
|
25
|
+
created_at?: (number & {
|
|
26
|
+
__brand: "UnixTimestamp";
|
|
27
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
28
|
+
updated_at?: (number & {
|
|
29
|
+
__brand: "UnixTimestamp";
|
|
30
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
31
|
+
}[];
|
|
32
|
+
justification: {
|
|
33
|
+
comments: {
|
|
34
|
+
_id: string;
|
|
35
|
+
text: string;
|
|
36
|
+
user_id: string;
|
|
37
|
+
created_at?: (number & {
|
|
38
|
+
__brand: "UnixTimestamp";
|
|
39
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
40
|
+
updated_at?: (number & {
|
|
41
|
+
__brand: "UnixTimestamp";
|
|
42
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
43
|
+
}[];
|
|
44
|
+
file_ids: string[];
|
|
45
|
+
pto_message: string;
|
|
46
|
+
} | null;
|
|
47
|
+
overrides: {
|
|
48
|
+
trip_id: string | null;
|
|
49
|
+
} | null;
|
|
50
|
+
ride_id: string;
|
|
51
|
+
created_at?: (number & {
|
|
52
|
+
__brand: "UnixTimestamp";
|
|
53
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
54
|
+
updated_at?: (number & {
|
|
55
|
+
__brand: "UnixTimestamp";
|
|
56
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
57
|
+
}>[]>;
|
|
58
|
+
protected getCollectionIndexes(): IndexDescription[];
|
|
59
|
+
protected getCollectionName(): string;
|
|
60
|
+
protected getEnvName(): string;
|
|
61
|
+
}
|
|
62
|
+
export declare const rideAnnotations: RideAnnotationsClass;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { MongoCollectionClass } from '../../mongo-collection.js';
|
|
3
|
+
import { RideAnnotationSchema, UpdateRideAnnotationSchema } from '@tmlmobilidade/types';
|
|
4
|
+
import { AsyncSingletonProxy } from '@tmlmobilidade/utils';
|
|
5
|
+
/* * */
|
|
6
|
+
class RideAnnotationsClass extends MongoCollectionClass {
|
|
7
|
+
static _instance;
|
|
8
|
+
createSchema = RideAnnotationSchema;
|
|
9
|
+
updateSchema = UpdateRideAnnotationSchema;
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
}
|
|
13
|
+
static async getInstance() {
|
|
14
|
+
if (!RideAnnotationsClass._instance) {
|
|
15
|
+
const instance = new RideAnnotationsClass();
|
|
16
|
+
await instance.connect();
|
|
17
|
+
RideAnnotationsClass._instance = instance;
|
|
18
|
+
}
|
|
19
|
+
return RideAnnotationsClass._instance;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Finds ride documents by Ride ID.
|
|
23
|
+
* @param rideId - The Ride ID to search for.
|
|
24
|
+
* @returns A promise that resolves to an array of matching ride documents.
|
|
25
|
+
*/
|
|
26
|
+
async findByRideId(rideId) {
|
|
27
|
+
return this.mongoCollection.find({ ride_id: rideId }).toArray();
|
|
28
|
+
}
|
|
29
|
+
getCollectionIndexes() {
|
|
30
|
+
/**
|
|
31
|
+
* IMPORTANT:
|
|
32
|
+
* Automatic sorting (ESLint) of keys in the JS objects should be disabled.
|
|
33
|
+
* The order of keys in a compound index is very important and should be
|
|
34
|
+
* carefully considered based on the cardinality of each key.
|
|
35
|
+
*/
|
|
36
|
+
return [
|
|
37
|
+
{ background: true, key: { ride_id: 1 } },
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
getCollectionName() {
|
|
41
|
+
return 'ride_annotations';
|
|
42
|
+
}
|
|
43
|
+
getEnvName() {
|
|
44
|
+
return 'DATABASE_URI';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/* * */
|
|
48
|
+
export const rideAnnotations = AsyncSingletonProxy(RideAnnotationsClass);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './sams.js';
|
|
2
|
+
export * from './simplified-apex-inspection-decisions.js';
|
|
3
|
+
export * from './simplified-apex-inspections.js';
|
|
4
|
+
export * from './simplified-apex-locations.js';
|
|
5
|
+
export * from './simplified-apex-on-board-refunds.js';
|
|
6
|
+
export * from './simplified-apex-on-board-sales.js';
|
|
7
|
+
export * from './simplified-apex-validations.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './sams.js';
|
|
2
|
+
export * from './simplified-apex-inspection-decisions.js';
|
|
3
|
+
export * from './simplified-apex-inspections.js';
|
|
4
|
+
export * from './simplified-apex-locations.js';
|
|
5
|
+
export * from './simplified-apex-on-board-refunds.js';
|
|
6
|
+
export * from './simplified-apex-on-board-sales.js';
|
|
7
|
+
export * from './simplified-apex-validations.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { MongoCollectionClass } from '../../mongo-collection.js';
|
|
2
|
-
import { type
|
|
2
|
+
import { type CreateSamDto, type Sam, type UpdateSamDto } from '@tmlmobilidade/types';
|
|
3
3
|
import { IndexDescription } from 'mongodb';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
declare class
|
|
5
|
+
declare class SamsClass extends MongoCollectionClass<Sam, CreateSamDto, UpdateSamDto> {
|
|
6
6
|
private static _instance;
|
|
7
7
|
protected createSchema: z.ZodSchema;
|
|
8
8
|
protected updateSchema: z.ZodSchema;
|
|
9
9
|
private constructor();
|
|
10
|
-
static getInstance(): Promise<
|
|
10
|
+
static getInstance(): Promise<SamsClass>;
|
|
11
11
|
protected getCollectionIndexes(): IndexDescription[];
|
|
12
12
|
protected getCollectionName(): string;
|
|
13
13
|
protected getEnvName(): string;
|
|
14
14
|
}
|
|
15
|
-
export declare const uniqueSams:
|
|
15
|
+
export declare const uniqueSams: SamsClass;
|
|
16
16
|
export {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { MongoCollectionClass } from '../../mongo-collection.js';
|
|
3
|
-
import {
|
|
3
|
+
import { SamSchema, UpdateSamSchema } from '@tmlmobilidade/types';
|
|
4
4
|
import { AsyncSingletonProxy } from '@tmlmobilidade/utils';
|
|
5
5
|
/* * */
|
|
6
|
-
class
|
|
6
|
+
class SamsClass extends MongoCollectionClass {
|
|
7
7
|
static _instance;
|
|
8
|
-
createSchema =
|
|
9
|
-
updateSchema =
|
|
8
|
+
createSchema = SamSchema;
|
|
9
|
+
updateSchema = UpdateSamSchema;
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
12
|
}
|
|
13
13
|
static async getInstance() {
|
|
14
|
-
if (!
|
|
15
|
-
const instance = new
|
|
14
|
+
if (!SamsClass._instance) {
|
|
15
|
+
const instance = new SamsClass();
|
|
16
16
|
await instance.connect();
|
|
17
|
-
|
|
17
|
+
SamsClass._instance = instance;
|
|
18
18
|
}
|
|
19
|
-
return
|
|
19
|
+
return SamsClass._instance;
|
|
20
20
|
}
|
|
21
21
|
getCollectionIndexes() {
|
|
22
22
|
return [
|
|
@@ -33,4 +33,4 @@ class UniqueSamsClass extends MongoCollectionClass {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
/* * */
|
|
36
|
-
export const uniqueSams = AsyncSingletonProxy(
|
|
36
|
+
export const uniqueSams = AsyncSingletonProxy(SamsClass);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './stops.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './stops.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vehicle-events.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vehicle-events.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './zones.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './zones.js';
|
|
@@ -10,23 +10,20 @@ declare class ZonesClass extends MongoCollectionClass<Zone, CreateZoneDto, Updat
|
|
|
10
10
|
static getInstance(): Promise<ZonesClass>;
|
|
11
11
|
/**
|
|
12
12
|
* Finds a zone document by its code.
|
|
13
|
-
*
|
|
14
|
-
* @param code - The code of the zone to find
|
|
13
|
+
* @param code The code of the zone to find
|
|
15
14
|
* @returns A promise that resolves to the matching zone document or null if not found
|
|
16
15
|
*/
|
|
17
16
|
findByCode(code: string): Promise<import("mongodb").WithId<Zone> | null>;
|
|
18
17
|
/**
|
|
19
18
|
* Finds a zone document by its name.
|
|
20
|
-
*
|
|
21
|
-
* @param name - The name of the zone to find
|
|
19
|
+
* @param name The name of the zone to find
|
|
22
20
|
* @returns A promise that resolves to the matching zone document or null if not found
|
|
23
21
|
*/
|
|
24
22
|
findByName(name: string): Promise<import("mongodb").WithId<Zone> | null>;
|
|
25
23
|
/**
|
|
26
24
|
* Updates a zone document by its code.
|
|
27
|
-
*
|
|
28
|
-
* @param
|
|
29
|
-
* @param updateFields - The fields to update in the zone document.
|
|
25
|
+
* @param code The code of the zone to update.
|
|
26
|
+
* @param updateFields The fields to update in the zone document.
|
|
30
27
|
* @returns A promise that resolves to the result of the update operation.
|
|
31
28
|
*/
|
|
32
29
|
updateByCode(code: string, updateFields: Partial<Zone>): Promise<import("mongodb").UpdateResult<Zone>>;
|
|
@@ -20,8 +20,7 @@ class ZonesClass extends MongoCollectionClass {
|
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Finds a zone document by its code.
|
|
23
|
-
*
|
|
24
|
-
* @param code - The code of the zone to find
|
|
23
|
+
* @param code The code of the zone to find
|
|
25
24
|
* @returns A promise that resolves to the matching zone document or null if not found
|
|
26
25
|
*/
|
|
27
26
|
async findByCode(code) {
|
|
@@ -29,8 +28,7 @@ class ZonesClass extends MongoCollectionClass {
|
|
|
29
28
|
}
|
|
30
29
|
/**
|
|
31
30
|
* Finds a zone document by its name.
|
|
32
|
-
*
|
|
33
|
-
* @param name - The name of the zone to find
|
|
31
|
+
* @param name The name of the zone to find
|
|
34
32
|
* @returns A promise that resolves to the matching zone document or null if not found
|
|
35
33
|
*/
|
|
36
34
|
async findByName(name) {
|
|
@@ -38,9 +36,8 @@ class ZonesClass extends MongoCollectionClass {
|
|
|
38
36
|
}
|
|
39
37
|
/**
|
|
40
38
|
* Updates a zone document by its code.
|
|
41
|
-
*
|
|
42
|
-
* @param
|
|
43
|
-
* @param updateFields - The fields to update in the zone document.
|
|
39
|
+
* @param code The code of the zone to update.
|
|
40
|
+
* @param updateFields The fields to update in the zone document.
|
|
44
41
|
* @returns A promise that resolves to the result of the update operation.
|
|
45
42
|
*/
|
|
46
43
|
async updateByCode(code, updateFields) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/interfaces",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20250902.1255.46",
|
|
4
4
|
"author": "João de Vasconcelos & Jusi Monteiro",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"homepage": "https://github.com/tmlmobilidade/services#readme",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"lint:fix": "eslint --fix"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@aws-sdk/client-s3": "3.
|
|
40
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
39
|
+
"@aws-sdk/client-s3": "3.879.0",
|
|
40
|
+
"@aws-sdk/s3-request-presigner": "3.879.0",
|
|
41
41
|
"@tmlmobilidade/connectors": "*",
|
|
42
42
|
"@tmlmobilidade/emails": "*",
|
|
43
43
|
"@tmlmobilidade/lib": "*",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"bcryptjs": "3.0.2",
|
|
48
48
|
"luxon": "3.7.1",
|
|
49
49
|
"mongodb": "6.19.0",
|
|
50
|
-
"nodemailer": "7.0.
|
|
50
|
+
"nodemailer": "7.0.6",
|
|
51
51
|
"oci-common": "2.116.1",
|
|
52
52
|
"oci-objectstorage": "2.116.1",
|
|
53
53
|
"zod": "3.25.76"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/interfaces/auth/{verification-tokens.interface.d.ts → verification-tokens.d.ts}
RENAMED
|
File without changes
|
/package/dist/src/interfaces/auth/{verification-tokens.interface.js → verification-tokens.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/interfaces/gtfs-validations/{gtfs-validations.interface.js → gtfs-validations.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/interfaces/organizations/{organizations.interface.d.ts → organizations.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/interfaces/vehicle-events/{vehicle-events.interface.d.ts → vehicle-events.d.ts}
RENAMED
|
File without changes
|
/package/dist/src/interfaces/vehicle-events/{vehicle-events.interface.js → vehicle-events.js}
RENAMED
|
File without changes
|