@tmlmobilidade/types 20250903.2212.53 → 20250903.2301.20
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.
- package/dist/src/sams/sam.d.ts +9 -0
- package/dist/src/sams/sam.js +1 -0
- package/package.json +1 -1
package/dist/src/sams/sam.d.ts
CHANGED
|
@@ -39,6 +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
43
|
seen_first_at: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
43
44
|
seen_last_at: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
44
45
|
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
@@ -73,6 +74,7 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
73
74
|
transactions_found: number | null;
|
|
74
75
|
transactions_missing: number | null;
|
|
75
76
|
latest_apex_version: string | null;
|
|
77
|
+
remarks: string;
|
|
76
78
|
created_at?: (number & {
|
|
77
79
|
__brand: "UnixTimestamp";
|
|
78
80
|
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
@@ -88,6 +90,7 @@ export declare const SamSchema: z.ZodObject<{
|
|
|
88
90
|
transactions_found: number | null;
|
|
89
91
|
transactions_missing: number | null;
|
|
90
92
|
latest_apex_version: string | null;
|
|
93
|
+
remarks: string;
|
|
91
94
|
created_at?: number | null | undefined;
|
|
92
95
|
updated_at?: number | null | undefined;
|
|
93
96
|
analysis?: {
|
|
@@ -141,6 +144,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
141
144
|
vehicle_id: number | null;
|
|
142
145
|
}>, "many">>;
|
|
143
146
|
latest_apex_version: z.ZodNullable<z.ZodString>;
|
|
147
|
+
remarks: z.ZodString;
|
|
144
148
|
seen_first_at: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
145
149
|
seen_last_at: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
146
150
|
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
@@ -175,6 +179,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
175
179
|
transactions_found: number | null;
|
|
176
180
|
transactions_missing: number | null;
|
|
177
181
|
latest_apex_version: string | null;
|
|
182
|
+
remarks: string;
|
|
178
183
|
}, {
|
|
179
184
|
_id: number;
|
|
180
185
|
agency_id: string;
|
|
@@ -184,6 +189,7 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
|
184
189
|
transactions_found: number | null;
|
|
185
190
|
transactions_missing: number | null;
|
|
186
191
|
latest_apex_version: string | null;
|
|
192
|
+
remarks: string;
|
|
187
193
|
analysis?: {
|
|
188
194
|
apex_version: string | null;
|
|
189
195
|
device_id: number | null;
|
|
@@ -238,6 +244,7 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
238
244
|
transactions_found: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
239
245
|
transactions_missing: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
240
246
|
latest_apex_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
|
+
remarks: z.ZodOptional<z.ZodString>;
|
|
241
248
|
}, "strict", z.ZodTypeAny, {
|
|
242
249
|
_id?: number | undefined;
|
|
243
250
|
agency_id?: string | undefined;
|
|
@@ -266,6 +273,7 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
266
273
|
transactions_found?: number | null | undefined;
|
|
267
274
|
transactions_missing?: number | null | undefined;
|
|
268
275
|
latest_apex_version?: string | null | undefined;
|
|
276
|
+
remarks?: string | undefined;
|
|
269
277
|
}, {
|
|
270
278
|
_id?: number | undefined;
|
|
271
279
|
agency_id?: string | undefined;
|
|
@@ -286,6 +294,7 @@ export declare const UpdateSamSchema: z.ZodObject<{
|
|
|
286
294
|
transactions_found?: number | null | undefined;
|
|
287
295
|
transactions_missing?: number | null | undefined;
|
|
288
296
|
latest_apex_version?: string | null | undefined;
|
|
297
|
+
remarks?: string | undefined;
|
|
289
298
|
}>;
|
|
290
299
|
/**
|
|
291
300
|
* SAMs are the chips that contain the keys used to sign APEX transactions.
|
package/dist/src/sams/sam.js
CHANGED
|
@@ -10,6 +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
14
|
seen_first_at: z.number().transform(validateUnixTimestamp).brand('UnixTimestamp').nullable(),
|
|
14
15
|
seen_last_at: z.number().transform(validateUnixTimestamp).brand('UnixTimestamp').nullable(),
|
|
15
16
|
system_status: ProcessingStatusSchema.default('waiting'),
|
package/package.json
CHANGED