@tmlmobilidade/types 20260302.1453.8 → 20260305.1602.46

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 (151) hide show
  1. package/dist/_common/comment.d.ts +111 -13
  2. package/dist/_common/comment.js +41 -13
  3. package/dist/_common/status.d.ts +3 -0
  4. package/dist/_common/status.js +4 -0
  5. package/dist/alerts/cause-effect-map.d.ts +4 -0
  6. package/dist/alerts/cause-effect-map.js +4 -0
  7. package/dist/alerts/cause.d.ts +1 -1
  8. package/dist/alerts/cause.js +1 -1
  9. package/dist/alerts/effect.d.ts +1 -1
  10. package/dist/alerts/effect.js +1 -1
  11. package/dist/auth/index.d.ts +1 -0
  12. package/dist/auth/index.js +1 -0
  13. package/dist/auth/role.d.ts +297 -93
  14. package/dist/auth/simplified-user.d.ts +421 -0
  15. package/dist/auth/simplified-user.js +15 -0
  16. package/dist/auth/user.d.ts +449 -133
  17. package/dist/calendar/event.d.ts +6 -6
  18. package/dist/calendar/event.js +1 -1
  19. package/dist/calendar/index.js +0 -1
  20. package/dist/dates/{date.d.ts → common.d.ts} +9 -1
  21. package/dist/dates/common.js +35 -0
  22. package/dist/dates/day-period.d.ts +17 -0
  23. package/dist/dates/day-period.js +30 -0
  24. package/dist/dates/event.d.ts +634 -0
  25. package/dist/dates/event.js +16 -0
  26. package/dist/dates/holiday.d.ts +94 -0
  27. package/dist/dates/holiday.js +14 -0
  28. package/dist/dates/index.d.ts +5 -2
  29. package/dist/dates/index.js +5 -2
  30. package/dist/dates/{period.d.ts → year-period.d.ts} +15 -15
  31. package/dist/dates/{period.js → year-period.js} +4 -4
  32. package/dist/gtfs-new/common.d.ts +17 -0
  33. package/dist/gtfs-new/common.js +16 -0
  34. package/dist/gtfs-new/index.d.ts +8 -0
  35. package/dist/gtfs-new/index.js +8 -0
  36. package/dist/gtfs-new/location-type.d.ts +10 -0
  37. package/dist/gtfs-new/location-type.js +17 -0
  38. package/dist/gtfs-new/mapper.d.ts +6 -0
  39. package/dist/gtfs-new/mapper.js +23 -0
  40. package/dist/gtfs-new/path-type.d.ts +10 -0
  41. package/dist/gtfs-new/path-type.js +14 -0
  42. package/dist/gtfs-new/route-type.d.ts +10 -0
  43. package/dist/gtfs-new/route-type.js +21 -0
  44. package/dist/gtfs-new/routes.d.ts +48 -0
  45. package/dist/gtfs-new/routes.js +32 -0
  46. package/dist/gtfs-new/stop-times.d.ts +50 -0
  47. package/dist/gtfs-new/stop-times.js +24 -0
  48. package/dist/gtfs-new/stops.d.ts +61 -0
  49. package/dist/gtfs-new/stops.js +33 -0
  50. package/dist/gtfs-new/trips.d.ts +47 -0
  51. package/dist/gtfs-new/trips.js +33 -0
  52. package/dist/gtfs-new/wheelchair-accessible.d.ts +4 -0
  53. package/dist/gtfs-new/wheelchair-accessible.js +9 -0
  54. package/dist/gtfs-rt/alert.d.ts +10 -10
  55. package/dist/gtfs-rt/entity-selector.d.ts +6 -6
  56. package/dist/gtfs-rt/feed-entity.d.ts +26 -26
  57. package/dist/gtfs-rt/feed-message.d.ts +34 -34
  58. package/dist/gtfs-rt/trip-descriptor.d.ts +2 -2
  59. package/dist/gtfs-rt/vehicle-descriptor.d.ts +2 -2
  60. package/dist/gtfs-rt/vehicle-position.d.ts +8 -8
  61. package/dist/gtfs-tml/afetacao.d.ts +25 -0
  62. package/dist/gtfs-tml/afetacao.js +14 -0
  63. package/dist/gtfs-tml/agency.d.ts +30 -0
  64. package/dist/gtfs-tml/agency.js +4 -0
  65. package/dist/gtfs-tml/fares.d.ts +46 -0
  66. package/dist/gtfs-tml/fares.js +24 -0
  67. package/dist/gtfs-tml/feed-info.d.ts +33 -0
  68. package/dist/gtfs-tml/feed-info.js +4 -0
  69. package/dist/gtfs-tml/index.d.ts +8 -0
  70. package/dist/gtfs-tml/index.js +8 -0
  71. package/dist/gtfs-tml/routes.d.ts +73 -0
  72. package/dist/gtfs-tml/routes.js +17 -0
  73. package/dist/gtfs-tml/stop-times.d.ts +42 -0
  74. package/dist/gtfs-tml/stop-times.js +4 -0
  75. package/dist/gtfs-tml/stops.d.ts +151 -0
  76. package/dist/gtfs-tml/stops.js +39 -0
  77. package/dist/gtfs-tml/trips.d.ts +46 -0
  78. package/dist/gtfs-tml/trips.js +9 -0
  79. package/dist/gtfs-validation/gtfs-validation-message.d.ts +24 -0
  80. package/dist/gtfs-validation/gtfs-validation-message.js +12 -0
  81. package/dist/gtfs-validation/gtfs-validation-summary.d.ts +50 -0
  82. package/dist/gtfs-validation/gtfs-validation-summary.js +9 -0
  83. package/dist/{plans → gtfs-validation}/gtfs-validation.d.ts +45 -102
  84. package/dist/gtfs-validation/gtfs-validation.js +20 -0
  85. package/dist/gtfs-validation/index.d.ts +4 -0
  86. package/dist/gtfs-validation/index.js +4 -0
  87. package/dist/gtfs-validation/severity-level.d.ts +4 -0
  88. package/dist/gtfs-validation/severity-level.js +10 -0
  89. package/dist/index.d.ts +3 -1
  90. package/dist/index.js +3 -1
  91. package/dist/metrics/demand/demand_by_agency.d.ts +8 -8
  92. package/dist/metrics/demand/demand_by_category.d.ts +12 -12
  93. package/dist/metrics/demand/demand_by_line.d.ts +4 -4
  94. package/dist/metrics/demand/demand_by_pattern.d.ts +8 -8
  95. package/dist/metrics/demand/demand_by_product.d.ts +12 -12
  96. package/dist/metrics/index.d.ts +78 -48
  97. package/dist/metrics/supply/supply_by_agency.d.ts +34 -4
  98. package/dist/metrics/supply/supply_by_agency.js +4 -0
  99. package/dist/offer/index.d.ts +6 -1
  100. package/dist/offer/index.js +6 -1
  101. package/dist/offer/line.d.ts +17 -102
  102. package/dist/offer/line.js +4 -28
  103. package/dist/offer/parameters.d.ts +339 -0
  104. package/dist/offer/parameters.js +48 -0
  105. package/dist/offer/pattern.d.ts +2627 -664
  106. package/dist/offer/pattern.js +36 -33
  107. package/dist/offer/route-path-type.d.ts +14 -0
  108. package/dist/offer/route-path-type.js +21 -0
  109. package/dist/offer/route.d.ts +13 -35
  110. package/dist/offer/route.js +7 -11
  111. package/dist/offer/rules.d.ts +491 -0
  112. package/dist/offer/rules.js +67 -0
  113. package/dist/offer/transport-type.d.ts +12 -0
  114. package/dist/offer/transport-type.js +41 -0
  115. package/dist/offer/zone.d.ts +574 -0
  116. package/dist/offer/zone.js +52 -0
  117. package/dist/permissions/controller.d.ts +3 -3
  118. package/dist/permissions/controller.js +1 -0
  119. package/dist/permissions/dates.d.ts +97 -0
  120. package/dist/permissions/dates.js +58 -0
  121. package/dist/permissions/gtfs-validations.d.ts +3 -3
  122. package/dist/permissions/gtfs-validations.js +1 -0
  123. package/dist/permissions/index.d.ts +53 -9
  124. package/dist/permissions/index.js +4 -3
  125. package/dist/plans/index.d.ts +0 -1
  126. package/dist/plans/index.js +0 -1
  127. package/dist/rides/ride-acceptance.d.ts +207 -21
  128. package/dist/sams/sam-analysis.d.ts +2 -2
  129. package/dist/sams/sam.d.ts +12 -12
  130. package/dist/stops/stop.d.ts +227 -41
  131. package/dist/vehicle/vehicle.d.ts +5 -5
  132. package/dist/vehicle-events/clickhouse-vehicle-event.d.ts +2 -2
  133. package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.d.ts +2 -2
  134. package/dist/vehicle-events/simplified-vehicle-event.d.ts +2 -2
  135. package/package.json +2 -2
  136. package/dist/dates/date.js +0 -18
  137. package/dist/offer/scheduleRule.d.ts +0 -80
  138. package/dist/offer/scheduleRule.js +0 -50
  139. package/dist/permissions/annotations.d.ts +0 -25
  140. package/dist/permissions/annotations.js +0 -16
  141. package/dist/permissions/periods.d.ts +0 -25
  142. package/dist/permissions/periods.js +0 -16
  143. package/dist/plans/gtfs-validation.js +0 -34
  144. package/dist/ticketing/index.d.ts +0 -2
  145. package/dist/ticketing/index.js +0 -2
  146. package/dist/ticketing/zone.d.ts +0 -220
  147. package/dist/ticketing/zone.js +0 -34
  148. package/dist/zone.d.ts +0 -133
  149. package/dist/zone.js +0 -18
  150. /package/dist/{ticketing → offer}/fare.d.ts +0 -0
  151. /package/dist/{ticketing → offer}/fare.js +0 -0
