@tmlmobilidade/types 20250903.2310.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.
- package/dist/src/sams/sam.d.ts +9 -9
- package/dist/src/sams/sam.js +1 -1
- package/package.json +1 -1
package/dist/src/sams/sam.d.ts
CHANGED
|
@@ -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"]>>;
|
|
@@ -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,7 +90,6 @@ 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?: {
|
|
@@ -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">>>;
|
|
@@ -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"]>>;
|
|
@@ -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,7 +189,6 @@ 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
194
|
device_id: string | null;
|
|
@@ -201,6 +200,7 @@ 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>;
|
|
@@ -244,7 +244,7 @@ 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;
|
|
@@ -273,7 +273,7 @@ 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;
|
|
@@ -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