@tmlmobilidade/types 20250916.1704.35 → 20250916.1705.17

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,6 +1,6 @@
1
1
  export * from './hashed-shape.js';
2
2
  export * from './hashed-trip.js';
3
+ export * from './ride-acceptance.js';
3
4
  export * from './ride-analysis.js';
4
5
  export * from './ride-audit.js';
5
- export * from './ride-justification.js';
6
6
  export * from './ride.js';
@@ -1,6 +1,6 @@
1
1
  export * from './hashed-shape.js';
2
2
  export * from './hashed-trip.js';
3
+ export * from './ride-acceptance.js';
3
4
  export * from './ride-analysis.js';
4
5
  export * from './ride-audit.js';
5
- export * from './ride-justification.js';
6
6
  export * from './ride.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20250916.1704.35",
3
+ "version": "20250916.1705.17",
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",
@@ -217,6 +217,11 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
217
217
  __brand: "UnixTimestamp";
218
218
  };
219
219
  is_locked: boolean;
220
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
221
+ analysis_summary: Record<string, {
222
+ grade: "error" | "pass" | "fail" | "skip";
223
+ reason: string;
224
+ }>;
220
225
  comments: ({
221
226
  _id: string;
222
227
  created_at: number & {
@@ -245,12 +250,6 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
245
250
  metadata?: Record<string, unknown> | null | undefined;
246
251
  prev_value?: any;
247
252
  })[];
248
- ride_id: string;
249
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
250
- analysis_summary: Record<string, {
251
- grade: "error" | "pass" | "fail" | "skip";
252
- reason: string;
253
- }>;
254
253
  justification: {
255
254
  created_at: number & {
256
255
  __brand: "UnixTimestamp";
@@ -264,13 +263,13 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
264
263
  created_by?: string | undefined;
265
264
  updated_by?: string | undefined;
266
265
  } | null;
266
+ ride_id: string;
267
267
  created_by?: string | undefined;
268
268
  updated_by?: string | undefined;
269
269
  }, {
270
270
  _id: string;
271
271
  created_at: number;
272
272
  updated_at: number;
273
- ride_id: string;
274
273
  acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
275
274
  analysis_summary: Record<string, {
276
275
  grade: "error" | "pass" | "fail" | "skip";
@@ -285,6 +284,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
285
284
  updated_by?: string | undefined;
286
285
  pto_message?: string | undefined;
287
286
  } | null;
287
+ ride_id: string;
288
288
  created_by?: string | undefined;
289
289
  updated_by?: string | undefined;
290
290
  is_locked?: boolean | undefined;
@@ -316,6 +316,17 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
316
316
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
317
317
  updated_by: z.ZodOptional<z.ZodString>;
318
318
  is_locked: z.ZodDefault<z.ZodBoolean>;
319
+ acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
320
+ analysis_summary: z.ZodRecord<z.ZodString, z.ZodObject<{
321
+ grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
322
+ reason: z.ZodString;
323
+ }, "strip", z.ZodTypeAny, {
324
+ grade: "error" | "pass" | "fail" | "skip";
325
+ reason: string;
326
+ }, {
327
+ grade: "error" | "pass" | "fail" | "skip";
328
+ reason: string;
329
+ }>>;
319
330
  comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
320
331
  _id: z.ZodString;
321
332
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -430,18 +441,6 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
430
441
  metadata?: Record<string, unknown> | null | undefined;
431
442
  prev_value?: any;
432
443
  }>, "many">>;
433
- ride_id: z.ZodString;
434
- acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
435
- analysis_summary: z.ZodRecord<z.ZodString, z.ZodObject<{
436
- grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
437
- reason: z.ZodString;
438
- }, "strip", z.ZodTypeAny, {
439
- grade: "error" | "pass" | "fail" | "skip";
440
- reason: string;
441
- }, {
442
- grade: "error" | "pass" | "fail" | "skip";
443
- reason: string;
444
- }>>;
445
444
  justification: z.ZodNullable<z.ZodObject<Omit<{
446
445
  _id: z.ZodString;
447
446
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -473,8 +472,14 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
473
472
  updated_by?: string | undefined;
474
473
  pto_message?: string | undefined;
475
474
  }>>;
475
+ ride_id: z.ZodString;
476
476
  }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
477
477
  is_locked: boolean;
