@tmlmobilidade/types 20260811.1505.45 → 20260828.1636.54

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 (380) hide show
  1. package/dist/calendar/event.d.ts +10 -10
  2. package/dist/gtfs/index.d.ts +0 -10
  3. package/dist/gtfs/index.js +0 -10
  4. package/dist/gtfs-new/index.d.ts +1 -8
  5. package/dist/gtfs-new/index.js +1 -8
  6. package/dist/gtfs-new/mapper.d.ts +3 -0
  7. package/dist/gtfs-new/mapper.js +3 -1
  8. package/dist/gtfs-tml/afetacao.d.ts +3 -3
  9. package/dist/gtfs-tml/fares.d.ts +2 -2
  10. package/dist/gtfs-tml/index.d.ts +0 -6
  11. package/dist/gtfs-tml/index.js +0 -6
  12. package/dist/index.d.ts +0 -23
  13. package/dist/index.js +0 -23
  14. package/package.json +2 -8
  15. package/dist/agencies/agency.d.ts +0 -375
  16. package/dist/agencies/agency.js +0 -30
  17. package/dist/agencies/alert-map.d.ts +0 -3
  18. package/dist/agencies/alert-map.js +0 -7
  19. package/dist/agencies/apex.d.ts +0 -9
  20. package/dist/agencies/apex.js +0 -6
  21. package/dist/agencies/financials.d.ts +0 -12
  22. package/dist/agencies/financials.js +0 -7
  23. package/dist/agencies/index.d.ts +0 -4
  24. package/dist/agencies/index.js +0 -4
  25. package/dist/agencies/open-data.d.ts +0 -18
  26. package/dist/agencies/open-data.js +0 -9
  27. package/dist/alerts/alert.d.ts +0 -271
  28. package/dist/alerts/alert.js +0 -31
  29. package/dist/alerts/cause.d.ts +0 -17
  30. package/dist/alerts/cause.js +0 -51
  31. package/dist/alerts/effect.d.ts +0 -17
  32. package/dist/alerts/effect.js +0 -37
  33. package/dist/alerts/index.d.ts +0 -6
  34. package/dist/alerts/index.js +0 -6
  35. package/dist/alerts/query.d.ts +0 -9
  36. package/dist/alerts/query.js +0 -6
  37. package/dist/alerts/reference-type.d.ts +0 -4
  38. package/dist/alerts/reference-type.js +0 -10
  39. package/dist/alerts/reference.d.ts +0 -12
  40. package/dist/alerts/reference.js +0 -7
  41. package/dist/api/api-response.d.ts +0 -57
  42. package/dist/api/api-response.js +0 -27
  43. package/dist/api/http-status.d.ts +0 -4
  44. package/dist/api/http-status.js +0 -14
  45. package/dist/api/index.d.ts +0 -2
  46. package/dist/api/index.js +0 -2
  47. package/dist/app-configs/app-banner.d.ts +0 -21
  48. package/dist/app-configs/app-banner.js +0 -12
  49. package/dist/app-configs/app-config.d.ts +0 -18
  50. package/dist/app-configs/app-config.js +0 -7
  51. package/dist/app-configs/base.d.ts +0 -29
  52. package/dist/app-configs/base.js +0 -7
  53. package/dist/app-configs/index.d.ts +0 -3
  54. package/dist/app-configs/index.js +0 -3
  55. package/dist/attachment.d.ts +0 -121
  56. package/dist/attachment.js +0 -20
  57. package/dist/auth/index.d.ts +0 -8
  58. package/dist/auth/index.js +0 -8
  59. package/dist/auth/login.d.ts +0 -12
  60. package/dist/auth/login.js +0 -7
  61. package/dist/auth/password-requirements.d.ts +0 -13
  62. package/dist/auth/password-requirements.js +0 -39
  63. package/dist/auth/role.d.ts +0 -1861
  64. package/dist/auth/role.js +0 -11
  65. package/dist/auth/session.d.ts +0 -87
  66. package/dist/auth/session.js +0 -13
  67. package/dist/auth/simplified-user.d.ts +0 -421
  68. package/dist/auth/simplified-user.js +0 -15
  69. package/dist/auth/user-preferences.d.ts +0 -247
  70. package/dist/auth/user-preferences.js +0 -36
  71. package/dist/auth/user.d.ts +0 -3039
  72. package/dist/auth/user.js +0 -34
  73. package/dist/auth/verification-token.d.ts +0 -75
  74. package/dist/auth/verification-token.js +0 -13
  75. package/dist/dates/annotation.d.ts +0 -94
  76. package/dist/dates/annotation.js +0 -13
  77. package/dist/dates/common.d.ts +0 -32
  78. package/dist/dates/common.js +0 -90
  79. package/dist/dates/day-period.d.ts +0 -16
  80. package/dist/dates/day-period.js +0 -29
  81. package/dist/dates/event.d.ts +0 -710
  82. package/dist/dates/event.js +0 -27
  83. package/dist/dates/holiday.d.ts +0 -94
  84. package/dist/dates/holiday.js +0 -13
  85. package/dist/dates/index.d.ts +0 -8
  86. package/dist/dates/index.js +0 -8
  87. package/dist/dates/months.d.ts +0 -52
  88. package/dist/dates/months.js +0 -29
  89. package/dist/dates/weekdays.d.ts +0 -32
  90. package/dist/dates/weekdays.js +0 -19
  91. package/dist/dates/year-period.d.ts +0 -103
  92. package/dist/dates/year-period.js +0 -14
  93. package/dist/file-exports/base.d.ts +0 -104
  94. package/dist/file-exports/base.js +0 -18
  95. package/dist/file-exports/file-exports.d.ts +0 -512
  96. package/dist/file-exports/file-exports.js +0 -15
  97. package/dist/file-exports/gtfs-export.d.ts +0 -203
  98. package/dist/file-exports/gtfs-export.js +0 -27
  99. package/dist/file-exports/index.d.ts +0 -7
  100. package/dist/file-exports/index.js +0 -7
  101. package/dist/file-exports/ride-export.d.ts +0 -420
  102. package/dist/file-exports/ride-export.js +0 -131
  103. package/dist/file-exports/sams-analysis-export.d.ts +0 -226
  104. package/dist/file-exports/sams-analysis-export.js +0 -33
  105. package/dist/file-exports/stop-export.d.ts +0 -367
  106. package/dist/file-exports/stop-export.js +0 -91
  107. package/dist/file-exports/vehicle-export.d.ts +0 -91
  108. package/dist/file-exports/vehicle-export.js +0 -16
  109. package/dist/gtfs/agency.d.ts +0 -30
  110. package/dist/gtfs/agency.js +0 -13
  111. package/dist/gtfs/calendar-dates.d.ts +0 -47
  112. package/dist/gtfs/calendar-dates.js +0 -41
  113. package/dist/gtfs/calendar.d.ts +0 -45
  114. package/dist/gtfs/calendar.js +0 -46
  115. package/dist/gtfs/common.d.ts +0 -64
  116. package/dist/gtfs/common.js +0 -127
  117. package/dist/gtfs/feed-info.d.ts +0 -33
  118. package/dist/gtfs/feed-info.js +0 -15
  119. package/dist/gtfs/routes.d.ts +0 -115
  120. package/dist/gtfs/routes.js +0 -122
  121. package/dist/gtfs/shapes.d.ts +0 -36
  122. package/dist/gtfs/shapes.js +0 -38
  123. package/dist/gtfs/stop-times.d.ts +0 -51
  124. package/dist/gtfs/stop-times.js +0 -44
  125. package/dist/gtfs/stops.d.ts +0 -136
  126. package/dist/gtfs/stops.js +0 -104
  127. package/dist/gtfs/trips.d.ts +0 -70
  128. package/dist/gtfs/trips.js +0 -56
  129. package/dist/gtfs-new/common.d.ts +0 -17
  130. package/dist/gtfs-new/common.js +0 -16
  131. package/dist/gtfs-new/location-type.d.ts +0 -10
  132. package/dist/gtfs-new/location-type.js +0 -17
  133. package/dist/gtfs-new/path-type.d.ts +0 -10
  134. package/dist/gtfs-new/path-type.js +0 -14
  135. package/dist/gtfs-new/route-type.d.ts +0 -10
  136. package/dist/gtfs-new/route-type.js +0 -21
  137. package/dist/gtfs-new/routes.d.ts +0 -48
  138. package/dist/gtfs-new/routes.js +0 -32
  139. package/dist/gtfs-new/stop-times.d.ts +0 -50
  140. package/dist/gtfs-new/stop-times.js +0 -24
  141. package/dist/gtfs-new/stops.d.ts +0 -61
  142. package/dist/gtfs-new/stops.js +0 -33
  143. package/dist/gtfs-new/trips.d.ts +0 -47
  144. package/dist/gtfs-new/trips.js +0 -33
  145. package/dist/gtfs-new/wheelchair-accessible.d.ts +0 -4
  146. package/dist/gtfs-new/wheelchair-accessible.js +0 -9
  147. package/dist/gtfs-tml/agency.d.ts +0 -30
  148. package/dist/gtfs-tml/agency.js +0 -4
  149. package/dist/gtfs-tml/feed-info.d.ts +0 -33
  150. package/dist/gtfs-tml/feed-info.js +0 -4
  151. package/dist/gtfs-tml/routes.d.ts +0 -73
  152. package/dist/gtfs-tml/routes.js +0 -17
  153. package/dist/gtfs-tml/stop-times.d.ts +0 -42
  154. package/dist/gtfs-tml/stop-times.js +0 -4
  155. package/dist/gtfs-tml/stops.d.ts +0 -151
  156. package/dist/gtfs-tml/stops.js +0 -39
  157. package/dist/gtfs-tml/trips.d.ts +0 -46
  158. package/dist/gtfs-tml/trips.js +0 -9
  159. package/dist/gtfs-validation/gtfs-validation-message.d.ts +0 -24
  160. package/dist/gtfs-validation/gtfs-validation-message.js +0 -12
  161. package/dist/gtfs-validation/gtfs-validation-summary.d.ts +0 -50
  162. package/dist/gtfs-validation/gtfs-validation-summary.js +0 -9
  163. package/dist/gtfs-validation/gtfs-validation.d.ts +0 -635
  164. package/dist/gtfs-validation/gtfs-validation.js +0 -20
  165. package/dist/gtfs-validation/index.d.ts +0 -4
  166. package/dist/gtfs-validation/index.js +0 -4
  167. package/dist/gtfs-validation/severity-level.d.ts +0 -4
  168. package/dist/gtfs-validation/severity-level.js +0 -10
  169. package/dist/locations/base.d.ts +0 -9
  170. package/dist/locations/base.js +0 -1
  171. package/dist/locations/census.d.ts +0 -1
  172. package/dist/locations/census.js +0 -212
  173. package/dist/locations/district.d.ts +0 -16
  174. package/dist/locations/district.js +0 -1
  175. package/dist/locations/index.d.ts +0 -5
  176. package/dist/locations/index.js +0 -5
  177. package/dist/locations/locality.d.ts +0 -19
  178. package/dist/locations/locality.js +0 -1
  179. package/dist/locations/location.d.ts +0 -16
  180. package/dist/locations/location.js +0 -2
  181. package/dist/locations/municipality.d.ts +0 -17
  182. package/dist/locations/municipality.js +0 -1
  183. package/dist/locations/parish.d.ts +0 -18
  184. package/dist/locations/parish.js +0 -1
  185. package/dist/metrics/common.d.ts +0 -14
  186. package/dist/metrics/common.js +0 -7
  187. package/dist/metrics/demand/demand_by_agency.d.ts +0 -210
  188. package/dist/metrics/demand/demand_by_agency.js +0 -39
  189. package/dist/metrics/demand/demand_by_category.d.ts +0 -475
  190. package/dist/metrics/demand/demand_by_category.js +0 -114
  191. package/dist/metrics/demand/demand_by_line.d.ts +0 -246
  192. package/dist/metrics/demand/demand_by_line.js +0 -56
  193. package/dist/metrics/demand/demand_by_pattern.d.ts +0 -332
  194. package/dist/metrics/demand/demand_by_pattern.js +0 -56
  195. package/dist/metrics/demand/demand_by_product.d.ts +0 -475
  196. package/dist/metrics/demand/demand_by_product.js +0 -114
  197. package/dist/metrics/demand/index.d.ts +0 -6
  198. package/dist/metrics/demand/index.js +0 -8
  199. package/dist/metrics/demand/records.d.ts +0 -320
  200. package/dist/metrics/demand/records.js +0 -53
  201. package/dist/metrics/index.d.ts +0 -2905
  202. package/dist/metrics/index.js +0 -56
  203. package/dist/metrics/passenger-impact/index.d.ts +0 -1
  204. package/dist/metrics/passenger-impact/index.js +0 -1
  205. package/dist/metrics/passenger-impact/passenger-impact.d.ts +0 -97
  206. package/dist/metrics/passenger-impact/passenger-impact.js +0 -22
  207. package/dist/metrics/realtime/index.d.ts +0 -667
  208. package/dist/metrics/realtime/index.js +0 -41
  209. package/dist/metrics/supply/index.d.ts +0 -1
  210. package/dist/metrics/supply/index.js +0 -3
  211. package/dist/metrics/supply/supply_by_agency.d.ts +0 -219
  212. package/dist/metrics/supply/supply_by_agency.js +0 -38
  213. package/dist/notification.d.ts +0 -188
  214. package/dist/notification.js +0 -25
  215. package/dist/offer/fare.d.ts +0 -162
  216. package/dist/offer/fare.js +0 -50
  217. package/dist/offer/index.d.ts +0 -11
  218. package/dist/offer/index.js +0 -11
  219. package/dist/offer/line.d.ts +0 -379
  220. package/dist/offer/line.js +0 -47
  221. package/dist/offer/parameters.d.ts +0 -339
  222. package/dist/offer/parameters.js +0 -49
  223. package/dist/offer/pattern.d.ts +0 -3612
  224. package/dist/offer/pattern.js +0 -124
  225. package/dist/offer/route-path-type.d.ts +0 -14
  226. package/dist/offer/route-path-type.js +0 -21
  227. package/dist/offer/route.d.ts +0 -165
  228. package/dist/offer/route.js +0 -29
  229. package/dist/offer/rules.d.ts +0 -771
  230. package/dist/offer/rules.js +0 -106
  231. package/dist/offer/transport-type.d.ts +0 -12
  232. package/dist/offer/transport-type.js +0 -41
  233. package/dist/offer/typology.d.ts +0 -157
  234. package/dist/offer/typology.js +0 -40
  235. package/dist/offer/vkm.d.ts +0 -207
  236. package/dist/offer/vkm.js +0 -51
  237. package/dist/offer/zone.d.ts +0 -574
  238. package/dist/offer/zone.js +0 -52
  239. package/dist/operation/hashed-lines/hashed-line.d.ts +0 -56
  240. package/dist/operation/hashed-lines/hashed-line.js +0 -19
  241. package/dist/operation/hashed-lines/index.d.ts +0 -1
  242. package/dist/operation/hashed-lines/index.js +0 -1
  243. package/dist/operation/hashed-patterns/hashed-pattern.d.ts +0 -141
  244. package/dist/operation/hashed-patterns/hashed-pattern.js +0 -32
  245. package/dist/operation/hashed-patterns/index.d.ts +0 -1
  246. package/dist/operation/hashed-patterns/index.js +0 -1
  247. package/dist/operation/hashed-shapes/hashed-shape.d.ts +0 -14
  248. package/dist/operation/hashed-shapes/hashed-shape.js +0 -2
  249. package/dist/operation/hashed-shapes/index.d.ts +0 -1
  250. package/dist/operation/hashed-shapes/index.js +0 -1
  251. package/dist/operation/hashed-trips/hashed-trip.d.ts +0 -157
  252. package/dist/operation/hashed-trips/hashed-trip.js +0 -34
  253. package/dist/operation/hashed-trips/index.d.ts +0 -1
  254. package/dist/operation/hashed-trips/index.js +0 -1
  255. package/dist/operation/index.d.ts +0 -7
  256. package/dist/operation/index.js +0 -7
  257. package/dist/operation/lines/batch-query.d.ts +0 -19
  258. package/dist/operation/lines/batch-query.js +0 -9
  259. package/dist/operation/lines/index.d.ts +0 -2
  260. package/dist/operation/lines/index.js +0 -2
  261. package/dist/operation/lines/operational-line.d.ts +0 -203
  262. package/dist/operation/lines/operational-line.js +0 -18
  263. package/dist/operation/rides/batch-query.d.ts +0 -58
  264. package/dist/operation/rides/batch-query.js +0 -60
  265. package/dist/operation/rides/index.d.ts +0 -6
  266. package/dist/operation/rides/index.js +0 -6
  267. package/dist/operation/rides/ride-acceptance.d.ts +0 -1229
  268. package/dist/operation/rides/ride-acceptance.js +0 -32
  269. package/dist/operation/rides/ride-analysis.d.ts +0 -315
  270. package/dist/operation/rides/ride-analysis.js +0 -106
  271. package/dist/operation/rides/ride-audit.d.ts +0 -224
  272. package/dist/operation/rides/ride-audit.js +0 -11
  273. package/dist/operation/rides/ride-normalized.d.ts +0 -825
  274. package/dist/operation/rides/ride-normalized.js +0 -32
  275. package/dist/operation/rides/ride-overrides.d.ts +0 -9
  276. package/dist/operation/rides/ride-overrides.js +0 -6
  277. package/dist/operation/rides/ride.d.ts +0 -2268
  278. package/dist/operation/rides/ride.js +0 -65
  279. package/dist/operation/stops/batch-query.d.ts +0 -19
  280. package/dist/operation/stops/batch-query.js +0 -9
  281. package/dist/operation/stops/index.d.ts +0 -2
  282. package/dist/operation/stops/index.js +0 -2
  283. package/dist/operation/stops/operational-stop.d.ts +0 -197
  284. package/dist/operation/stops/operational-stop.js +0 -16
  285. package/dist/organization.d.ts +0 -213
  286. package/dist/organization.js +0 -22
  287. package/dist/permissions/agencies.d.ts +0 -12
  288. package/dist/permissions/agencies.js +0 -13
  289. package/dist/permissions/alerts.d.ts +0 -30
  290. package/dist/permissions/alerts.js +0 -20
  291. package/dist/permissions/controller.d.ts +0 -36
  292. package/dist/permissions/controller.js +0 -32
  293. package/dist/permissions/dates.d.ts +0 -97
  294. package/dist/permissions/dates.js +0 -58
  295. package/dist/permissions/fares.d.ts +0 -25
  296. package/dist/permissions/fares.js +0 -16
  297. package/dist/permissions/gtfs-validations.d.ts +0 -25
  298. package/dist/permissions/gtfs-validations.js +0 -16
  299. package/dist/permissions/home.d.ts +0 -12
  300. package/dist/permissions/home.js +0 -10
  301. package/dist/permissions/index.d.ts +0 -554
  302. package/dist/permissions/index.js +0 -341
  303. package/dist/permissions/lines.d.ts +0 -25
  304. package/dist/permissions/lines.js +0 -16
  305. package/dist/permissions/organizations.d.ts +0 -12
  306. package/dist/permissions/organizations.js +0 -13
  307. package/dist/permissions/performance.d.ts +0 -12
  308. package/dist/permissions/performance.js +0 -9
  309. package/dist/permissions/plans.d.ts +0 -25
  310. package/dist/permissions/plans.js +0 -26
  311. package/dist/permissions/roles.d.ts +0 -12
  312. package/dist/permissions/roles.js +0 -13
  313. package/dist/permissions/stops.d.ts +0 -30
  314. package/dist/permissions/stops.js +0 -20
  315. package/dist/permissions/typologies.d.ts +0 -25
  316. package/dist/permissions/typologies.js +0 -16
  317. package/dist/permissions/users.d.ts +0 -12
  318. package/dist/permissions/users.js +0 -13
  319. package/dist/permissions/vehicles.d.ts +0 -25
  320. package/dist/permissions/vehicles.js +0 -16
  321. package/dist/permissions/zones.d.ts +0 -25
  322. package/dist/permissions/zones.js +0 -16
  323. package/dist/plans/index.d.ts +0 -1
  324. package/dist/plans/index.js +0 -1
  325. package/dist/plans/plan-app-status.d.ts +0 -15
  326. package/dist/plans/plan-app-status.js +0 -9
  327. package/dist/plans/plan-pcgi-legacy.d.ts +0 -8
  328. package/dist/plans/plan-pcgi-legacy.js +0 -6
  329. package/dist/plans/plan.d.ts +0 -866
  330. package/dist/plans/plan.js +0 -26
  331. package/dist/sams/batch-query.d.ts +0 -24
  332. package/dist/sams/batch-query.js +0 -44
  333. package/dist/sams/index.d.ts +0 -5
  334. package/dist/sams/index.js +0 -5
  335. package/dist/sams/sam-analysis.d.ts +0 -48
  336. package/dist/sams/sam-analysis.js +0 -20
  337. package/dist/sams/sam-timeline-summary.d.ts +0 -74
  338. package/dist/sams/sam-timeline-summary.js +0 -17
  339. package/dist/sams/sam.d.ts +0 -563
  340. package/dist/sams/sam.js +0 -24
  341. package/dist/sams/timeline-month-gap-flags.d.ts +0 -7
  342. package/dist/sams/timeline-month-gap-flags.js +0 -82
  343. package/dist/stops/connections.d.ts +0 -4
  344. package/dist/stops/connections.js +0 -15
  345. package/dist/stops/equipment.d.ts +0 -4
  346. package/dist/stops/equipment.js +0 -9
  347. package/dist/stops/facilities.d.ts +0 -4
  348. package/dist/stops/facilities.js +0 -16
  349. package/dist/stops/flag.d.ts +0 -18
  350. package/dist/stops/flag.js +0 -9
  351. package/dist/stops/index.d.ts +0 -11
  352. package/dist/stops/index.js +0 -11
  353. package/dist/stops/jurisdiction.d.ts +0 -4
  354. package/dist/stops/jurisdiction.js +0 -10
  355. package/dist/stops/name-abbreviations.d.ts +0 -11
  356. package/dist/stops/name-abbreviations.js +0 -117
  357. package/dist/stops/parent-station.d.ts +0 -76
  358. package/dist/stops/parent-station.js +0 -11
  359. package/dist/stops/road-type.d.ts +0 -3
  360. package/dist/stops/road-type.js +0 -13
  361. package/dist/stops/stop-area.d.ts +0 -67
  362. package/dist/stops/stop-area.js +0 -10
  363. package/dist/stops/stop-id.d.ts +0 -13
  364. package/dist/stops/stop-id.js +0 -29
  365. package/dist/stops/stop.d.ts +0 -1460
  366. package/dist/stops/stop.js +0 -90
  367. package/dist/vehicle/emission.d.ts +0 -3
  368. package/dist/vehicle/emission.js +0 -12
  369. package/dist/vehicle/index.d.ts +0 -5
  370. package/dist/vehicle/index.js +0 -5
  371. package/dist/vehicle/propulsion.d.ts +0 -3
  372. package/dist/vehicle/propulsion.js +0 -14
  373. package/dist/vehicle/typology.d.ts +0 -4
  374. package/dist/vehicle/typology.js +0 -5
  375. package/dist/vehicle/vehicle.d.ts +0 -350
  376. package/dist/vehicle/vehicle.js +0 -45
  377. package/dist/vehicle/wheelchair.d.ts +0 -3
  378. package/dist/vehicle/wheelchair.js +0 -10
  379. package/dist/wiki.d.ts +0 -7
  380. package/dist/wiki.js +0 -2
