@tmlmobilidade/interfaces 20250901.2108.42 → 20250902.1310.34

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 (85) hide show
  1. package/dist/src/interfaces/agencies/index.d.ts +1 -0
  2. package/dist/src/interfaces/agencies/index.js +1 -0
  3. package/dist/src/interfaces/alerts/index.d.ts +2 -0
  4. package/dist/src/interfaces/alerts/index.js +2 -0
  5. package/dist/src/interfaces/auth/index.d.ts +4 -0
  6. package/dist/src/interfaces/auth/index.js +4 -0
  7. package/dist/src/interfaces/files/index.d.ts +1 -0
  8. package/dist/src/interfaces/files/index.js +1 -0
  9. package/dist/src/interfaces/gtfs-validations/index.d.ts +1 -0
  10. package/dist/src/interfaces/gtfs-validations/index.js +1 -0
  11. package/dist/src/interfaces/index.d.ts +14 -26
  12. package/dist/src/interfaces/index.js +14 -27
  13. package/dist/src/interfaces/locations/index.d.ts +1 -0
  14. package/dist/src/interfaces/locations/index.js +1 -0
  15. package/dist/src/interfaces/organizations/index.d.ts +1 -0
  16. package/dist/src/interfaces/organizations/index.js +1 -0
  17. package/dist/src/interfaces/plans/index.d.ts +1 -0
  18. package/dist/src/interfaces/plans/index.js +1 -0
  19. package/dist/src/interfaces/proposed-changes/index.d.ts +1 -0
  20. package/dist/src/interfaces/proposed-changes/index.js +1 -0
  21. package/dist/src/interfaces/rides/index.d.ts +4 -0
  22. package/dist/src/interfaces/rides/index.js +4 -0
  23. package/dist/src/interfaces/rides/ride-annotations.d.ts +63 -0
  24. package/dist/src/interfaces/rides/ride-annotations.js +48 -0
  25. package/dist/src/interfaces/simplified-apex/index.d.ts +7 -0
  26. package/dist/src/interfaces/simplified-apex/index.js +7 -0
  27. package/dist/src/interfaces/simplified-apex/{sams.interface.d.ts → sams.d.ts} +4 -4
  28. package/dist/src/interfaces/simplified-apex/{sams.interface.js → sams.js} +9 -9
  29. package/dist/src/interfaces/stops/index.d.ts +1 -0
  30. package/dist/src/interfaces/stops/index.js +1 -0
  31. package/dist/src/interfaces/vehicle-events/index.d.ts +1 -0
  32. package/dist/src/interfaces/vehicle-events/index.js +1 -0
  33. package/dist/src/interfaces/zones/index.d.ts +1 -0
  34. package/dist/src/interfaces/zones/index.js +1 -0
  35. package/dist/src/interfaces/zones/{zones.interface.d.ts → zones.d.ts} +4 -7
  36. package/dist/src/interfaces/zones/{zones.interface.js → zones.js} +4 -7
  37. package/package.json +4 -4
  38. /package/dist/src/interfaces/agencies/{agencies.interface.d.ts → agencies.d.ts} +0 -0
  39. /package/dist/src/interfaces/agencies/{agencies.interface.js → agencies.js} +0 -0
  40. /package/dist/src/interfaces/alerts/{alerts-realtime.interface.d.ts → alerts-realtime.d.ts} +0 -0
  41. /package/dist/src/interfaces/alerts/{alerts-realtime.interface.js → alerts-realtime.js} +0 -0
  42. /package/dist/src/interfaces/alerts/{alerts.interface.d.ts → alerts.d.ts} +0 -0
  43. /package/dist/src/interfaces/alerts/{alerts.interface.js → alerts.js} +0 -0
  44. /package/dist/src/interfaces/auth/{roles.interface.d.ts → roles.d.ts} +0 -0
  45. /package/dist/src/interfaces/auth/{roles.interface.js → roles.js} +0 -0
  46. /package/dist/src/interfaces/auth/{sessions.interface.d.ts → sessions.d.ts} +0 -0
  47. /package/dist/src/interfaces/auth/{sessions.interface.js → sessions.js} +0 -0
  48. /package/dist/src/interfaces/auth/{users.interface.d.ts → users.d.ts} +0 -0
  49. /package/dist/src/interfaces/auth/{users.interface.js → users.js} +0 -0
  50. /package/dist/src/interfaces/auth/{verification-tokens.interface.d.ts → verification-tokens.d.ts} +0 -0
  51. /package/dist/src/interfaces/auth/{verification-tokens.interface.js → verification-tokens.js} +0 -0
  52. /package/dist/src/interfaces/files/{files.interface.d.ts → files.d.ts} +0 -0
  53. /package/dist/src/interfaces/files/{files.interface.js → files.js} +0 -0
  54. /package/dist/src/interfaces/gtfs-validations/{gtfs-validations.interface.d.ts → gtfs-validations.d.ts} +0 -0
  55. /package/dist/src/interfaces/gtfs-validations/{gtfs-validations.interface.js → gtfs-validations.js} +0 -0
  56. /package/dist/src/interfaces/locations/{locations.interface.d.ts → locations.d.ts} +0 -0
  57. /package/dist/src/interfaces/locations/{locations.interface.js → locations.js} +0 -0
  58. /package/dist/src/interfaces/organizations/{organizations.interface.d.ts → organizations.d.ts} +0 -0
  59. /package/dist/src/interfaces/organizations/{organizations.interface.js → organizations.js} +0 -0
  60. /package/dist/src/interfaces/plans/{plans.interface.d.ts → plans.d.ts} +0 -0
  61. /package/dist/src/interfaces/plans/{plans.interface.js → plans.js} +0 -0
  62. /package/dist/src/interfaces/{proposedChanges/proposedChanges.interface.d.ts → proposed-changes/proposed-changes.d.ts} +0 -0
  63. /package/dist/src/interfaces/{proposedChanges/proposedChanges.interface.js → proposed-changes/proposed-changes.js} +0 -0
  64. /package/dist/src/interfaces/rides/{hashed-shapes.interface.d.ts → hashed-shapes.d.ts} +0 -0
  65. /package/dist/src/interfaces/rides/{hashed-shapes.interface.js → hashed-shapes.js} +0 -0
  66. /package/dist/src/interfaces/rides/{hashed-trips.interface.d.ts → hashed-trips.d.ts} +0 -0
  67. /package/dist/src/interfaces/rides/{hashed-trips.interface.js → hashed-trips.js} +0 -0
  68. /package/dist/src/interfaces/rides/{rides.interface.d.ts → rides.d.ts} +0 -0
  69. /package/dist/src/interfaces/rides/{rides.interface.js → rides.js} +0 -0
  70. /package/dist/src/interfaces/simplified-apex/{simplified-apex-inspection-decisions.interface.d.ts → simplified-apex-inspection-decisions.d.ts} +0 -0
  71. /package/dist/src/interfaces/simplified-apex/{simplified-apex-inspection-decisions.interface.js → simplified-apex-inspection-decisions.js} +0 -0
  72. /package/dist/src/interfaces/simplified-apex/{simplified-apex-inspections.interface.d.ts → simplified-apex-inspections.d.ts} +0 -0
  73. /package/dist/src/interfaces/simplified-apex/{simplified-apex-inspections.interface.js → simplified-apex-inspections.js} +0 -0
  74. /package/dist/src/interfaces/simplified-apex/{simplified-apex-locations.interface.d.ts → simplified-apex-locations.d.ts} +0 -0
  75. /package/dist/src/interfaces/simplified-apex/{simplified-apex-locations.interface.js → simplified-apex-locations.js} +0 -0
  76. /package/dist/src/interfaces/simplified-apex/{simplified-apex-on-board-refunds.interface.d.ts → simplified-apex-on-board-refunds.d.ts} +0 -0
  77. /package/dist/src/interfaces/simplified-apex/{simplified-apex-on-board-refunds.interface.js → simplified-apex-on-board-refunds.js} +0 -0
  78. /package/dist/src/interfaces/simplified-apex/{simplified-apex-on-board-sales.interface.d.ts → simplified-apex-on-board-sales.d.ts} +0 -0
  79. /package/dist/src/interfaces/simplified-apex/{simplified-apex-on-board-sales.interface.js → simplified-apex-on-board-sales.js} +0 -0
  80. /package/dist/src/interfaces/simplified-apex/{simplified-apex-validations.interface.d.ts → simplified-apex-validations.d.ts} +0 -0
  81. /package/dist/src/interfaces/simplified-apex/{simplified-apex-validations.interface.js → simplified-apex-validations.js} +0 -0
  82. /package/dist/src/interfaces/stops/{stops.interface.d.ts → stops.d.ts} +0 -0
  83. /package/dist/src/interfaces/stops/{stops.interface.js → stops.js} +0 -0
  84. /package/dist/src/interfaces/vehicle-events/{vehicle-events.interface.d.ts → vehicle-events.d.ts} +0 -0
  85. /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,2 @@
