@tmlmobilidade/types 20251103.1255.55 → 20251202.1817.5

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 (235) hide show
  1. package/dist/{src/_common → _common}/index.d.ts +4 -2
  2. package/dist/{src/_common → _common}/index.js +4 -2
  3. package/dist/_common/mongo.d.ts +3 -0
  4. package/dist/_common/status.d.ts +13 -0
  5. package/dist/_common/status.js +20 -0
  6. package/dist/_common/utility.js +1 -0
  7. package/dist/{src/agency.d.ts → agency.d.ts} +4 -15
  8. package/dist/{src/agency.js → agency.js} +1 -6
  9. package/dist/{src/alert.d.ts → alert.d.ts} +20 -21
  10. package/dist/{src/alert.js → alert.js} +8 -14
  11. package/dist/{src/simplified-apex → apex}/simplified-apex-validation.d.ts +20 -20
  12. package/dist/{src/auth → auth}/index.d.ts +1 -1
  13. package/dist/{src/auth → auth}/index.js +1 -1
  14. package/dist/{src/auth → auth}/password-requirements.js +2 -1
  15. package/dist/auth/role.d.ts +958 -0
  16. package/dist/{src/auth → auth}/role.js +2 -2
  17. package/dist/{src/auth → auth}/session.d.ts +13 -9
  18. package/dist/{src/auth → auth}/session.js +1 -1
  19. package/dist/auth/user.d.ts +1281 -0
  20. package/dist/{src/auth → auth}/user.js +11 -14
  21. package/dist/{src/file-exports → file-exports}/common.d.ts +9 -8
  22. package/dist/{src/file-exports → file-exports}/common.js +1 -1
  23. package/dist/file-exports/index.d.ts +121 -0
  24. package/dist/file-exports/ride-export.d.ts +410 -0
  25. package/dist/file-exports/ride-export.js +131 -0
  26. package/dist/{src/file.d.ts → file.d.ts} +18 -18
  27. package/dist/gtfs/agency.d.ts +30 -0
  28. package/dist/gtfs/agency.js +13 -0
  29. package/dist/gtfs/feed-info.d.ts +33 -0
  30. package/dist/{src/gtfs.js → gtfs/feed-info.js} +1 -11
  31. package/dist/{src/gtfs → gtfs}/index.d.ts +3 -0
  32. package/dist/{src/gtfs → gtfs}/index.js +3 -0
  33. package/dist/gtfs/service-alert.d.ts +26 -0
  34. package/dist/index.d.ts +22 -22
  35. package/dist/index.js +22 -22
  36. package/dist/locations/census.d.ts +211 -0
  37. package/dist/locations/census.js +2 -0
  38. package/dist/locations/district.d.ts +24 -0
  39. package/dist/locations/district.js +2 -0
  40. package/dist/locations/index.d.ts +6 -0
  41. package/dist/locations/index.js +6 -0
  42. package/dist/locations/locality.d.ts +27 -0
  43. package/dist/locations/locality.js +2 -0
  44. package/dist/locations/municipality.d.ts +25 -0
  45. package/dist/locations/municipality.js +2 -0
  46. package/dist/locations/parish.d.ts +26 -0
  47. package/dist/locations/parish.js +2 -0
  48. package/dist/locations/queries.d.ts +117 -0
  49. package/dist/{src/locations.js → locations/queries.js} +5 -16
  50. package/dist/metrics/demand/demand_by_agency.d.ts +210 -0
  51. package/dist/metrics/demand/demand_by_agency.js +39 -0
  52. package/dist/metrics/demand/demand_by_category.d.ts +475 -0
  53. package/dist/metrics/demand/demand_by_category.js +114 -0
  54. package/dist/metrics/demand/demand_by_line.d.ts +246 -0
  55. package/dist/metrics/demand/demand_by_line.js +56 -0
  56. package/dist/metrics/demand/demand_by_pattern.d.ts +332 -0
  57. package/dist/metrics/demand/demand_by_pattern.js +56 -0
  58. package/dist/metrics/demand/demand_by_product.d.ts +475 -0
  59. package/dist/metrics/demand/demand_by_product.js +114 -0
  60. package/dist/metrics/demand/index.d.ts +6 -0
  61. package/dist/metrics/demand/index.js +8 -0
  62. package/dist/metrics/demand/records.d.ts +320 -0
  63. package/dist/metrics/demand/records.js +53 -0
  64. package/dist/metrics/index.d.ts +2647 -0
  65. package/dist/metrics/index.js +48 -0
  66. package/dist/metrics/realtime.d.ts +667 -0
  67. package/dist/metrics/realtime.js +41 -0
  68. package/dist/{src/notification.d.ts → notification.d.ts} +4 -4
  69. package/dist/{src/organization.d.ts → organization.d.ts} +32 -32
  70. package/dist/{src/organization.js → organization.js} +7 -7
  71. package/dist/permissions/agencies.d.ts +12 -0
  72. package/dist/permissions/agencies.js +13 -0
  73. package/dist/permissions/alerts.d.ts +36 -0
  74. package/dist/permissions/alerts.js +25 -0
  75. package/dist/permissions/controller.d.ts +36 -0
  76. package/dist/permissions/controller.js +30 -0
  77. package/dist/permissions/gtfs-validations.d.ts +25 -0
  78. package/dist/permissions/gtfs-validations.js +14 -0
  79. package/dist/permissions/home.d.ts +12 -0
  80. package/dist/permissions/home.js +10 -0
  81. package/dist/permissions/index.d.ts +268 -0
  82. package/dist/permissions/index.js +149 -0
  83. package/dist/permissions/organizations.d.ts +12 -0
  84. package/dist/permissions/organizations.js +12 -0
  85. package/dist/permissions/performance.d.ts +12 -0
  86. package/dist/permissions/performance.js +9 -0
  87. package/dist/permissions/plans.d.ts +25 -0
  88. package/dist/permissions/plans.js +22 -0
  89. package/dist/permissions/roles.d.ts +12 -0
  90. package/dist/permissions/roles.js +12 -0
  91. package/dist/permissions/stops.d.ts +30 -0
  92. package/dist/permissions/stops.js +17 -0
  93. package/dist/permissions/users.d.ts +12 -0
  94. package/dist/permissions/users.js +12 -0
  95. package/dist/{src/plans → plans}/gtfs-validation.d.ts +55 -63
  96. package/dist/{src/plans → plans}/gtfs-validation.js +3 -6
  97. package/dist/plans/plan-app-status.d.ts +15 -0
  98. package/dist/plans/plan-app-status.js +10 -0
  99. package/dist/{src/plans → plans}/plan.d.ts +240 -104
  100. package/dist/{src/plans → plans}/plan.js +8 -10
  101. package/dist/{src/_common/proposed-change.d.ts → proposed-change.d.ts} +21 -22
  102. package/dist/{src/_common/proposed-change.js → proposed-change.js} +5 -7
  103. package/dist/{src/rides → rides}/index.d.ts +1 -0
  104. package/dist/{src/rides → rides}/index.js +1 -0
  105. package/dist/{src/rides → rides}/ride-acceptance.d.ts +65 -65
  106. package/dist/{src/rides → rides}/ride-analysis.d.ts +34 -34
  107. package/dist/{src/rides → rides}/ride-audit.d.ts +10 -10
  108. package/dist/rides/ride-normalized.d.ts +29 -0
  109. package/dist/rides/ride-normalized.js +2 -0
  110. package/dist/{src/rides → rides}/ride.d.ts +523 -567
  111. package/dist/{src/rides → rides}/ride.js +2 -16
  112. package/dist/{src/sams → sams}/sam-analysis.d.ts +11 -11
  113. package/dist/{src/sams → sams}/sam-analysis.js +4 -4
  114. package/dist/{src/sams → sams}/sam.d.ts +76 -76
  115. package/dist/{src/sams → sams}/sam.js +1 -1
  116. package/dist/{src/stop.d.ts → stop.d.ts} +32 -43
  117. package/dist/{src/stop.js → stop.js} +3 -8
  118. package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.d.ts +77 -0
  119. package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.js +21 -0
  120. package/dist/vehicle-events/index.d.ts +2 -0
  121. package/dist/vehicle-events/index.js +2 -0
  122. package/dist/{src/vehicle-event.d.ts → vehicle-events/simplified-vehicle-event.d.ts} +9 -9
  123. package/dist/{src/vehicle-event.js → vehicle-events/simplified-vehicle-event.js} +3 -3
  124. package/dist/wiki.js +2 -0
  125. package/dist/{src/zone.d.ts → zone.d.ts} +2 -16
  126. package/dist/{src/zone.js → zone.js} +0 -6
  127. package/package.json +18 -21
  128. package/README.md +0 -13
  129. package/dist/src/_common/email.d.ts +0 -4
  130. package/dist/src/_common/email.js +0 -7
  131. package/dist/src/auth/permission.d.ts +0 -19
  132. package/dist/src/auth/permission.js +0 -8
  133. package/dist/src/auth/role.d.ts +0 -127
  134. package/dist/src/auth/user.d.ts +0 -311
  135. package/dist/src/file-exports/index.d.ts +0 -121
  136. package/dist/src/file-exports/ride-export.d.ts +0 -407
  137. package/dist/src/file-exports/ride-export.js +0 -120
  138. package/dist/src/gtfs.d.ts +0 -88
  139. package/dist/src/locations.d.ts +0 -319
  140. package/dist/src/metrics/demand.d.ts +0 -803
  141. package/dist/src/metrics/demand.js +0 -153
  142. package/dist/src/metrics/index.d.ts +0 -806
  143. package/dist/src/metrics/index.js +0 -19
  144. package/dist/src/plans/plan-controller.d.ts +0 -15
  145. package/dist/src/plans/plan-controller.js +0 -10
  146. package/dist/src/system/index.d.ts +0 -2
  147. package/dist/src/system/index.js +0 -2
  148. package/dist/src/system/processing-status.d.ts +0 -9
  149. package/dist/src/system/processing-status.js +0 -5
  150. package/dist/{src/_common → _common}/comment.d.ts +8 -8
  151. package/dist/{src/_common → _common}/comment.js +0 -0
  152. package/dist/{src/_common → _common}/document.d.ts +0 -0
  153. package/dist/{src/_common → _common}/document.js +0 -0
  154. package/dist/{src/system → _common}/environment.d.ts +0 -0
  155. package/dist/{src/system → _common}/environment.js +0 -0
  156. package/dist/{src/_common → _common}/fastify.d.ts +0 -0
  157. package/dist/{src/_common → _common}/fastify.js +0 -0
  158. package/dist/{src/_common/utility.js → _common/mongo.js} +0 -0
  159. package/dist/{src/_common → _common}/operational-date.d.ts +0 -0
  160. package/dist/{src/_common → _common}/operational-date.js +0 -0
  161. package/dist/{src/_common → _common}/unix-timestamp.d.ts +0 -0
  162. package/dist/{src/_common → _common}/unix-timestamp.js +0 -0
  163. package/dist/{src/_common → _common}/utility.d.ts +0 -0
  164. package/dist/{src/simplified-apex → apex}/index.d.ts +0 -0
  165. package/dist/{src/simplified-apex → apex}/index.js +0 -0
  166. package/dist/{src/simplified-apex → apex}/simplified-apex-inspection-decision.d.ts +0 -0
  167. package/dist/{src/simplified-apex → apex}/simplified-apex-inspection-decision.js +0 -0
  168. package/dist/{src/simplified-apex → apex}/simplified-apex-inspection.d.ts +0 -0
  169. package/dist/{src/simplified-apex → apex}/simplified-apex-inspection.js +0 -0
  170. package/dist/{src/simplified-apex → apex}/simplified-apex-location.d.ts +16 -16
  171. package/dist/{src/simplified-apex → apex}/simplified-apex-location.js +0 -0
  172. package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-refund.d.ts +20 -20
  173. package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-refund.js +0 -0
  174. package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-sale.d.ts +25 -25
  175. package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-sale.js +0 -0
  176. package/dist/{src/simplified-apex → apex}/simplified-apex-type.d.ts +0 -0
  177. package/dist/{src/simplified-apex → apex}/simplified-apex-type.js +0 -0
  178. package/dist/{src/simplified-apex → apex}/simplified-apex-validation.js +0 -0
  179. package/dist/{src/auth → auth}/login.d.ts +0 -0
  180. package/dist/{src/auth → auth}/login.js +0 -0
  181. package/dist/{src/auth → auth}/password-requirements.d.ts +0 -0
  182. package/dist/{src/auth → auth}/verification-token.d.ts +0 -0
  183. package/dist/{src/auth → auth}/verification-token.js +0 -0
  184. package/dist/{src/file-exports → file-exports}/index.js +0 -0
  185. package/dist/{src/file.js → file.js} +0 -0
  186. package/dist/{src/gtfs → gtfs}/calendar-dates.d.ts +0 -0
  187. package/dist/{src/gtfs → gtfs}/calendar-dates.js +0 -0
  188. package/dist/{src/gtfs → gtfs}/calendar.d.ts +0 -0
  189. package/dist/{src/gtfs → gtfs}/calendar.js +0 -0
  190. package/dist/{src/gtfs → gtfs}/cause-effetcs.d.ts +0 -0
  191. package/dist/{src/gtfs → gtfs}/cause-effetcs.js +0 -0
  192. package/dist/{src/gtfs → gtfs}/common.d.ts +0 -0
  193. package/dist/{src/gtfs → gtfs}/common.js +0 -0
  194. package/dist/{src/gtfs → gtfs}/routes.d.ts +0 -0
  195. package/dist/{src/gtfs → gtfs}/routes.js +0 -0
  196. package/dist/{src/pcgi/pcgi-apex-location.js → gtfs/service-alert.js} +0 -0
  197. package/dist/{src/gtfs → gtfs}/shapes.d.ts +0 -0
  198. package/dist/{src/gtfs → gtfs}/shapes.js +0 -0
  199. package/dist/{src/gtfs → gtfs}/stop-times.d.ts +0 -0
  200. package/dist/{src/gtfs → gtfs}/stop-times.js +0 -0
  201. package/dist/{src/gtfs → gtfs}/stops.d.ts +0 -0
  202. package/dist/{src/gtfs → gtfs}/stops.js +0 -0
  203. package/dist/{src/gtfs → gtfs}/trips.d.ts +0 -0
  204. package/dist/{src/gtfs → gtfs}/trips.js +0 -0
  205. package/dist/{src/metrics → metrics}/common.d.ts +0 -0
  206. package/dist/{src/metrics → metrics}/common.js +0 -0
  207. package/dist/{src/notification.js → notification.js} +0 -0
  208. package/dist/{src/pcgi → pcgi}/index.d.ts +0 -0
  209. package/dist/{src/pcgi → pcgi}/index.js +0 -0
  210. package/dist/{src/pcgi → pcgi}/pcgi-apex-location.d.ts +0 -0
  211. package/dist/{src/pcgi/pcgi-apex-refund.js → pcgi/pcgi-apex-location.js} +0 -0
  212. package/dist/{src/pcgi → pcgi}/pcgi-apex-refund.d.ts +0 -0
  213. package/dist/{src/pcgi/pcgi-apex-sale.js → pcgi/pcgi-apex-refund.js} +0 -0
  214. package/dist/{src/pcgi → pcgi}/pcgi-apex-sale.d.ts +0 -0
  215. package/dist/{src/pcgi/pcgi-apex-validation.js → pcgi/pcgi-apex-sale.js} +0 -0
  216. package/dist/{src/pcgi → pcgi}/pcgi-apex-validation.d.ts +0 -0
  217. package/dist/{src/pcgi/pcgi-transaction-entity.js → pcgi/pcgi-apex-validation.js} +0 -0
  218. package/dist/{src/pcgi → pcgi}/pcgi-transaction-entity.d.ts +0 -0
  219. package/dist/{src/rides/hashed-shape.js → pcgi/pcgi-transaction-entity.js} +0 -0
  220. package/dist/{src/plans → plans}/index.d.ts +0 -0
  221. package/dist/{src/plans → plans}/index.js +0 -0
  222. package/dist/{src/plans → plans}/plan-pcgi-legacy.d.ts +0 -0
  223. package/dist/{src/plans → plans}/plan-pcgi-legacy.js +0 -0
  224. package/dist/{src/rides → rides}/hashed-shape.d.ts +0 -0
  225. package/dist/{src/rides/hashed-trip.js → rides/hashed-shape.js} +0 -0
  226. package/dist/{src/rides → rides}/hashed-trip.d.ts +0 -0
  227. package/dist/{src/wiki.js → rides/hashed-trip.js} +0 -0
  228. package/dist/{src/rides → rides}/ride-acceptance.js +1 -1
  229. /package/dist/{src/rides → rides}/ride-analysis.js +0 -0
  230. /package/dist/{src/rides → rides}/ride-audit.js +0 -0
  231. /package/dist/{src/rides → rides}/ride-overrides.d.ts +0 -0
  232. /package/dist/{src/rides → rides}/ride-overrides.js +0 -0
  233. /package/dist/{src/sams → sams}/index.d.ts +0 -0
  234. /package/dist/{src/sams → sams}/index.js +0 -0
  235. /package/dist/{src/wiki.d.ts → wiki.d.ts} +0 -0