@@ -3,6 +3,19 @@ export declare const CommentTypeSchema: z.ZodEnum<["field_changed", "note", "cru
3
3
  export type CommentType = z.infer<typeof CommentTypeSchema>;
4
4
  export declare const CrudCommentSchemaActionSchema: z.ZodEnum<["create", "update", "delete", "archive", "restore"]>;
5
5
  export type CrudCommentSchemaAction = z.infer<typeof CrudCommentSchemaActionSchema>;
6
+ export declare const FieldChangeSchema: z.ZodObject<{
7
+ curr_value: z.ZodAny;
8
+ field: z.ZodString;
9
+ prev_value: z.ZodAny;
10
+ }, "strip", z.ZodTypeAny, {
11
+ field: string;
12
+ curr_value?: any;
13
+ prev_value?: any;
14
+ }, {
15
+ field: string;
16
+ curr_value?: any;
17
+ prev_value?: any;
18
+ }>;
6
19
  export declare const NoteCommentSchema: z.ZodObject<{
7
20
  _id: z.ZodOptional<z.ZodString>;
8
21
  created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
@@ -39,7 +52,33 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
39
52
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
40
53
  updated_by: z.ZodOptional<z.ZodString>;
41
54
  type: z.ZodLiteral<"field_changed">;
42
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
55
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
56
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
+ curr_value: z.ZodAny;
58
+ field: z.ZodString;
59
+ prev_value: z.ZodAny;
60
+ }, "strip", z.ZodTypeAny, {
61
+ field: string;
62
+ curr_value?: any;
63
+ prev_value?: any;
64
+ }, {
65
+ field: string;
66
+ curr_value?: any;
67
+ prev_value?: any;
68
+ }>, "many">>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ changes?: {
71
+ field: string;
72
+ curr_value?: any;
73
+ prev_value?: any;
74
+ }[] | undefined;
75
+ }, {
76
+ changes?: {
77
+ field: string;
78
+ curr_value?: any;
79
+ prev_value?: any;
80
+ }[] | undefined;
81
+ }>>>;
43
82
  curr_value: z.ZodAny;
