@tmlmobilidade/types 20250911.1325.18 → 20250911.1425.9

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.
@@ -2,9 +2,9 @@ import { z } from 'zod';
2
2
  export declare const OrganizationSchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
4
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
5
- created_by: z.ZodDefault<z.ZodString>;
5
+ created_by: z.ZodOptional<z.ZodString>;
6
6
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
7
- updated_by: z.ZodDefault<z.ZodString>;
7
+ updated_by: z.ZodOptional<z.ZodString>;
8
8
  } & {
9
9
  code: z.ZodString;
10
10
  name: z.ZodString;
@@ -13,13 +13,13 @@ export declare const OrganizationSchema: z.ZodObject<{
13
13
  created_at: number & {
14
14
  __brand: "UnixTimestamp";
15
15
  };
16
- created_by: string;
17
16
  updated_at: number & {
18
17
  __brand: "UnixTimestamp";
19
18
  };
20
- updated_by: string;
21
19
  code: string;
22
20
  name: string;
21
+ created_by?: string | undefined;
22
+ updated_by?: string | undefined;
23
23
  }, {
24
24
  _id: string;
25
25
  created_at: number;
@@ -32,17 +32,17 @@ export declare const OrganizationSchema: z.ZodObject<{
32
32
  export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
33
33
  _id: z.ZodString;
34
34
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
35
- created_by: z.ZodDefault<z.ZodString>;
35
+ created_by: z.ZodOptional<z.ZodString>;
36
36
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
37
- updated_by: z.ZodDefault<z.ZodString>;
37
+ updated_by: z.ZodOptional<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
- created_by: string;
43
- updated_by: string;
44
42
  code: string;
45
43
  name: string;
44
+ created_by?: string | undefined;
45
+ updated_by?: string | undefined;
46
46
  }, {
47
47
  code: string;
48
48
  name: string;
@@ -50,7 +50,7 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
50
50
  updated_by?: string | undefined;
51
51
  }>;
52
52
  export declare const UpdateOrganizationSchema: z.ZodObject<{
53
- updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
53
+ updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
54
54
  code: z.ZodOptional<z.ZodString>;
55
55
  name: z.ZodOptional<z.ZodString>;
56
56
  }, "strict", z.ZodTypeAny, {
@@ -77,9 +77,9 @@ export type GTFSValidatorMessage = z.infer<typeof GTFSValidatorMessageSchema>;
77
77
  export declare const GtfsValidationSchema: z.ZodObject<{
78
78
  _id: z.ZodString;
79
79
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
80
- created_by: z.ZodDefault<z.ZodString>;
80
+ created_by: z.ZodOptional<z.ZodString>;
81
81
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
82
- updated_by: z.ZodDefault<z.ZodString>;
82
+ updated_by: z.ZodOptional<z.ZodString>;
83
83
  } & {
84
84
  feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
85
85
  file_id: z.ZodString;
@@ -196,11 +196,9 @@ export declare const GtfsValidationSchema: z.ZodObject<{
196
196
  created_at: number & {
197
197
  __brand: "UnixTimestamp";
198
198
  };
199
- created_by: string;
200
199
  updated_at: number & {
201
200
  __brand: "UnixTimestamp";
202
201
  };
203
- updated_by: string;
204
202
  file_id: string;
205
203
  feeder_status: "waiting" | "processing" | "complete" | "error";
206
204
  gtfs_agency: {
@@ -225,6 +223,8 @@ export declare const GtfsValidationSchema: z.ZodObject<{
225
223
  feed_version?: string | null | undefined;
226
224
  };
227
225
  notification_sent: boolean;
226
+ created_by?: string | undefined;
227
+ updated_by?: string | undefined;
228
228
  summary?: {
229
229
  messages: {
230
230
  message: string;
@@ -283,9 +283,9 @@ export declare const GtfsValidationSchema: z.ZodObject<{
283
283
  export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
284
284
  _id: z.ZodString;
285
285
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
286
- created_by: z.ZodDefault<z.ZodString>;
286
+ created_by: z.ZodOptional<z.ZodString>;
287
287
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
288
- updated_by: z.ZodDefault<z.ZodString>;
288
+ updated_by: z.ZodOptional<z.ZodString>;
289
289
  } & {
290
290
  feeder_status: z.ZodEnum<["waiting", "processing", "complete", "error"]>;
291
291
  file_id: z.ZodString;
@@ -398,8 +398,6 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
398
398
  total_warnings: number;
399
399
  }>>>;
400
400
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
401
- created_by: string;
402
- updated_by: string;
403
401
  file_id: string;
404
402
  feeder_status: "waiting" | "processing" | "complete" | "error";
405
403
  gtfs_agency: {
@@ -424,6 +422,8 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
424
422
  feed_version?: string | null | undefined;
425
423
  };
426
424
  notification_sent: boolean;
425
+ created_by?: string | undefined;
426
+ updated_by?: string | undefined;
427
427
  summary?: {
428
428
  messages: {
429
429
  message: string;
@@ -477,7 +477,7 @@ export declare const CreateGtfsValidationSchema: z.ZodObject<Omit<{
477
477
  } | null | undefined;
478
478
  }>;
479
479
  export declare const UpdateGtfsValidationSchema: z.ZodObject<{
480
- updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
480
+ updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
481
481
  file_id: z.ZodOptional<z.ZodString>;
482
482
  feeder_status: z.ZodOptional<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
483
483
  gtfs_agency: z.ZodOptional<z.ZodObject<{
@@ -2,9 +2,9 @@ import { z } from 'zod';
2
2
  export declare const PlanSchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
4
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
5
- created_by: z.ZodDefault<z.ZodString>;
5
+ created_by: z.ZodOptional<z.ZodString>;
6
6
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
7
- updated_by: z.ZodDefault<z.ZodString>;
7
+ updated_by: z.ZodOptional<z.ZodString>;
8
8
  } & {
9
9
  controller: z.ZodObject<{
10
10
  last_hash: z.ZodNullable<z.ZodString>;
@@ -94,11 +94,9 @@ export declare const PlanSchema: z.ZodObject<{
94
94
  created_at: number & {
95
95
  __brand: "UnixTimestamp";
96
96
  };
97
- created_by: string;
98
97
  updated_at: number & {
99
98
  __brand: "UnixTimestamp";
100
99
  };
101
- updated_by: string;
102
100
  gtfs_agency: {
103
101
  agency_id: string;
104
102
  agency_name: string;
@@ -132,6 +130,8 @@ export declare const PlanSchema: z.ZodObject<{
132
130
  operation_plan_id: string | null;
133
131
  };
134
132
  status_merger: "waiting" | "processing" | "complete" | "error";
133
+ created_by?: string | undefined;
134
+ updated_by?: string | undefined;
135
135
  }, {
136
136
  _id: string;
137
137
  created_at: number;
@@ -175,9 +175,9 @@ export declare const PlanSchema: z.ZodObject<{
175
175
  export declare const CreatePlanSchema: z.ZodObject<Omit<{
176
176
  _id: z.ZodString;
177
177
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
178
- created_by: z.ZodDefault<z.ZodString>;
178
+ created_by: z.ZodOptional<z.ZodString>;
179
179
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
180
- updated_by: z.ZodDefault<z.ZodString>;
180
+ updated_by: z.ZodOptional<z.ZodString>;
181
181
  } & {
182
182
  controller: z.ZodObject<{
183
183
  last_hash: z.ZodNullable<z.ZodString>;
@@ -263,8 +263,6 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
263
263
  }>;
264
264
  status_merger: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
265
265
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
266
- created_by: string;
267
- updated_by: string;
268
266
  gtfs_agency: {
269
267
  agency_id: string;
270
268
  agency_name: string;
@@ -298,6 +296,8 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
298
296
  operation_plan_id: string | null;
299
297
  };
300
298
  status_merger: "waiting" | "processing" | "complete" | "error";
299
+ created_by?: string | undefined;
300
+ updated_by?: string | undefined;
301
301
  }, {
302
302
  gtfs_agency: {
303
303
  agency_id: string;
@@ -336,7 +336,7 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
336
336
  status_merger?: "waiting" | "processing" | "complete" | "error" | undefined;
337
337
  }>;
338
338
  export declare const UpdatePlanSchema: z.ZodObject<{
339
- updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
339
+ updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
340
340
  gtfs_agency: z.ZodOptional<z.ZodObject<{
341
341
  agency_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
342
  agency_fare_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2,16 +2,16 @@ import { z } from 'zod';
2
2
  export declare const RideAuditSchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
4
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
5
- created_by: z.ZodDefault<z.ZodString>;
5
+ created_by: z.ZodOptional<z.ZodString>;
6
6
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
7
- updated_by: z.ZodDefault<z.ZodString>;
7
+ updated_by: z.ZodOptional<z.ZodString>;
8
8
  } & {
9
9
  comments: z.ZodArray<z.ZodObject<{
10
10
  _id: z.ZodString;
11
11
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
12
- created_by: z.ZodDefault<z.ZodString>;
12
+ created_by: z.ZodOptional<z.ZodString>;
13
13
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
14
- updated_by: z.ZodDefault<z.ZodString>;
14
+ updated_by: z.ZodOptional<z.ZodString>;
15
15
  } & {
16
16
  message: z.ZodString;
17
17
  type: z.ZodLiteral<"note">;
@@ -20,13 +20,13 @@ export declare const RideAuditSchema: z.ZodObject<{
20
20
  created_at: number & {
21
21
  __brand: "UnixTimestamp";
22
22
  };
23
- created_by: string;
24
23
  updated_at: number & {
25
24
  __brand: "UnixTimestamp";
26
25
  };
27
- updated_by: string;
28
26
  message: string;
29
27
  type: "note";
28
+ created_by?: string | undefined;
29
+ updated_by?: string | undefined;
30
30
  }, {
31
31
  _id: string;
32
32
  created_at: number;
@@ -43,26 +43,26 @@ export declare const RideAuditSchema: z.ZodObject<{
43
43
  created_at: number & {
44
44
  __brand: "UnixTimestamp";
45
45
  };
46
- created_by: string;
47
46
  updated_at: number & {
48
47
  __brand: "UnixTimestamp";
49
48
  };
50
- updated_by: string;
51
49
  is_locked: boolean;
52
50
  comments: {
53
51
  _id: string;
54
52
  created_at: number & {
55
53
  __brand: "UnixTimestamp";
56
54
  };
57
- created_by: string;
58
55
  updated_at: number & {
59
56
  __brand: "UnixTimestamp";
60
57
  };
61
- updated_by: string;
62
58
  message: string;
63
59
  type: "note";
60
+ created_by?: string | undefined;
61
+ updated_by?: string | undefined;
64
62
  }[];
65
63
  ride_id: string;
64
+ created_by?: string | undefined;
65
+ updated_by?: string | undefined;
66
66
  }, {
67
67
  _id: string;
68
68
  created_at: number;
@@ -84,16 +84,16 @@ export declare const RideAuditSchema: z.ZodObject<{
84
84
  export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
85
85
  _id: z.ZodOptional<z.ZodString>;
86
86
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
87
- created_by: z.ZodDefault<z.ZodString>;
87
+ created_by: z.ZodOptional<z.ZodString>;
88
88
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
89
- updated_by: z.ZodDefault<z.ZodString>;
89
+ updated_by: z.ZodOptional<z.ZodString>;
90
90
  is_locked: z.ZodDefault<z.ZodBoolean>;
91
91
  comments: z.ZodArray<z.ZodObject<{
92
92
  _id: z.ZodString;
93
93
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
94
- created_by: z.ZodDefault<z.ZodString>;
94
+ created_by: z.ZodOptional<z.ZodString>;
95
95
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
96
- updated_by: z.ZodDefault<z.ZodString>;
96
+ updated_by: z.ZodOptional<z.ZodString>;
97
97
  } & {
98
98
  message: z.ZodString;
99
99
  type: z.ZodLiteral<"note">;
@@ -102,13 +102,13 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
102
102
  created_at: number & {
103
103
  __brand: "UnixTimestamp";
104
104
  };
105
- created_by: string;
106
105
  updated_at: number & {
107
106
  __brand: "UnixTimestamp";
108
107
  };
109
- updated_by: string;
110
108
  message: string;
111
109
  type: "note";
110
+ created_by?: string | undefined;
111
+ updated_by?: string | undefined;
112
112
  }, {
113
113
  _id: string;
114
114
  created_at: number;
@@ -120,24 +120,24 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
120
120
  }>, "many">;
121
121
  ride_id: z.ZodString;
122
122
  }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
123
- created_by: string;
124
- updated_by: string;
125
123
  is_locked: boolean;
126
124
  comments: {
127
125
  _id: string;
128
126
  created_at: number & {
129
127
  __brand: "UnixTimestamp";
130
128
  };
131
- created_by: string;
132
129
  updated_at: number & {
133
130
  __brand: "UnixTimestamp";
134
131
  };
135
- updated_by: string;
136
132
  message: string;
137
133
  type: "note";
134
+ created_by?: string | undefined;
135
+ updated_by?: string | undefined;
138
136
  }[];
139
137
  ride_id: string;
140
138
  _id?: string | undefined;
139
+ created_by?: string | undefined;
140
+ updated_by?: string | undefined;
141
141
  }, {
142
142
  comments: {
143
143
  _id: string;
@@ -156,14 +156,14 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
156
156
  }>;
157
157
  export declare const UpdateRideAuditSchema: z.ZodObject<{
158
158
  _id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
159
- updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
159
+ updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
160
160
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
161
161
  comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
162
162
  _id: z.ZodString;
163
163
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
164
- created_by: z.ZodDefault<z.ZodString>;
164
+ created_by: z.ZodOptional<z.ZodString>;
165
165
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
166
- updated_by: z.ZodDefault<z.ZodString>;
166
+ updated_by: z.ZodOptional<z.ZodString>;
167
167
  } & {
168
168
  message: z.ZodString;
169
169
  type: z.ZodLiteral<"note">;
@@ -172,13 +172,13 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
172
172
  created_at: number & {
173
173
  __brand: "UnixTimestamp";
174
174
  };
175
- created_by: string;
176
175
  updated_at: number & {
177
176
  __brand: "UnixTimestamp";
178
177
  };
179
- updated_by: string;
180
178
  message: string;
181
179
  type: "note";
180
+ created_by?: string | undefined;
181
+ updated_by?: string | undefined;
182
182
  }, {
183
183
  _id: string;
184
184
  created_at: number;
@@ -198,13 +198,13 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
198
198
  created_at: number & {
199
199
  __brand: "UnixTimestamp";
200
200
  };
201
- created_by: string;
202
201
  updated_at: number & {
203
202
  __brand: "UnixTimestamp";
204
203
  };
205
- updated_by: string;
206
204
  message: string;
207
205
  type: "note";
206
+ created_by?: string | undefined;
207
+ updated_by?: string | undefined;
208
208
  }[] | undefined;
209
209
  ride_id?: string | undefined;
210
210
  }, {