@tmlmobilidade/interfaces 20250915.1331.9 → 20250915.1643.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.
@@ -45,6 +45,7 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
45
45
  type: "note";
46
46
  created_by?: string | undefined;
47
47
  updated_by?: string | undefined;
48
+ metadata?: Record<string, unknown> | null | undefined;
48
49
  } | {
49
50
  _id: string;
50
51
  created_at: number & {
@@ -57,6 +58,7 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
57
58
  updated_by: "system";
58
59
  message: string;
59
60
  type: "system_info";
61
+ metadata?: Record<string, unknown> | null | undefined;
60
62
  } | {
61
63
  _id: string;
62
64
  created_at: number & {
@@ -65,11 +67,13 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
65
67
  updated_at: number & {
66
68
  __brand: "UnixTimestamp";
67
69
  };
68
- type: "statusChanged";
69
- curr_status: string;
70
- prev_status: string;
70
+ type: "status_changed";
71
+ accessor: string;
72
+ curr_status: string | boolean;
73
+ prev_status: string | boolean;
71
74
  created_by?: string | undefined;
72
75
  updated_by?: string | undefined;
76
+ metadata?: Record<string, unknown> | null | undefined;
73
77
  })[];
74
78
  is_archived: boolean;
75
79
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
@@ -142,6 +146,7 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
142
146
  type: "note";
143
147
  created_by?: string | undefined;
144
148
  updated_by?: string | undefined;
149
+ metadata?: Record<string, unknown> | null | undefined;
145
150
  } | {
146
151
  _id: string;
147
152
  created_at: number & {
@@ -154,6 +159,7 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
154
159
  updated_by: "system";
155
160
  message: string;
156
161
  type: "system_info";
162
+ metadata?: Record<string, unknown> | null | undefined;
157
163
  } | {
158
164
  _id: string;
159
165
  created_at: number & {
@@ -162,11 +168,13 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
162
168
  updated_at: number & {
163
169
  __brand: "UnixTimestamp";
164
170
  };
165
- type: "statusChanged";
166
- curr_status: string;
167
- prev_status: string;
171
+ type: "status_changed";
172
+ accessor: string;
173
+ curr_status: string | boolean;
174
+ prev_status: string | boolean;
168
175
  created_by?: string | undefined;
169
176
  updated_by?: string | undefined;
177
+ metadata?: Record<string, unknown> | null | undefined;
170
178
  })[];
171
179
  is_archived: boolean;
172
180
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/interfaces",
3
- "version": "20250915.1331.9",
3
+ "version": "20250915.1643.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",