@tmlmobilidade/types 20260126.1852.36 → 20260128.2320.17

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
@@ -6,7 +6,7 @@ export type CrudCommentSchemaAction = z.infer<typeof CrudCommentSchemaActionSche
6
6
  export declare const NoteCommentSchema: z.ZodObject<{
7
7
  _id: z.ZodOptional<z.ZodString>;
8
8
  created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
9
- created_by: z.ZodOptional<z.ZodString>;
9
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10
10
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
11
11
  updated_by: z.ZodOptional<z.ZodString>;
12
12
  message: z.ZodString;
@@ -15,13 +15,13 @@ export declare const NoteCommentSchema: z.ZodObject<{
15
15
  created_at: number & {
16
16
  __brand: "UnixTimestamp";
17
17
  };
18
+ created_by: string | null;
18
19
  updated_at: number & {
19
20
  __brand: "UnixTimestamp";
20
21
  };
21
22
  message: string;
22
23
  type: "note";
23
24
  _id?: string | undefined;
24
- created_by?: string | undefined;
25
25
  updated_by?: string | undefined;
26
26
  }, {
27
27
  created_at: number;
@@ -29,13 +29,13 @@ export declare const NoteCommentSchema: z.ZodObject<{
29
29
  message: string;
30
30
  type: "note";
31
31
  _id?: string | undefined;
32
- created_by?: string | undefined;
32
+ created_by?: string | null | undefined;
33
33
  updated_by?: string | undefined;
34
34
  }>;
35
35
  export declare const FieldChangedCommentSchema: z.ZodObject<{
36
36
  _id: z.ZodOptional<z.ZodString>;
37
37
  created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
38
- created_by: z.ZodOptional<z.ZodString>;
38
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
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">;
@@ -47,13 +47,13 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
47
47
  created_at: number & {
48
48
  __brand: "UnixTimestamp";
49
49
  };
50
+ created_by: string | null;
50
51
  updated_at: number & {
51
52
  __brand: "UnixTimestamp";
52
53
  };
53
54
  type: "field_changed";
54
55
  field: string;
55
56
  _id?: string | undefined;
56
- created_by?: string | undefined;
57
57
  updated_by?: string | undefined;
58
58
  metadata?: Record<string, unknown> | null | undefined;
59
59
  curr_value?: any;
@@ -64,7 +64,7 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
64
64
  type: "field_changed";
65
65
  field: string;
66
66
  _id?: string | undefined;
67
- created_by?: string | undefined;
67
+ created_by?: string | null | undefined;
68
68
  updated_by?: string | undefined;
69
69
  metadata?: Record<string, unknown> | null | undefined;
70
70
  curr_value?: any;
@@ -73,7 +73,7 @@ export declare const FieldChangedCommentSchema: z.ZodObject<{
73
73
  export declare const CrudCommentSchema: z.ZodObject<{
74
74
  _id: z.ZodOptional<z.ZodString>;
75
75
  created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
76
- created_by: z.ZodOptional<z.ZodString>;
76
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
77
77
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
78
78
  updated_by: z.ZodOptional<z.ZodString>;
79
79
  type: z.ZodLiteral<"crud">;
@@ -82,13 +82,13 @@ export declare const CrudCommentSchema: z.ZodObject<{
82
82
  created_at: number & {
83
83
  __brand: "UnixTimestamp";
84
84
  };
85
+ created_by: string | null;
85
86
  updated_at: number & {
86
87
  __brand: "UnixTimestamp";
87
88
  };
88
89
  type: "crud";
89
90
  action: "create" | "update" | "delete" | "archive" | "restore";
90
91
  _id?: string | undefined;
91
- created_by?: string | undefined;
92
92
  updated_by?: string | undefined;
93
93
  }, {
94
94
  created_at: number;
@@ -96,13 +96,13 @@ export declare const CrudCommentSchema: z.ZodObject<{
96
96
  type: "crud";
97
97
  action: "create" | "update" | "delete" | "archive" | "restore";
98
98
  _id?: string | undefined;
99
- created_by?: string | undefined;
99
+ created_by?: string | null | undefined;
100
100
  updated_by?: string | undefined;
101
101
  }>;
102
102
  export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
103
103
  _id: z.ZodOptional<z.ZodString>;
104
104
  created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
105
- created_by: z.ZodOptional<z.ZodString>;
105
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
106
106
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
107
107
  updated_by: z.ZodOptional<z.ZodString>;
108
108
  message: z.ZodString;
@@ -111,13 +111,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
111
111
  created_at: number & {
112
112
  __brand: "UnixTimestamp";
113
113
  };
114
+ created_by: string | null;
114
115
  updated_at: number & {
115
116
  __brand: "UnixTimestamp";
116
117
  };
117
118
  message: string;
118
119
  type: "note";
119
120
  _id?: string | undefined;
120
- created_by?: string | undefined;
121
121
  updated_by?: string | undefined;
122
122
  }, {
123
123
  created_at: number;
@@ -125,12 +125,12 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
125
125
  message: string;
126
126
  type: "note";
127
127
  _id?: string | undefined;
128
- created_by?: string | undefined;
128
+ created_by?: string | null | undefined;
129
129
  updated_by?: string | undefined;
130
130
  }>, z.ZodObject<{
131
131
  _id: z.ZodOptional<z.ZodString>;
132
132
  created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
133
- created_by: z.ZodOptional<z.ZodString>;
133
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
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">;
@@ -142,13 +142,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
142
142
  created_at: number & {
143
143
  __brand: "UnixTimestamp";
144
144
  };
145
+ created_by: string | null;
145
146
  updated_at: number & {
146
147
  __brand: "UnixTimestamp";
147
148
  };
148
149
  type: "field_changed";
149
150
  field: string;
150
151
  _id?: string | undefined;
151
- created_by?: string | undefined;
152
152
  updated_by?: string | undefined;
153
153
  metadata?: Record<string, unknown> | null | undefined;
154
154
  curr_value?: any;
@@ -159,7 +159,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
159
159
  type: "field_changed";
160
160
  field: string;
161
161
  _id?: string | undefined;
162
- created_by?: string | undefined;
162
+ created_by?: string | null | undefined;
163
163
  updated_by?: string | undefined;
164
164
  metadata?: Record<string, unknown> | null | undefined;
165
165
  curr_value?: any;
@@ -167,7 +167,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
167
167
  }>, z.ZodObject<{
168
168
  _id: z.ZodOptional<z.ZodString>;
169
169
  created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
170
- created_by: z.ZodOptional<z.ZodString>;
170
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
171
171
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
172
172
  updated_by: z.ZodOptional<z.ZodString>;
173
173
  type: z.ZodLiteral<"crud">;
@@ -176,13 +176,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
176
176
  created_at: number & {
177
177
  __brand: "UnixTimestamp";
178
178
  };
179
+ created_by: string | null;
179
180
  updated_at: number & {
180
181
  __brand: "UnixTimestamp";
181
182
  };
182
183
  type: "crud";
183
184
  action: "create" | "update" | "delete" | "archive" | "restore";
184
185
  _id?: string | undefined;
185
- created_by?: string | undefined;
186
186
  updated_by?: string | undefined;
187
187
  }, {
188
188
  created_at: number;
@@ -190,31 +190,31 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
190
190
  type: "crud";
191
191
  action: "create" | "update" | "delete" | "archive" | "restore";
192
192
  _id?: string | undefined;
193
- created_by?: string | undefined;
193
+ created_by?: string | null | undefined;
194
194
  updated_by?: string | undefined;
195
195
  }>]>, {
196
196
  created_at: number & {
197
197
  __brand: "UnixTimestamp";
198
198
  };
199
+ created_by: string | null;
199
200
  updated_at: number & {
200
201
  __brand: "UnixTimestamp";
201
202
  };
202
203
  message: string;
203
204
  type: "note";
204
205
  _id?: string | undefined;
205
- created_by?: string | undefined;
206
206
  updated_by?: string | undefined;
207
207
  } | {
208
208
  created_at: number & {
209
209
  __brand: "UnixTimestamp";
210
210
  };
211
+ created_by: string | null;
211
212
  updated_at: number & {
212
213
  __brand: "UnixTimestamp";
213
214
  };
214
215
  type: "field_changed";
215
216
  field: string;
216
217
  _id?: string | undefined;
217
- created_by?: string | undefined;
218
218
  updated_by?: string | undefined;
219
219
  metadata?: Record<string, unknown> | null | undefined;
220
220
  curr_value?: any;
@@ -223,13 +223,13 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
223
223
  created_at: number & {
224
224
  __brand: "UnixTimestamp";
225
225
  };
226
+ created_by: string | null;
226
227
  updated_at: number & {
227
228
  __brand: "UnixTimestamp";
228
229
  };
229
230
  type: "crud";
230
231
  action: "create" | "update" | "delete" | "archive" | "restore";
231
232
  _id?: string | undefined;
232
- created_by?: string | undefined;
233
233
  updated_by?: string | undefined;
234
234
  }, {
235
235
  created_at: number;
@@ -237,7 +237,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
237
237
  message: string;
238
238
  type: "note";
239
239
  _id?: string | undefined;
240
- created_by?: string | undefined;
240
+ created_by?: string | null | undefined;
241
241
  updated_by?: string | undefined;
242
242
  } | {
243
243
  created_at: number;
@@ -245,7 +245,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
245
245
  type: "field_changed";
246
246
  field: string;
247
247
  _id?: string | undefined;
248
- created_by?: string | undefined;
248
+ created_by?: string | null | undefined;
249
249
  updated_by?: string | undefined;
250
250
  metadata?: Record<string, unknown> | null | undefined;
251
251
  curr_value?: any;
@@ -256,7 +256,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
256
256
  type: "crud";
257
257
  action: "create" | "update" | "delete" | "archive" | "restore";
258
258
  _id?: string | undefined;
259
- created_by?: string | undefined;
259
+ created_by?: string | null | undefined;
260
260
  updated_by?: string | undefined;
261
261
  }>;
262
262
  export type Comment = z.infer<typeof CommentSchema>;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const DocumentSchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
4
  created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
5
- created_by: z.ZodOptional<z.ZodString>;
5
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
6
  is_locked: z.ZodDefault<z.ZodBoolean>;
7
7
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
8
8
  updated_by: z.ZodOptional<z.ZodString>;
@@ -11,17 +11,17 @@ export declare const DocumentSchema: z.ZodObject<{
11
11
  created_at: number & {
12
12
  __brand: "UnixTimestamp";
13
13
  };
14
+ created_by: string | null;
14
15
  is_locked: boolean;
15
16
  updated_at: number & {
16
17
  __brand: "UnixTimestamp";
17
18
  };
18
- created_by?: string | undefined;
19
19
  updated_by?: string | undefined;
20
20
  }, {
21
21
  _id: string;
22
22
  created_at: number;
23
23
  updated_at: number;
24
- created_by?: string | undefined;
24
+ created_by?: string | null | undefined;
25
25
  is_locked?: boolean | undefined;
26
26
  updated_by?: string | undefined;
27
27
  }>;
@@ -5,7 +5,7 @@ import { z } from 'zod';
5
5
  export const DocumentSchema = z.object({
6
6
  _id: z.string(),
7
7
  created_at: UnixTimeStampSchema,
8
- created_by: z.string().optional(),
8
+ created_by: z.string().nullable().default(null),
9
9
  is_locked: z.boolean().default(false),
10
10
  updated_at: UnixTimeStampSchema,
11
11
  updated_by: z.string().optional(),
@@ -11,8 +11,8 @@ export type SeenStatus = z.infer<typeof SeenStatusSchema>;
11
11
  export declare const OperationalStatusValues: readonly ["ended", "missed", "running", "scheduled"];
12
12
  export declare const OperationalStatusSchema: z.ZodEnum<["ended", "missed", "running", "scheduled"]>;
13
13
  export type OperationalStatus = z.infer<typeof OperationalStatusSchema>;
14
- export declare const PublishStatusValues: readonly ["PUBLISHED", "ARCHIVED", "DRAFT"];
15
- export declare const PublishStatusSchema: z.ZodEnum<["PUBLISHED", "ARCHIVED", "DRAFT"]>;
14
+ export declare const PublishStatusValues: readonly ["published", "archived", "draft"];
15
+ export declare const PublishStatusSchema: z.ZodEnum<["published", "archived", "draft"]>;
16
16
  export type PublishStatus = z.infer<typeof PublishStatusSchema>;
17
17
  export declare const ApprovalStatusValues: readonly ["pending", "approved", "rejected", "none"];
18
18
  export declare const ApprovalStatusSchema: z.ZodEnum<["pending", "approved", "rejected", "none"]>;
@@ -18,7 +18,7 @@ export const OperationalStatusValues = ['ended', 'missed', 'running', 'scheduled
18
18
  export const OperationalStatusSchema = z.enum(OperationalStatusValues);
19
19
  /* * */
20
20
  /* PUBLISH STATUS */
21
- export const PublishStatusValues = ['PUBLISHED', 'ARCHIVED', 'DRAFT'];
21
+ export const PublishStatusValues = ['published', 'archived', 'draft'];
22
22
  export const PublishStatusSchema = z.enum(PublishStatusValues);
23
23
  /* * */
24
24
  /* APPROVAL STATUS */
@@ -2,6 +2,7 @@
2
2
  import { DateTime } from 'luxon';
3
3
  import { z } from 'zod';
4
4
  export const UnixTimeStampSchema = z
5
+ .coerce
5
6
  .number()
6
7
  .transform(validateUnixTimestamp);
7
8
  /**
package/dist/agency.d.ts CHANGED
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const AgencySchema: 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
  is_locked: z.ZodDefault<z.ZodBoolean>;
7
7
  updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
8
8
  updated_by: z.ZodOptional<z.ZodString>;
@@ -32,6 +32,7 @@ export declare const AgencySchema: z.ZodObject<{
32
32
  created_at: number & {
33
33
  __brand: "UnixTimestamp";
34
34
  };
35
+ created_by: string | null;
35
36
  is_locked: boolean;
36
37
  updated_at: number & {
37
38
  __brand: "UnixTimestamp";
@@ -50,7 +51,6 @@ export declare const AgencySchema: z.ZodObject<{
50
51
  short_name: string;
51
52
  timezone: string;
52
53
  website_url: string;
53
- created_by?: string | undefined;
54
54
  updated_by?: string | undefined;
55
55
  }, {
56
56
  _id: string;
@@ -66,7 +66,7 @@ export declare const AgencySchema: z.ZodObject<{
66
66
  public_email: string;
67
67
  short_name: string;
68
68
  website_url: string;
69
- created_by?: string | undefined;
69
+ created_by?: string | null | undefined;
70
70
  is_locked?: boolean | undefined;
71
71
  updated_by?: string | undefined;
72
72
  contact_emails_pta?: string[] | undefined;
@@ -77,7 +77,7 @@ export declare const AgencySchema: z.ZodObject<{
77
77
  export declare const CreateAgencySchema: z.ZodObject<Omit<{
78
78
  _id: z.ZodString;
79
79
  created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
80
- created_by: z.ZodOptional<z.ZodString>;
80
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
81
81
  is_locked: z.ZodDefault<z.ZodBoolean>;
82
82
  updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
83
83
  updated_by: z.ZodOptional<z.ZodString>;
@@ -104,6 +104,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
104
104
  website_url: z.ZodString;
105
105
  }, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
106
106
  _id: string;
107
+ created_by: string | null;
107
108
  is_locked: boolean;
108
109
  contact_emails_pta: string[];
109
110
  contact_emails_pto: string[];
@@ -119,7 +120,6 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
119
120
  short_name: string;
120
121
  timezone: string;
121
122
  website_url: string;
122
- created_by?: string | undefined;
123
123
  updated_by?: string | undefined;
124
124
  }, {
125
125
  _id: string;
@@ -133,7 +133,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
133
133
  public_email: string;
134
134
  short_name: string;
135
135
  website_url: string;
136
- created_by?: string | undefined;
136
+ created_by?: string | null | undefined;
137
137
  is_locked?: boolean | undefined;
138
138
  updated_by?: string | undefined;
139
139
  contact_emails_pta?: string[] | undefined;
@@ -0,0 +1,262 @@
1
+ import { z } from 'zod';
2
+ export declare const AlertSchema: z.ZodObject<{
3
+ _id: z.ZodString;
4
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
5
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
+ is_locked: z.ZodDefault<z.ZodBoolean>;
7
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
8
+ updated_by: z.ZodOptional<z.ZodString>;
9
+ } & {
10
+ active_period_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
11
+ active_period_start_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
12
+ agency_id: z.ZodString;
13
+ auto_texts: z.ZodDefault<z.ZodBoolean>;
14
+ cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER"]>;
15
+ coordinates: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
16
+ description: z.ZodString;
17
+ effect: z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>;
18
+ external_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19
+ file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20
+ info_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21
+ municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
22
+ publish_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
23
+ publish_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
24
+ publish_status: z.ZodDefault<z.ZodEnum<["published", "archived", "draft"]>>;
25
+ reference_type: z.ZodEnum<["agency", "lines", "stops", "rides"]>;
26
+ references: z.ZodDefault<z.ZodArray<z.ZodObject<{
27
+ child_ids: z.ZodArray<z.ZodString, "many">;
28
+ parent_id: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ child_ids: string[];
31
+ parent_id: string;
32
+ }, {
33
+ child_ids: string[];
34
+ parent_id: string;
35
+ }>, "many">>;
36
+ title: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ _id: string;
39
+ created_at: number & {
40
+ __brand: "UnixTimestamp";
41
+ };
42
+ created_by: string | null;
43
+ is_locked: boolean;
44
+ updated_at: number & {
45
+ __brand: "UnixTimestamp";
46
+ };
47
+ description: string;
48
+ active_period_end_date: import("../_common/unix-timestamp.js").UnixTimestamp | null;
49
+ active_period_start_date: number & {
50
+ __brand: "UnixTimestamp";
51
+ };
52
+ agency_id: string;
53
+ auto_texts: boolean;
54
+ cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER";
55
+ coordinates: [number, number] | null;
56
+ effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
57
+ external_id: string | null;
58
+ file_id: string | null;
59
+ info_url: string | null;
60
+ municipality_ids: string[];
61
+ publish_end_date: import("../_common/unix-timestamp.js").UnixTimestamp | null;
62
+ publish_start_date: import("../_common/unix-timestamp.js").UnixTimestamp | null;
63
+ publish_status: "published" | "archived" | "draft";
64
+ reference_type: "agency" | "lines" | "stops" | "rides";
65
+ references: {
66
+ child_ids: string[];
67
+ parent_id: string;
68
+ }[];
69
+ title: string;
70
+ updated_by?: string | undefined;
71
+ }, {
72
+ _id: string;
73
+ created_at: number;
74
+ updated_at: number;
75
+ description: string;
76
+ active_period_start_date: number;
77
+ agency_id: string;
78
+ cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER";
79
+ effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
80
+ reference_type: "agency" | "lines" | "stops" | "rides";
81
+ title: string;
82
+ created_by?: string | null | undefined;
83
+ is_locked?: boolean | undefined;
84
+ updated_by?: string | undefined;
85
+ active_period_end_date?: number | null | undefined;
86
+ auto_texts?: boolean | undefined;
87
+ coordinates?: [number, number] | null | undefined;
88
+ external_id?: string | null | undefined;
89
+ file_id?: string | null | undefined;
90
+ info_url?: string | null | undefined;
91
+ municipality_ids?: string[] | undefined;
92
+ publish_end_date?: number | null | undefined;
93
+ publish_start_date?: number | null | undefined;
94
+ publish_status?: "published" | "archived" | "draft" | undefined;
95
+ references?: {
96
+ child_ids: string[];
97
+ parent_id: string;
98
+ }[] | undefined;
99
+ }>;
100
+ export declare const CreateAlertSchema: z.ZodObject<Omit<{
101
+ _id: z.ZodString;
102
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
103
+ created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
104
+ is_locked: z.ZodDefault<z.ZodBoolean>;
105
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
106
+ updated_by: z.ZodOptional<z.ZodString>;
107
+ } & {
108
+ active_period_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
109
+ active_period_start_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
110
+ agency_id: z.ZodString;
111
+ auto_texts: z.ZodDefault<z.ZodBoolean>;
112
+ cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER"]>;
113
+ coordinates: z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
114
+ description: z.ZodString;
115
+ effect: z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>;
116
+ external_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
117
+ file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
118
+ info_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
119
+ municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
120
+ publish_end_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
121
+ publish_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
122
+ publish_status: z.ZodDefault<z.ZodEnum<["published", "archived", "draft"]>>;
123
+ reference_type: z.ZodEnum<["agency", "lines", "stops", "rides"]>;
124
+ references: z.ZodDefault<z.ZodArray<z.ZodObject<{
125
+ child_ids: z.ZodArray<z.ZodString, "many">;
126
+ parent_id: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ child_ids: string[];
129
+ parent_id: string;
130
+ }, {
131
+ child_ids: string[];
132
+ parent_id: string;
133
+ }>, "many">>;
134
+ title: z.ZodString;
135
+ }, "_id" | "created_at" | "created_by" | "updated_at" | "updated_by">, "strip", z.ZodTypeAny, {
136
+ is_locked: boolean;
137
+ description: string;
138
+ active_period_end_date: import("../_common/unix-timestamp.js").UnixTimestamp | null;
139
+ active_period_start_date: number & {
140
+ __brand: "UnixTimestamp";
141
+ };
142
+ agency_id: string;
143
+ auto_texts: boolean;
144
+ cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER";
145
+ coordinates: [number, number] | null;
146
+ effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
147
+ external_id: string | null;
148
+ file_id: string | null;
149
+ info_url: string | null;
150
+ municipality_ids: string[];
151
+ publish_end_date: import("../_common/unix-timestamp.js").UnixTimestamp | null;
152
+ publish_start_date: import("../_common/unix-timestamp.js").UnixTimestamp | null;
153
+ publish_status: "published" | "archived" | "draft";
154
+ reference_type: "agency" | "lines" | "stops" | "rides";
155
+ references: {
156
+ child_ids: string[];
157
+ parent_id: string;
158
+ }[];
159
+ title: string;
160
+ }, {
161
+ description: string;
162
+ active_period_start_date: number;
163
+ agency_id: string;
164
+ cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER";
165
+ effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
166
+ reference_type: "agency" | "lines" | "stops" | "rides";
167
+ title: string;
168
+ is_locked?: boolean | undefined;
169
+ active_period_end_date?: number | null | undefined;
170
+ auto_texts?: boolean | undefined;
171
+ coordinates?: [number, number] | null | undefined;
172
+ external_id?: string | null | undefined;
173
+ file_id?: string | null | undefined;
174
+ info_url?: string | null | undefined;
175
+ municipality_ids?: string[] | undefined;
176
+ publish_end_date?: number | null | undefined;
177
+ publish_start_date?: number | null | undefined;
178
+ publish_status?: "published" | "archived" | "draft" | undefined;
179
+ references?: {
180
+ child_ids: string[];
181
+ parent_id: string;
182
+ }[] | undefined;
183
+ }>;
184
+ export declare const UpdateAlertSchema: z.ZodObject<{
185
+ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
186
+ description: z.ZodOptional<z.ZodString>;
187
+ active_period_end_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
188
+ active_period_start_date: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
189
+ agency_id: z.ZodOptional<z.ZodString>;
190
+ auto_texts: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
191
+ cause: z.ZodOptional<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER"]>>;
192
+ coordinates: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>>;
193
+ effect: z.ZodOptional<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>>;
194
+ external_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
195
+ file_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
196
+ info_url: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
197
+ municipality_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
198
+ publish_end_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
199
+ publish_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
200
+ publish_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["published", "archived", "draft"]>>>;
201
+ reference_type: z.ZodOptional<z.ZodEnum<["agency", "lines", "stops", "rides"]>>;
202
+ references: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
203
+ child_ids: z.ZodArray<z.ZodString, "many">;
204
+ parent_id: z.ZodString;
205
+ }, "strip", z.ZodTypeAny, {
206
+ child_ids: string[];
207
+ parent_id: string;
208
+ }, {
209
+ child_ids: string[];
210
+ parent_id: string;
211
+ }>, "many">>>;
212
+ title: z.ZodOptional<z.ZodString>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ is_locked?: boolean | undefined;
215
+ description?: string | undefined;
216
+ active_period_end_date?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
217
+ active_period_start_date?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
218
+ agency_id?: string | undefined;
219
+ auto_texts?: boolean | undefined;
220
+ cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | undefined;
221
+ coordinates?: [number, number] | null | undefined;
222
+ effect?: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE" | undefined;
223
+ external_id?: string | null | undefined;
224
+ file_id?: string | null | undefined;
225
+ info_url?: string | null | undefined;
226
+ municipality_ids?: string[] | undefined;
227
+ publish_end_date?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
228
+ publish_start_date?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
229
+ publish_status?: "published" | "archived" | "draft" | undefined;
230
+ reference_type?: "agency" | "lines" | "stops" | "rides" | undefined;
231
+ references?: {
232
+ child_ids: string[];
233
+ parent_id: string;
234
+ }[] | undefined;
235
+ title?: string | undefined;
236
+ }, {
237
+ is_locked?: boolean | undefined;
238
+ description?: string | undefined;
239
+ active_period_end_date?: number | null | undefined;
240
+ active_period_start_date?: number | undefined;
241
+ agency_id?: string | undefined;
242
+ auto_texts?: boolean | undefined;
243
+ cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | undefined;
244
+ coordinates?: [number, number] | null | undefined;
245
+ effect?: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE" | undefined;
246
+ external_id?: string | null | undefined;
247
+ file_id?: string | null | undefined;
248
+ info_url?: string | null | undefined;
249
+ municipality_ids?: string[] | undefined;
250
+ publish_end_date?: number | null | undefined;
251
+ publish_start_date?: number | null | undefined;
252
+ publish_status?: "published" | "archived" | "draft" | undefined;
253
+ reference_type?: "agency" | "lines" | "stops" | "rides" | undefined;
254
+ references?: {
255
+ child_ids: string[];
256
+ parent_id: string;
257
+ }[] | undefined;
258
+ title?: string | undefined;
259
+ }>;
260
+ export type Alert = z.infer<typeof AlertSchema>;
261
+ export type CreateAlertDto = z.infer<typeof CreateAlertSchema>;
262
+ export type UpdateAlertDto = z.infer<typeof UpdateAlertSchema>;