@tmlmobilidade/generate-offer-files 20260411.1248.31 → 20260418.1237.24
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/main.js +1 -1
- package/package.json +3 -2
- package/dist/index.d.ts +0 -2
- package/dist/main.d.ts +0 -2
- package/dist/types.d.ts +0 -94
package/dist/main.js
CHANGED
|
@@ -491,7 +491,7 @@ export async function generateOfferOutput(filePath, startDate, endDate, outputDi
|
|
|
491
491
|
Logger.error('An error occurred. Halting execution.', error);
|
|
492
492
|
Logger.error('Retrying in 10 seconds...');
|
|
493
493
|
setTimeout(() => {
|
|
494
|
-
process.exit(
|
|
494
|
+
process.exit(1); // End process
|
|
495
495
|
}, 10000); // after 10 seconds
|
|
496
496
|
}
|
|
497
497
|
//
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/generate-offer-files",
|
|
3
3
|
"description": "A CLI tool to generate legacy offer files for TML Mobilidade.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20260418.1237.24",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "iso@tmlmobilidade.pt",
|
|
7
7
|
"name": "TML-ISO"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@tmlmobilidade/consts": "*",
|
|
28
|
+
"@tmlmobilidade/dates": "*",
|
|
28
29
|
"@tmlmobilidade/geo": "*",
|
|
29
30
|
"@tmlmobilidade/logger": "*",
|
|
30
31
|
"@tmlmobilidade/timer": "*",
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@tmlmobilidade/tsconfig": "*",
|
|
38
39
|
"@tmlmobilidade/types": "*",
|
|
39
|
-
"@types/node": "25.
|
|
40
|
+
"@types/node": "25.6.0",
|
|
40
41
|
"resolve-tspaths": "0.8.23",
|
|
41
42
|
"tsx": "4.21.0",
|
|
42
43
|
"typescript": "5.9.3"
|
package/dist/index.d.ts
DELETED
package/dist/main.d.ts
DELETED
package/dist/types.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
export interface OfferJourney {
|
|
2
|
-
agencyId: string;
|
|
3
|
-
arrivalTime: string;
|
|
4
|
-
bikesAllowed: number;
|
|
5
|
-
blockId: string;
|
|
6
|
-
circular: number;
|
|
7
|
-
continuousDropOff: number;
|
|
8
|
-
continuousPickup: number;
|
|
9
|
-
date: string;
|
|
10
|
-
dayType: number;
|
|
11
|
-
dayTypeName: string;
|
|
12
|
-
departureTime: string;
|
|
13
|
-
directionId: number;
|
|
14
|
-
endShiftId: string;
|
|
15
|
-
endStopCode: string;
|
|
16
|
-
endStopId: string;
|
|
17
|
-
endStopName: string;
|
|
18
|
-
feedId: string;
|
|
19
|
-
holiday: number;
|
|
20
|
-
holidayName: string;
|
|
21
|
-
lineId: string;
|
|
22
|
-
lineLongName: string;
|
|
23
|
-
lineShortName: string;
|
|
24
|
-
pathType: number;
|
|
25
|
-
patternId: string;
|
|
26
|
-
patternShortName: string;
|
|
27
|
-
period: number;
|
|
28
|
-
periodName: string;
|
|
29
|
-
routeColor: string;
|
|
30
|
-
routeDesc: string;
|
|
31
|
-
routeDestination: string;
|
|
32
|
-
routeId: string;
|
|
33
|
-
routeLongName: string;
|
|
34
|
-
routeOrigin: string;
|
|
35
|
-
routeShortName: string;
|
|
36
|
-
routeTextColor: string;
|
|
37
|
-
routeType: string;
|
|
38
|
-
rowId: number;
|
|
39
|
-
school: string;
|
|
40
|
-
shapeId: string;
|
|
41
|
-
startShiftId: string;
|
|
42
|
-
startStopCode: string;
|
|
43
|
-
startStopId: string;
|
|
44
|
-
startStopName: string;
|
|
45
|
-
tripHeadsign: string;
|
|
46
|
-
tripId: string;
|
|
47
|
-
tripLength: number;
|
|
48
|
-
wheelchairAccessible: number;
|
|
49
|
-
}
|
|
50
|
-
export interface OfferStop {
|
|
51
|
-
arrivalTime: string;
|
|
52
|
-
bench: number;
|
|
53
|
-
continuousDropOff: number;
|
|
54
|
-
continuousPickup: number;
|
|
55
|
-
date: string;
|
|
56
|
-
departureTime: string;
|
|
57
|
-
dropOffType: number;
|
|
58
|
-
entranceRestriction: number;
|
|
59
|
-
equipment: number;
|
|
60
|
-
exitRestriction: number;
|
|
61
|
-
feedId: string;
|
|
62
|
-
locationType: number;
|
|
63
|
-
municipality: number;
|
|
64
|
-
municipalityFare1: null;
|
|
65
|
-
municipalityFare2: null;
|
|
66
|
-
networkMap: number;
|
|
67
|
-
parentStation: string;
|
|
68
|
-
pickupType: number;
|
|
69
|
-
platformCode: string;
|
|
70
|
-
preservationState: number;
|
|
71
|
-
realTimeInformation: number;
|
|
72
|
-
region: string;
|
|
73
|
-
rowId: number;
|
|
74
|
-
schedule: number;
|
|
75
|
-
shapeDistTraveled: number;
|
|
76
|
-
shelter: number;
|
|
77
|
-
signalling: number;
|
|
78
|
-
slot: number;
|
|
79
|
-
stopCode: string;
|
|
80
|
-
stopDesc: string;
|
|
81
|
-
stopHeadsign: string;
|
|
82
|
-
stopId: string;
|
|
83
|
-
stopIdStepp: string;
|
|
84
|
-
stopLat: number;
|
|
85
|
-
stopLon: number;
|
|
86
|
-
stopName: string;
|
|
87
|
-
stopRemarks: string;
|
|
88
|
-
stopSequence: number;
|
|
89
|
-
tariff: number;
|
|
90
|
-
timepoint: number;
|
|
91
|
-
tripId: string;
|
|
92
|
-
wheelchairBoarding: number;
|
|
93
|
-
zoneShift: number;
|
|
94
|
-
}
|