@tmlmobilidade/types 20250910.1344.34 → 20250910.1538.31

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.
@@ -7,12 +7,12 @@ export declare const alertTypeSchema: z.ZodEnum<["PLANNED", "REALTIME"]>;
7
7
  export declare const referenceTypeSchema: z.ZodEnum<["LINE", "STOP", "AGENCY", "TRIP"]>;
8
8
  export declare const AlertSchema: z.ZodObject<{
9
9
  _id: z.ZodString;
10
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
11
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
10
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
11
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
12
12
  updated_by: z.ZodDefault<z.ZodString>;
13
13
  } & {
14
- active_period_end_date: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
15
- active_period_start_date: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
14
+ active_period_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>>;
15
+ active_period_start_date: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
16
16
  cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER"]>;
17
17
  coordinates: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
18
18
  created_by: z.ZodString;
@@ -22,8 +22,8 @@ export declare const AlertSchema: z.ZodObject<{
22
22
  info_url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
23
23
  modified_by: z.ZodString;
24
24
  municipality_ids: z.ZodArray<z.ZodString, "many">;
25
- publish_end_date: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
26
- publish_start_date: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
25
+ publish_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>>;
26
+ publish_start_date: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
27
27
  publish_status: z.ZodEnum<["PUBLISHED", "ARCHIVED", "DRAFT"]>;
28
28
  reference_type: z.ZodEnum<["LINE", "STOP", "AGENCY", "TRIP"]>;
29
29
  references: z.ZodArray<z.ZodObject<{
@@ -42,24 +42,24 @@ export declare const AlertSchema: z.ZodObject<{
42
42
  _id: string;
43
43
  created_at: number & {
44
44
  __brand: "UnixTimestamp";
45
- } & z.BRAND<"UnixTimestamp">;
46
- type: "PLANNED" | "REALTIME";
45
+ };
47
46
  created_by: string;
48
47
  updated_at: number & {
49
48
  __brand: "UnixTimestamp";
50
- } & z.BRAND<"UnixTimestamp">;
49
+ };
51
50
  updated_by: string;
51
+ type: "PLANNED" | "REALTIME";
52
52
  municipality_ids: string[];
53
53
  active_period_start_date: number & {
54
54
  __brand: "UnixTimestamp";
55
- } & z.BRAND<"UnixTimestamp">;
55
+ };
56
56
  cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
57
57
  description: string;
58
58
  effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
59
59
  modified_by: string;
60
60
  publish_start_date: number & {
61
61
  __brand: "UnixTimestamp";
62
- } & z.BRAND<"UnixTimestamp">;
62
+ };
63
63
  publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
64
64
  reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
