@tmlmobilidade/interfaces 20260616.229.43 → 20260616.2238.2

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.
@@ -129,120 +129,6 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
129
129
  allow_pickup: boolean;
130
130
  distance_delta: number | null;
131
131
  zones?: string[] | undefined;
132
- stop?: {
133
- _id: number;
134
- created_at: number & {
135
- __brand: "UnixTimestamp";
136
- };
137
- created_by: string | null;
138
- is_locked: boolean;
139
- updated_at: number & {
140
- __brand: "UnixTimestamp";
141
- };
142
- name: string;
143
- short_name: string;
144
- associated_patterns: {
145
- _id: string;
146
- code: string;
147
- headsign: string;
148
- line_id: string;
149
- route_id: string;
150
- }[];
151
- comments: ({
152
- message: string;
153
- type: "note";
154
- created_at: number & {
155
- __brand: "UnixTimestamp";
156
- };
157
- created_by: string | null;
158
- updated_at: number & {
159
- __brand: "UnixTimestamp";
160
- };
161
- _id?: string | undefined;
162
- updated_by?: string | undefined;
163
- } | {
164
- type: "field_changed";
165
- created_at: number & {
166
- __brand: "UnixTimestamp";
167
- };
168
- created_by: string | null;
169
- updated_at: number & {
170
- __brand: "UnixTimestamp";
171
- };
172
- field: string;
173
- _id?: string | undefined;
174
- updated_by?: string | undefined;
175
- curr_value?: any;
176
- prev_value?: any;
177
- metadata?: {
178
- changes?: {
179
- field: string;
180
- curr_value?: any;
181
- prev_value?: any;
182
- }[] | undefined;
183
- } | null | undefined;
184
- } | {
185
- type: "crud";
186
- created_at: number & {
187
- __brand: "UnixTimestamp";
188
- };
189
- created_by: string | null;
190
- updated_at: number & {
191
- __brand: "UnixTimestamp";
192
- };
193
- action: "create" | "update" | "delete" | "archive" | "restore";
194
- _id?: string | undefined;
195
- updated_by?: string | undefined;
196
- })[];
197
- flags: {
198
- short_name: string;
199
- agency_ids: string[];
200
- is_harmonized: boolean;
201
- stop_id: string;
202
- }[];
203
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
204
- legacy_id: string | null;
205
- legacy_ids: string[];
206
- lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
207
- new_name: string | null;
208
- previous_go_id: string | null;
209
- tts_name: string;
210
- district_id: string;
211
- latitude: number;
212
- locality_id: string | null;
213
- longitude: number;
214
- municipality_id: string;
215
- parish_id: string | null;
216
- bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
217
- electricity_status: "unknown" | "available" | "unavailable";
218
- pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
219
- road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
220
- shelter_code: string | null;
221
- shelter_frame_size: [number, number] | null;
222
- shelter_installation_date: import("@tmlmobilidade/types").UnixTimestamp | null;
223
- shelter_maintainer: string | null;
224
- shelter_make: string | null;
225
- shelter_model: string | null;
226
- shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
227
- last_infrastructure_check: import("@tmlmobilidade/types").UnixTimestamp | null;
228
- last_infrastructure_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
229
- last_schedules_check: import("@tmlmobilidade/types").UnixTimestamp | null;
230
- last_schedules_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
231
- connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
232
- facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
233
- equipment: ("pip" | "mupi" | "mini_pip")[];
234
- has_bench: "unknown" | "available" | "unavailable";
235
- has_mupi: "unknown" | "available" | "unavailable";
236
- has_network_map: "unknown" | "available" | "unavailable";
237
- has_schedules: "unknown" | "available" | "unavailable";
238
- has_shelter: "unknown" | "available" | "unavailable";
239
- has_stop_sign: "unknown" | "available" | "unavailable";
240
- observations: string | null;
241
- is_deleted: boolean;
242
- file_ids: string[];
243
- image_ids: string[];
244
- updated_by?: string | undefined;
245
- } | null | undefined;
246
132
  }[] | undefined;
247
133
  shape?: {
248
134
  extension: number;
@@ -254,6 +140,35 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
254
140
  };
255
141
  properties?: {} | undefined;
256
142
  };
143
+ anchors?: {
144
+ _id: string;
145
+ type: "via" | "through";
146
+ after_stop_id: number;
147
+ before_stop_id: number;
148
+ lat: number;
149
+ lon: number;
150
+ sequence: number;
151
+ }[] | undefined;
152
+ legs?: {
153
+ distance: number;
154
+ geometry: [number, number][];
155
+ geojson: {
156
+ type: string;
157
+ properties: {
158
+ distance: number;
159
+ duration: number;
160
+ from_index: number;
161
+ to_index: number;
162
+ };
163
+ geometry: {
164
+ type: string;
165
+ coordinates: number[][];
166
+ };
167
+ };
168
+ duration: number;
169
+ from_index: number;
170
+ to_index: number;
171
+ }[] | undefined;
257
172
  } | undefined;
258
173
  parameters?: ({
259
174
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/interfaces",
3
- "version": "20260616.229.43",
3
+ "version": "20260616.2238.2",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"