44
83
  field: z.ZodString;
45
84
  prev_value: z.ZodAny;
@@ -55,7 +94,13 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
55
94
  field: string;
56
95
  _id?: string | undefined;
57
96
  updated_by?: string | undefined;
58
- metadata?: Record<string, unknown> | null | undefined;
97
+ metadata?: {
98
+ changes?: {
99
+ field: string;
100
+ curr_value?: any;
101
+ prev_value?: any;
102
+ }[] | undefined;
103
+ } | null | undefined;
59
104
  curr_value?: any;
60
105
  prev_value?: any;
61
106
  }, {
@@ -66,7 +111,13 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
66
111
  _id?: string | undefined;
67
112
  created_by?: string | null | undefined;
68
113
  updated_by?: string | undefined;
69
- metadata?: Record<string, unknown> | null | undefined;
114
+ metadata?: {
115
+ changes?: {
116
+ field: string;
117
+ curr_value?: any;
118
+ prev_value?: any;
119
+ }[] | undefined;
120
+ } | null | undefined;
70
121
  curr_value?: any;
71
122
  prev_value?: any;
72
123
  }>;
@@ -134,7 +185,33 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
134
185
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
135
186
  updated_by: z.ZodOptional<z.ZodString>;
136
187
  type: z.ZodLiteral<"field_changed">;