1
+ export * from './alerts-realtime.js';
2
+ export * from './alerts.js';
@@ -0,0 +1,2 @@
1
+ export * from './alerts-realtime.js';
2
+ export * from './alerts.js';
@@ -0,0 +1,4 @@
1
+ export * from './roles.js';
2
+ export * from './sessions.js';
3
+ export * from './users.js';
4
+ export * from './verification-tokens.js';
@@ -0,0 +1,4 @@
1
+ export * from './roles.js';
2
+ export * from './sessions.js';
3
+ export * from './users.js';
4
+ export * from './verification-tokens.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/agencies.interface.js';
2
- export * from './alerts/alerts-realtime.interface.js';
3
- export * from './alerts/alerts.interface.js';
4
- export * from './auth/roles.interface.js';
5
- export * from './auth/sessions.interface.js';
6
- export * from './auth/users.interface.js';
7
- export * from './auth/verification-tokens.interface.js';
8
- export * from './files/files.interface.js';
9
- export * from './gtfs-validations/gtfs-validations.interface.js';
10
- export * from './locations/locations.interface.js';
11
- export * from './organizations/organizations.interface.js';
12
- export * from './plans/plans.interface.js';
13
- export * from './proposedChanges/proposedChanges.interface.js';
14
- export * from './rides/hashed-shapes.interface.js';
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 './agencies/agencies.interface.js';
3
- export * from './alerts/alerts-realtime.interface.js';
4
- export * from './alerts/alerts.interface.js';
5
- export * from './auth/roles.interface.js';
6
- export * from './auth/sessions.interface.js';
7
- export * from './auth/users.interface.js';
8
- export * from './auth/verification-tokens.interface.js';
9
- export * from './files/files.interface.js';
10
- export * from './gtfs-validations/gtfs-validations.interface.js';
11
- export * from './locations/locations.interface.js';
12
- export * from './organizations/organizations.interface.js';
13
- export * from './plans/plans.interface.js';
14
- export * from './proposedChanges/proposedChanges.interface.js';
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,4 @@
1
+ export * from './hashed-shapes.js';
2
+ export * from './hashed-trips.js';
3
+ export * from './ride-annotations.js';
4
+ export * from './rides.js';
@@ -0,0 +1,4 @@
1
+ export * from './hashed-shapes.js';
2
+ export * from './hashed-trips.js';
3
+ export * from './ride-annotations.js';
4
+ export * from './rides.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 CreateUniqueSamDto, type UniqueSam, type UpdateUniqueSamDto } from '@tmlmobilidade/types';
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 UniqueSamsClass extends MongoCollectionClass<UniqueSam, CreateUniqueSamDto, UpdateUniqueSamDto> {
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<UniqueSamsClass>;
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: UniqueSamsClass;
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 { UniqueSamSchema, UpdateUniqueSamSchema } from '@tmlmobilidade/types';
3
+ import { SamSchema, UpdateSamSchema } from '@tmlmobilidade/types';
4
4
  import { AsyncSingletonProxy } from '@tmlmobilidade/utils';
5
5
  /* * */
6
- class UniqueSamsClass extends MongoCollectionClass {
6
+ class SamsClass extends MongoCollectionClass {
7
7
  static _instance;
8
- createSchema = UniqueSamSchema;
9
- updateSchema = UpdateUniqueSamSchema;
8
+ createSchema = SamSchema;
9
+ updateSchema = UpdateSamSchema;
10
10
  constructor() {
11
11
  super();
12
12
  }
13
13
  static async getInstance() {
14
- if (!UniqueSamsClass._instance) {
15
- const instance = new UniqueSamsClass();
14
+ if (!SamsClass._instance) {
15
+ const instance = new SamsClass();
16
16
  await instance.connect();
17
- UniqueSamsClass._instance = instance;
17
+ SamsClass._instance = instance;
18
18
  }
19
- return UniqueSamsClass._instance;
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(UniqueSamsClass);
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 code - The code of the zone to update.
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 code - The code of the zone to update.
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": "20250901.2108.42",
3
+ "version": "20250902.1310.34",
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.876.0",
40
- "@aws-sdk/s3-request-presigner": "3.876.0",
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.5",
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"