478
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
479
+ analysis_summary: Record<string, {
480
+ grade: "error" | "pass" | "fail" | "skip";
481
+ reason: string;
482
+ }>;
478
483
  comments: ({
479
484
  _id: string;
480
485
  created_at: number & {
@@ -503,12 +508,6 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
503
508
  metadata?: Record<string, unknown> | null | undefined;
504
509
  prev_value?: any;
505
510
  })[];
506
- ride_id: string;
507
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
508
- analysis_summary: Record<string, {
509
- grade: "error" | "pass" | "fail" | "skip";
510
- reason: string;
511
- }>;
512
511
  justification: {
513
512
  created_at: number & {
514
513
  __brand: "UnixTimestamp";
@@ -522,11 +521,11 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
522
521
  created_by?: string | undefined;
523
522
  updated_by?: string | undefined;
524
523
  } | null;
524
+ ride_id: string;
525
525
  _id?: string | undefined;
526
526
  created_by?: string | undefined;
527
527
  updated_by?: string | undefined;
528
528
  }, {
529
- ride_id: string;
530
529
  acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
531
530
  analysis_summary: Record<string, {
532
531
  grade: "error" | "pass" | "fail" | "skip";
@@ -541,6 +540,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
541
540
  updated_by?: string | undefined;
542
541
  pto_message?: string | undefined;
543
542
  } | null;
543
+ ride_id: string;
544
544
  _id?: string | undefined;
545
545
  created_by?: string | undefined;
546
546
  updated_by?: string | undefined;
@@ -571,6 +571,17 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
571
571
  updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
572
572
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
573
573
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
574
+ acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
575
+ analysis_summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
576
+ grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
577
+ reason: z.ZodString;
578
+ }, "strip", z.ZodTypeAny, {
579
+ grade: "error" | "pass" | "fail" | "skip";
580
+ reason: string;
581
+ }, {
582
+ grade: "error" | "pass" | "fail" | "skip";
583
+ reason: string;
584
+ }>>>;
574
585
  comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
575
586
  _id: z.ZodString;
576
587
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -685,18 +696,6 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
685
696
  metadata?: Record<string, unknown> | null | undefined;
686
697
  prev_value?: any;
687
698
  }>, "many">>>;
688
- ride_id: z.ZodOptional<z.ZodString>;
689
- acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
690
- analysis_summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
691
- grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
692
- reason: z.ZodString;
693
- }, "strip", z.ZodTypeAny, {
694
- grade: "error" | "pass" | "fail" | "skip";
695
- reason: string;
696
- }, {
697
- grade: "error" | "pass" | "fail" | "skip";
698
- reason: string;
699
- }>>>;
700
699
  justification: z.ZodOptional<z.ZodNullable<z.ZodObject<Omit<{
701
700
  _id: z.ZodString;
702
701
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -728,11 +727,17 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
728
727
  updated_by?: string | undefined;
729
728
  pto_message?: string | undefined;
730
729
  }>>>;
730
+ ride_id: z.ZodOptional<z.ZodString>;
731
731
  }, "strict", z.ZodTypeAny, {
732
732
  _id?: string | undefined;
733
733
  updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
734
734
  updated_by?: string | undefined;
735
735
  is_locked?: boolean | undefined;
736
+ acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
737
+ analysis_summary?: Record<string, {
738
+ grade: "error" | "pass" | "fail" | "skip";
739
+ reason: string;
740
+ }> | undefined;
736
741
  comments?: ({
737
742
  _id: string;
738
743
  created_at: number & {
@@ -761,12 +766,6 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
761
766
  metadata?: Record<string, unknown> | null | undefined;
762
767
  prev_value?: any;
763
768
  })[] | undefined;
764
- ride_id?: string | undefined;
765
- acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
766
- analysis_summary?: Record<string, {
767
- grade: "error" | "pass" | "fail" | "skip";
768
- reason: string;
769
- }> | undefined;
770
769
  justification?: {
771
770
  created_at: number & {
772
771
  __brand: "UnixTimestamp";
@@ -780,11 +779,17 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
780
779
  created_by?: string | undefined;
781
780
  updated_by?: string | undefined;
782
781
  } | null | undefined;
782
+ ride_id?: string | undefined;
783
783
  }, {
784
784
  _id?: string | undefined;
785
785
  updated_at?: number | undefined;
786
786
  updated_by?: string | undefined;
787
787
  is_locked?: boolean | undefined;
788
+ acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
789
+ analysis_summary?: Record<string, {
790
+ grade: "error" | "pass" | "fail" | "skip";
791
+ reason: string;
792
+ }> | undefined;
788
793
  comments?: ({
789
794
  _id: string;
790
795
  created_at: number;
@@ -805,12 +810,6 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
805
810
  metadata?: Record<string, unknown> | null | undefined;
806
811
  prev_value?: any;
807
812
  })[] | undefined;
808
- ride_id?: string | undefined;
809
- acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
810
- analysis_summary?: Record<string, {
811
- grade: "error" | "pass" | "fail" | "skip";
812
- reason: string;
813
- }> | undefined;
814
813
  justification?: {
815
814
  created_at: number;
816
815
  updated_at: number;
@@ -820,6 +819,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
820
819
  updated_by?: string | undefined;
821
820
  pto_message?: string | undefined;
822
821
  } | null | undefined;
822
+ ride_id?: string | undefined;
823
823
  }>;
824
824
  export type RideAcceptance = z.infer<typeof RideAcceptanceSchema>;
825
825
  export type CreateRideAcceptanceDto = z.infer<typeof CreateRideAcceptanceSchema>;