@@ -11,27 +11,27 @@ export declare const CalendarEventSchema: z.ZodObject<{
11
11
  title: z.ZodString;
12
12
  type: z.ZodOptional<z.ZodEnum<["annotation", "period", "holiday", "event", "rule-impact"]>>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- title: string;
15
14
  id: string;
16
15
  startDate: string;
17
- type?: "annotation" | "period" | "holiday" | "event" | "rule-impact" | undefined;
18
- description?: string | undefined;
19
- metadata?: Record<string, unknown> | undefined;
16
+ title: string;
20
17
  color?: string | undefined;
21
- display?: "strip" | "cell" | "dot" | undefined;
18
+ description?: string | undefined;
19
+ display?: "cell" | "strip" | "dot" | undefined;
22
20
  endDate?: string | undefined;
23
21
  icon?: any;
22
+ type?: "annotation" | "period" | "holiday" | "event" | "rule-impact" | undefined;
23
+ metadata?: Record<string, unknown> | undefined;
24
24
  }, {
25
- title: string;
26
25
  id: string;
27
26
  startDate: string;
28
- type?: "annotation" | "period" | "holiday" | "event" | "rule-impact" | undefined;
29
- description?: string | undefined;
30
- metadata?: Record<string, unknown> | undefined;
27
+ title: string;
31
28
  color?: string | undefined;
32
- display?: "strip" | "cell" | "dot" | undefined;
29
+ description?: string | undefined;
30
+ display?: "cell" | "strip" | "dot" | undefined;
33
31
  endDate?: string | undefined;
34
32
  icon?: any;
33
+ type?: "annotation" | "period" | "holiday" | "event" | "rule-impact" | undefined;
34
+ metadata?: Record<string, unknown> | undefined;
35
35
  }>;
