@tmlmobilidade/go-types-core 20261125.128.7 → 20261125.1234.50

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.
@@ -309,720 +309,7 @@ export declare const UserSchema: z.ZodObject<{
309
309
  session_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
310
310
  verification_token_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
311
311
  }, z.core.$strip>;
312
- export declare const CreateUserSchema: z.ZodObject<{
313
- email: z.ZodEmail;
314
- phone: z.ZodDefault<z.ZodNullable<z.ZodString>>;
315
- created_by: z.ZodString;
316
- is_locked: z.ZodDefault<z.ZodBoolean>;
317
- updated_by: z.ZodOptional<z.ZodString>;
318
- email_verified: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>>;
319
- first_name: z.ZodString;
320
- last_name: z.ZodString;
321
- organization_id: z.ZodString;
322
- password_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
323
- permissions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
324
- action: z.ZodEnum<{
325
- create: "create";
326
- delete: "delete";
327
- read: "read";
328
- lock: "lock";
329
- update: "update";
330
- }>;
331
- scope: z.ZodLiteral<"agencies">;
332
- }, z.core.$strip>, z.ZodObject<{
333
- action: z.ZodEnum<{
334
- create: "create";
335
- delete: "delete";
336
- read: "read";
337
- lock: "lock";
338
- update: "update";
339
- update_texts: "update_texts";
340
- update_dates: "update_dates";
341
- update_publish_status: "update_publish_status";
342
- }>;
343
- resources: z.ZodPrefault<z.ZodObject<{
344
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
345
- reference_types: z.ZodDefault<z.ZodArray<z.ZodString>>;
346
- }, z.core.$strip>>;
347
- scope: z.ZodLiteral<"alerts">;
348
- }, z.core.$strip>, z.ZodObject<{
349
- action: z.ZodEnum<{
350
- create: "create";
351
- delete: "delete";
352
- read: "read";
353
- lock: "lock";
354
- update: "update";
355
- }>;
356
- resources: z.ZodPrefault<z.ZodObject<{
357
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
358
- }, z.core.$strip>>;
359
- scope: z.ZodLiteral<"annotations">;
360
- }, z.core.$strip>, z.ZodObject<{
361
- action: z.ZodEnum<{
362
- delete: "delete";
363
- read: "read";
364
- update: "update";
365
- }>;
366
- scope: z.ZodLiteral<"banners">;
367
- }, z.core.$strip>, z.ZodObject<{
368
- action: z.ZodEnum<{
369
- delete: "delete";
370
- read: "read";
371
- update: "update";
372
- }>;
373
- scope: z.ZodLiteral<"changelogs">;
374
- }, z.core.$strip>, z.ZodObject<{
375
- action: z.ZodEnum<{
376
- create: "create";
377
- delete: "delete";
378
- read: "read";
379
- lock: "lock";
380
- update: "update";
381
- }>;
382
- resources: z.ZodPrefault<z.ZodObject<{
383
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
384
- }, z.core.$strip>>;
385
- scope: z.ZodLiteral<"events">;
386
- }, z.core.$strip>, z.ZodObject<{
387
- action: z.ZodEnum<{
388
- create: "create";
389
- delete: "delete";
390
- lock: "lock";
391
- update: "update";
392
- nav: "nav";
393
- }>;
394
- resources: z.ZodPrefault<z.ZodObject<{
395
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
396
- }, z.core.$strip>>;
397
- scope: z.ZodLiteral<"fares">;
398
- }, z.core.$strip>, z.ZodObject<{
399
- action: z.ZodEnum<{
400
- create: "create";
401
- read: "read";
402
- lock: "lock";
403
- request_approval: "request_approval";
404
- update_processing_status: "update_processing_status";
405
- }>;
406
- resources: z.ZodPrefault<z.ZodObject<{
407
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
408
- }, z.core.$strip>>;
409
- scope: z.ZodLiteral<"gtfs_validations">;
410
- }, z.core.$strip>, z.ZodObject<{
411
- action: z.ZodEnum<{
412
- create: "create";
413
- delete: "delete";
414
- read: "read";
415
- lock: "lock";
416
- update: "update";
417
- }>;
418
- resources: z.ZodPrefault<z.ZodObject<{
419
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
420
- }, z.core.$strip>>;
421
- scope: z.ZodLiteral<"holidays">;
422
- }, z.core.$strip>, z.ZodObject<{
423
- action: z.ZodEnum<{
424
- read_links: "read_links";
425
- read_wiki: "read_wiki";
426
- }>;
427
- scope: z.ZodLiteral<"home">;
428
- }, z.core.$strip>, z.ZodObject<{
429
- action: z.ZodEnum<{
430
- create: "create";
431
- delete: "delete";
432
- read: "read";
433
- lock: "lock";
434
- update: "update";
435
- }>;
436
- resources: z.ZodPrefault<z.ZodObject<{
437
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
438
- }, z.core.$strip>>;
439
- scope: z.ZodLiteral<"lines">;
440
- }, z.core.$strip>, z.ZodObject<{
441
- action: z.ZodEnum<{
442
- create: "create";
443
- delete: "delete";
444
- read: "read";
445
- lock: "lock";
446
- update: "update";
447
- }>;
448
- scope: z.ZodLiteral<"organizations">;
449
- }, z.core.$strip>, z.ZodObject<{
450
- action: z.ZodEnum<{
451
- read: "read";
452
- }>;
453
- scope: z.ZodLiteral<"performance">;
454
- }, z.core.$strip>, z.ZodObject<{
455
- action: z.ZodEnum<{
456
- create: "create";
457
- delete: "delete";
458
- read: "read";
459
- lock: "lock";
460
- update: "update";
461
- read_controller: "read_controller";
462
- read_pcgi_legacy: "read_pcgi_legacy";
463
- update_controller: "update_controller";
464
- update_feed_info_dates: "update_feed_info_dates";
465
- update_gtfs_plan: "update_gtfs_plan";
466
- update_pcgi_legacy: "update_pcgi_legacy";
467
- read_apex_file: "read_apex_file";
468
- update_apex_file: "update_apex_file";
469
- delete_apex_file: "delete_apex_file";
470
- send_apex_notification: "send_apex_notification";
471
- generate_pdf_posters: "generate_pdf_posters";
472
- }>;
473
- resources: z.ZodPrefault<z.ZodObject<{
474
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
475
- }, z.core.$strip>>;
476
- scope: z.ZodLiteral<"plans">;
477
- }, z.core.$strip>, z.ZodObject<{
478
- action: z.ZodEnum<{
479
- acceptance_change_status: "acceptance_change_status";
480
- acceptance_justify: "acceptance_justify";
481
- acceptance_lock: "acceptance_lock";
482
- acceptance_read: "acceptance_read";
483
- analsys_lock: "analsys_lock";
484
- analysis_lock: "analysis_lock";
485
- analysis_read: "analysis_read";
486
- analysis_reprocess: "analysis_reprocess";
487
- analysis_update: "analysis_update";
488
- audit_lock: "audit_lock";
489
- audit_read: "audit_read";
490
- audit_update: "audit_update";
491
- acceptance_comment_activity: "acceptance_comment_activity";
492
- }>;
493
- resources: z.ZodPrefault<z.ZodObject<{
494
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
495
- }, z.core.$strip>>;
496
- scope: z.ZodLiteral<"rides">;
497
- }, z.core.$strip>, z.ZodObject<{
498
- action: z.ZodEnum<{
499
- create: "create";
500
- delete: "delete";
501
- read: "read";
502
- lock: "lock";
503
- update: "update";
504
- }>;
505
- scope: z.ZodLiteral<"roles">;
506
- }, z.core.$strip>, z.ZodObject<{
507
- action: z.ZodEnum<{
508
- read: "read";
509
- export: "export";
510
- }>;
511
- resources: z.ZodPrefault<z.ZodObject<{
512
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
513
- }, z.core.$strip>>;
514
- scope: z.ZodLiteral<"sams">;
515
- }, z.core.$strip>, z.ZodObject<{
516
- action: z.ZodEnum<{
517
- create: "create";
518
- delete: "delete";
519
- read: "read";
520
- lock: "lock";
521
- update: "update";
522
- update_publish_status: "update_publish_status";
523
- }>;
524
- resources: z.ZodPrefault<z.ZodObject<{
525
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
526
- }, z.core.$strip>>;
527
- scope: z.ZodLiteral<"schools">;
528
- }, z.core.$strip>, z.ZodObject<{
529
- action: z.ZodEnum<{
530
- create: "create";
531
- delete: "delete";
532
- read: "read";
533
- lock: "lock";
534
- update: "update";
535
- export: "export";
536
- edit_coordinates: "edit_coordinates";
537
- edit_name: "edit_name";
538
- }>;
539
- resources: z.ZodPrefault<z.ZodObject<{
540
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
541
- location_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
542
- }, z.core.$strip>>;
543
- scope: z.ZodLiteral<"stops">;
544
- }, z.core.$strip>, z.ZodObject<{
545
- action: z.ZodEnum<{
546
- create: "create";
547
- delete: "delete";
548
- lock: "lock";
549
- update: "update";
550
- nav: "nav";
551
- }>;
552
- resources: z.ZodPrefault<z.ZodObject<{
553
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
554
- }, z.core.$strip>>;
555
- scope: z.ZodLiteral<"typologies">;
556
- }, z.core.$strip>, z.ZodObject<{
557
- action: z.ZodEnum<{
558
- create: "create";
559
- delete: "delete";
560
- read: "read";
561
- lock: "lock";
562
- update: "update";
563
- }>;
564
- scope: z.ZodLiteral<"users">;
565
- }, z.core.$strip>, z.ZodObject<{
566
- action: z.ZodEnum<{
567
- create: "create";
568
- delete: "delete";
569
- read: "read";
570
- lock: "lock";
571
- update: "update";
572
- }>;
573
- resources: z.ZodPrefault<z.ZodObject<{
574
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
575
- }, z.core.$strip>>;
576
- scope: z.ZodLiteral<"vehicles">;
577
- }, z.core.$strip>, z.ZodObject<{
578
- action: z.ZodEnum<{
579
- create: "create";
580
- delete: "delete";
581
- read: "read";
582
- lock: "lock";
583
- update: "update";
584
- }>;
585
- resources: z.ZodPrefault<z.ZodObject<{
586
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
587
- }, z.core.$strip>>;
588
- scope: z.ZodLiteral<"year_periods">;
589
- }, z.core.$strip>, z.ZodObject<{
590
- action: z.ZodEnum<{
591
- create: "create";
592
- delete: "delete";
593
- lock: "lock";
594
- update: "update";
595
- nav: "nav";
596
- }>;
597
- resources: z.ZodPrefault<z.ZodObject<{
598
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
599
- }, z.core.$strip>>;
600
- scope: z.ZodLiteral<"zones">;
601
- }, z.core.$strip>], "scope">>>;
602
- preferences: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>>>>>;
603
- role_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
604
- seen_last_at: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>>;
605
- session_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
606
- verification_token_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
607
- }, z.core.$strip>;
608
- export declare const UpdateUserSchema: z.ZodObject<{
609
- email: z.ZodOptional<z.ZodPreprocess<z.ZodEmail, string>>;
610
- phone: z.ZodOptional<z.ZodPreprocess<z.ZodDefault<z.ZodNullable<z.ZodString>>, string | null | undefined>>;
611
- is_locked: z.ZodOptional<z.ZodPreprocess<z.ZodDefault<z.ZodBoolean>, boolean | undefined>>;
612
- updated_by: z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodString>, string | undefined>>;
613
- email_verified: z.ZodOptional<z.ZodPreprocess<z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>>, string | number | null | undefined>>;
614
- first_name: z.ZodOptional<z.ZodPreprocess<z.ZodString, string>>;
615
- last_name: z.ZodOptional<z.ZodPreprocess<z.ZodString, string>>;
616
- organization_id: z.ZodOptional<z.ZodPreprocess<z.ZodString, string>>;
617
- password_hash: z.ZodOptional<z.ZodPreprocess<z.ZodDefault<z.ZodNullable<z.ZodString>>, string | null | undefined>>;
618
- permissions: z.ZodOptional<z.ZodPreprocess<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
619
- action: z.ZodEnum<{
620
- create: "create";
621
- delete: "delete";
622
- read: "read";
623
- lock: "lock";
624
- update: "update";
625
- }>;
626
- scope: z.ZodLiteral<"agencies">;
627
- }, z.core.$strip>, z.ZodObject<{
628
- action: z.ZodEnum<{
629
- create: "create";
630
- delete: "delete";
631
- read: "read";
632
- lock: "lock";
633
- update: "update";
634
- update_texts: "update_texts";
635
- update_dates: "update_dates";
636
- update_publish_status: "update_publish_status";
637
- }>;
638
- resources: z.ZodPrefault<z.ZodObject<{
639
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
640
- reference_types: z.ZodDefault<z.ZodArray<z.ZodString>>;
641
- }, z.core.$strip>>;
642
- scope: z.ZodLiteral<"alerts">;
643
- }, z.core.$strip>, z.ZodObject<{
644
- action: z.ZodEnum<{
645
- create: "create";
646
- delete: "delete";
647
- read: "read";
648
- lock: "lock";
649
- update: "update";
650
- }>;
651
- resources: z.ZodPrefault<z.ZodObject<{
652
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
653
- }, z.core.$strip>>;
654
- scope: z.ZodLiteral<"annotations">;
655
- }, z.core.$strip>, z.ZodObject<{
656
- action: z.ZodEnum<{
657
- delete: "delete";
658
- read: "read";
659
- update: "update";
660
- }>;
661
- scope: z.ZodLiteral<"banners">;
662
- }, z.core.$strip>, z.ZodObject<{
663
- action: z.ZodEnum<{
664
- delete: "delete";
665
- read: "read";
666
- update: "update";
667
- }>;
668
- scope: z.ZodLiteral<"changelogs">;
669
- }, z.core.$strip>, z.ZodObject<{
670
- action: z.ZodEnum<{
671
- create: "create";
672
- delete: "delete";
673
- read: "read";
674
- lock: "lock";
675
- update: "update";
676
- }>;
677
- resources: z.ZodPrefault<z.ZodObject<{
678
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
679
- }, z.core.$strip>>;
680
- scope: z.ZodLiteral<"events">;
681
- }, z.core.$strip>, z.ZodObject<{
682
- action: z.ZodEnum<{
683
- create: "create";
684
- delete: "delete";
685
- lock: "lock";
686
- update: "update";
687
- nav: "nav";
688
- }>;
689
- resources: z.ZodPrefault<z.ZodObject<{
690
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
691
- }, z.core.$strip>>;
692
- scope: z.ZodLiteral<"fares">;
693
- }, z.core.$strip>, z.ZodObject<{
694
- action: z.ZodEnum<{
695
- create: "create";
696
- read: "read";
697
- lock: "lock";
698
- request_approval: "request_approval";
699
- update_processing_status: "update_processing_status";
700
- }>;
701
- resources: z.ZodPrefault<z.ZodObject<{
702
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
703
- }, z.core.$strip>>;
704
- scope: z.ZodLiteral<"gtfs_validations">;
705
- }, z.core.$strip>, z.ZodObject<{
706
- action: z.ZodEnum<{
707
- create: "create";
708
- delete: "delete";
709
- read: "read";
710
- lock: "lock";
711
- update: "update";
712
- }>;
713
- resources: z.ZodPrefault<z.ZodObject<{
714
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
715
- }, z.core.$strip>>;
716
- scope: z.ZodLiteral<"holidays">;
717
- }, z.core.$strip>, z.ZodObject<{
718
- action: z.ZodEnum<{
719
- read_links: "read_links";
720
- read_wiki: "read_wiki";
721
- }>;
722
- scope: z.ZodLiteral<"home">;
723
- }, z.core.$strip>, z.ZodObject<{
724
- action: z.ZodEnum<{
725
- create: "create";
726
- delete: "delete";
727
- read: "read";
728
- lock: "lock";
729
- update: "update";
730
- }>;
731
- resources: z.ZodPrefault<z.ZodObject<{
732
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
733
- }, z.core.$strip>>;
734
- scope: z.ZodLiteral<"lines">;
735
- }, z.core.$strip>, z.ZodObject<{
736
- action: z.ZodEnum<{
737
- create: "create";
738
- delete: "delete";
739
- read: "read";
740
- lock: "lock";
741
- update: "update";
742
- }>;
743
- scope: z.ZodLiteral<"organizations">;
744
- }, z.core.$strip>, z.ZodObject<{
745
- action: z.ZodEnum<{
746
- read: "read";
747
- }>;
748
- scope: z.ZodLiteral<"performance">;
749
- }, z.core.$strip>, z.ZodObject<{
750
- action: z.ZodEnum<{
751
- create: "create";
752
- delete: "delete";
753
- read: "read";
754
- lock: "lock";
755
- update: "update";
756
- read_controller: "read_controller";
757
- read_pcgi_legacy: "read_pcgi_legacy";
758
- update_controller: "update_controller";
759
- update_feed_info_dates: "update_feed_info_dates";
760
- update_gtfs_plan: "update_gtfs_plan";
761
- update_pcgi_legacy: "update_pcgi_legacy";
762
- read_apex_file: "read_apex_file";
763
- update_apex_file: "update_apex_file";
764
- delete_apex_file: "delete_apex_file";
765
- send_apex_notification: "send_apex_notification";
766
- generate_pdf_posters: "generate_pdf_posters";
767
- }>;
768
- resources: z.ZodPrefault<z.ZodObject<{
769
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
770
- }, z.core.$strip>>;
771
- scope: z.ZodLiteral<"plans">;
772
- }, z.core.$strip>, z.ZodObject<{
773
- action: z.ZodEnum<{
774
- acceptance_change_status: "acceptance_change_status";
775
- acceptance_justify: "acceptance_justify";
776
- acceptance_lock: "acceptance_lock";
777
- acceptance_read: "acceptance_read";
778
- analsys_lock: "analsys_lock";
779
- analysis_lock: "analysis_lock";
780
- analysis_read: "analysis_read";
781
- analysis_reprocess: "analysis_reprocess";
782
- analysis_update: "analysis_update";
783
- audit_lock: "audit_lock";
784
- audit_read: "audit_read";
785
- audit_update: "audit_update";
786
- acceptance_comment_activity: "acceptance_comment_activity";
787
- }>;
788
- resources: z.ZodPrefault<z.ZodObject<{
789
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
790
- }, z.core.$strip>>;
791
- scope: z.ZodLiteral<"rides">;
792
- }, z.core.$strip>, z.ZodObject<{
793
- action: z.ZodEnum<{
794
- create: "create";
795
- delete: "delete";
796
- read: "read";
797
- lock: "lock";
798
- update: "update";
799
- }>;
800
- scope: z.ZodLiteral<"roles">;
801
- }, z.core.$strip>, z.ZodObject<{
802
- action: z.ZodEnum<{
803
- read: "read";
804
- export: "export";
805
- }>;
806
- resources: z.ZodPrefault<z.ZodObject<{
807
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
808
- }, z.core.$strip>>;
809
- scope: z.ZodLiteral<"sams">;
810
- }, z.core.$strip>, z.ZodObject<{
811
- action: z.ZodEnum<{
812
- create: "create";
813
- delete: "delete";
814
- read: "read";
815
- lock: "lock";
816
- update: "update";
817
- update_publish_status: "update_publish_status";
818
- }>;
819
- resources: z.ZodPrefault<z.ZodObject<{
820
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
821
- }, z.core.$strip>>;
822
- scope: z.ZodLiteral<"schools">;
823
- }, z.core.$strip>, z.ZodObject<{
824
- action: z.ZodEnum<{
825
- create: "create";
826
- delete: "delete";
827
- read: "read";
828
- lock: "lock";
829
- update: "update";
830
- export: "export";
831
- edit_coordinates: "edit_coordinates";
832
- edit_name: "edit_name";
833
- }>;
834
- resources: z.ZodPrefault<z.ZodObject<{
835
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
836
- location_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
837
- }, z.core.$strip>>;
838
- scope: z.ZodLiteral<"stops">;
839
- }, z.core.$strip>, z.ZodObject<{
840
- action: z.ZodEnum<{
841
- create: "create";
842
- delete: "delete";
843
- lock: "lock";
844
- update: "update";
845
- nav: "nav";
846
- }>;
847
- resources: z.ZodPrefault<z.ZodObject<{
848
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
849
- }, z.core.$strip>>;
850
- scope: z.ZodLiteral<"typologies">;
851
- }, z.core.$strip>, z.ZodObject<{
852
- action: z.ZodEnum<{
853
- create: "create";
854
- delete: "delete";
855
- read: "read";
856
- lock: "lock";
857
- update: "update";
858
- }>;
859
- scope: z.ZodLiteral<"users">;
860
- }, z.core.$strip>, z.ZodObject<{
861
- action: z.ZodEnum<{
862
- create: "create";
863
- delete: "delete";
864
- read: "read";
865
- lock: "lock";
866
- update: "update";
867
- }>;
868
- resources: z.ZodPrefault<z.ZodObject<{
869
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
870
- }, z.core.$strip>>;
871
- scope: z.ZodLiteral<"vehicles">;
872
- }, z.core.$strip>, z.ZodObject<{
873
- action: z.ZodEnum<{
874
- create: "create";
875
- delete: "delete";
876
- read: "read";
877
- lock: "lock";
878
- update: "update";
879
- }>;
880
- resources: z.ZodPrefault<z.ZodObject<{
881
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
882
- }, z.core.$strip>>;
883
- scope: z.ZodLiteral<"year_periods">;
884
- }, z.core.$strip>, z.ZodObject<{
885
- action: z.ZodEnum<{
886
- create: "create";
887
- delete: "delete";
888
- lock: "lock";
889
- update: "update";
890
- nav: "nav";
891
- }>;
892
- resources: z.ZodPrefault<z.ZodObject<{
893
- agency_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
894
- }, z.core.$strip>>;
895
- scope: z.ZodLiteral<"zones">;
896
- }, z.core.$strip>], "scope">>>, ({
897
- action: "create" | "delete" | "read" | "lock" | "update";
898
- scope: "agencies";
899
- } | {
900
- action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status";
901
- scope: "alerts";
902
- resources?: {
903
- agency_ids?: string[] | undefined;
904
- reference_types?: string[] | undefined;
905
- } | undefined;
906
- } | {
907
- action: "create" | "delete" | "read" | "lock" | "update";
908
- scope: "annotations";
909
- resources?: {
910
- agency_ids?: string[] | undefined;
911
- } | undefined;
912
- } | {
913
- action: "delete" | "read" | "update";
914
- scope: "banners";
915
- } | {
916
- action: "delete" | "read" | "update";
917
- scope: "changelogs";
918
- } | {
919
- action: "create" | "delete" | "read" | "lock" | "update";
920
- scope: "events";
921
- resources?: {
922
- agency_ids?: string[] | undefined;
923
- } | undefined;
924
- } | {
925
- action: "create" | "delete" | "lock" | "update" | "nav";
926
- scope: "fares";
927
- resources?: {
928
- agency_ids?: string[] | undefined;
929
- } | undefined;
930
- } | {
931
- action: "create" | "read" | "lock" | "request_approval" | "update_processing_status";
932
- scope: "gtfs_validations";
933
- resources?: {
934
- agency_ids?: string[] | undefined;
935
- } | undefined;
936
- } | {
937
- action: "create" | "delete" | "read" | "lock" | "update";
938
- scope: "holidays";
939
- resources?: {
940
- agency_ids?: string[] | undefined;
941
- } | undefined;
942
- } | {
943
- action: "read_links" | "read_wiki";
944
- scope: "home";
945
- } | {
946
- action: "create" | "delete" | "read" | "lock" | "update";
947
- scope: "lines";
948
- resources?: {
949
- agency_ids?: string[] | undefined;
950
- } | undefined;
951
- } | {
952
- action: "create" | "delete" | "read" | "lock" | "update";
953
- scope: "organizations";
954
- } | {
955
- action: "read";
956
- scope: "performance";
957
- } | {
958
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification" | "generate_pdf_posters";
959
- scope: "plans";
960
- resources?: {
961
- agency_ids?: string[] | undefined;
962
- } | undefined;
963
- } | {
964
- action: "acceptance_change_status" | "acceptance_justify" | "acceptance_lock" | "acceptance_read" | "analsys_lock" | "analysis_lock" | "analysis_read" | "analysis_reprocess" | "analysis_update" | "audit_lock" | "audit_read" | "audit_update" | "acceptance_comment_activity";
965
- scope: "rides";
966
- resources?: {
967
- agency_ids?: string[] | undefined;
968
- } | undefined;
969
- } | {
970
- action: "create" | "delete" | "read" | "lock" | "update";
971
- scope: "roles";
972
- } | {
973
- action: "read" | "export";
974
- scope: "sams";
975
- resources?: {
976
- agency_ids?: string[] | undefined;
977
- } | undefined;
978
- } | {
979
- action: "create" | "delete" | "read" | "lock" | "update" | "update_publish_status";
980
- scope: "schools";
981
- resources?: {
982
- agency_ids?: string[] | undefined;
983
- } | undefined;
984
- } | {
985
- action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates" | "edit_name";
986
- scope: "stops";
987
- resources?: {
988
- agency_ids?: string[] | undefined;
989
- location_ids?: string[] | undefined;
990
- } | undefined;
991
- } | {
992
- action: "create" | "delete" | "lock" | "update" | "nav";
993
- scope: "typologies";
994
- resources?: {
995
- agency_ids?: string[] | undefined;
996
- } | undefined;
997
- } | {
998
- action: "create" | "delete" | "read" | "lock" | "update";
999
- scope: "users";
1000
- } | {
1001
- action: "create" | "delete" | "read" | "lock" | "update";
1002
- scope: "vehicles";
1003
- resources?: {
1004
- agency_ids?: string[] | undefined;
1005
- } | undefined;
1006
- } | {
1007
- action: "create" | "delete" | "read" | "lock" | "update";
1008
- scope: "year_periods";
1009
- resources?: {
1010
- agency_ids?: string[] | undefined;
1011
- } | undefined;
1012
- } | {
1013
- action: "create" | "delete" | "lock" | "update" | "nav";
1014
- scope: "zones";
1015
- resources?: {
1016
- agency_ids?: string[] | undefined;
1017
- } | undefined;
1018
- })[] | undefined>>;
1019
- preferences: z.ZodOptional<z.ZodPreprocess<z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>>>>>, Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined>>;
1020
- role_ids: z.ZodOptional<z.ZodPreprocess<z.ZodDefault<z.ZodArray<z.ZodString>>, string[] | undefined>>;
1021
- seen_last_at: z.ZodOptional<z.ZodPreprocess<z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>>, string | number | null | undefined>>;
1022
- }, z.core.$strip>;
1023
312
  export type User = z.infer<typeof UserSchema>;