137
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
188
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
189
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
+ curr_value: z.ZodAny;
191
+ field: z.ZodString;
192
+ prev_value: z.ZodAny;
193
+ }, "strip", z.ZodTypeAny, {
194
+ field: string;
195
+ curr_value?: any;
196
+ prev_value?: any;
197
+ }, {
198
+ field: string;
199
+ curr_value?: any;
200
+ prev_value?: any;
201
+ }>, "many">>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ changes?: {
204
+ field: string;
205
+ curr_value?: any;
206
+ prev_value?: any;
207
+ }[] | undefined;
208
+ }, {
209
+ changes?: {
210
+ field: string;
211
+ curr_value?: any;
212
+ prev_value?: any;
213
+ }[] | undefined;
214
+ }>>>;
138
215
  curr_value: z.ZodAny;
139
216
  field: z.ZodString;
140
217
  prev_value: z.ZodAny;
@@ -150,7 +227,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
150
227
  field: string;
151
228
  _id?: string | undefined;
152
229
  updated_by?: string | undefined;
153
- metadata?: Record<string, unknown> | null | undefined;
230
+ metadata?: {
231
+ changes?: {
232
+ field: string;
233
+ curr_value?: any;
234
+ prev_value?: any;
235
+ }[] | undefined;
236
+ } | null | undefined;
154
237
  curr_value?: any;
155
238
  prev_value?: any;
