@tmlmobilidade/types 20251031.1051.3 → 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 -470
  137. package/dist/src/file-exports/ride-export.js +0 -128
  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
@@ -1,19 +0,0 @@
1
- import { DemandByAgencyByDaySchema, DemandByAgencyByMonthSchema, DemandByAgencyByYearSchema, DemandByLineByDaySchema, DemandByLineByMonthSchema, DemandByLineByYearSchema, DemandByPatternByDaySchema, DemandByPatternByMonthSchema, DemandByPatternByYearSchema, DemandByPatternHourByMonthSchema, DemandByPatternHourByYearSchema, MeanDemandByLineByMonthSchema, TopDemandByAgencySchema, TopMeanDemandByLineByMonthSchema } from './demand.js';
2
- import { z } from 'zod';
3
- /* * */
4
- export const MetricSchema = z.discriminatedUnion('metric', [
5
- DemandByLineByYearSchema,
6
- DemandByLineByMonthSchema,
7
- DemandByLineByDaySchema,
8
- DemandByPatternByYearSchema,
9
- DemandByPatternByMonthSchema,
10
- DemandByPatternByDaySchema,
11
- DemandByPatternHourByYearSchema,
12
- DemandByPatternHourByMonthSchema,
13
- DemandByAgencyByYearSchema,
14
- DemandByAgencyByMonthSchema,
15
- DemandByAgencyByDaySchema,
16
- TopDemandByAgencySchema,
17
- MeanDemandByLineByMonthSchema,
18
- TopMeanDemandByLineByMonthSchema,
19
- ]);
@@ -1,15 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const PlanControllerSchema: z.ZodObject<{
3
- last_hash: z.ZodNullable<z.ZodString>;
4
- status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
5
- timestamp: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
6
- }, "strict", z.ZodTypeAny, {
7
- status: "error" | "waiting" | "processing" | "complete";
8
- last_hash: string | null;
9
- timestamp: import("../_common/unix-timestamp.js").UnixTimestamp | null;
10
- }, {
11
- last_hash: string | null;
12
- timestamp: number | null;
13
- status?: "error" | "waiting" | "processing" | "complete" | undefined;
14
- }>;
15
- export type PlanController = z.infer<typeof PlanControllerSchema>;
@@ -1,10 +0,0 @@
1
- /* * */
2
- import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
3
- import { ProcessingStatusSchema } from '../system/processing-status.js';
4
- import { z } from 'zod';
5
- /* * */
6
- export const PlanControllerSchema = z.object({
7
- last_hash: z.string().nullable(),
8
- status: ProcessingStatusSchema.default('waiting'),
9
- timestamp: unixTimeStampSchema.nullable(),
10
- }).strict();
@@ -1,2 +0,0 @@
1
- export * from './environment.js';
2
- export * from './processing-status.js';
@@ -1,2 +0,0 @@
1
- export * from './environment.js';
2
- export * from './processing-status.js';
@@ -1,9 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const PROCESSING_STATUS_OPTIONS: readonly ["waiting", "processing", "complete", "error"];
3
- export declare const ProcessingStatusSchema: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
4
- /**
5
- * This type should be used to represent the processing status
6
- * of various operations. It can be used in APIs, database operations,
7
- * or any other context where a processing status needs to be communicated.
8
- */
9
- export type ProcessingStatus = z.infer<typeof ProcessingStatusSchema>;
@@ -1,5 +0,0 @@
1
- /* * */
2
- import { z } from 'zod';
3
- /* * */
4
- export const PROCESSING_STATUS_OPTIONS = ['waiting', 'processing', 'complete', 'error'];
5
- export const ProcessingStatusSchema = z.enum(PROCESSING_STATUS_OPTIONS);
@@ -39,9 +39,9 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
39
39
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
40
40
  updated_by: z.ZodOptional<z.ZodString>;
41
41
  type: z.ZodLiteral<"field_changed">;
42
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
43
  curr_value: z.ZodAny;
43
44
  field: z.ZodString;
