@tmlmobilidade/types 20260121.2332.6 → 20260128.2248.28

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 (150) hide show
  1. package/dist/_common/comment.d.ts +24 -24
  2. package/dist/_common/document.d.ts +3 -3
  3. package/dist/_common/document.js +1 -1
  4. package/dist/_common/status.d.ts +2 -2
  5. package/dist/_common/status.js +1 -1
  6. package/dist/_common/unix-timestamp.js +1 -0
  7. package/dist/agency.d.ts +6 -6
  8. package/dist/alerts/alert.d.ts +262 -0
  9. package/dist/alerts/alert.js +34 -0
  10. package/dist/alerts/cause-effect-map.d.ts +106 -0
  11. package/dist/alerts/cause-effect-map.js +94 -0
  12. package/dist/alerts/cause.d.ts +17 -0
  13. package/dist/alerts/cause.js +45 -0
  14. package/dist/alerts/effect.d.ts +17 -0
  15. package/dist/alerts/effect.js +35 -0
  16. package/dist/alerts/index.d.ts +6 -0
  17. package/dist/alerts/index.js +6 -0
  18. package/dist/alerts/query.d.ts +9 -0
  19. package/dist/alerts/query.js +6 -0
  20. package/dist/alerts/reference-type.d.ts +4 -0
  21. package/dist/alerts/reference-type.js +10 -0
  22. package/dist/apex/simplified-apex-location.d.ts +2 -12
  23. package/dist/apex/simplified-apex-location.js +1 -1
  24. package/dist/apex/simplified-apex-on-board-refund.d.ts +2 -12
  25. package/dist/apex/simplified-apex-on-board-refund.js +1 -1
  26. package/dist/apex/simplified-apex-on-board-sale.d.ts +12 -19
  27. package/dist/apex/simplified-apex-on-board-sale.js +2 -2
  28. package/dist/apex/simplified-apex-validation.d.ts +6 -16
  29. package/dist/apex/simplified-apex-validation.js +1 -1
  30. package/dist/auth/role.d.ts +718 -130
  31. package/dist/auth/session.d.ts +6 -6
  32. package/dist/auth/user.d.ts +1182 -270
  33. package/dist/auth/verification-token.d.ts +4 -4
  34. package/dist/calendar/event.d.ts +43 -0
  35. package/dist/calendar/event.js +16 -0
  36. package/dist/calendar/index.d.ts +1 -0
  37. package/dist/calendar/index.js +2 -0
  38. package/dist/dates/annotation.d.ts +6 -6
  39. package/dist/dates/date.d.ts +32 -0
  40. package/dist/dates/date.js +18 -0
  41. package/dist/dates/index.d.ts +2 -0
  42. package/dist/dates/index.js +2 -0
  43. package/dist/dates/period.d.ts +94 -0
  44. package/dist/dates/period.js +14 -0
  45. package/dist/file-exports/base.d.ts +9 -9
  46. package/dist/file-exports/file-exports.d.ts +7 -7
  47. package/dist/file-exports/ride-export.d.ts +14 -14
  48. package/dist/file-exports/ride-export.js +2 -2
  49. package/dist/gtfs/cause.d.ts +10 -0
  50. package/dist/gtfs/cause.js +18 -0
  51. package/dist/gtfs/effect.d.ts +10 -0
  52. package/dist/gtfs/effect.js +17 -0
  53. package/dist/gtfs/index.d.ts +2 -1
  54. package/dist/gtfs/index.js +2 -1
  55. package/dist/index.d.ts +5 -2
  56. package/dist/index.js +5 -2
  57. package/dist/locations/queries.d.ts +2 -2
  58. package/dist/metrics/demand/demand_by_agency.d.ts +8 -8
  59. package/dist/metrics/demand/demand_by_category.d.ts +12 -12
  60. package/dist/metrics/demand/demand_by_line.d.ts +4 -4
  61. package/dist/metrics/demand/demand_by_pattern.d.ts +8 -8
  62. package/dist/metrics/demand/demand_by_product.d.ts +12 -12
  63. package/dist/metrics/index.d.ts +93 -48
  64. package/dist/metrics/index.js +4 -1
  65. package/dist/metrics/passenger-impact/index.d.ts +1 -0
  66. package/dist/metrics/passenger-impact/index.js +1 -0
  67. package/dist/metrics/passenger-impact/passenger-impact.d.ts +97 -0
  68. package/dist/metrics/passenger-impact/passenger-impact.js +22 -0
  69. package/dist/metrics/supply/supply_by_agency.d.ts +4 -4
  70. package/dist/notification.d.ts +18 -18
  71. package/dist/offer/index.d.ts +5 -0
  72. package/dist/offer/index.js +5 -0
  73. package/dist/offer/line.d.ts +296 -0
  74. package/dist/offer/line.js +60 -0
  75. package/dist/offer/pattern.d.ts +3608 -0
  76. package/dist/offer/pattern.js +75 -0
  77. package/dist/offer/route.d.ts +187 -0
  78. package/dist/offer/route.js +33 -0
  79. package/dist/offer/scheduleRule.d.ts +80 -0
  80. package/dist/offer/scheduleRule.js +50 -0
  81. package/dist/offer/typology.d.ts +124 -0
  82. package/dist/offer/typology.js +30 -0
  83. package/dist/organization.d.ts +20 -20
  84. package/dist/permissions/alerts.d.ts +13 -19
  85. package/dist/permissions/alerts.js +8 -13
  86. package/dist/permissions/annotations.d.ts +25 -0
  87. package/dist/permissions/annotations.js +16 -0
  88. package/dist/permissions/fares.d.ts +25 -0
  89. package/dist/permissions/fares.js +16 -0
  90. package/dist/permissions/index.d.ts +196 -21
  91. package/dist/permissions/index.js +142 -6
  92. package/dist/permissions/lines.d.ts +25 -0
  93. package/dist/permissions/lines.js +16 -0
  94. package/dist/permissions/periods.d.ts +25 -0
  95. package/dist/permissions/periods.js +16 -0
  96. package/dist/permissions/typologies.d.ts +25 -0
  97. package/dist/permissions/typologies.js +16 -0
  98. package/dist/permissions/vehicles.d.ts +25 -0
  99. package/dist/permissions/vehicles.js +16 -0
  100. package/dist/permissions/zones.d.ts +25 -0
  101. package/dist/permissions/zones.js +16 -0
  102. package/dist/plans/gtfs-validation.d.ts +30 -30
  103. package/dist/plans/plan.d.ts +6 -6
  104. package/dist/proposed-change.d.ts +12 -12
  105. package/dist/rides/batch-query.d.ts +52 -0
  106. package/dist/rides/batch-query.js +54 -0
  107. package/dist/rides/index.d.ts +1 -0
  108. package/dist/rides/index.js +1 -0
  109. package/dist/rides/ride-acceptance.d.ts +105 -105
  110. package/dist/rides/ride-acceptance.js +2 -2
  111. package/dist/rides/ride-audit.d.ts +21 -21
  112. package/dist/rides/ride-normalized.d.ts +808 -21
  113. package/dist/rides/ride-normalized.js +31 -1
  114. package/dist/rides/ride.d.ts +6 -6
  115. package/dist/sams/sam.d.ts +0 -15
  116. package/dist/sams/sam.js +2 -2
  117. package/dist/stops/connections.d.ts +1 -0
  118. package/dist/stops/connections.js +1 -1
  119. package/dist/stops/equipment.d.ts +1 -0
  120. package/dist/stops/equipment.js +1 -1
  121. package/dist/stops/parent-station.d.ts +6 -6
  122. package/dist/stops/stop-area.d.ts +6 -6
  123. package/dist/stops/stop.d.ts +69 -69
  124. package/dist/ticketing/fare.d.ts +137 -0
  125. package/dist/ticketing/fare.js +44 -0
  126. package/dist/ticketing/index.d.ts +2 -0
  127. package/dist/ticketing/index.js +2 -0
  128. package/dist/ticketing/zone.d.ts +220 -0
  129. package/dist/ticketing/zone.js +34 -0
  130. package/dist/vehicle/emission.d.ts +3 -0
  131. package/dist/vehicle/emission.js +12 -0
  132. package/dist/vehicle/index.d.ts +4 -0
  133. package/dist/vehicle/index.js +4 -0
  134. package/dist/vehicle/propulsion.d.ts +3 -0
  135. package/dist/vehicle/propulsion.js +14 -0
  136. package/dist/vehicle/vehicle.d.ts +189 -0
  137. package/dist/vehicle/vehicle.js +27 -0
  138. package/dist/vehicle/wheelchair.d.ts +3 -0
  139. package/dist/vehicle/wheelchair.js +10 -0
  140. package/dist/vehicle-events/clickhouse-vehicle-event.d.ts +2 -6
  141. package/dist/vehicle-events/simplified-vehicle-event.d.ts +2 -6
  142. package/dist/vehicle-events/simplified-vehicle-event.js +1 -1
  143. package/dist/zone.d.ts +6 -6
  144. package/package.json +2 -2
  145. package/dist/alert.d.ts +0 -265
  146. package/dist/alert.js +0 -42
  147. package/dist/gtfs/cause-effetcs.d.ts +0 -86
  148. package/dist/gtfs/cause-effetcs.js +0 -31
  149. package/dist/permissions/dates.d.ts +0 -25
  150. package/dist/permissions/dates.js +0 -16