156
239
  }, {
@@ -161,7 +244,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
161
244
  _id?: string | undefined;
162
245
  created_by?: string | null | undefined;
163
246
  updated_by?: string | undefined;
164
- metadata?: Record<string, unknown> | null | undefined;
247
+ metadata?: {
248
+ changes?: {
249
+ field: string;
250
+ curr_value?: any;
251
+ prev_value?: any;
252
+ }[] | undefined;
253
+ } | null | undefined;
165
254
  curr_value?: any;
166
255
  prev_value?: any;
167
256
  }>, z.ZodObject<{
@@ -216,7 +305,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
216
305
  field: string;
217
306
  _id?: string | undefined;
218
307
  updated_by?: string | undefined;
219
- metadata?: Record<string, unknown> | null | undefined;
308
+ metadata?: {
309
+ changes?: {
310
+ field: string;
311
+ curr_value?: any;
312
+ prev_value?: any;
313
+ }[] | undefined;
314
+ } | null | undefined;
220
315
  curr_value?: any;
221
316
  prev_value?: any;
222
317
  } | {
@@ -247,7 +342,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
247
342
  _id?: string | undefined;
248
343
  created_by?: string | null | undefined;
249
344
  updated_by?: string | undefined;
250
- metadata?: Record<string, unknown> | null | undefined;
345
+ metadata?: {
346
+ changes?: {
347
+ field: string;
348
+ curr_value?: any;
349
+ prev_value?: any;
350
+ }[] | undefined;
351
+ } | null | undefined;
251
352
  curr_value?: any;
252
353
  prev_value?: any;
253
354
  } | {
@@ -262,8 +363,5 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
262
363
  export type Comment = z.infer<typeof CommentSchema>;
263
364
  export type NoteComment = z.infer<typeof NoteCommentSchema>;
264
365
  export type CrudComment = z.infer<typeof CrudCommentSchema>;
265
- export interface FieldChangedComment<T, K extends keyof T> extends Omit<z.infer<typeof FieldChangedCommentSchema>, 'curr_value' | 'field' | 'prev_value'> {
266
- curr_value: T[K];
267
- field: K;
268
- prev_value: T[K];
269
- }
366
+ export type FieldChangedComment = z.infer<typeof FieldChangedCommentSchema>;
367
+ export type FieldChange = z.infer<typeof FieldChangeSchema>;
@@ -7,6 +7,12 @@ export const CommentTypeSchema = z.enum(COMMENT_TYPE_OPTIONS);
7
7
  const CRUD_COMMENT_ACTION_OPTIONS = ['create', 'update', 'delete', 'archive', 'restore'];
8
8
  export const CrudCommentSchemaActionSchema = z.enum(CRUD_COMMENT_ACTION_OPTIONS);
9
9
  /* * */
10
+ export const FieldChangeSchema = z.object({
11
+ curr_value: z.any(),
12
+ field: z.string(),
13
+ prev_value: z.any(),
14
+ });
15
+ /* * */
10
16
  export const NoteCommentSchema = DocumentSchema
11
17
  .omit({ is_locked: true })
12
18
  .extend({
@@ -19,7 +25,9 @@ export const FieldChangedCommentSchema = DocumentSchema
19
25
  .extend({
20
26
  curr_value: z.any(),
21
27
  field: z.string(),
22
- metadata: z.record(z.unknown()).nullish(),
28
+ metadata: z.object({
29
+ changes: z.array(FieldChangeSchema).optional(),
30
+ }).nullish(),
23
31
  prev_value: z.any(),
24
32
  type: z.literal(CommentTypeSchema.enum.field_changed),
25
33
  })
@@ -32,16 +40,6 @@ export const CrudCommentSchema = DocumentSchema
32
40
  })
33
41
  .partial({ _id: true });
34
42
  /* * */
35
- function validateFieldChanged(data, ctx) {
36
- if (data.curr_value === data.prev_value) {
37
- ctx.addIssue({
38
- code: z.ZodIssueCode.custom,
39
- message: 'curr_value and prev_value must differ',
40
- path: ['curr_value'],
41
- });
42
- }
43
- }
44
- /* * */
45
43
  export const CommentSchema = z
46
44
  .discriminatedUnion('type', [
47
45
  NoteCommentSchema,
@@ -49,7 +47,37 @@ export const CommentSchema = z
49
47
  CrudCommentSchema,
50
48
  ])
51
49
  .superRefine((data, ctx) => {
52
- if (data.type === CommentTypeSchema.enum.field_changed) {
53
- validateFieldChanged(data, ctx);
50
+ // Apply validation after the discriminated union
51
+ if (data.type === 'field_changed') {
52
+ // If field is 'multiple_fields', metadata.changes must exist
53
+ if (data.field === 'multiple_fields') {
54
+ if (!data.metadata?.changes || data.metadata.changes.length === 0) {
55
+ ctx.addIssue({
56
+ code: z.ZodIssueCode.custom,
57
+ message: 'multiple_fields requires metadata.changes array',
58
+ path: ['metadata', 'changes'],
59
+ });
60
+ }
61
+ if (data.curr_value !== null || data.prev_value !== null) {
62
+ ctx.addIssue({
63
+ code: z.ZodIssueCode.custom,
64
+ message: 'multiple_fields must have null curr_value and prev_value',
65
+ path: ['curr_value'],
66
+ });
67
+ }
68
+ }
69
+ // If field is NOT 'multiple_fields', curr_value and prev_value must differ
70
+ else if (data.curr_value === data.prev_value) {
71
+ ctx.addIssue({
72
+ code: z.ZodIssueCode.custom,
73
+ message: 'curr_value and prev_value must differ',
74
+ path: ['curr_value'],
75
+ });
76
+ }
54
77
  }
55
78
  });
79
+ // export interface FieldChangedComment<T, K extends keyof T> extends Omit<z.infer<typeof FieldChangedCommentSchema>, 'curr_value' | 'field' | 'prev_value'> {
80
+ // curr_value: T[K]
81
+ // field: K
82
+ // prev_value: T[K]
83
+ // }
@@ -25,3 +25,6 @@ export type LifecycleStatus = z.infer<typeof LifecycleStatusSchema>;
25
25
  export declare const AvailabilityStatusValues: readonly ["available", "unavailable", "unknown"];
26
26
  export declare const AvailabilityStatusSchema: z.ZodEnum<["available", "unavailable", "unknown"]>;
27
27
  export type AvailabilityStatus = z.infer<typeof AvailabilityStatusSchema>;
28
+ export declare const ValidityStatusValues: readonly ["valid", "invalid", "unknown"];
29
+ export declare const ValidityStatusSchema: z.ZodEnum<["valid", "invalid", "unknown"]>;
30
+ export type ValidityStatus = z.infer<typeof ValidityStatusSchema>;
@@ -36,3 +36,7 @@ export const LifecycleStatusSchema = z.enum(LifecycleStatusValues);
36
36
  /* AVAILABILITY STATUS */
37
37
  export const AvailabilityStatusValues = ['available', 'unavailable', 'unknown'];
38
38
  export const AvailabilityStatusSchema = z.enum(AvailabilityStatusValues);
39
+ /* * */
40
+ /* VALIDITY STATUS */
41
+ export const ValidityStatusValues = ['valid', 'invalid', 'unknown'];
42
+ export const ValidityStatusSchema = z.enum(ValidityStatusValues);
@@ -11,6 +11,7 @@ export declare const alertCauseEffectReferenceTypeMap: {
11
11
  readonly NO_SERVICE: ["rides", "lines"];
12
12
  readonly REDUCED_SERVICE: ["rides", "lines"];
13
13
  readonly SIGNIFICANT_DELAYS: ["rides", "agency", "lines"];
14
+ readonly STOP_MOVED: ["stops"];
14
15
  };
15
16
  readonly CONSTRUCTION: {
16
17
  readonly ACCESSIBILITY_ISSUE: ["rides", "lines", "stops"];
@@ -27,6 +28,7 @@ export declare const alertCauseEffectReferenceTypeMap: {
27
28
  readonly NO_SERVICE: ["rides", "lines", "stops"];
28
29
  readonly REDUCED_SERVICE: ["rides", "lines", "stops"];
29
30
  readonly SIGNIFICANT_DELAYS: ["rides", "lines", "stops", "agency"];
31
+ readonly STOP_MOVED: ["stops"];
30
32
  };
31
33
  readonly DRIVER_ABSENCE: {
32
34
  readonly NO_SERVICE: ["rides"];
@@ -74,6 +76,7 @@ export declare const alertCauseEffectReferenceTypeMap: {
74
76
  readonly NO_SERVICE: ["rides", "lines", "stops"];
75
77
  readonly REDUCED_SERVICE: ["rides", "lines", "stops"];
76
78
  readonly SIGNIFICANT_DELAYS: ["rides", "lines", "stops"];
79
+ readonly STOP_MOVED: ["stops"];
77
80
  };
78
81
  readonly STRIKE: {
79
82
  readonly ADDITIONAL_SERVICE: ["lines", "stops", "agency"];
@@ -109,6 +112,7 @@ export declare const alertCauseEffectReferenceTypeMap: {
109
112
  readonly NO_SERVICE: ["rides", "lines", "stops"];
110
113
  readonly REDUCED_SERVICE: ["rides", "lines", "stops"];
111
114
  readonly SIGNIFICANT_DELAYS: ["rides", "lines", "stops", "agency"];
115
+ readonly STOP_MOVED: ["stops"];
112
116
  };
113
117
  };
114
118
  type ReferenceTypes<C extends keyof typeof alertCauseEffectReferenceTypeMap, E extends keyof typeof alertCauseEffectReferenceTypeMap[C]> = (typeof alertCauseEffectReferenceTypeMap)[C][E] extends readonly (infer R)[] ? R & string : never;
@@ -13,6 +13,7 @@ export const alertCauseEffectReferenceTypeMap = {
13
13
  NO_SERVICE: ['rides', 'lines'],
14
14
  REDUCED_SERVICE: ['rides', 'lines'],
15
15
  SIGNIFICANT_DELAYS: ['rides', 'agency', 'lines'],
16
+ STOP_MOVED: ['stops'],
16
17
  },
17
18
  CONSTRUCTION: {
18
19
  ACCESSIBILITY_ISSUE: ['rides', 'lines', 'stops'],
@@ -29,6 +30,7 @@ export const alertCauseEffectReferenceTypeMap = {
29
30
  NO_SERVICE: ['rides', 'lines', 'stops'],
30
31
  REDUCED_SERVICE: ['rides', 'lines', 'stops'],
31
32
  SIGNIFICANT_DELAYS: ['rides', 'lines', 'stops', 'agency'],
33
+ STOP_MOVED: ['stops'],
32
34
  },
33
35
  DRIVER_ABSENCE: {
34
36
  NO_SERVICE: ['rides'],
@@ -76,6 +78,7 @@ export const alertCauseEffectReferenceTypeMap = {
76
78
  NO_SERVICE: ['rides', 'lines', 'stops'],
77
79
  REDUCED_SERVICE: ['rides', 'lines', 'stops'],
78
80
  SIGNIFICANT_DELAYS: ['rides', 'lines', 'stops'],
81
+ STOP_MOVED: ['stops'],
79
82
  },
80
83
  STRIKE: {
81
84
  ADDITIONAL_SERVICE: ['lines', 'stops', 'agency'],
@@ -111,5 +114,6 @@ export const alertCauseEffectReferenceTypeMap = {
111
114
  NO_SERVICE: ['rides', 'lines', 'stops'],
112
115
  REDUCED_SERVICE: ['rides', 'lines', 'stops'],
113
116
  SIGNIFICANT_DELAYS: ['rides', 'lines', 'stops', 'agency'],
117
+ STOP_MOVED: ['stops'],
114
118
  },
115
119
  };
@@ -14,4 +14,4 @@ export type AlertCause = z.infer<typeof AlertCauseSchema>;
14
14
  * This mapping is used to convert extended alert causes
15
15
  * to their corresponding standard GTFS-RT cause types.
16
16
  */
17
- export declare const AlertCauseToGtfsCauseMap: Record<AlertCause, GtfsRtCause>;
17
+ export declare const AlertCauseToGtfsRtCauseMap: Record<AlertCause, GtfsRtCause>;
@@ -30,7 +30,7 @@ export const AlertCauseSchema = z.enum(AlertCauseValues);
30
30
  * This mapping is used to convert extended alert causes
31
31
  * to their corresponding standard GTFS-RT cause types.
32
32
  */
33
- export const AlertCauseToGtfsCauseMap = {
33
+ export const AlertCauseToGtfsRtCauseMap = {
34
34
  ABUSIVE_PARKING: 'OTHER_CAUSE',
35
35
  ACCIDENT: 'ACCIDENT',
36
36
  CONSTRUCTION: 'CONSTRUCTION',
@@ -14,4 +14,4 @@ export type AlertEffect = z.infer<typeof AlertEffectSchema>;
14
14
  * This mapping is used to convert extended alert effects
15
15
  * to their corresponding standard GTFS-RT effect types.
16
16
  */
17
- export declare const AlertEffectToGtfsEffectMap: Record<AlertEffect, GtfsRtEffect>;
17
+ export declare const AlertEffectToGtfsRtEffectMap: Record<AlertEffect, GtfsRtEffect>;
@@ -23,7 +23,7 @@ export const AlertEffectSchema = z.enum(AlertEffectValues);
23
23
  * This mapping is used to convert extended alert effects
24
24
  * to their corresponding standard GTFS-RT effect types.
25
25
  */
26
- export const AlertEffectToGtfsEffectMap = {
26
+ export const AlertEffectToGtfsRtEffectMap = {
27
27
  ACCESSIBILITY_ISSUE: 'ACCESSIBILITY_ISSUE',
28
28
  ADDITIONAL_SERVICE: 'ADDITIONAL_SERVICE',
29
29
  DETOUR: 'DETOUR',
@@ -2,6 +2,7 @@ export * from './login.js';
2
2
  export * from './password-requirements.js';
3
3
  export * from './role.js';
4
4
  export * from './session.js';
5
+ export * from './simplified-user.js';
5
6
  export * from './user.js';
6
7
  export * from './verification-token.js';
7
8
  export * from '../permissions/alerts.js';
@@ -2,6 +2,7 @@ export * from './login.js';
2
2
  export * from './password-requirements.js';
3
3
  export * from './role.js';
4
4
  export * from './session.js';
5
+ export * from './simplified-user.js';
5
6
  export * from './user.js';
6
7
  export * from './verification-token.js';
7
8
  export * from '../permissions/alerts.js';