@tmlmobilidade/types 20250903.2301.20 → 20250903.2353.43
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,7 +2,7 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const SamAnalysisSchema: z.ZodObject<{
|
|
4
4
|
apex_version: z.ZodNullable<z.ZodString>;
|
|
5
|
-
device_id: z.ZodNullable<z.
|
|
5
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
6
6
|
end_time: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
7
7
|
start_time: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
8
8
|
transactions_expected: z.ZodNullable<z.ZodNumber>;
|
|
@@ -11,7 +11,7 @@ export declare const SamAnalysisSchema: z.ZodObject<{
|
|
|
11
11
|
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
12
12
|
}, "strict", z.ZodTypeAny, {
|
|
13
13
|
apex_version: string | null;
|
|
14
|
-
device_id:
|
|
14
|
+
device_id: string | null;
|
|
15
15
|
end_time: (number & {
|
|
16
16
|
__brand: "UnixTimestamp";
|
|
17
17
|
} & z.BRAND<"UnixTimestamp">) | null;
|
|
@@ -24,7 +24,7 @@ export declare const SamAnalysisSchema: z.ZodObject<{
|
|
|
24
24
|
vehicle_id: number | null;
|
|
25
25
|
}, {
|
|
26
26
|
apex_version: string | null;
|
|
27
|
-
device_id:
|
|
27
|
+
device_id: string | null;
|
|
28
28
|
end_time: number | null;
|
|
29
29
|
start_time: number | null;
|
|
30
30
|
transactions_expected: number | null;
|
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
/* * */
|
|
5
5
|
export const SamAnalysisSchema = z.object({
|
|
6
6
|
apex_version: z.string().nullable(),
|
|
7
|
-
device_id: z.
|
|
7
|
+
device_id: z.string().nullable(),
|
|
8
8
|
end_time: z.number().transform(validateUnixTimestamp).brand('UnixTimestamp').nullable(),
|
|
9
9
|
start_time: z.number().transform(validateUnixTimestamp).brand('UnixTimestamp').nullable(),
|
|
10
10
|
transactions_expected: z.number().nullable(),
|
package/dist/src/sams/sam.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
8
8
|
agency_id: z.ZodString;
|
|
9
9
|
analysis: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
10
10
|
apex_version: z.ZodNullable<z.ZodString>;
|
|
11
|
-
device_id: z.ZodNullable<z.
|
|
11
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
12
12
|
end_time: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
13
13
|
start_time: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
14
14
|
transactions_expected: z.ZodNullable<z.ZodNumber>;
|
|
@@ -17,7 +17,7 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
17
17
|
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
}, "strict", z.ZodTypeAny, {
|
|
19
19
|
apex_version: string | null;
|
|
20
|
-
device_id:
|
|
20
|
+
device_id: string | null;
|
|
21
21
|
end_time: (number & {
|
|
22
22
|
__brand: "UnixTimestamp";
|
|
23
23
|
} & z.BRAND<"UnixTimestamp">) | null;
|
|
@@ -30,7 +30,7 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
30
30
|
vehicle_id: number | null;
|
|
31
31
|
}, {
|
|
32
32
|
apex_version: string | null;
|
|
33
|
-
device_id:
|
|
33
|
+
device_id: string | null;
|
|
34
34
|
end_time: number | null;
|
|
35
35
|
start_time: number | null;
|
|
36
36
|
transactions_expected: number | null;
|
|
@@ -39,7 +39,7 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
39
39
|
vehicle_id: number | null;
|
|
40
40
|
}>, "many">>;
|
|
41
41
|
latest_apex_version: z.ZodNullable<z.ZodString>;
|
|
42
|
-
remarks: z.ZodString
|
|
42
|
+
remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
seen_first_at: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
44
44
|
seen_last_at: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
45
45
|
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
@@ -51,7 +51,7 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
51
51
|
agency_id: string;
|
|
52
52
|
analysis: {
|
|
53
53
|
apex_version: string | null;
|
|
54
|
-
device_id:
|
|
54
|
+
device_id: string | null;
|
|
55
55
|
end_time: (number & {
|
|
56
56
|
__brand: "UnixTimestamp";
|
|
57
57
|
} & z.BRAND<"UnixTimestamp">) | null;
|
|
@@ -74,7 +74,7 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
74
74
|
transactions_found: number | null;
|
|
75
75
|
transactions_missing: number | null;
|
|
76
76
|
latest_apex_version: string | null;
|
|
77
|
-
remarks: string;
|
|
77
|
+
remarks: string | null;
|
|
78
78
|
created_at?: (number & {
|
|
79
79
|
__brand: "UnixTimestamp";
|
|
80
80
|
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
@@ -90,12 +90,11 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
90
90
|
transactions_found: number | null;
|
|
91
91
|
transactions_missing: number | null;
|
|
92
92
|
latest_apex_version: string | null;
|
|
93
|
-
remarks: string;
|
|
94
93
|
created_at?: number | null | undefined;
|
|
95
94
|
updated_at?: number | null | undefined;
|
|
96
95
|
analysis?: {
|
|
97
96
|
apex_version: string | null;
|
|
98
|
-
device_id:
|
|
97
|
+
device_id: string | null;
|
|
99
98
|
end_time: number | null;
|
|
100
99
|
start_time: number | null;
|
|
101
100
|
transactions_expected: number | null;
|
|
@@ -104,6 +103,7 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
104
103
|
vehicle_id: number | null;
|
|
105
104
|
}[] | undefined;
|
|
106
105
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
106
|
+
remarks?: string | null | undefined;
|
|
107
107
|
}>;
|
|
108
108
|
export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
109
109
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
@@ -113,7 +113,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
113
113
|
agency_id: z.ZodString;
|
|
114
114
|
analysis: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
115
115
|
apex_version: z.ZodNullable<z.ZodString>;
|
|
116
|
-
device_id: z.ZodNullable<z.
|
|
116
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
117
117
|
end_time: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
118
118
|
start_time: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
119
119
|
transactions_expected: z.ZodNullable<z.ZodNumber>;
|
|
@@ -122,7 +122,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
122
122
|
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
123
123
|
}, "strict", z.ZodTypeAny, {
|
|
124
124
|
apex_version: string | null;
|
|
125
|
-
device_id:
|
|
125
|
+
device_id: string | null;
|
|
126
126
|
end_time: (number & {
|
|
127
127
|
__brand: "UnixTimestamp";
|
|
128
128
|
} & z.BRAND<"UnixTimestamp">) | null;
|
|
@@ -135,7 +135,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
135
135
|
vehicle_id: number | null;
|
|
136
136
|
}, {
|
|
137
137
|
apex_version: string | null;
|
|
138
|
-
device_id:
|
|
138
|
+
device_id: string | null;
|
|
139
139
|
end_time: number | null;
|
|
140
140
|
start_time: number | null;
|
|
141
141
|
transactions_expected: number | null;
|
|
@@ -144,7 +144,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
144
144
|
vehicle_id: number | null;
|
|
145
145
|
}>, "many">>;
|
|
146
146
|
latest_apex_version: z.ZodNullable<z.ZodString>;
|
|
147
|
-
remarks: z.ZodString
|
|
147
|
+
remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
148
148
|
seen_first_at: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
149
149
|
seen_last_at: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
150
150
|
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
@@ -156,7 +156,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
156
156
|
agency_id: string;
|
|
157
157
|
analysis: {
|
|
158
158
|
apex_version: string | null;
|
|
159
|
-
device_id:
|
|
159
|
+
device_id: string | null;
|
|
160
160
|
end_time: (number & {
|
|
161
161
|
__brand: "UnixTimestamp";
|
|
162
162
|
} & z.BRAND<"UnixTimestamp">) | null;
|
|
@@ -179,7 +179,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
179
179
|
transactions_found: number | null;
|
|
180
180
|
transactions_missing: number | null;
|
|
181
181
|
latest_apex_version: string | null;
|
|
182
|
-
remarks: string;
|
|
182
|
+
remarks: string | null;
|
|
183
183
|
}, {
|
|
184
184
|
_id: number;
|
|
185
185
|
agency_id: string;
|
|
@@ -189,10 +189,9 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
189
189
|
transactions_found: number | null;
|
|
190
190
|
transactions_missing: number | null;
|
|
191
191
|
latest_apex_version: string | null;
|
|
192
|
-
remarks: string;
|
|
193
192
|
analysis?: {
|
|
194
193
|
apex_version: string | null;
|
|
195
|
-
device_id:
|
|
194
|
+
device_id: string | null;
|
|
196
195
|
end_time: number | null;
|
|
197
196
|
start_time: number | null;
|
|
198
197
|
transactions_expected: number | null;
|
|
@@ -201,13 +200,14 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
201
200
|
vehicle_id: number | null;
|
|
202
201
|
}[] | undefined;
|
|
203
202
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
203
|
+
remarks?: string | null | undefined;
|
|
204
204
|
}>;
|
|
205
205
|
export declare const UpdateSamSchema: z.ZodObject<{
|
|
206
206
|
_id: z.ZodOptional<z.ZodNumber>;
|
|
207
207
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
208
208
|
analysis: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
209
209
|
apex_version: z.ZodNullable<z.ZodString>;
|
|
210
|
-
device_id: z.ZodNullable<z.
|
|
210
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
211
211
|
end_time: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
212
212
|
start_time: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
213
213
|
transactions_expected: z.ZodNullable<z.ZodNumber>;
|
|
@@ -216,7 +216,7 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
216
216
|
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
217
217
|
}, "strict", z.ZodTypeAny, {
|
|
218
218
|
apex_version: string | null;
|
|
219
|
-
device_id:
|
|
219
|
+
device_id: string | null;
|
|
220
220
|
end_time: (number & {
|
|
221
221
|
__brand: "UnixTimestamp";
|
|
222
222
|
} & z.BRAND<"UnixTimestamp">) | null;
|
|
@@ -229,7 +229,7 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
229
229
|
vehicle_id: number | null;
|
|
230
230
|
}, {
|
|
231
231
|
apex_version: string | null;
|
|
232
|
-
device_id:
|
|
232
|
+
device_id: string | null;
|
|
233
233
|
end_time: number | null;
|
|
234
234
|
start_time: number | null;
|
|
235
235
|
transactions_expected: number | null;
|
|
@@ -244,13 +244,13 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
244
244
|
transactions_found: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
245
245
|
transactions_missing: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
246
246
|
latest_apex_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
|
-
remarks: z.ZodOptional<z.ZodString
|
|
247
|
+
remarks: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
248
248
|
}, "strict", z.ZodTypeAny, {
|
|
249
249
|
_id?: number | undefined;
|
|
250
250
|
agency_id?: string | undefined;
|
|
251
251
|
analysis?: {
|
|
252
252
|
apex_version: string | null;
|
|
253
|
-
device_id:
|
|
253
|
+
device_id: string | null;
|
|
254
254
|
end_time: (number & {
|
|
255
255
|
__brand: "UnixTimestamp";
|
|
256
256
|
} & z.BRAND<"UnixTimestamp">) | null;
|
|
@@ -273,13 +273,13 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
273
273
|
transactions_found?: number | null | undefined;
|
|
274
274
|
transactions_missing?: number | null | undefined;
|
|
275
275
|
latest_apex_version?: string | null | undefined;
|
|
276
|
-
remarks?: string | undefined;
|
|
276
|
+
remarks?: string | null | undefined;
|
|
277
277
|
}, {
|
|
278
278
|
_id?: number | undefined;
|
|
279
279
|
agency_id?: string | undefined;
|
|
280
280
|
analysis?: {
|
|
281
281
|
apex_version: string | null;
|
|
282
|
-
device_id:
|
|
282
|
+
device_id: string | null;
|
|
283
283
|
end_time: number | null;
|
|
284
284
|
start_time: number | null;
|
|
285
285
|
transactions_expected: number | null;
|
|
@@ -294,7 +294,7 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
294
294
|
transactions_found?: number | null | undefined;
|
|
295
295
|
transactions_missing?: number | null | undefined;
|
|
296
296
|
latest_apex_version?: string | null | undefined;
|
|
297
|
-
remarks?: string | undefined;
|
|
297
|
+
remarks?: string | null | undefined;
|
|
298
298
|
}>;
|
|
299
299
|
/**
|
|
300
300
|
* SAMs are the chips that contain the keys used to sign APEX transactions.
|
package/dist/src/sams/sam.js
CHANGED
|
@@ -10,7 +10,7 @@ export const SamSchema = DocumentSchema.extend({
|
|
|
10
10
|
agency_id: z.string(),
|
|
11
11
|
analysis: z.array(SamAnalysisSchema).default([]),
|
|
12
12
|
latest_apex_version: z.string().nullable(),
|
|
13
|
-
remarks: z.string(),
|
|
13
|
+
remarks: z.string().nullable().default(null),
|
|
14
14
|
seen_first_at: z.number().transform(validateUnixTimestamp).brand('UnixTimestamp').nullable(),
|
|
15
15
|
seen_last_at: z.number().transform(validateUnixTimestamp).brand('UnixTimestamp').nullable(),
|
|
16
16
|
system_status: ProcessingStatusSchema.default('waiting'),
|
package/package.json
CHANGED