@@ -146,11 +146,11 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
146
146
  export declare const SimplifiedApexValidationSchema: z.ZodObject<Omit<{
147
147
  _id: z.ZodString;
148
148
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
149
- created_by: z.ZodOptional<z.ZodString>;
149
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
150
150
  is_locked: z.ZodDefault<z.ZodBoolean>;
151
151
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
152
152
  updated_by: z.ZodOptional<z.ZodString>;
153
- }, "is_locked"> & {
153
+ }, "created_by" | "is_locked" | "updated_by"> & {
154
154
  agency_id: z.ZodString;
155
155
  apex_version: z.ZodString;
156
156
  card_serial_number: z.ZodString;
@@ -271,9 +271,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<Omit<{
271
271
  event_type: number;
272
272
  product_id: string;
273
273
  units_qty: number | null;
274
- validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13;
275
- created_by?: string | undefined;
276
- updated_by?: string | undefined;
274
+ validation_status: 0 | 1 | 2 | 12 | 3 | 5 | 4 | 6 | 11 | 9 | 7 | 8 | 10 | 13;
277
275
  }, {
278
276
  _id: string;
279
277
  created_at: number;
@@ -297,16 +295,12 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<Omit<{
297
295
  event_type: number;
298
296
  product_id: string;
299
297
  units_qty: number | null;
300
- validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13;
301
- created_by?: string | undefined;
302
- updated_by?: string | undefined;
298
+ validation_status: 0 | 1 | 2 | 12 | 3 | 5 | 4 | 6 | 11 | 9 | 7 | 8 | 10 | 13;
303
299
  }>;
304
300
  export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
305
301
  _id: z.ZodOptional<z.ZodString>;
306
302
  created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
307
- created_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
308
303
  updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
309
- updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
310
304
  agency_id: z.ZodOptional<z.ZodString>;
311
305
  apex_version: z.ZodOptional<z.ZodString>;
312
306
  card_serial_number: z.ZodOptional<z.ZodString>;
@@ -401,9 +395,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
401
395
  }, "strip", z.ZodTypeAny, {
402
396
  _id?: string | undefined;
403
397
  created_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
404
- created_by?: string | undefined;
405
398
  updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
406
- updated_by?: string | undefined;
407
399
  agency_id?: string | undefined;
408
400
  apex_version?: string | undefined;
409
401
  device_id?: string | undefined;
@@ -423,13 +415,11 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
423
415
  event_type?: number | undefined;
424
416
  product_id?: string | undefined;
425
417
  units_qty?: number | null | undefined;
426
- validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13 | undefined;
418
+ validation_status?: 0 | 1 | 2 | 12 | 3 | 5 | 4 | 6 | 11 | 9 | 7 | 8 | 10 | 13 | undefined;
427
419
  }, {
428
420
  _id?: string | undefined;
429
421
  created_at?: number | undefined;
430
- created_by?: string | undefined;
431
422
  updated_at?: number | undefined;
432
- updated_by?: string | undefined;
433
423
  agency_id?: string | undefined;
434
424
  apex_version?: string | undefined;
435
425
  device_id?: string | undefined;
@@ -449,7 +439,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
449
439
  event_type?: number | undefined;
450
440
  product_id?: string | undefined;
451
441
  units_qty?: number | null | undefined;
452
- validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13 | undefined;
442
+ validation_status?: 0 | 1 | 2 | 12 | 3 | 5 | 4 | 6 | 11 | 9 | 7 | 8 | 10 | 13 | undefined;
453
443
  }>;
454
444
  /**
455
445
  * APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator
@@ -78,7 +78,7 @@ export const ApexValidationStatus = {
78
78
  export const ApexValidationStatusSchema = z.nativeEnum(ApexValidationStatus);
79
79
  /* * */
80
80
  export const SimplifiedApexValidationSchema = DocumentSchema
81
- .omit({ is_locked: true })
81
+ .omit({ created_by: true, is_locked: true, updated_by: true })
82
82
  .extend({
83
83
  agency_id: z.string(),
84
84
  apex_version: z.string(),