36
36
  export declare const CalendarEventTypeEnum: z.ZodOptional<z.ZodEnum<["annotation", "period", "holiday", "event", "rule-impact"]>>;
37
37
  export type CalendarEventType = NonNullable<z.infer<typeof CalendarEventTypeEnum>>;
@@ -1,12 +1,2 @@
1
- export * from './agency.js';
2
- export * from './calendar-dates.js';
3
- export * from './calendar.js';
4
- export * from './common.js';
5
1
  export * from './distance.js';
6
- export * from './feed-info.js';
7
- export * from './routes.js';
8
2
  export * from './service-alert.js';
9
- export * from './shapes.js';
10
- export * from './stop-times.js';
11
- export * from './stops.js';
12
- export * from './trips.js';
@@ -1,12 +1,2 @@
1
- export * from './agency.js';
2
- export * from './calendar-dates.js';
3
- export * from './calendar.js';
4
- export * from './common.js';
5
1
  export * from './distance.js';
6
- export * from './feed-info.js';
7
- export * from './routes.js';
8
2
  export * from './service-alert.js';
9
- export * from './shapes.js';
10
- export * from './stop-times.js';
11
- export * from './stops.js';
12
- export * from './trips.js';
@@ -1,8 +1 @@
1
- export * from './common.js';
2
- export * from './location-type.js';
3
- export * from './route-type.js';
4
- export * from './routes.js';
5
- export * from './stop-times.js';
6
- export * from './stops.js';
7
- export * from './trips.js';
8
- export * from './wheelchair-accessible.js';
1
+ export * from './mapper.js';
@@ -1,8 +1 @@
1
- export * from './common.js';
2
- export * from './location-type.js';
3
- export * from './route-type.js';
4
- export * from './routes.js';
5
- export * from './stop-times.js';
6
- export * from './stops.js';
7
- export * from './trips.js';
8
- export * from './wheelchair-accessible.js';
1
+ export * from './mapper.js';
@@ -1,4 +1,7 @@
1
1
  type ValueMapper<Our extends number | string, Gtfs extends number | string> = Record<Our, Gtfs>;