65
65
  references: {
@@ -67,21 +67,17 @@ export declare const AlertSchema: z.ZodObject<{
67
67
  parent_id: string;
68
68
  }[];
69
69
  title: string;
70
- active_period_end_date?: (number & {
71
- __brand: "UnixTimestamp";
72
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
70
+ active_period_end_date?: UnixTimestamp | null | undefined;
73
71
  coordinates?: [number, number] | null | undefined;
74
72
  file_id?: string | null | undefined;
75
73
  info_url?: string | undefined;
76
- publish_end_date?: (number & {
77
- __brand: "UnixTimestamp";
78
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
74
+ publish_end_date?: UnixTimestamp | null | undefined;
79
75
  }, {
80
76
  _id: string;
81
77
  created_at: number;
82
- type: "PLANNED" | "REALTIME";
83
78
  created_by: string;
84
79
  updated_at: number;
80
+ type: "PLANNED" | "REALTIME";
85
81
  municipality_ids: string[];
86
82
  active_period_start_date: number;
87
83
  cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
@@ -105,12 +101,12 @@ export declare const AlertSchema: z.ZodObject<{
105
101
  }>;
106
102
  export declare const CreateAlertSchema: z.ZodObject<Omit<{
107
103
  _id: z.ZodString;
108
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
109
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
104
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
105
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
110
106
  updated_by: z.ZodDefault<z.ZodString>;
111
107
  } & {
112
- active_period_end_date: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
113
- active_period_start_date: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
108
+ active_period_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>>;
109
+ active_period_start_date: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
114
110
  cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER"]>;
115
111
  coordinates: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
116
112
  created_by: z.ZodString;
@@ -120,8 +116,8 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
120
116
  info_url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
121
117
  modified_by: z.ZodString;
122
118
  municipality_ids: z.ZodArray<z.ZodString, "many">;
123
- publish_end_date: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
124
- publish_start_date: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
119
+ publish_end_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>>;
120
+ publish_start_date: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
125
121
  publish_status: z.ZodEnum<["PUBLISHED", "ARCHIVED", "DRAFT"]>;
126
122
  reference_type: z.ZodEnum<["LINE", "STOP", "AGENCY", "TRIP"]>;
127
123
  references: z.ZodArray<z.ZodObject<{
@@ -137,20 +133,20 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
137
133
  title: z.ZodString;
138
134
  type: z.ZodEnum<["PLANNED", "REALTIME"]>;
139
135
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
140
- type: "PLANNED" | "REALTIME";
141
136
  created_by: string;
142
137
  updated_by: string;
138
+ type: "PLANNED" | "REALTIME";
143
139
  municipality_ids: string[];
144
140
  active_period_start_date: number & {
145
141
  __brand: "UnixTimestamp";
146
- } & z.BRAND<"UnixTimestamp">;
142
+ };
147
143
  cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
148
144
  description: string;
149
145
  effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
150
146
  modified_by: string;
151
147
  publish_start_date: number & {
152
148
  __brand: "UnixTimestamp";
153
- } & z.BRAND<"UnixTimestamp">;
149
+ };
154
150
  publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
155
151
  reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
156
152
  references: {
@@ -158,18 +154,14 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
158
154
  parent_id: string;
159
155
  }[];
160
156
  title: string;
161
- active_period_end_date?: (number & {
162
- __brand: "UnixTimestamp";
163
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
157
+ active_period_end_date?: UnixTimestamp | null | undefined;
164
158
  coordinates?: [number, number] | null | undefined;
165
159
  file_id?: string | null | undefined;
166
160
  info_url?: string | undefined;
167
- publish_end_date?: (number & {
168
- __brand: "UnixTimestamp";
169
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
161
+ publish_end_date?: UnixTimestamp | null | undefined;
170
162
  }, {
171
- type: "PLANNED" | "REALTIME";
172
163
  created_by: string;
164
+ type: "PLANNED" | "REALTIME";
173
165
  municipality_ids: string[];
174
166
  active_period_start_date: number;
175
167
  cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
@@ -192,12 +184,12 @@ export declare const CreateAlertSchema: z.ZodObject<Omit<{
192
184
  publish_end_date?: number | null | undefined;
193
185
  }>;
194
186
  export declare const UpdateAlertSchema: z.ZodObject<{
195
- type: z.ZodOptional<z.ZodEnum<["PLANNED", "REALTIME"]>>;
196
187
  created_by: z.ZodOptional<z.ZodString>;
197
188
  updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
189
+ type: z.ZodOptional<z.ZodEnum<["PLANNED", "REALTIME"]>>;
198
190
  municipality_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
199
- active_period_end_date: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
200
- active_period_start_date: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
191
+ active_period_end_date: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>>>;
192
+ active_period_start_date: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
201
193
  cause: z.ZodOptional<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER"]>>;
202
194
  coordinates: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>>;
203
195
  description: z.ZodOptional<z.ZodString>;
@@ -205,8 +197,8 @@ export declare const UpdateAlertSchema: z.ZodObject<{
205
197
  file_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
206
198
  info_url: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
207
199
  modified_by: z.ZodOptional<z.ZodString>;
208
- publish_end_date: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>>;
209
- publish_start_date: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
200
+ publish_end_date: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>>>;
201
+ publish_start_date: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
210
202
  publish_status: z.ZodOptional<z.ZodEnum<["PUBLISHED", "ARCHIVED", "DRAFT"]>>;
211
203
  reference_type: z.ZodOptional<z.ZodEnum<["LINE", "STOP", "AGENCY", "TRIP"]>>;
212
204
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -221,16 +213,12 @@ export declare const UpdateAlertSchema: z.ZodObject<{
221
213
  }>, "many">>;
222
214
  title: z.ZodOptional<z.ZodString>;
223
215
  }, "strict", z.ZodTypeAny, {
224
- type?: "PLANNED" | "REALTIME" | undefined;
225
216
  created_by?: string | undefined;
226
217
  updated_by?: string | undefined;
218
+ type?: "PLANNED" | "REALTIME" | undefined;
227
219
  municipality_ids?: string[] | undefined;
228
- active_period_end_date?: (number & {
229
- __brand: "UnixTimestamp";
230
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
231
- active_period_start_date?: (number & {
232
- __brand: "UnixTimestamp";
233
- } & z.BRAND<"UnixTimestamp">) | undefined;
220
+ active_period_end_date?: UnixTimestamp | null | undefined;
221
+ active_period_start_date?: UnixTimestamp | undefined;
234
222
  cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER" | undefined;
235
223
  coordinates?: [number, number] | null | undefined;
236
224
  description?: string | undefined;
@@ -238,12 +226,8 @@ export declare const UpdateAlertSchema: z.ZodObject<{
238
226
  file_id?: string | null | undefined;
239
227
  info_url?: string | undefined;
240
228
  modified_by?: string | undefined;
241
- publish_end_date?: (number & {
242
- __brand: "UnixTimestamp";
243
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
244
- publish_start_date?: (number & {
245
- __brand: "UnixTimestamp";
246
- } & z.BRAND<"UnixTimestamp">) | undefined;
229
+ publish_end_date?: UnixTimestamp | null | undefined;
230
+ publish_start_date?: UnixTimestamp | undefined;
247
231
  publish_status?: "PUBLISHED" | "ARCHIVED" | "DRAFT" | undefined;
248
232
  reference_type?: "LINE" | "STOP" | "AGENCY" | "TRIP" | undefined;
249
233
  references?: {
@@ -252,9 +236,9 @@ export declare const UpdateAlertSchema: z.ZodObject<{
252
236
  }[] | undefined;
253
237
  title?: string | undefined;
254
238
  }, {
255
- type?: "PLANNED" | "REALTIME" | undefined;
256
239
  created_by?: string | undefined;
257
240
  updated_by?: string | undefined;
241
+ type?: "PLANNED" | "REALTIME" | undefined;
258
242
  municipality_ids?: string[] | undefined;
259
243
  active_period_end_date?: number | null | undefined;
260
244
  active_period_start_date?: number | undefined;
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
2
  import { z } from 'zod';
3
3
  export declare const RoleSchema: z.ZodObject<{
4
4
  _id: z.ZodString;
5
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
5
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
6
6
  created_by: z.ZodDefault<z.ZodString>;
7
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
7
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
8
8
  updated_by: z.ZodDefault<z.ZodString>;
9
9
  } & {
10
10
  name: z.ZodString;
@@ -25,11 +25,11 @@ export declare const RoleSchema: z.ZodObject<{
25
25
  _id: string;
26
26
  created_at: number & {
27
27
  __brand: "UnixTimestamp";
28
- } & z.BRAND<"UnixTimestamp">;
28
+ };
29
29
  created_by: string;
30
30
  updated_at: number & {
31
31
  __brand: "UnixTimestamp";
32
- } & z.BRAND<"UnixTimestamp">;
32
+ };
33
33
  updated_by: string;
34
34
  name: string;
35
35
  permissions: {
@@ -52,9 +52,9 @@ export declare const RoleSchema: z.ZodObject<{
52
52
  }>;
53
53
  export declare const CreateRoleSchema: z.ZodObject<Omit<{
54
54
  _id: z.ZodString;
55
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
55
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
56
56
  created_by: z.ZodDefault<z.ZodString>;
57
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
57
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
58
58
  updated_by: z.ZodDefault<z.ZodString>;
59
59
  } & {
60
60
  name: z.ZodString;
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
2
  import { z } from 'zod';
3
3
  export declare const SessionSchema: z.ZodObject<{
4
4
  _id: z.ZodString;
5
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
5
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
6
6
  created_by: z.ZodDefault<z.ZodString>;
7
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
7
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
8
8
  updated_by: z.ZodDefault<z.ZodString>;
9
9
  } & {
10
10
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
@@ -14,11 +14,11 @@ export declare const SessionSchema: z.ZodObject<{
14
14
  _id: string;
15
15
  created_at: number & {
16
16
  __brand: "UnixTimestamp";
17
- } & z.BRAND<"UnixTimestamp">;
17
+ };
18
18
  created_by: string;
19
19
  updated_at: number & {
20
20
  __brand: "UnixTimestamp";
21
- } & z.BRAND<"UnixTimestamp">;
21
+ };
22
22
  updated_by: string;
23
23
  user_id: string;
24
24
  token: string;
@@ -37,9 +37,9 @@ export declare const SessionSchema: z.ZodObject<{
37
37
  }>;
38
38
  export declare const CreateSessionSchema: z.ZodObject<Omit<{
39
39
  _id: z.ZodString;
40
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
40
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
41
41
  created_by: z.ZodDefault<z.ZodString>;
42
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
42
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
43
43
  updated_by: z.ZodDefault<z.ZodString>;
44
44
  } & {
45
45
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
@@ -5,9 +5,9 @@ export declare const UserPreferenceValueSchema: z.ZodUnion<[z.ZodString, z.ZodNu
5
5
  export type UserPreferenceValue = z.infer<typeof UserPreferenceValueSchema>;
6
6
  export declare const UserSchema: z.ZodObject<{
7
7
  _id: z.ZodString;
8
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
8
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
9
9
  created_by: z.ZodDefault<z.ZodString>;
10
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
10
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
11
11
  updated_by: z.ZodDefault<z.ZodString>;
12
12
  } & {
13
13
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41,11 +41,11 @@ export declare const UserSchema: z.ZodObject<{
41
41
  _id: string;
42
42
  created_at: number & {
43
43
  __brand: "UnixTimestamp";
44
- } & z.BRAND<"UnixTimestamp">;
44
+ };
45
45
  created_by: string;
46
46
  updated_at: number & {
47
47
  __brand: "UnixTimestamp";
48
- } & z.BRAND<"UnixTimestamp">;
48
+ };
49
49
  updated_by: string;
50
50
  email: string;
51
51
  permissions: {
@@ -96,9 +96,9 @@ export declare const UserSchema: z.ZodObject<{
96
96
  }>;
97
97
  export declare const CreateUserSchema: z.ZodObject<Omit<{
98
98
  _id: z.ZodString;
99
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
99
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
100
100
  created_by: z.ZodDefault<z.ZodString>;
101
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
101
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
102
102
  updated_by: z.ZodDefault<z.ZodString>;
103
103
  } & {
104
104
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
2
  import { z } from 'zod';
3
3
  export declare const VerificationTokenSchema: z.ZodObject<{
4
4
  _id: z.ZodString;
5
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
5
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
6
6
  created_by: z.ZodDefault<z.ZodString>;
7
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
7
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
8
8
  updated_by: z.ZodDefault<z.ZodString>;
9
9
  } & {
10
10
  expires_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
@@ -14,11 +14,11 @@ export declare const VerificationTokenSchema: z.ZodObject<{
14
14
  _id: string;
15
15
  created_at: number & {
16
16
  __brand: "UnixTimestamp";
17
- } & z.BRAND<"UnixTimestamp">;
17
+ };
18
18
  created_by: string;
19
19
  updated_at: number & {
20
20
  __brand: "UnixTimestamp";
21
- } & z.BRAND<"UnixTimestamp">;
21
+ };
22
22
  updated_by: string;
23
23
  user_id: string;
24
24
  expires_at: number & {
@@ -37,9 +37,9 @@ export declare const VerificationTokenSchema: z.ZodObject<{
37
37
  }>;
38
38
  export declare const CreateVerificationTokenSchema: z.ZodObject<Omit<{
39
39
  _id: z.ZodString;
40
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
40
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
41
41
  created_by: z.ZodDefault<z.ZodString>;
42
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
42
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
43
43
  updated_by: z.ZodDefault<z.ZodString>;
44
44
  } & {
45
45
  expires_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  export declare const FileSchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
5
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
4
+ created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
5
+ updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
6
6
  } & {
7
7
  created_by: z.ZodString;
8
8
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -18,13 +18,13 @@ export declare const FileSchema: z.ZodObject<{
18
18
  _id: string;
19
19
  created_at: number & {
20
20
  __brand: "UnixTimestamp";
21
- } & z.BRAND<"UnixTimestamp">;
22
- type: string;
21
+ };
23
22
  created_by: string;
24
23
  updated_at: number & {
25
24
  __brand: "UnixTimestamp";
26
- } & z.BRAND<"UnixTimestamp">;
25
+ };
27
26
  updated_by: string;
27
+ type: string;
28
28
  scope: string;
29
29
  name: string;
30
30
  resource_id: string;
@@ -35,10 +35,10 @@ export declare const FileSchema: z.ZodObject<{
35
35
  }, {
36
36
  _id: string;
37
37
  created_at: number;
38
- type: string;
39
38
  created_by: string;
40
39
  updated_at: number;
41
40
  updated_by: string;
41
+ type: string;
42
42
  scope: string;
43
43
  name: string;
44
44
  resource_id: string;
@@ -49,8 +49,8 @@ export declare const FileSchema: z.ZodObject<{
49
49
  }>;
50
50
  export declare const CreateFileSchema: z.ZodObject<Omit<{
51
51
  _id: z.ZodString;
52
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
53
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
52
+ created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
53
+ updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
54
54
  } & {
55
55
  created_by: z.ZodString;
56
56
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -63,9 +63,9 @@ export declare const CreateFileSchema: z.ZodObject<Omit<{
63
63
  updated_by: z.ZodString;
64
64
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
65
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
66
- type: string;
67
66
  created_by: string;
68
67
  updated_by: string;
68
+ type: string;
69
69
  scope: string;
70
70
  name: string;
71
71
  resource_id: string;
@@ -74,9 +74,9 @@ export declare const CreateFileSchema: z.ZodObject<Omit<{
74
74
  metadata?: Record<string, unknown> | null | undefined;
75
75
  url?: string | null | undefined;
76
76
  }, {
77
- type: string;
78
77
  created_by: string;
79
78
  updated_by: string;
79
+ type: string;
80
80
  scope: string;
81
81
  name: string;
82
82
  resource_id: string;
@@ -86,8 +86,8 @@ export declare const CreateFileSchema: z.ZodObject<Omit<{
86
86
  url?: string | null | undefined;
87
87
  }>;
88
88
  export declare const UpdateFileSchema: z.ZodObject<{
89
- type: z.ZodOptional<z.ZodString>;
90
89
  updated_by: z.ZodOptional<z.ZodString>;
90
+ type: z.ZodOptional<z.ZodString>;
91
91
  scope: z.ZodOptional<z.ZodString>;
92
92
  name: z.ZodOptional<z.ZodString>;
93
93
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -96,8 +96,8 @@ export declare const UpdateFileSchema: z.ZodObject<{
96
96
  size: z.ZodOptional<z.ZodNumber>;
97
97
  url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
98
98
  }, "strict", z.ZodTypeAny, {
99
- type?: string | undefined;
100
99
  updated_by?: string | undefined;
100
+ type?: string | undefined;
101
101
  scope?: string | undefined;
102
102
  name?: string | undefined;
103
103
  description?: string | null | undefined;
@@ -106,8 +106,8 @@ export declare const UpdateFileSchema: z.ZodObject<{
106
106
  size?: number | undefined;
107
107
  url?: string | null | undefined;
108
108
  }, {
109
- type?: string | undefined;
110
109
  updated_by?: string | undefined;
110
+ type?: string | undefined;
111
111
  scope?: string | undefined;
112
112
  name?: string | undefined;
113
113
  description?: string | null | undefined;
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  export declare const OrganizationSchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
4
+ created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
5
5
  created_by: z.ZodDefault<z.ZodString>;
6
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
6
+ updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
7
7
  updated_by: z.ZodDefault<z.ZodString>;
8
8
  } & {
9
9
  code: z.ZodString;
@@ -12,36 +12,36 @@ export declare const OrganizationSchema: z.ZodObject<{
12
12
  _id: string;
13
13
  created_at: number & {
14
14
  __brand: "UnixTimestamp";
15
- } & z.BRAND<"UnixTimestamp">;
16
- code: string;
15
+ };
17
16
  created_by: string;
18
17
  updated_at: number & {
19
18
  __brand: "UnixTimestamp";
20
- } & z.BRAND<"UnixTimestamp">;
19
+ };
21
20
  updated_by: string;
21
+ code: string;
22
22
  name: string;
23
23
  }, {
24
24
  _id: string;
25
25
  created_at: number;
26
- code: string;
27
26
  updated_at: number;
27
+ code: string;
28
28
  name: string;
29
29
  created_by?: string | undefined;
30
30
  updated_by?: string | undefined;
31
31
  }>;
32
32
  export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
33
33
  _id: z.ZodString;
34
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
34
+ created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
35
35
  created_by: z.ZodDefault<z.ZodString>;
36
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
36
+ updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
37
37
  updated_by: z.ZodDefault<z.ZodString>;
38
38
  } & {
39
39
  code: z.ZodString;
40
40
  name: z.ZodString;
41
41
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
42
- code: string;
43
42
  created_by: string;
44
43
  updated_by: string;
44
+ code: string;
45
45
  name: string;
46
46
  }, {
47
47
  code: string;
@@ -50,19 +50,19 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
50
50
  updated_by?: string | undefined;
51
51
  }>;
52
52
  export declare const UpdateOrganizationSchema: z.ZodObject<{
53
- code: z.ZodOptional<z.ZodString>;
54
53
  created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
55
54
  updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
55
+ code: z.ZodOptional<z.ZodString>;
56
56
  name: z.ZodOptional<z.ZodString>;
57
57
  }, "strict", z.ZodTypeAny, {
58
- code?: string | undefined;
59
58
  created_by?: string | undefined;
60
59
  updated_by?: string | undefined;
60
+ code?: string | undefined;
61
61
  name?: string | undefined;
62
62
  }, {
63
- code?: string | undefined;
64
63
  created_by?: string | undefined;
65
64
  updated_by?: string | undefined;
65
+ code?: string | undefined;
66
66
  name?: string | undefined;
67
67
  }>;
68
68
  export type Organization = z.infer<typeof OrganizationSchema>;
@@ -78,9 +78,9 @@ export type GTFSValidatorSummary = z.infer<typeof GTFSValidatorSummarySchema>;
78
78
  export type GTFSValidatorMessage = z.infer<typeof GTFSValidatorMessageSchema>;
79
79
  export declare const GtfsValidationSchema: z.ZodObject<{
80
80
  _id: z.ZodString;
81
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
81
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
82
82
  created_by: z.ZodDefault<z.ZodString>;
83
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
83
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
84
84
  updated_by: z.ZodDefault<z.ZodString>;
85
85
  } & {
86
86
  feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
@@ -201,11 +201,11 @@ export declare const GtfsValidationSchema: z.ZodObject<{
201
201
  _id: string;
202
202
  created_at: number & {
203
203
  __brand: "UnixTimestamp";
204
- } & z.BRAND<"UnixTimestamp">;
204
+ };
205
205
  created_by: string;
206
206
  updated_at: number & {
207
207
  __brand: "UnixTimestamp";
208
- } & z.BRAND<"UnixTimestamp">;
208
+ };
209
209
  updated_by: string;
210
210
  file_id: string;
211
211
  feeder_status: "waiting" | "processing" | "complete" | "error";
@@ -292,9 +292,9 @@ export declare const GtfsValidationSchema: z.ZodObject<{
292
292
  }>;
293
293
  export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
294
294
  _id: z.ZodString;
295
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
295
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
296
296
  created_by: z.ZodDefault<z.ZodString>;
297
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
297
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
298
298
  updated_by: z.ZodDefault<z.ZodString>;
299
299
  } & {
300
300
  feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
@@ -4,9 +4,9 @@ import { PlanController } from './plan-controller.js';
4
4
  import { z } from 'zod';
5
5
  export declare const PlanSchema: z.ZodObject<{
6
6
  _id: z.ZodString;
7
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
7
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
8
8
  created_by: z.ZodDefault<z.ZodString>;
9
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
9
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
10
10
  updated_by: z.ZodDefault<z.ZodString>;
11
11
  } & {
12
12
  controller: z.ZodObject<{
@@ -102,11 +102,11 @@ export declare const PlanSchema: z.ZodObject<{
102
102
  _id: string;
103
103
  created_at: number & {
104
104
  __brand: "UnixTimestamp";
105
- } & z.BRAND<"UnixTimestamp">;
105
+ };
106
106
  created_by: string;
107
107
  updated_at: number & {
108
108
  __brand: "UnixTimestamp";
109
- } & z.BRAND<"UnixTimestamp">;
109
+ };
110
110
  updated_by: string;
111
111
  gtfs_agency: {
112
112
  agency_id: string;
@@ -189,9 +189,9 @@ export declare const PlanSchema: z.ZodObject<{
189
189
  }>;
190
190
  export declare const CreatePlanSchema: z.ZodObject<Omit<{
191
191
  _id: z.ZodString;
192
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
192
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
193
193
  created_by: z.ZodDefault<z.ZodString>;
194
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
194
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
195
195
  updated_by: z.ZodDefault<z.ZodString>;
196
196
  } & {
197
197
  controller: z.ZodObject<{