@tmlmobilidade/types 20250829.1023.6 → 20250829.1048.38

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.
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ export declare const ANALYSIS_GRADE_OPTIONS: readonly ["pass", "fail", "error"];
3
+ export declare const AnalysisGradeSchema: z.ZodEnum<["pass", "fail", "error"]>;
2
4
  export declare const RideAnalysisSchema: z.ZodObject<{
3
5
  grade: z.ZodEnum<["pass", "fail", "error"]>;
4
6
  message: z.ZodString;
@@ -1,8 +1,11 @@
1
1
  /* * */
2
2
  import { z } from 'zod';
3
3
  /* * */
4
+ export const ANALYSIS_GRADE_OPTIONS = ['pass', 'fail', 'error'];
5
+ export const AnalysisGradeSchema = z.enum(ANALYSIS_GRADE_OPTIONS);
6
+ /* * */
4
7
  export const RideAnalysisSchema = z.object({
5
- grade: z.enum(['pass', 'fail', 'error']),
8
+ grade: AnalysisGradeSchema,
6
9
  message: z.string(),
7
10
  reason: z.string(),
8
11
  value: z.number().nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20250829.1023.6",
3
+ "version": "20250829.1048.38",
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",