2
+ /**
3
+ * @deprecated Use something else instead.
4
+ */
2
5
  export declare function createGtfsMapper<Our extends number | string, Gtfs extends number | string>(map: ValueMapper<Our, Gtfs>): {
3
6
  fromGtfs: (value: Gtfs) => Our;
4
7
  toGtfs: (value: Our) => Gtfs;
@@ -1,5 +1,7 @@
1
1
  /* * */
2
- /* * */
2
+ /**
3
+ * @deprecated Use something else instead.
4
+ */
3
5
  export function createGtfsMapper(map) {
4
6
  const forward = map;
5
7
  const reverse = Object.entries(map).reduce((acc, [key, value]) => {
@@ -10,16 +10,16 @@ export declare const GtfsTMLAfetacaoSchema: z.ZodObject<{
10
10
  pattern_id: z.ZodString;
11
11
  stop_id: z.ZodString;
12
12
  }, "strip", z.ZodTypeAny, {
13
+ accepted_zone_codes: string;
14
+ interchange: number;
13
15
  line_id: string;
14
16
  pattern_id: string;
15
17
  stop_id: string;
18
+ }, {
16
19
  accepted_zone_codes: string;
17
20
  interchange: number;
18
- }, {
19
21
  line_id: string;
20
22
  pattern_id: string;
21
23
  stop_id: string;
22
- accepted_zone_codes: string;
23
- interchange: number;
24
24
  }>;
25
25
  export type GtfsTMLAfetacao = z.infer<typeof GtfsTMLAfetacaoSchema>;
@@ -35,12 +35,12 @@ export declare const GtfsTMLFareRulesSchema: z.ZodObject<{
35
35
  route_id: z.ZodString;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  agency_id: string;
38
- route_id: string;
39
38
  fare_id: string;
39
+ route_id: string;
40
40
  }, {
41
41
  agency_id: string;
42
- route_id: string;
43
42
  fare_id: string;
43
+ route_id: string;
44
44
  }>;
45
45
  export type GtfsTMLFareAttributes = z.infer<typeof GtfsTMLFareAttributesSchema>;
46
46
  export type GtfsTMLFareRules = z.infer<typeof GtfsTMLFareRulesSchema>;
@@ -1,8 +1,2 @@
1
1
  export * from './afetacao.js';
2
- export * from './agency.js';
3
2
  export * from './fares.js';
4
- export * from './feed-info.js';
5
- export * from './routes.js';
6
- export * from './stop-times.js';
7
- export * from './stops.js';
8
- export * from './trips.js';
@@ -1,8 +1,2 @@
1
1
  export * from './afetacao.js';
2
- export * from './agency.js';
3
2
  export * from './fares.js';
4
- export * from './feed-info.js';
5
- export * from './routes.js';
6
- export * from './stop-times.js';
7
- export * from './stops.js';
8
- export * from './trips.js';
package/dist/index.d.ts CHANGED
@@ -1,27 +1,4 @@
1
- export * from './agencies/index.js';
2
- export * from './alerts/index.js';
3
- export * from './api/index.js';
4
- export * from './app-configs/index.js';
5
- export * from './attachment.js';
6
- export * from './auth/index.js';
7
1
  export * from './calendar/index.js';
8
- export * from './dates/index.js';
9
- export * from './file-exports/index.js';
10
2
  export * from './gtfs-new/index.js';
11
3
  export * from './gtfs-tml/index.js';
12
- export * from './gtfs-validation/index.js';
13
4
  export * from './gtfs/index.js';
14
- export * from './locations/index.js';
15
- export * from './metrics/index.js';
16
- export * from './notification.js';
17
- export * from './offer/index.js';
18
- export * from './operation/index.js';
19
- export * from './organization.js';
20
- export * from './permissions/index.js';
21
- export * from './plans/index.js';
22
- export * from './sams/index.js';
23
- export * from './stops/index.js';
24
- export * from './vehicle/index.js';
25
- export * from './wiki.js';
26
- export * from '@tmlmobilidade/go-types-gtfs-rt';
27
- export * from '@tmlmobilidade/go-types-shared';
package/dist/index.js CHANGED
@@ -1,27 +1,4 @@
1
- export * from './agencies/index.js';
2
- export * from './alerts/index.js';
3
- export * from './api/index.js';
4
- export * from './app-configs/index.js';
5
- export * from './attachment.js';
6
- export * from './auth/index.js';
7
1
  export * from './calendar/index.js';
8
- export * from './dates/index.js';
9
- export * from './file-exports/index.js';
10
2
  export * from './gtfs-new/index.js';
11
3
  export * from './gtfs-tml/index.js';
12
- export * from './gtfs-validation/index.js';
13
4
  export * from './gtfs/index.js';
14
- export * from './locations/index.js';
15
- export * from './metrics/index.js';
16
- export * from './notification.js';
17
- export * from './offer/index.js';
18
- export * from './operation/index.js';
19
- export * from './organization.js';
20
- export * from './permissions/index.js';
21
- export * from './plans/index.js';
22
- export * from './sams/index.js';
23
- export * from './stops/index.js';
24
- export * from './vehicle/index.js';
25
- export * from './wiki.js';
26
- export * from '@tmlmobilidade/go-types-gtfs-rt';
27
- export * from '@tmlmobilidade/go-types-shared';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20260811.1505.45",
3
+ "version": "20260828.1636.54",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"
@@ -36,17 +36,11 @@
36
36
  "watch": "tsc-watch --onSuccess 'resolve-tspaths'"
37
37
  },
38
38
  "dependencies": {
39
- "@tmlmobilidade/go-types-gtfs": "*",
40
- "@tmlmobilidade/go-types-gtfs-rt": "*",
41
- "@tmlmobilidade/go-types-shared": "*",
42
- "@types/geojson": "7946.0.16",
43
39
  "gtfs-types": "5.1.0",
44
- "luxon": "3.7.2",
45
40
  "zod": "3.25.76"
46
41
  },
47
42
  "devDependencies": {
48
- "@tmlmobilidade/tsconfig": "*",
49
- "@types/luxon": "3.7.3",
43
+ "@tmlmobilidade/go-utils-tsconfig": "*",
50
44
  "@types/node": "26.1.2",
51
45
  "resolve-tspaths": "0.8.23",
52
46
  "tsc-watch": "7.2.1",
@@ -1,375 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const AgencySchema: z.ZodObject<{
3
- _id: z.ZodString;
4
- created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
5
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
- is_locked: z.ZodDefault<z.ZodBoolean>;
7
- updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
8
- updated_by: z.ZodOptional<z.ZodString>;
9
- } & {
10
- alerts_map: z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>;
11
- apex: z.ZodObject<{
12
- contact_emails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
- }, "strip", z.ZodTypeAny, {
14
- contact_emails: string[];
15
- }, {
16
- contact_emails?: string[] | undefined;
17
- }>;
18
- code: z.ZodString;
19
- contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
20
- contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
21
- fare_url: z.ZodString;
22
- financials: z.ZodObject<{
23
- price_per_km: z.ZodNumber;
24
- vkm_per_month: z.ZodArray<z.ZodNumber, "many">;
25
- }, "strip", z.ZodTypeAny, {
26
- price_per_km: number;
27
- vkm_per_month: number[];
28
- }, {
29
- price_per_km: number;
30
- vkm_per_month: number[];
31
- }>;
32
- name: z.ZodString;
33
- open_data: z.ZodObject<{
34
- eta_enabled: z.ZodDefault<z.ZodBoolean>;
35
- gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
36
- positions_enabled: z.ZodDefault<z.ZodBoolean>;
37
- service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
38
- }, "strip", z.ZodTypeAny, {
39
- eta_enabled: boolean;
40
- gtfs_enabled: boolean;
41
- positions_enabled: boolean;
42
- service_alerts_enabled: boolean;
43
- }, {
44
- eta_enabled?: boolean | undefined;
45
- gtfs_enabled?: boolean | undefined;
46
- positions_enabled?: boolean | undefined;
47
- service_alerts_enabled?: boolean | undefined;
48
- }>;
49
- operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
50
- phone: z.ZodString;
51
- pta_name: z.ZodString;
52
- public_email: z.ZodString;
53
- public_name: z.ZodString;
54
- short_name: z.ZodString;
55
- timezone: z.ZodDefault<z.ZodString>;
56
- validation_rules: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
57
- website_url: z.ZodString;
58
- }, "strip", z.ZodTypeAny, {
59
- _id: string;
60
- created_at: number & {
61
- __brand: "UnixTimestamp";
62
- };
63
- created_by: string | null;
64
- is_locked: boolean;
65
- updated_at: number & {
66
- __brand: "UnixTimestamp";
67
- };
68
- code: string;
69
- name: string;
70
- alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean>>>>>>;
71
- apex: {
72
- contact_emails: string[];
73
- };
74
- contact_emails_pta: string[];
75
- contact_emails_pto: string[];
76
- fare_url: string;
77
- financials: {
78
- price_per_km: number;
79
- vkm_per_month: number[];
80
- };
81
- open_data: {
82
- eta_enabled: boolean;
83
- gtfs_enabled: boolean;
84
- positions_enabled: boolean;
85
- service_alerts_enabled: boolean;
86
- };
87
- operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
88
- phone: string;
89
- pta_name: string;
90
- public_email: string;
91
- public_name: string;
92
- short_name: string;
93
- timezone: string;
94
- website_url: string;
95
- updated_by?: string | undefined;
96
- validation_rules?: any;
97
- }, {
98
- _id: string;
99
- created_at: string | number;
100
- updated_at: string | number;
101
- code: string;
102
- name: string;
103
- alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean | undefined>>>>>>;
104
- apex: {
105
- contact_emails?: string[] | undefined;
106
- };
107
- fare_url: string;
108
- financials: {
109
- price_per_km: number;
110
- vkm_per_month: number[];
111
- };
112
- open_data: {
113
- eta_enabled?: boolean | undefined;
114
- gtfs_enabled?: boolean | undefined;
115
- positions_enabled?: boolean | undefined;
116
- service_alerts_enabled?: boolean | undefined;
117
- };
118
- phone: string;
119
- pta_name: string;
120
- public_email: string;
121
- public_name: string;
122
- short_name: string;
123
- website_url: string;
124
- created_by?: string | null | undefined;
125
- is_locked?: boolean | undefined;
126
- updated_by?: string | undefined;
127
- contact_emails_pta?: string[] | undefined;
128
- contact_emails_pto?: string[] | undefined;
129
- operation_start_date?: string | null | undefined;
130
- timezone?: string | undefined;
131
- validation_rules?: any;
132
- }>;
133
- export declare const CreateAgencySchema: z.ZodObject<Omit<{
134
- _id: z.ZodString;
135
- created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
136
- created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
137
- is_locked: z.ZodDefault<z.ZodBoolean>;
138
- updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixTimestamp, string | number>;
139
- updated_by: z.ZodOptional<z.ZodString>;
140
- } & {
141
- alerts_map: z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>;
142
- apex: z.ZodObject<{
143
- contact_emails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
144
- }, "strip", z.ZodTypeAny, {
145
- contact_emails: string[];
146
- }, {
147
- contact_emails?: string[] | undefined;
148
- }>;
149
- code: z.ZodString;
150
- contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
151
- contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
152
- fare_url: z.ZodString;
153
- financials: z.ZodObject<{
154
- price_per_km: z.ZodNumber;
155
- vkm_per_month: z.ZodArray<z.ZodNumber, "many">;
156
- }, "strip", z.ZodTypeAny, {
157
- price_per_km: number;
158
- vkm_per_month: number[];
159
- }, {
160
- price_per_km: number;
161
- vkm_per_month: number[];
162
- }>;
163
- name: z.ZodString;
164
- open_data: z.ZodObject<{
165
- eta_enabled: z.ZodDefault<z.ZodBoolean>;
166
- gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
167
- positions_enabled: z.ZodDefault<z.ZodBoolean>;
168
- service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
169
- }, "strip", z.ZodTypeAny, {
170
- eta_enabled: boolean;
171
- gtfs_enabled: boolean;
172
- positions_enabled: boolean;
173
- service_alerts_enabled: boolean;
174
- }, {
175
- eta_enabled?: boolean | undefined;
176
- gtfs_enabled?: boolean | undefined;
177
- positions_enabled?: boolean | undefined;
178
- service_alerts_enabled?: boolean | undefined;
179
- }>;
180
- operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
181
- phone: z.ZodString;
182
- pta_name: z.ZodString;
183
- public_email: z.ZodString;
184
- public_name: z.ZodString;
185
- short_name: z.ZodString;
186
- timezone: z.ZodDefault<z.ZodString>;
187
- validation_rules: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
188
- website_url: z.ZodString;
189
- }, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
190
- _id: string;
191
- created_by: string | null;
192
- is_locked: boolean;
193
- code: string;
194
- name: string;
195
- alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean>>>>>>;
196
- apex: {
197
- contact_emails: string[];
198
- };
199
- contact_emails_pta: string[];
200
- contact_emails_pto: string[];
201
- fare_url: string;
202
- financials: {
203
- price_per_km: number;
204
- vkm_per_month: number[];
205
- };
206
- open_data: {
207
- eta_enabled: boolean;
208
- gtfs_enabled: boolean;
209
- positions_enabled: boolean;
210
- service_alerts_enabled: boolean;
211
- };
212
- operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
213
- phone: string;
214
- pta_name: string;
215
- public_email: string;
216
- public_name: string;
217
- short_name: string;
218
- timezone: string;
219
- website_url: string;
220
- updated_by?: string | undefined;
221
- validation_rules?: any;
222
- }, {
223
- _id: string;
224
- code: string;
225
- name: string;
226
- alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean | undefined>>>>>>;
227
- apex: {
228
- contact_emails?: string[] | undefined;
229
- };
230
- fare_url: string;
231
- financials: {
232
- price_per_km: number;
233
- vkm_per_month: number[];
234
- };
235
- open_data: {
236
- eta_enabled?: boolean | undefined;
237
- gtfs_enabled?: boolean | undefined;
238
- positions_enabled?: boolean | undefined;
239
- service_alerts_enabled?: boolean | undefined;
240
- };
241
- phone: string;
242
- pta_name: string;
243
- public_email: string;
244
- public_name: string;
245
- short_name: string;
246
- website_url: string;
247
- created_by?: string | null | undefined;
248
- is_locked?: boolean | undefined;
249
- updated_by?: string | undefined;
250
- contact_emails_pta?: string[] | undefined;
251
- contact_emails_pto?: string[] | undefined;
252
- operation_start_date?: string | null | undefined;
253
- timezone?: string | undefined;
254
- validation_rules?: any;
255
- }>;
256
- export declare const UpdateAgencySchema: z.ZodObject<{
257
- _id: z.ZodOptional<z.ZodString>;
258
- is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
259
- updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
260
- code: z.ZodOptional<z.ZodString>;
261
- name: z.ZodOptional<z.ZodString>;
262
- alerts_map: z.ZodOptional<z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>>;
263
- apex: z.ZodOptional<z.ZodObject<{
264
- contact_emails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
265
- }, "strip", z.ZodTypeAny, {
266
- contact_emails: string[];
267
- }, {
268
- contact_emails?: string[] | undefined;
269
- }>>;
270
- contact_emails_pta: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
271
- contact_emails_pto: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
272
- fare_url: z.ZodOptional<z.ZodString>;
273
- financials: z.ZodOptional<z.ZodObject<{
274
- price_per_km: z.ZodNumber;
275
- vkm_per_month: z.ZodArray<z.ZodNumber, "many">;
276
- }, "strip", z.ZodTypeAny, {
277
- price_per_km: number;
278
- vkm_per_month: number[];
279
- }, {
280
- price_per_km: number;
281
- vkm_per_month: number[];
282
- }>>;
283
- open_data: z.ZodOptional<z.ZodObject<{
284
- eta_enabled: z.ZodDefault<z.ZodBoolean>;
285
- gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
286
- positions_enabled: z.ZodDefault<z.ZodBoolean>;
287
- service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
288
- }, "strip", z.ZodTypeAny, {
289
- eta_enabled: boolean;
290
- gtfs_enabled: boolean;
291
- positions_enabled: boolean;
292
- service_alerts_enabled: boolean;
293
- }, {
294
- eta_enabled?: boolean | undefined;
295
- gtfs_enabled?: boolean | undefined;
296
- positions_enabled?: boolean | undefined;
297
- service_alerts_enabled?: boolean | undefined;
298
- }>>;
299
- operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>>;
300
- phone: z.ZodOptional<z.ZodString>;
301
- pta_name: z.ZodOptional<z.ZodString>;
302
- public_email: z.ZodOptional<z.ZodString>;
303
- public_name: z.ZodOptional<z.ZodString>;
304
- short_name: z.ZodOptional<z.ZodString>;
305
- timezone: z.ZodOptional<z.ZodDefault<z.ZodString>>;
306
- validation_rules: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodAny>>>;
307
- website_url: z.ZodOptional<z.ZodString>;
308
- }, "strip", z.ZodTypeAny, {
309
- _id?: string | undefined;
310
- is_locked?: boolean | undefined;
311
- updated_by?: string | undefined;
312
- code?: string | undefined;
313
- name?: string | undefined;
314
- alerts_map?: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean>>>>>> | undefined;
315
- apex?: {
316
- contact_emails: string[];
317
- } | undefined;
318
- contact_emails_pta?: string[] | undefined;
319
- contact_emails_pto?: string[] | undefined;
320
- fare_url?: string | undefined;
321
- financials?: {
322
- price_per_km: number;
323
- vkm_per_month: number[];
324
- } | undefined;
325
- open_data?: {
326
- eta_enabled: boolean;
327
- gtfs_enabled: boolean;
328
- positions_enabled: boolean;
329
- service_alerts_enabled: boolean;
330
- } | undefined;
331
- operation_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
332
- phone?: string | undefined;
333
- pta_name?: string | undefined;
334
- public_email?: string | undefined;
335
- public_name?: string | undefined;
336
- short_name?: string | undefined;
337
- timezone?: string | undefined;
338
- validation_rules?: any;
339
- website_url?: string | undefined;
340
- }, {
341
- _id?: string | undefined;
342
- is_locked?: boolean | undefined;
343
- updated_by?: string | undefined;
344
- code?: string | undefined;
345
- name?: string | undefined;
346
- alerts_map?: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean | undefined>>>>>> | undefined;
347
- apex?: {
348
- contact_emails?: string[] | undefined;
349
- } | undefined;
350
- contact_emails_pta?: string[] | undefined;
351
- contact_emails_pto?: string[] | undefined;
352
- fare_url?: string | undefined;
353
- financials?: {
354
- price_per_km: number;
355
- vkm_per_month: number[];
356
- } | undefined;
357
- open_data?: {
358
- eta_enabled?: boolean | undefined;
359
- gtfs_enabled?: boolean | undefined;
360
- positions_enabled?: boolean | undefined;
361
- service_alerts_enabled?: boolean | undefined;
362
- } | undefined;
363
- operation_start_date?: string | null | undefined;
364
- phone?: string | undefined;
365
- pta_name?: string | undefined;
366
- public_email?: string | undefined;
367
- public_name?: string | undefined;
368
- short_name?: string | undefined;
369
- timezone?: string | undefined;
370
- validation_rules?: any;
371
- website_url?: string | undefined;
372
- }>;
373
- export type Agency = z.infer<typeof AgencySchema>;
374
- export type CreateAgencyDto = z.infer<typeof CreateAgencySchema>;
375
- export type UpdateAgencyDto = z.infer<typeof UpdateAgencySchema>;
@@ -1,30 +0,0 @@
1
- /* * */
2
- import { AgencyAlertMapSchema } from './alert-map.js';
3
- import { AgencyApexSchema } from './apex.js';
4
- import { AgencyFinancialsSchema } from './financials.js';
5
- import { AgencyOpenDataSchema } from './open-data.js';
6
- import { DocumentSchema, OperationalDateSchema } from '@tmlmobilidade/go-types-shared';
7
- import { z } from 'zod';
8
- /* * */
9
- export const AgencySchema = DocumentSchema.extend({
10
- alerts_map: AgencyAlertMapSchema,
11
- apex: AgencyApexSchema,
12
- code: z.string().max(20),
13
- contact_emails_pta: z.array(z.string().email()).default([]),
14
- contact_emails_pto: z.array(z.string().email()).default([]),
15
- fare_url: z.string().url(),
16
- financials: AgencyFinancialsSchema,
17
- name: z.string(),
18
- open_data: AgencyOpenDataSchema,
19
- operation_start_date: OperationalDateSchema.nullable().default(null),
20
- phone: z.string(),
21
- pta_name: z.string(),
22
- public_email: z.string().email(),
23
- public_name: z.string(),
24
- short_name: z.string().max(4),
25
- timezone: z.string().default('Europe/Lisbon'),
26
- validation_rules: z.any().nullable().default(null),
27
- website_url: z.string().url(),
28
- });
29
- export const CreateAgencySchema = AgencySchema.omit({ created_at: true, updated_at: true });
30
- export const UpdateAgencySchema = CreateAgencySchema.omit({ created_by: true }).partial();