44
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
45
45
  prev_value: z.ZodAny;
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  created_at: number & {
@@ -55,8 +55,8 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
55
55
  _id?: string | undefined;
56
56
  created_by?: string | undefined;
57
57
  updated_by?: string | undefined;
58
- curr_value?: any;
59
58
  metadata?: Record<string, unknown> | null | undefined;
59
+ curr_value?: any;
60
60
  prev_value?: any;
61
61
  }, {
62
62
  created_at: number;
@@ -66,8 +66,8 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
66
66
  _id?: string | undefined;
67
67
  created_by?: string | undefined;
68
68
  updated_by?: string | undefined;
69
- curr_value?: any;
70
69
  metadata?: Record<string, unknown> | null | undefined;
70
+ curr_value?: any;
71
71
  prev_value?: any;
72
72
  }>;
73
73
  export declare const CrudCommentSchema: z.ZodObject<{
@@ -134,9 +134,9 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
134
134
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
135
135
  updated_by: z.ZodOptional<z.ZodString>;
136
136
  type: z.ZodLiteral<"field_changed">;
137
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
137
138
  curr_value: z.ZodAny;
138
139
  field: z.ZodString;
139
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
140
140
  prev_value: z.ZodAny;
141
141
  }, "strip", z.ZodTypeAny, {
142
142
  created_at: number & {
@@ -150,8 +150,8 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
150
150
  _id?: string | undefined;
151
151
  created_by?: string | undefined;
152
152
  updated_by?: string | undefined;
153
- curr_value?: any;
154
153
  metadata?: Record<string, unknown> | null | undefined;
154
+ curr_value?: any;
155
155
  prev_value?: any;
156
156
  }, {
157
157
  created_at: number;
@@ -161,8 +161,8 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
161
161
  _id?: string | undefined;
162
162
  created_by?: string | undefined;
163
163
  updated_by?: string | undefined;
164
- curr_value?: any;
165
164
  metadata?: Record<string, unknown> | null | undefined;
165
+ curr_value?: any;
166
166
  prev_value?: any;
167
167
  }>, z.ZodObject<{
168
168
  _id: z.ZodOptional<z.ZodString>;
@@ -216,8 +216,8 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
216
216
  _id?: string | undefined;
217
217
  created_by?: string | undefined;
218
218
  updated_by?: string | undefined;
219
- curr_value?: any;
220
219
  metadata?: Record<string, unknown> | null | undefined;
220
+ curr_value?: any;
221
221
  prev_value?: any;
222
222
  } | {
223
223
  created_at: number & {
@@ -247,8 +247,8 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
247
247
  _id?: string | undefined;
248
248
  created_by?: string | undefined;
249
249
  updated_by?: string | undefined;
250
- curr_value?: any;
251
250
  metadata?: Record<string, unknown> | null | undefined;
251
+ curr_value?: any;
252
252
  prev_value?: any;
253
253
  } | {
254
254
  created_at: number;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -26,18 +26,18 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
26
26
  __brand: "UnixTimestamp";
27
27
  };
28
28
  agency_id: string;
29
- line_id: string;
30
- pattern_id: string;
31
- trip_id: string;
32
29
  apex_version: string;
33
30
  device_id: string;
34
- vehicle_id: number;
31
+ line_id: string;
35
32
  mac_ase_counter_value: number;
36
33
  mac_sam_serial_number: number;
34
+ pattern_id: string;
37
35
  received_at: number & {
38
36
  __brand: "UnixTimestamp";
39
37
  };
40
38
  stop_id: string;
39
+ trip_id: string;
40
+ vehicle_id: number;
41
41
  created_by?: string | undefined;
42
42
  updated_by?: string | undefined;
43
43
  }, {
@@ -45,16 +45,16 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
45
45
  created_at: number;
46
46
  updated_at: number;
47
47
  agency_id: string;
48
- line_id: string;
49
- pattern_id: string;
50
- trip_id: string;
51
48
  apex_version: string;
52
49
  device_id: string;
53
- vehicle_id: number;
50
+ line_id: string;
54
51
  mac_ase_counter_value: number;
55
52
  mac_sam_serial_number: number;
53
+ pattern_id: string;
56
54
  received_at: number;
57
55
  stop_id: string;
56
+ trip_id: string;
57
+ vehicle_id: number;
58
58
  created_by?: string | undefined;
59
59
  updated_by?: string | undefined;
60
60
  }>;
@@ -82,16 +82,16 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
82
82
  updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
83
83
  updated_by?: string | undefined;
84
84
  agency_id?: string | undefined;
85
- line_id?: string | undefined;
86
- pattern_id?: string | undefined;
87
- trip_id?: string | undefined;
88
85
  apex_version?: string | undefined;
89
86
  device_id?: string | undefined;
90
- vehicle_id?: number | undefined;
87
+ line_id?: string | undefined;
91
88
  mac_ase_counter_value?: number | undefined;
92
89
  mac_sam_serial_number?: number | undefined;
90
+ pattern_id?: string | undefined;
93
91
  received_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
94
92
  stop_id?: string | undefined;
93
+ trip_id?: string | undefined;
94
+ vehicle_id?: number | undefined;
95
95
  }, {
96
96
  _id?: string | undefined;
97
97
  created_at?: number | undefined;
@@ -99,16 +99,16 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
99
99
  updated_at?: number | undefined;
100
100
  updated_by?: string | undefined;
101
101
  agency_id?: string | undefined;
102
- line_id?: string | undefined;
103
- pattern_id?: string | undefined;
104
- trip_id?: string | undefined;
105
102
  apex_version?: string | undefined;
106
103
  device_id?: string | undefined;
107
- vehicle_id?: number | undefined;
104
+ line_id?: string | undefined;
108
105
  mac_ase_counter_value?: number | undefined;
109
106
  mac_sam_serial_number?: number | undefined;
107
+ pattern_id?: string | undefined;
110
108
  received_at?: number | undefined;
111
109
  stop_id?: string | undefined;
110
+ trip_id?: string | undefined;
111
+ vehicle_id?: number | undefined;
112
112
  }>;