1024
- export type CreateUserDto = z.infer<typeof CreateUserSchema>;
1025
- export type UpdateUserDto = z.infer<typeof UpdateUserSchema>;
1026
313
  export declare const UserDisplayFields: {
1027
314
  readonly _id: true;
1028
315
  readonly email: true;
@@ -1,6 +1,6 @@
1
1
  /* * */
2
2
  import { PermissionSchema } from '@tmlmobilidade/go-types-permissions';
3
- import { BaseDocumentSchema, partialWithoutDefaults, UnixMillisecondsSchema } from '@tmlmobilidade/go-types-shared';
3
+ import { BaseDocumentSchema, UnixMillisecondsSchema } from '@tmlmobilidade/go-types-shared';
4
4
  import { z } from 'zod';
5
5
  import { UserBannerDismissalSchema } from './banner-dismissal.js';
6
6
  import { UserChangelogSeenSchema } from './changelog-seen.js';
@@ -30,8 +30,6 @@ export const UserSchema = BaseDocumentSchema.extend({
30
30
  session_ids: z.array(z.string()).default([]),
31
31
  verification_token_ids: z.array(z.string()).default([]),
32
32
  });
33
- export const CreateUserSchema = UserSchema.omit({ _id: true, created_at: true, dismissed_banners: true, seen_changelogs: true, updated_at: true });
34
- export const UpdateUserSchema = partialWithoutDefaults(CreateUserSchema.omit({ created_by: true, session_ids: true, verification_token_ids: true }));
35
33
  /* * */
36
34
  export const UserDisplayFields = { _id: true, email: true, first_name: true, last_name: true, phone: true };
37
35
  export const UserDisplaySchema = UserSchema.pick(UserDisplayFields);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-types-core",
3
- "version": "20261125.128.7",
3
+ "version": "20261125.1234.50",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"