@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
@@ -1,7 +1,7 @@
1
1
  /* * */
2
2
  import { CommentSchema } from '../_common/comment.js';
3
3
  import { DocumentSchema } from '../_common/document.js';
4
- import { gtfsCauseSchema } from '../gtfs/cause-effetcs.js';
4
+ import { GtfsCauseSchema } from '../gtfs/cause.js';
5
5
  import { RideAnalysisSummarySchema } from './ride-analysis.js';
6
6
  import { z } from 'zod';
7
7
  /* * */
@@ -15,7 +15,7 @@ export const RideJustificationStatusTypeSchema = z.enum(RIDE_JUSTIFICATION_STATU
15
15
  export const RideJustificationSchema = DocumentSchema
16
16
  .omit({ _id: true, is_locked: true })
17
17
  .extend({
18
- justification_cause: gtfsCauseSchema,
18
+ justification_cause: GtfsCauseSchema,
19
19
  justification_source: RideJustificationSourceSchema,
20
20
  manual_trip_id: z.string().optional(),
21
21
  pto_message: z.string().min(2).max(5000).default(''),
@@ -2,14 +2,14 @@ import { z } from 'zod';
2
2
  export declare const RideAuditSchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
4
  created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
5
- created_by: z.ZodOptional<z.ZodString>;
5
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
6
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
7
7
  updated_by: z.ZodOptional<z.ZodString>;
8
8
  } & {
9
9
  comments: z.ZodArray<z.ZodObject<{
10
10
  _id: z.ZodOptional<z.ZodString>;
11
11
  created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
12
- created_by: z.ZodOptional<z.ZodString>;
12
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13
13
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
14
14
  updated_by: z.ZodOptional<z.ZodString>;
15
15
  message: z.ZodString;
@@ -18,13 +18,13 @@ export declare const RideAuditSchema: z.ZodObject<{
18
18
  created_at: number & {
19
19
  __brand: "UnixTimestamp";
20
20
  };
21
+ created_by: string | null;
21
22
  updated_at: number & {
22
23
  __brand: "UnixTimestamp";
23
24
  };
24
25
  message: string;
25
26
  type: "note";
26
27
  _id?: string | undefined;
27
- created_by?: string | undefined;
28
28
  updated_by?: string | undefined;
29
29
  }, {
30
30
  created_at: number;
@@ -32,7 +32,7 @@ export declare const RideAuditSchema: z.ZodObject<{
32
32
  message: string;
33
33
  type: "note";
34
34
  _id?: string | undefined;
35
- created_by?: string | undefined;
35
+ created_by?: string | null | undefined;
36
36
  updated_by?: string | undefined;
37
37
  }>, "many">;
38
38
  is_locked: z.ZodDefault<z.ZodBoolean>;
@@ -42,6 +42,7 @@ export declare const RideAuditSchema: z.ZodObject<{
42
42
  created_at: number & {
43
43
  __brand: "UnixTimestamp";
44
44
  };
45
+ created_by: string | null;
45
46
  is_locked: boolean;
46
47
  updated_at: number & {
47
48
  __brand: "UnixTimestamp";
@@ -50,17 +51,16 @@ export declare const RideAuditSchema: z.ZodObject<{
50
51
  created_at: number & {
51
52
  __brand: "UnixTimestamp";
52
53
  };
54
+ created_by: string | null;
53
55
  updated_at: number & {
54
56
  __brand: "UnixTimestamp";
55
57
  };
56
58
  message: string;
57
59
  type: "note";
58
60
  _id?: string | undefined;
59
- created_by?: string | undefined;
60
61
  updated_by?: string | undefined;
61
62
  }[];
62
63
  ride_id: string;
63
- created_by?: string | undefined;
64
64
  updated_by?: string | undefined;
65
65
  }, {
66
66
  _id: string;
@@ -72,25 +72,25 @@ export declare const RideAuditSchema: z.ZodObject<{
72
72
  message: string;
73
73
  type: "note";
74
74
  _id?: string | undefined;
75
- created_by?: string | undefined;
75
+ created_by?: string | null | undefined;
76
76
  updated_by?: string | undefined;
77
77
  }[];
78
78
  ride_id: string;
79
- created_by?: string | undefined;
79
+ created_by?: string | null | undefined;
80
80
  is_locked?: boolean | undefined;
81
81
  updated_by?: string | undefined;
82
82
  }>;
83
83
  export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
84
84
  _id: z.ZodOptional<z.ZodString>;
85
85
  created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
86
- created_by: z.ZodOptional<z.ZodString>;
86
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
87
87
  is_locked: z.ZodDefault<z.ZodBoolean>;
88
88
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
89
89
  updated_by: z.ZodOptional<z.ZodString>;
90
90
  comments: z.ZodArray<z.ZodObject<{
91
91
  _id: z.ZodOptional<z.ZodString>;
92
92
  created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
93
- created_by: z.ZodOptional<z.ZodString>;
93
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
94
94
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
95
95
  updated_by: z.ZodOptional<z.ZodString>;
96
96
  message: z.ZodString;
@@ -99,13 +99,13 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
99
99
  created_at: number & {
100
100
  __brand: "UnixTimestamp";
101
101
  };
102
+ created_by: string | null;
102
103
  updated_at: number & {
103
104
  __brand: "UnixTimestamp";
104
105
  };
105
106
  message: string;
106
107
  type: "note";
107
108
  _id?: string | undefined;
108
- created_by?: string | undefined;
109
109
  updated_by?: string | undefined;
110
110
  }, {
111
111
  created_at: number;
@@ -113,28 +113,28 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
113
113
  message: string;
114
114
  type: "note";
115
115
  _id?: string | undefined;
116
- created_by?: string | undefined;
116
+ created_by?: string | null | undefined;
117
117
  updated_by?: string | undefined;
118
118
  }>, "many">;
119
119
  ride_id: z.ZodString;
120
120
  }, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
121
+ created_by: string | null;
121
122
  is_locked: boolean;
122
123
  comments: {
123
124
  created_at: number & {
124
125
  __brand: "UnixTimestamp";
125
126
  };
127
+ created_by: string | null;
126
128
  updated_at: number & {
127
129
  __brand: "UnixTimestamp";
128
130
  };
129
131
  message: string;
130
132
  type: "note";
131
133
  _id?: string | undefined;
132
- created_by?: string | undefined;
133
134
  updated_by?: string | undefined;
134
135
  }[];
135
136
  ride_id: string;
136
137
  _id?: string | undefined;
137
- created_by?: string | undefined;
138
138
  updated_by?: string | undefined;
139
139
  }, {
140
140
  comments: {
@@ -143,12 +143,12 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
143
143
  message: string;
144
144
  type: "note";
145
145
  _id?: string | undefined;
146
- created_by?: string | undefined;
146
+ created_by?: string | null | undefined;
147
147
  updated_by?: string | undefined;
148
148
  }[];
149
149
  ride_id: string;
150
150
  _id?: string | undefined;
151
- created_by?: string | undefined;
151
+ created_by?: string | null | undefined;
152
152
  is_locked?: boolean | undefined;
153
153
  updated_by?: string | undefined;
154
154
  }>;
@@ -159,7 +159,7 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
159
159
  comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
160
  _id: z.ZodOptional<z.ZodString>;
161
161
  created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
162
- created_by: z.ZodOptional<z.ZodString>;
162
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
163
163
  updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
164
164
  updated_by: z.ZodOptional<z.ZodString>;
165
165
  message: z.ZodString;
@@ -168,13 +168,13 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
168
168
  created_at: number & {
169
169
  __brand: "UnixTimestamp";
170
170
  };
171
+ created_by: string | null;
171
172
  updated_at: number & {
172
173
  __brand: "UnixTimestamp";
173
174
  };
174
175
  message: string;
175
176
  type: "note";
176
177
  _id?: string | undefined;
177
- created_by?: string | undefined;
178
178
  updated_by?: string | undefined;
179
179
  }, {
180
180
  created_at: number;
@@ -182,7 +182,7 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
182
182
  message: string;
183
183
  type: "note";
184
184
  _id?: string | undefined;
185
- created_by?: string | undefined;
185
+ created_by?: string | null | undefined;
186
186
  updated_by?: string | undefined;
187
187
  }>, "many">>;
188
188
  ride_id: z.ZodOptional<z.ZodString>;
@@ -194,13 +194,13 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
194
194
  created_at: number & {
195
195
  __brand: "UnixTimestamp";
196
196
  };
197
+ created_by: string | null;
197
198
  updated_at: number & {
198
199
  __brand: "UnixTimestamp";
199
200
  };
200
201
  message: string;
201
202
  type: "note";
202
203
  _id?: string | undefined;
203
- created_by?: string | undefined;
204
204
  updated_by?: string | undefined;
205
205
  }[] | undefined;
206
206
  ride_id?: string | undefined;
@@ -214,7 +214,7 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
214
214
  message: string;
215
215
  type: "note";
216
216
  _id?: string | undefined;
217
- created_by?: string | undefined;
217
+ created_by?: string | null | undefined;
218
218
  updated_by?: string | undefined;
219
219
  }[] | undefined;
220
220
  ride_id?: string | undefined;