@tmlmobilidade/types 20250829.936.9 → 20250829.950.26
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/alert.d.ts +8 -0
- package/dist/src/alert.js +5 -0
- package/package.json +1 -1
package/dist/src/alert.d.ts
CHANGED
|
@@ -304,3 +304,11 @@ export declare const AlertPermissionSchema: z.ZodObject<{
|
|
|
304
304
|
agency_ids: string[];
|
|
305
305
|
}>;
|
|
306
306
|
export type AlertPermission = z.infer<typeof AlertPermissionSchema>;
|
|
307
|
+
export declare const GetAllAlertsQuerySchema: z.ZodObject<{
|
|
308
|
+
realtime: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
realtime: boolean;
|
|
311
|
+
}, {
|
|
312
|
+
realtime?: unknown;
|
|
313
|
+
}>;
|
|
314
|
+
export type GetAllAlertsQuery = z.infer<typeof GetAllAlertsQuerySchema>;
|
package/dist/src/alert.js
CHANGED
|
@@ -85,3 +85,8 @@ export const UpdateAlertSchema = AlertSchema
|
|
|
85
85
|
export const AlertPermissionSchema = z.object({
|
|
86
86
|
agency_ids: z.array(z.string()),
|
|
87
87
|
});
|
|
88
|
+
/* * */
|
|
89
|
+
export const GetAllAlertsQuerySchema = z.object({
|
|
90
|
+
realtime: z.preprocess((val) => val === 'true' || val === '1', z.boolean()),
|
|
91
|
+
});
|
|
92
|
+
/* * */
|
package/package.json
CHANGED