@tmlmobilidade/types 20250915.1116.6 → 20250915.1142.45
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.
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { type UnixTimestamp } from './unix-timestamp.js';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const CommentTypeSchema: z.ZodEnum<["statusChanged", "note", "system_info"]>;
|
|
4
3
|
export type CommentType = z.infer<typeof CommentTypeSchema>;
|
|
5
4
|
export declare const NoteCommentSchema: z.ZodObject<{
|
|
6
5
|
_id: z.ZodString;
|
|
7
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
6
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
8
7
|
created_by: z.ZodOptional<z.ZodString>;
|
|
9
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
8
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
10
9
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
11
10
|
} & {
|
|
12
11
|
message: z.ZodString;
|
|
@@ -34,8 +33,8 @@ export declare const NoteCommentSchema: z.ZodObject<{
|
|
|
34
33
|
}>;
|
|
35
34
|
export declare const SystemInfoCommentSchema: z.ZodObject<{
|
|
36
35
|
_id: z.ZodString;
|
|
37
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
38
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
36
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
37
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
39
38
|
} & {
|
|
40
39
|
created_by: z.ZodLiteral<"system">;
|
|
41
40
|
message: z.ZodString;
|
|
@@ -64,9 +63,9 @@ export declare const SystemInfoCommentSchema: z.ZodObject<{
|
|
|
64
63
|
}>;
|
|
65
64
|
export declare const StatusChangedCommentSchema: z.ZodObject<{
|
|
66
65
|
_id: z.ZodString;
|
|
67
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
66
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
68
67
|
created_by: z.ZodOptional<z.ZodString>;
|
|
69
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
68
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
70
69
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
71
70
|
} & {
|
|
72
71
|
curr_status: z.ZodString;
|
|
@@ -97,9 +96,9 @@ export declare const StatusChangedCommentSchema: z.ZodObject<{
|
|
|
97
96
|
}>;
|
|
98
97
|
export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
99
98
|
_id: z.ZodString;
|
|
100
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
99
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
101
100
|
created_by: z.ZodOptional<z.ZodString>;
|
|
102
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
101
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
103
102
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
104
103
|
} & {
|
|
105
104
|
message: z.ZodString;
|
|
@@ -126,8 +125,8 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
126
125
|
updated_by?: string | undefined;
|
|
127
126
|
}>, z.ZodObject<{
|
|
128
127
|
_id: z.ZodString;
|
|
129
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
130
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
128
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
129
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
131
130
|
} & {
|
|
132
131
|
created_by: z.ZodLiteral<"system">;
|
|
133
132
|
message: z.ZodString;
|
|
@@ -155,9 +154,9 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
155
154
|
type: "system_info";
|
|
156
155
|
}>, z.ZodObject<{
|
|
157
156
|
_id: z.ZodString;
|
|
158
|
-
created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
157
|
+
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
159
158
|
created_by: z.ZodOptional<z.ZodString>;
|
|
160
|
-
updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
159
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
161
160
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
162
161
|
} & {
|
|
163
162
|
curr_status: z.ZodString;
|
|
@@ -248,9 +247,6 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
|
|
|
248
247
|
created_by?: string | undefined;
|
|
249
248
|
updated_by?: string | undefined;
|
|
250
249
|
}>;
|
|
251
|
-
export
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
255
|
-
export type CreateCommentDto = Omit<z.infer<typeof CommentSchema>, 'created_at' | 'updated_at'>;
|
|
256
|
-
export type UpdateCommentDto = Partial<Omit<CreateCommentDto, 'created_by'>>;
|
|
250
|
+
export type Comment = z.infer<typeof CommentSchema>;
|
|
251
|
+
export type CreateCommentDto = z.infer<typeof CommentSchema>;
|
|
252
|
+
export type UpdateCommentDto = Partial<CreateCommentDto>;
|
|
@@ -8,6 +8,222 @@ export type RideJustificationCause = z.infer<typeof RideJustificationCauseSchema
|
|
|
8
8
|
export declare const RIDE_JUSTIFICATION_SOURCE_OPTIONS: readonly ["MANUAL", "REALTIME_ALERT"];
|
|
9
9
|
export declare const RideJustificationSourceSchema: z.ZodEnum<["MANUAL", "REALTIME_ALERT"]>;
|
|
10
10
|
export type RideJustificationSource = z.infer<typeof RideJustificationSourceSchema>;
|
|
11
|
+
declare const CommentSchemaWithRideJustificationStatus: z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
12
|
+
_id: z.ZodString;
|
|
13
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
14
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
15
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
16
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
17
|
+
} & {
|
|
18
|
+
message: z.ZodString;
|
|
19
|
+
type: z.ZodLiteral<"note">;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
_id: string;
|
|
22
|
+
created_at: number & {
|
|
23
|
+
__brand: "UnixTimestamp";
|
|
24
|
+
};
|
|
25
|
+
updated_at: number & {
|
|
26
|
+
__brand: "UnixTimestamp";
|
|
27
|
+
};
|
|
28
|
+
message: string;
|
|
29
|
+
type: "note";
|
|
30
|
+
created_by?: string | undefined;
|
|
31
|
+
updated_by?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
_id: string;
|
|
34
|
+
created_at: number;
|
|
35
|
+
updated_at: number;
|
|
36
|
+
message: string;
|
|
37
|
+
type: "note";
|
|
38
|
+
created_by?: string | undefined;
|
|
39
|
+
updated_by?: string | undefined;
|
|
40
|
+
}>, z.ZodObject<{
|
|
41
|
+
_id: z.ZodString;
|
|
42
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
43
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
44
|
+
} & {
|
|
45
|
+
created_by: z.ZodLiteral<"system">;
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
type: z.ZodLiteral<"system_info">;
|
|
48
|
+
updated_by: z.ZodLiteral<"system">;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
_id: string;
|
|
51
|
+
created_at: number & {
|
|
52
|
+
__brand: "UnixTimestamp";
|
|
53
|
+
};
|
|
54
|
+
created_by: "system";
|
|
55
|
+
updated_at: number & {
|
|
56
|
+
__brand: "UnixTimestamp";
|
|
57
|
+
};
|
|
58
|
+
updated_by: "system";
|
|
59
|
+
message: string;
|
|
60
|
+
type: "system_info";
|
|
61
|
+
}, {
|
|
62
|
+
_id: string;
|
|
63
|
+
created_at: number;
|
|
64
|
+
created_by: "system";
|
|
65
|
+
updated_at: number;
|
|
66
|
+
updated_by: "system";
|
|
67
|
+
message: string;
|
|
68
|
+
type: "system_info";
|
|
69
|
+
}>, z.ZodObject<{
|
|
70
|
+
_id: z.ZodString;
|
|
71
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
72
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
73
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
74
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
75
|
+
} & {
|
|
76
|
+
curr_status: z.ZodString;
|
|
77
|
+
prev_status: z.ZodString;
|
|
78
|
+
type: z.ZodLiteral<"statusChanged">;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
_id: string;
|
|
81
|
+
created_at: number & {
|
|
82
|
+
__brand: "UnixTimestamp";
|
|
83
|
+
};
|
|
84
|
+
updated_at: number & {
|
|
85
|
+
__brand: "UnixTimestamp";
|
|
86
|
+
};
|
|
87
|
+
type: "statusChanged";
|
|
88
|
+
curr_status: string;
|
|
89
|
+
prev_status: string;
|
|
90
|
+
created_by?: string | undefined;
|
|
91
|
+
updated_by?: string | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
_id: string;
|
|
94
|
+
created_at: number;
|
|
95
|
+
updated_at: number;
|
|
96
|
+
type: "statusChanged";
|
|
97
|
+
curr_status: string;
|
|
98
|
+
prev_status: string;
|
|
99
|
+
created_by?: string | undefined;
|
|
100
|
+
updated_by?: string | undefined;
|
|
101
|
+
}>]>, {
|
|
102
|
+
_id: string;
|
|
103
|
+
created_at: number & {
|
|
104
|
+
__brand: "UnixTimestamp";
|
|
105
|
+
};
|
|
106
|
+
updated_at: number & {
|
|
107
|
+
__brand: "UnixTimestamp";
|
|
108
|
+
};
|
|
109
|
+
message: string;
|
|
110
|
+
type: "note";
|
|
111
|
+
created_by?: string | undefined;
|
|
112
|
+
updated_by?: string | undefined;
|
|
113
|
+
} | {
|
|
114
|
+
_id: string;
|
|
115
|
+
created_at: number & {
|
|
116
|
+
__brand: "UnixTimestamp";
|
|
117
|
+
};
|
|
118
|
+
created_by: "system";
|
|
119
|
+
updated_at: number & {
|
|
120
|
+
__brand: "UnixTimestamp";
|
|
121
|
+
};
|
|
122
|
+
updated_by: "system";
|
|
123
|
+
message: string;
|
|
124
|
+
type: "system_info";
|
|
125
|
+
} | {
|
|
126
|
+
_id: string;
|
|
127
|
+
created_at: number & {
|
|
128
|
+
__brand: "UnixTimestamp";
|
|
129
|
+
};
|
|
130
|
+
updated_at: number & {
|
|
131
|
+
__brand: "UnixTimestamp";
|
|
132
|
+
};
|
|
133
|
+
type: "statusChanged";
|
|
134
|
+
curr_status: string;
|
|
135
|
+
prev_status: string;
|
|
136
|
+
created_by?: string | undefined;
|
|
137
|
+
updated_by?: string | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
_id: string;
|
|
140
|
+
created_at: number;
|
|
141
|
+
updated_at: number;
|
|
142
|
+
message: string;
|
|
143
|
+
type: "note";
|
|
144
|
+
created_by?: string | undefined;
|
|
145
|
+
updated_by?: string | undefined;
|
|
146
|
+
} | {
|
|
147
|
+
_id: string;
|
|
148
|
+
created_at: number;
|
|
149
|
+
created_by: "system";
|
|
150
|
+
updated_at: number;
|
|
151
|
+
updated_by: "system";
|
|
152
|
+
message: string;
|
|
153
|
+
type: "system_info";
|
|
154
|
+
} | {
|
|
155
|
+
_id: string;
|
|
156
|
+
created_at: number;
|
|
157
|
+
updated_at: number;
|
|
158
|
+
type: "statusChanged";
|
|
159
|
+
curr_status: string;
|
|
160
|
+
prev_status: string;
|
|
161
|
+
created_by?: string | undefined;
|
|
162
|
+
updated_by?: string | undefined;
|
|
163
|
+
}>, {
|
|
164
|
+
_id: string;
|
|
165
|
+
created_at: number & {
|
|
166
|
+
__brand: "UnixTimestamp";
|
|
167
|
+
};
|
|
168
|
+
updated_at: number & {
|
|
169
|
+
__brand: "UnixTimestamp";
|
|
170
|
+
};
|
|
171
|
+
message: string;
|
|
172
|
+
type: "note";
|
|
173
|
+
created_by?: string | undefined;
|
|
174
|
+
updated_by?: string | undefined;
|
|
175
|
+
} | {
|
|
176
|
+
_id: string;
|
|
177
|
+
created_at: number & {
|
|
178
|
+
__brand: "UnixTimestamp";
|
|
179
|
+
};
|
|
180
|
+
created_by: "system";
|
|
181
|
+
updated_at: number & {
|
|
182
|
+
__brand: "UnixTimestamp";
|
|
183
|
+
};
|
|
184
|
+
updated_by: "system";
|
|
185
|
+
message: string;
|
|
186
|
+
type: "system_info";
|
|
187
|
+
} | {
|
|
188
|
+
_id: string;
|
|
189
|
+
created_at: number & {
|
|
190
|
+
__brand: "UnixTimestamp";
|
|
191
|
+
};
|
|
192
|
+
updated_at: number & {
|
|
193
|
+
__brand: "UnixTimestamp";
|
|
194
|
+
};
|
|
195
|
+
type: "statusChanged";
|
|
196
|
+
curr_status: string;
|
|
197
|
+
prev_status: string;
|
|
198
|
+
created_by?: string | undefined;
|
|
199
|
+
updated_by?: string | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
_id: string;
|
|
202
|
+
created_at: number;
|
|
203
|
+
updated_at: number;
|
|
204
|
+
message: string;
|
|
205
|
+
type: "note";
|
|
206
|
+
created_by?: string | undefined;
|
|
207
|
+
updated_by?: string | undefined;
|
|
208
|
+
} | {
|
|
209
|
+
_id: string;
|
|
210
|
+
created_at: number;
|
|
211
|
+
created_by: "system";
|
|
212
|
+
updated_at: number;
|
|
213
|
+
updated_by: "system";
|
|
214
|
+
message: string;
|
|
215
|
+
type: "system_info";
|
|
216
|
+
} | {
|
|
217
|
+
_id: string;
|
|
218
|
+
created_at: number;
|
|
219
|
+
updated_at: number;
|
|
220
|
+
type: "statusChanged";
|
|
221
|
+
curr_status: string;
|
|
222
|
+
prev_status: string;
|
|
223
|
+
created_by?: string | undefined;
|
|
224
|
+
updated_by?: string | undefined;
|
|
225
|
+
}>;
|
|
226
|
+
export type RideJustificationComment = z.infer<typeof CommentSchemaWithRideJustificationStatus>;
|
|
11
227
|
export declare const RideJustificationSchema: z.ZodObject<{
|
|
12
228
|
_id: z.ZodString;
|
|
13
229
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -994,3 +1210,4 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
994
1210
|
export type RideJustification = z.infer<typeof RideJustificationSchema>;
|
|
995
1211
|
export type CreateRideJustificationDto = z.infer<typeof CreateRideJustificationSchema>;
|
|
996
1212
|
export type UpdateRideJustificationDto = z.infer<typeof UpdateRideJustificationSchema>;
|
|
1213
|
+
export {};
|
package/package.json
CHANGED