113
113
  /**
114
114
  * APEX Locations are APEX transactions of type 19 that are generated every time the
@@ -36,19 +36,18 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
36
36
  __brand: "UnixTimestamp";
37
37
  };
38
38
  agency_id: string;
39
- line_id: string | null;
40
- pattern_id: string | null;
41
- trip_id: string | null;
42
- validation_id: string | null;
43
39
  apex_version: string;
44
40
  device_id: string;
45
- vehicle_id: number | null;
41
+ line_id: string | null;
46
42
  mac_ase_counter_value: number;
47
43
  mac_sam_serial_number: number;
44
+ pattern_id: string | null;
48
45
  received_at: number & {
49
46
  __brand: "UnixTimestamp";
50
47
  };
51
48
  stop_id: string | null;
49
+ trip_id: string | null;
50
+ vehicle_id: number | null;
52
51
  block_id: string | null;
53
52
  card_physical_type: number;
54
53
  card_serial_number: string;
@@ -58,6 +57,7 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
58
57
  price: number;
59
58
  product_long_id: string;
60
59
  product_quantity: number;
60
+ validation_id: string | null;
61
61
  created_by?: string | undefined;
62
62
  updated_by?: string | undefined;
63
63
  }, {
@@ -65,17 +65,16 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
65
65
  created_at: number;
66
66
  updated_at: number;
67
67
  agency_id: string;
68
- line_id: string | null;
69
- pattern_id: string | null;
70
- trip_id: string | null;
71
- validation_id: string | null;
72
68
  apex_version: string;
73
69
  device_id: string;
74
- vehicle_id: number | null;
70
+ line_id: string | null;
75
71
  mac_ase_counter_value: number;
76
72
  mac_sam_serial_number: number;
73
+ pattern_id: string | null;
77
74
  received_at: number;
78
75
  stop_id: string | null;
76
+ trip_id: string | null;
77
+ vehicle_id: number | null;
79
78
  block_id: string | null;
80
79
  card_physical_type: number;
81
80
  card_serial_number: string;
@@ -85,6 +84,7 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
85
84
  price: number;
86
85
  product_long_id: string;
87
86
  product_quantity: number;
87
+ validation_id: string | null;
88
88
  created_by?: string | undefined;
89
89
  updated_by?: string | undefined;
90
90
  }>;
@@ -122,17 +122,16 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
122
122
  updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
123
123
  updated_by?: string | undefined;
124
124
  agency_id?: string | undefined;
125
- line_id?: string | null | undefined;
126
- pattern_id?: string | null | undefined;
127
- trip_id?: string | null | undefined;
128
- validation_id?: string | null | undefined;
129
125
  apex_version?: string | undefined;
130
126
  device_id?: string | undefined;
131
- vehicle_id?: number | null | undefined;
127
+ line_id?: string | null | undefined;
132
128
  mac_ase_counter_value?: number | undefined;
133
129
  mac_sam_serial_number?: number | undefined;
130
+ pattern_id?: string | null | undefined;
134
131
  received_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
135
132
  stop_id?: string | null | undefined;
133
+ trip_id?: string | null | undefined;
134
+ vehicle_id?: number | null | undefined;
136
135
  block_id?: string | null | undefined;
137
136
  card_physical_type?: number | undefined;
138
137
  card_serial_number?: string | undefined;
@@ -142,6 +141,7 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
142
141
  price?: number | undefined;
143
142
  product_long_id?: string | undefined;
144
143
  product_quantity?: number | undefined;
144
+ validation_id?: string | null | undefined;
145
145
  }, {
146
146
  _id?: string | undefined;
147
147
  created_at?: number | undefined;
@@ -149,17 +149,16 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
149
149
  updated_at?: number | undefined;
150
150
  updated_by?: string | undefined;
151
151
  agency_id?: string | undefined;
152
- line_id?: string | null | undefined;
153
- pattern_id?: string | null | undefined;
154
- trip_id?: string | null | undefined;
155
- validation_id?: string | null | undefined;
156
152
  apex_version?: string | undefined;
157
153
  device_id?: string | undefined;
158
- vehicle_id?: number | null | undefined;
154
+ line_id?: string | null | undefined;
159
155
  mac_ase_counter_value?: number | undefined;
160
156
  mac_sam_serial_number?: number | undefined;
157
+ pattern_id?: string | null | undefined;
161
158
  received_at?: number | undefined;
162
159
  stop_id?: string | null | undefined;
160
+ trip_id?: string | null | undefined;
161
+ vehicle_id?: number | null | undefined;
163
162
  block_id?: string | null | undefined;
164
163
  card_physical_type?: number | undefined;
165
164
  card_serial_number?: string | undefined;
@@ -169,6 +168,7 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
169
168
  price?: number | undefined;
170
169
  product_long_id?: string | undefined;
171
170
  product_quantity?: number | undefined;
171
+ validation_id?: string | null | undefined;
172
172
  }>;
173
173
  /**
174
174
  * APEX OnBoard Refunds are APEX transactions of type 3 that are generated whenever a sale
@@ -37,19 +37,18 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
37
37
  __brand: "UnixTimestamp";
38
38
  };
39
39
  agency_id: string;
40
- line_id: string | null;
41
- pattern_id: string | null;
42
- trip_id: string | null;
43
- validation_id: string | null;
44
40
  apex_version: string;
45
41
  device_id: string;
46
- vehicle_id: number | null;
42
+ line_id: string | null;
47
43
  mac_ase_counter_value: number;
48
44
  mac_sam_serial_number: number;
45
+ pattern_id: string | null;
49
46
  received_at: number & {
50
47
  __brand: "UnixTimestamp";
51
48
  };
52
49
  stop_id: string | null;
50
+ trip_id: string | null;
51
+ vehicle_id: number | null;
53
52
  block_id: string | null;
54
53
  card_physical_type: number;
55
54
  card_serial_number: string;
@@ -58,6 +57,7 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
58
57
  price: number;
59
58
  product_long_id: string;
60
59
  product_quantity: number;
60
+ validation_id: string | null;
61
61
  is_passenger: boolean;
62
62
  on_board_refund_id: string | null;
63
63
  created_by?: string | undefined;
@@ -67,17 +67,16 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
67
67
  created_at: number;
68
68
  updated_at: number;
69
69
  agency_id: string;
70
- line_id: string | null;
71
- pattern_id: string | null;
72
- trip_id: string | null;
73
- validation_id: string | null;
74
70
  apex_version: string;
75
71
  device_id: string;
76
- vehicle_id: number | null;
72
+ line_id: string | null;
77
73
  mac_ase_counter_value: number;
78
74
  mac_sam_serial_number: number;
75
+ pattern_id: string | null;
79
76
  received_at: number;
80
77
  stop_id: string | null;
78
+ trip_id: string | null;
79
+ vehicle_id: number | null;
81
80
  block_id: string | null;
82
81
  card_physical_type: number;
83
82
  card_serial_number: string;
@@ -86,6 +85,7 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
86
85
  price: number;
87
86
  product_long_id: string;
88
87
  product_quantity: number;
88
+ validation_id: string | null;
89
89
  is_passenger: boolean;
90
90
  on_board_refund_id: string | null;
91
91
  created_by?: string | undefined;
@@ -97,17 +97,16 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
97
97
  updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
98
98
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
99
99
  agency_id: z.ZodOptional<z.ZodString>;
100
- line_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
- pattern_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
- trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
- validation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
100
  apex_version: z.ZodOptional<z.ZodString>;
105
101
  device_id: z.ZodOptional<z.ZodString>;
106
- vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
102
+ line_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
103
  mac_ase_counter_value: z.ZodOptional<z.ZodNumber>;
108
104
  mac_sam_serial_number: z.ZodOptional<z.ZodNumber>;
105
+ pattern_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
106
  received_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
110
107
  stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
111
110
  block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
111
  card_physical_type: z.ZodOptional<z.ZodNumber>;
113
112
  card_serial_number: z.ZodOptional<z.ZodString>;
@@ -116,6 +115,7 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
116
115
  price: z.ZodOptional<z.ZodNumber>;
117
116
  product_long_id: z.ZodOptional<z.ZodString>;
118
117
  product_quantity: z.ZodOptional<z.ZodNumber>;
118
+ validation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
119
  is_passenger: z.ZodOptional<z.ZodBoolean>;
120
120
  on_board_refund_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
121
  }, "strict", z.ZodTypeAny, {
@@ -124,17 +124,16 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
124
124
  updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
125
125
  updated_by?: string | undefined;
126
126
  agency_id?: string | undefined;
127
- line_id?: string | null | undefined;
128
- pattern_id?: string | null | undefined;
129
- trip_id?: string | null | undefined;
130
- validation_id?: string | null | undefined;
131
127
  apex_version?: string | undefined;
132
128
  device_id?: string | undefined;
133
- vehicle_id?: number | null | undefined;
129
+ line_id?: string | null | undefined;
134
130
  mac_ase_counter_value?: number | undefined;
135
131
  mac_sam_serial_number?: number | undefined;
132
+ pattern_id?: string | null | undefined;
136
133
  received_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
137
134
  stop_id?: string | null | undefined;
135
+ trip_id?: string | null | undefined;
136
+ vehicle_id?: number | null | undefined;
138
137
  block_id?: string | null | undefined;
139
138
  card_physical_type?: number | undefined;
140
139
  card_serial_number?: string | undefined;
@@ -143,6 +142,7 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
143
142
  price?: number | undefined;
144
143
  product_long_id?: string | undefined;
145
144
  product_quantity?: number | undefined;
145
+ validation_id?: string | null | undefined;
146
146
  is_passenger?: boolean | undefined;
147
147
  on_board_refund_id?: string | null | undefined;
148
148
  }, {
@@ -151,17 +151,16 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
151
151
  updated_at?: number | undefined;
152
152
  updated_by?: string | undefined;
153
153
  agency_id?: string | undefined;
154
- line_id?: string | null | undefined;
155
- pattern_id?: string | null | undefined;
156
- trip_id?: string | null | undefined;
157
- validation_id?: string | null | undefined;
158
154
  apex_version?: string | undefined;
159
155
  device_id?: string | undefined;
160
- vehicle_id?: number | null | undefined;
156
+ line_id?: string | null | undefined;
161
157
  mac_ase_counter_value?: number | undefined;
162
158
  mac_sam_serial_number?: number | undefined;
159
+ pattern_id?: string | null | undefined;
163
160
  received_at?: number | undefined;
164
161
  stop_id?: string | null | undefined;
162
+ trip_id?: string | null | undefined;
163
+ vehicle_id?: number | null | undefined;
165
164
  block_id?: string | null | undefined;
166
165
  card_physical_type?: number | undefined;
167
166
  card_serial_number?: string | undefined;
@@ -170,6 +169,7 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
170
169
  price?: number | undefined;
171
170
  product_long_id?: string | undefined;
172
171
  product_quantity?: number | undefined;
172
+ validation_id?: string | null | undefined;
173
173
  is_passenger?: boolean | undefined;
174
174
  on_board_refund_id?: string | null | undefined;
175
175
  }>;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes