@tmlmobilidade/types 20250828.2255.34 → 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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20250828.2255.34",
3
+ "version": "20250829.950.26",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",