@@ -12,17 +12,17 @@ export declare const GTFSValidatorMessageSchema: z.ZodObject<{
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  message: string;
14
14
  field: string;
15
+ validation_id: string;
15
16
  file_name: string;
16
17
  rows: number[];
17
18
  severity: "error" | "warning" | "ignore" | "forbidden";
18
- validation_id: string;
19
19
  }, {
20
20
  message: string;
21
21
  field: string;
22
+ validation_id: string;
22
23
  file_name: string;
23
24
  rows: number[];
24
25
  severity: "error" | "warning" | "ignore" | "forbidden";
25
- validation_id: string;
26
26
  }>;
27
27
  export declare const GTFSValidatorSummarySchema: z.ZodObject<{
28
28
  messages: z.ZodArray<z.ZodObject<{
@@ -35,17 +35,17 @@ export declare const GTFSValidatorSummarySchema: z.ZodObject<{
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  message: string;
37
37
  field: string;
38
+ validation_id: string;
38
39
  file_name: string;
39
40
  rows: number[];
40
41
  severity: "error" | "warning" | "ignore" | "forbidden";
41
- validation_id: string;
42
42
  }, {
43
43
  message: string;
44
44
  field: string;
45
+ validation_id: string;
45
46
  file_name: string;
46
47
  rows: number[];
47
48
  severity: "error" | "warning" | "ignore" | "forbidden";
48
- validation_id: string;
49
49
  }>, "many">;
50
50
  total_errors: z.ZodNumber;
51
51
  total_warnings: z.ZodNumber;
@@ -53,10 +53,10 @@ export declare const GTFSValidatorSummarySchema: z.ZodObject<{
53
53
  messages: {
54
54
  message: string;
55
55
  field: string;
56
+ validation_id: string;
56
57
  file_name: string;
57
58
  rows: number[];
58
59
  severity: "error" | "warning" | "ignore" | "forbidden";
59
- validation_id: string;
60
60
  }[];
61
61
  total_errors: number;
62
62
  total_warnings: number;
@@ -64,10 +64,10 @@ export declare const GTFSValidatorSummarySchema: z.ZodObject<{
64
64
  messages: {
65
65
  message: string;
66
66
  field: string;
67
+ validation_id: string;
67
68
  file_name: string;
68
69
  rows: number[];
69
70
  severity: "error" | "warning" | "ignore" | "forbidden";
70
- validation_id: string;
71
71
  }[];
72
72
  total_errors: number;
73
73
  total_warnings: number;
@@ -76,12 +76,12 @@ export type GTFSValidatorSummary = z.infer<typeof GTFSValidatorSummarySchema>;
76
76
  export type GTFSValidatorMessage = z.infer<typeof GTFSValidatorMessageSchema>;
77
77
  export declare const GtfsValidationSchema: z.ZodObject<{
78
78
  _id: z.ZodString;
79
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
79
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
80
80
  created_by: z.ZodOptional<z.ZodString>;
81
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
81
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
82
82
  updated_by: z.ZodOptional<z.ZodString>;
83
83
  } & {
84
- feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
84
+ feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
85
85
  file_id: z.ZodString;
86
86
  gtfs_agency: z.ZodObject<{
87
87
  agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -115,21 +115,21 @@ export declare const GtfsValidationSchema: z.ZodObject<{
115
115
  default_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
116
  feed_contact_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
117
  feed_contact_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
- feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>>;
118
+ feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
119
119
  feed_lang: z.ZodString;
120
120
  feed_publisher_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
121
  feed_publisher_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
- feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>>;
122
+ feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
123
123
  feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
124
  }, "strip", z.ZodTypeAny, {
125
125
  feed_lang: string;
126
126
  default_lang?: string | null | undefined;
127
127
  feed_contact_email?: string | null | undefined;
128
128
  feed_contact_url?: string | null | undefined;
129
- feed_end_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
129
+ feed_end_date?: import("../index.js").OperationalDate | null | undefined;
130
130
  feed_publisher_name?: string | null | undefined;
131
131
  feed_publisher_url?: string | null | undefined;
132
- feed_start_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
132
+ feed_start_date?: import("../index.js").OperationalDate | null | undefined;
133
133
  feed_version?: string | null | undefined;
134
134
  }, {
135
135
  feed_lang: string;
@@ -154,17 +154,17 @@ export declare const GtfsValidationSchema: z.ZodObject<{
154
154
  }, "strip", z.ZodTypeAny, {
155
155
  message: string;
156
156
  field: string;
157
+ validation_id: string;
157
158
  file_name: string;
158
159
  rows: number[];
159
160
  severity: "error" | "warning" | "ignore" | "forbidden";
160
- validation_id: string;
161
161
  }, {
162
162
  message: string;
163
163
  field: string;
164
+ validation_id: string;
164
165
  file_name: string;
165
166
  rows: number[];
166
167
  severity: "error" | "warning" | "ignore" | "forbidden";
167
- validation_id: string;
168
168
  }>, "many">;
169
169
  total_errors: z.ZodNumber;
170
170
  total_warnings: z.ZodNumber;
@@ -172,10 +172,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
172
172
  messages: {
173
173
  message: string;
174
174
  field: string;
175
+ validation_id: string;
175
176
  file_name: string;
176
177
  rows: number[];
177
178
  severity: "error" | "warning" | "ignore" | "forbidden";
178
- validation_id: string;
179
179
  }[];
180
180
  total_errors: number;
181
181
  total_warnings: number;
@@ -183,10 +183,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
183
183
  messages: {
184
184
  message: string;
185
185
  field: string;
186
+ validation_id: string;
186
187
  file_name: string;
187
188
  rows: number[];
188
189
  severity: "error" | "warning" | "ignore" | "forbidden";
189
- validation_id: string;
190
190
  }[];
191
191
  total_errors: number;
192
192
  total_warnings: number;
@@ -200,7 +200,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
200
200
  __brand: "UnixTimestamp";
201
201
  };
202
202
  file_id: string;
203
- feeder_status: "error" | "waiting" | "processing" | "complete";
203
+ feeder_status: "waiting" | "processing" | "complete" | "error" | "skipped";
204
204
  gtfs_agency: {
205
205
  agency_id: string;
206
206
  agency_name: string;
@@ -216,10 +216,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
216
216
  default_lang?: string | null | undefined;
217
217
  feed_contact_email?: string | null | undefined;
218
218
  feed_contact_url?: string | null | undefined;
219
- feed_end_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
219
+ feed_end_date?: import("../index.js").OperationalDate | null | undefined;
220
220
  feed_publisher_name?: string | null | undefined;
221
221
  feed_publisher_url?: string | null | undefined;
222
- feed_start_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
222
+ feed_start_date?: import("../index.js").OperationalDate | null | undefined;
223
223
  feed_version?: string | null | undefined;
224
224
  };
225
225
  notification_sent: boolean;
@@ -229,10 +229,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
229
229
  messages: {
230
230
  message: string;
231
231
  field: string;
232
+ validation_id: string;
232
233
  file_name: string;
233
234
  rows: number[];
234
235
  severity: "error" | "warning" | "ignore" | "forbidden";
235
- validation_id: string;
236
236
  }[];
237
237
  total_errors: number;
238
238
  total_warnings: number;
@@ -242,7 +242,7 @@ export declare const GtfsValidationSchema: z.ZodObject<{
242
242
  created_at: number;
243
243
  updated_at: number;
244
244
  file_id: string;
245
- feeder_status: "error" | "waiting" | "processing" | "complete";
245
+ feeder_status: "waiting" | "processing" | "complete" | "error" | "skipped";
246
246
  gtfs_agency: {
247
247
  agency_id: string;
248
248
  agency_name: string;
@@ -271,10 +271,10 @@ export declare const GtfsValidationSchema: z.ZodObject<{
271
271
  messages: {
272
272
  message: string;
273
273
  field: string;
274
+ validation_id: string;
274
275
  file_name: string;
275
276
  rows: number[];
276
277
  severity: "error" | "warning" | "ignore" | "forbidden";
277
- validation_id: string;
278
278
  }[];
279
279
  total_errors: number;
280
280
  total_warnings: number;
@@ -282,12 +282,12 @@ export declare const GtfsValidationSchema: z.ZodObject<{
282
282
  }>;
283
283
  export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
284
284
  _id: z.ZodString;
285
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
285
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
286
286
  created_by: z.ZodOptional<z.ZodString>;
287
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
287
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
288
288
  updated_by: z.ZodOptional<z.ZodString>;
289
289
  } & {
290
- feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
290
+ feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
291
291
  file_id: z.ZodString;
292
292
  gtfs_agency: z.ZodObject<{
293
293
  agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -321,21 +321,21 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
321
321
  default_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
322
  feed_contact_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
323
  feed_contact_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
- feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>>;
324
+ feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
325
325
  feed_lang: z.ZodString;
326
326
  feed_publisher_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
327
  feed_publisher_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
- feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>>;
328
+ feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
329
329
  feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
330
  }, "strip", z.ZodTypeAny, {
331
331
  feed_lang: string;
332
332
  default_lang?: string | null | undefined;
333
333
  feed_contact_email?: string | null | undefined;
334
334
  feed_contact_url?: string | null | undefined;
335
- feed_end_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
335
+ feed_end_date?: import("../index.js").OperationalDate | null | undefined;
336
336
  feed_publisher_name?: string | null | undefined;
337
337
  feed_publisher_url?: string | null | undefined;
338
- feed_start_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
338
+ feed_start_date?: import("../index.js").OperationalDate | null | undefined;
339
339
  feed_version?: string | null | undefined;
340
340
  }, {
341
341
  feed_lang: string;
@@ -360,17 +360,17 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
360
360
  }, "strip", z.ZodTypeAny, {
361
361
  message: string;
362
362
  field: string;
363
+ validation_id: string;
363
364
  file_name: string;
364
365
  rows: number[];
365
366
  severity: "error" | "warning" | "ignore" | "forbidden";
366
- validation_id: string;
367
367
  }, {
368
368
  message: string;
369
369
  field: string;
370
+ validation_id: string;
370
371
  file_name: string;
371
372
  rows: number[];
372
373
  severity: "error" | "warning" | "ignore" | "forbidden";
373
- validation_id: string;
374
374
  }>, "many">;
375
375
  total_errors: z.ZodNumber;
376
376
  total_warnings: z.ZodNumber;
@@ -378,10 +378,10 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
378
378
  messages: {
379
379
  message: string;
380
380
  field: string;
381
+ validation_id: string;
381
382
  file_name: string;
382
383
  rows: number[];
383
384
  severity: "error" | "warning" | "ignore" | "forbidden";
384
- validation_id: string;
385
385
  }[];
386
386
  total_errors: number;
387
387
  total_warnings: number;
@@ -389,17 +389,17 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
389
389
  messages: {
390
390
  message: string;
391
391
  field: string;
392
+ validation_id: string;
392
393
  file_name: string;
393
394
  rows: number[];
394
395
  severity: "error" | "warning" | "ignore" | "forbidden";
395
- validation_id: string;
396
396
  }[];
397
397
  total_errors: number;
398
398
  total_warnings: number;
399
399
  }>>>;
400
400
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
401
401
  file_id: string;
402
- feeder_status: "error" | "waiting" | "processing" | "complete";
402
+ feeder_status: "waiting" | "processing" | "complete" | "error" | "skipped";
403
403
  gtfs_agency: {
404
404
  agency_id: string;
405
405
  agency_name: string;
@@ -415,10 +415,10 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
415
415
  default_lang?: string | null | undefined;
416
416
  feed_contact_email?: string | null | undefined;
417
417
  feed_contact_url?: string | null | undefined;
418
- feed_end_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
418
+ feed_end_date?: import("../index.js").OperationalDate | null | undefined;
419
419
  feed_publisher_name?: string | null | undefined;
420
420
  feed_publisher_url?: string | null | undefined;
421
- feed_start_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
421
+ feed_start_date?: import("../index.js").OperationalDate | null | undefined;
422
422
  feed_version?: string | null | undefined;
423
423
  };
424
424
  notification_sent: boolean;
@@ -428,17 +428,17 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
428
428
  messages: {
429
429
  message: string;
430
430
  field: string;
431
+ validation_id: string;
431
432
  file_name: string;
432
433
  rows: number[];
433
434
  severity: "error" | "warning" | "ignore" | "forbidden";
434
- validation_id: string;
435
435
  }[];
436
436
  total_errors: number;
437
437
  total_warnings: number;
438
438
  } | null | undefined;
439
439
  }, {
440
440
  file_id: string;
441
- feeder_status: "error" | "waiting" | "processing" | "complete";
441
+ feeder_status: "waiting" | "processing" | "complete" | "error" | "skipped";
442
442
  gtfs_agency: {
443
443
  agency_id: string;
444
444
  agency_name: string;
@@ -467,10 +467,10 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
467
467
  messages: {
468
468
  message: string;
469
469
  field: string;
470
+ validation_id: string;
470
471
  file_name: string;
471
472
  rows: number[];
472
473
  severity: "error" | "warning" | "ignore" | "forbidden";
473
- validation_id: string;
474
474
  }[];
475
475
  total_errors: number;
476
476
  total_warnings: number;
@@ -479,7 +479,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
479
479
  export declare const UpdateGtfsValidationSchema: z.ZodObject<{
480
480
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
481
481
  file_id: z.ZodOptional<z.ZodString>;
482
- feeder_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
482
+ feeder_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
483
483
  gtfs_agency: z.ZodOptional<z.ZodObject<{
484
484
  agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
485
485
  agency_fare_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -512,21 +512,21 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
512
512
  default_lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
513
513
  feed_contact_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
514
514
  feed_contact_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
515
- feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>>;
515
+ feed_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
516
516
  feed_lang: z.ZodString;
517
517
  feed_publisher_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
518
  feed_publisher_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
519
- feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>>;
519
+ feed_start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>>>;
520
520
  feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
521
  }, "strip", z.ZodTypeAny, {
522
522
  feed_lang: string;
523
523
  default_lang?: string | null | undefined;
524
524
  feed_contact_email?: string | null | undefined;
525
525
  feed_contact_url?: string | null | undefined;
526
- feed_end_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
526
+ feed_end_date?: import("../index.js").OperationalDate | null | undefined;
527
527
  feed_publisher_name?: string | null | undefined;
528
528
  feed_publisher_url?: string | null | undefined;
529
- feed_start_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
529
+ feed_start_date?: import("../index.js").OperationalDate | null | undefined;
530
530
  feed_version?: string | null | undefined;
531
531
  }, {
532
532
  feed_lang: string;
@@ -551,17 +551,17 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
551
551
  }, "strip", z.ZodTypeAny, {
552
552
  message: string;
553
553
  field: string;
554
+ validation_id: string;
554
555
  file_name: string;
555
556
  rows: number[];
556
557
  severity: "error" | "warning" | "ignore" | "forbidden";
557
- validation_id: string;
558
558
  }, {
559
559
  message: string;
560
560
  field: string;
561
+ validation_id: string;
561
562
  file_name: string;
562
563
  rows: number[];
563
564
  severity: "error" | "warning" | "ignore" | "forbidden";
564
- validation_id: string;
565
565
  }>, "many">;
566
566
  total_errors: z.ZodNumber;
567
567
  total_warnings: z.ZodNumber;
@@ -569,10 +569,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
569
569
  messages: {
570
570
  message: string;
571
571
  field: string;
572
+ validation_id: string;
572
573
  file_name: string;
573
574
  rows: number[];
574
575
  severity: "error" | "warning" | "ignore" | "forbidden";
575
- validation_id: string;
576
576
  }[];
577
577
  total_errors: number;
578
578
  total_warnings: number;
@@ -580,10 +580,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
580
580
  messages: {
581
581
  message: string;
582
582
  field: string;
583
+ validation_id: string;
583
584
  file_name: string;
584
585
  rows: number[];
585
586
  severity: "error" | "warning" | "ignore" | "forbidden";
586
- validation_id: string;
587
587
  }[];
588
588
  total_errors: number;
589
589
  total_warnings: number;
@@ -591,7 +591,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
591
591
  }, "strict", z.ZodTypeAny, {
592
592
  updated_by?: string | undefined;
593
593
  file_id?: string | undefined;
594
- feeder_status?: "error" | "waiting" | "processing" | "complete" | undefined;
594
+ feeder_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
595
595
  gtfs_agency?: {
596
596
  agency_id: string;
597
597
  agency_name: string;
@@ -607,10 +607,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
607
607
  default_lang?: string | null | undefined;
608
608
  feed_contact_email?: string | null | undefined;
609
609
  feed_contact_url?: string | null | undefined;
610
- feed_end_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
610
+ feed_end_date?: import("../index.js").OperationalDate | null | undefined;
611
611
  feed_publisher_name?: string | null | undefined;
612
612
  feed_publisher_url?: string | null | undefined;
613
- feed_start_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
613
+ feed_start_date?: import("../index.js").OperationalDate | null | undefined;
614
614
  feed_version?: string | null | undefined;
615
615
  } | undefined;
616
616
  notification_sent?: boolean | undefined;
@@ -618,10 +618,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
618
618
  messages: {
619
619
  message: string;
620
620
  field: string;
621
+ validation_id: string;
621
622
  file_name: string;
622
623
  rows: number[];
623
624
  severity: "error" | "warning" | "ignore" | "forbidden";
624
- validation_id: string;
625
625
  }[];
626
626
  total_errors: number;
627
627
  total_warnings: number;
@@ -629,7 +629,7 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
629
629
  }, {
630
630
  updated_by?: string | undefined;
631
631
  file_id?: string | undefined;
632
- feeder_status?: "error" | "waiting" | "processing" | "complete" | undefined;
632
+ feeder_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
633
633
  gtfs_agency?: {
634
634
  agency_id: string;
635
635
  agency_name: string;
@@ -656,10 +656,10 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
656
656
  messages: {
657
657
  message: string;
658
658
  field: string;
659
+ validation_id: string;
659
660
  file_name: string;
660
661
  rows: number[];
661
662
  severity: "error" | "warning" | "ignore" | "forbidden";
662
- validation_id: string;
663
663
  }[];
664
664
  total_errors: number;
665
665
  total_warnings: number;
@@ -668,11 +668,3 @@ export declare const UpdateGtfsValidationSchema: z.ZodObject<{
668
668
  export type GtfsValidation = z.infer<typeof GtfsValidationSchema>;
669
669
  export type CreateGtfsValidationDto = z.infer<typeof CreateGtfsValidationSchema>;
670
670
  export type UpdateGtfsValidationDto = z.infer<typeof UpdateGtfsValidationSchema>;
671
- export declare const GtfsValidationPermissionSchema: z.ZodObject<{
672
- agency_ids: z.ZodArray<z.ZodString, "many">;
673
- }, "strip", z.ZodTypeAny, {
674
- agency_ids: string[];
675
- }, {
676
- agency_ids: string[];
677
- }>;
678
- export type GtfsValidationPermission = z.infer<typeof GtfsValidationPermissionSchema>;
@@ -1,7 +1,8 @@
1
1
  /* * */
2
2
  import { DocumentSchema } from '../_common/document.js';
3
- import { GtfsAgencySchema, GtfsFeedInfoSchema } from '../gtfs.js';
4
- import { ProcessingStatusSchema } from '../system/processing-status.js';
3
+ import { ProcessingStatusSchema } from '../_common/status.js';
4
+ import { GtfsAgencySchema } from '../gtfs/agency.js';
5
+ import { GtfsFeedInfoSchema } from '../gtfs/feed-info.js';
5
6
  import { z } from 'zod';
6
7
  /* * */
7
8
  /* SUMMARY */
@@ -31,7 +32,3 @@ export const GtfsValidationSchema = DocumentSchema.extend({
31
32
  }).strict();
32
33
  export const CreateGtfsValidationSchema = GtfsValidationSchema.omit({ _id: true, created_at: true, updated_at: true });
33
34
  export const UpdateGtfsValidationSchema = CreateGtfsValidationSchema.omit({ created_by: true }).partial();
34
- /* * */
35
- export const GtfsValidationPermissionSchema = z.object({
36
- agency_ids: z.array(z.string()),
37
- });
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export declare const PlanAppStatusSchema: z.ZodDefault<z.ZodObject<{
3
+ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4
+ status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
5
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
8
+ last_hash: string | null;
9
+ timestamp: import("../_common/unix-timestamp.js").UnixTimestamp | null;
10
+ }, {
11
+ status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
12
+ last_hash?: string | null | undefined;
13
+ timestamp?: number | null | undefined;
14
+ }>>;
15
+ export type PlanAppStatus = z.infer<typeof PlanAppStatusSchema>;
@@ -0,0 +1,10 @@
1
+ /* * */
2
+ import { ProcessingStatusSchema } from '../_common/status.js';
3
+ import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
4
+ import { z } from 'zod';
5
+ /* * */
6
+ export const PlanAppStatusSchema = z.object({
7
+ last_hash: z.string().nullable().default(null),
8
+ status: ProcessingStatusSchema.default('waiting'),
9
+ timestamp: unixTimeStampSchema.nullable().default(null),
10
+ }).default({});