colibris-types 1.0.23 → 1.0.25

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.
@@ -443,146 +443,116 @@ declare const AssetUpload: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
443
443
  AffectationDate?: Date | undefined;
444
444
  }>;
445
445
  declare const ComputerUpload: z.ZodArray<z.ZodObject<{
446
- SerialNumber: z.ZodString;
447
- ExternalIdNumber: z.ZodOptional<z.ZodString>;
448
- OwnerCompanyName: z.ZodOptional<z.ZodString>;
449
- Type: z.ZodString;
450
- Constructor: z.ZodOptional<z.ZodString>;
451
- ProductCode: z.ZodString;
452
- Label: z.ZodString;
446
+ "N\u00B0 de s\u00E9rie": z.ZodString;
447
+ "N\u00B0 Interne": z.ZodOptional<z.ZodString>;
448
+ Propriétaire: z.ZodOptional<z.ZodString>;
449
+ Type: z.ZodOptional<z.ZodString>;
450
+ Constructeur: z.ZodOptional<z.ZodString>;
451
+ "Code produit": z.ZodOptional<z.ZodString>;
452
+ Label: z.ZodOptional<z.ZodString>;
453
453
  CPU: z.ZodOptional<z.ZodString>;
454
454
  OS: z.ZodOptional<z.ZodString>;
455
455
  RAM: z.ZodOptional<z.ZodString>;
456
- DiskMemory: z.ZodOptional<z.ZodString>;
457
- IPAddress: z.ZodOptional<z.ZodString>;
458
- OrderNumber: z.ZodOptional<z.ZodString>;
459
- OrderDate: z.ZodOptional<z.ZodDate>;
460
- DeliveryDate: z.ZodOptional<z.ZodDate>;
461
- EntryDate: z.ZodOptional<z.ZodDate>;
462
- AffectationDate: z.ZodOptional<z.ZodDate>;
463
- PrevisionalExitDate: z.ZodOptional<z.ZodDate>;
464
- ExitDate: z.ZodOptional<z.ZodDate>;
465
- ExitReason: z.ZodOptional<z.ZodString>;
466
- AuditDate: z.ZodOptional<z.ZodDate>;
467
- ValorisationAmount: z.ZodOptional<z.ZodNumber>;
468
- ReturnCosts: z.ZodOptional<z.ZodNumber>;
469
- AuditGrade: z.ZodOptional<z.ZodString>;
470
- InsuranceRefundAmount: z.ZodOptional<z.ZodNumber>;
471
- InsuranceFranchiseAmount: z.ZodOptional<z.ZodNumber>;
472
- InsuranceRefundDate: z.ZodOptional<z.ZodDate>;
473
- InvoicePaymentDate: z.ZodOptional<z.ZodDate>;
474
- InvoiceDate: z.ZodOptional<z.ZodDate>;
475
- InvoiceNumber: z.ZodOptional<z.ZodString>;
476
- Contract: z.ZodOptional<z.ZodString>;
477
- ContractAmendment: z.ZodOptional<z.ZodString>;
478
- UnitPrice: z.ZodOptional<z.ZodNumber>;
479
- NetValue: z.ZodOptional<z.ZodNumber>;
480
- RentAmount: z.ZodOptional<z.ZodNumber>;
481
- CO2ImpactPerYear: z.ZodOptional<z.ZodNumber>;
482
- CO2ProductionImpact: z.ZodOptional<z.ZodNumber>;
483
- AssetAge: z.ZodOptional<z.ZodNumber>;
484
- PersonNumber: z.ZodOptional<z.ZodString>;
485
- Status: z.ZodOptional<z.ZodString>;
486
- SiteName: z.ZodOptional<z.ZodString>;
487
- SubsidiaryName: z.ZodOptional<z.ZodString>;
488
- Repair: z.ZodOptional<z.ZodString>;
489
- RepairAmount: z.ZodOptional<z.ZodNumber>;
490
- RetrologisticRefund: z.ZodOptional<z.ZodNumber>;
491
- PVNumber: z.ZodOptional<z.ZodString>;
456
+ "M\u00E9moire Disque": z.ZodOptional<z.ZodString>;
457
+ "Adresse IP": z.ZodOptional<z.ZodString>;
458
+ "N\u00B0 de Commande": z.ZodOptional<z.ZodString>;
459
+ "Date de la Commande": z.ZodOptional<z.ZodString>;
460
+ "Date de livraison": z.ZodOptional<z.ZodString>;
461
+ "Date d'entr\u00E9e": z.ZodOptional<z.ZodString>;
462
+ "Date pr\u00E9vi": z.ZodOptional<z.ZodString>;
463
+ "Date de sortie": z.ZodOptional<z.ZodString>;
464
+ "Motif de sortie": z.ZodOptional<z.ZodString>;
465
+ "Montant de la valorisation": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
466
+ "Co\u00FBts de r\u00E9trologistique": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
467
+ Grade: z.ZodOptional<z.ZodString>;
468
+ "Montant Remboursement Assurance": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
469
+ "Montant de la franchise": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
470
+ "Date de Remboursement Assurance": z.ZodOptional<z.ZodString>;
471
+ "Date de facture": z.ZodOptional<z.ZodString>;
472
+ "N\u00B0 Facture": z.ZodOptional<z.ZodString>;
473
+ Avenant: z.ZodOptional<z.ZodString>;
474
+ "Prix unitaire": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
475
+ "Valeur Nette R\u00E9siduelle Comptable": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
476
+ Matricule: z.ZodOptional<z.ZodString>;
477
+ Statut: z.ZodOptional<z.ZodString>;
478
+ Site: z.ZodOptional<z.ZodString>;
479
+ Filiale: z.ZodOptional<z.ZodString>;
480
+ "Montant R\u00E9paration": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
481
+ "N\u00B0 de PV": z.ZodOptional<z.ZodString>;
492
482
  }, "strip", z.ZodTypeAny, {
493
- Type: string;
494
- SerialNumber: string;
495
- ProductCode: string;
496
- Label: string;
497
- Status?: string | undefined;
498
- PersonNumber?: string | undefined;
499
- SubsidiaryName?: string | undefined;
500
- SiteName?: string | undefined;
501
- AffectationDate?: Date | undefined;
502
- OwnerCompanyName?: string | undefined;
503
- ExternalIdNumber?: string | undefined;
504
- Constructor?: string | undefined;
483
+ "N\u00B0 de s\u00E9rie": string;
484
+ Type?: string | undefined;
485
+ "N\u00B0 Interne"?: string | undefined;
486
+ Propriétaire?: string | undefined;
487
+ Constructeur?: string | undefined;
488
+ "Code produit"?: string | undefined;
489
+ Label?: string | undefined;
505
490
  CPU?: string | undefined;
506
491
  OS?: string | undefined;
507
492
  RAM?: string | undefined;
508
- DiskMemory?: string | undefined;
509
- IPAddress?: string | undefined;
510
- OrderNumber?: string | undefined;
511
- OrderDate?: Date | undefined;
512
- DeliveryDate?: Date | undefined;
513
- EntryDate?: Date | undefined;
514
- PrevisionalExitDate?: Date | undefined;
515
- ExitDate?: Date | undefined;
516
- ExitReason?: string | undefined;
517
- AuditDate?: Date | undefined;
518
- ValorisationAmount?: number | undefined;
519
- ReturnCosts?: number | undefined;
520
- AuditGrade?: string | undefined;
521
- InsuranceRefundAmount?: number | undefined;
522
- InsuranceFranchiseAmount?: number | undefined;
523
- InsuranceRefundDate?: Date | undefined;
524
- InvoicePaymentDate?: Date | undefined;
525
- InvoiceDate?: Date | undefined;
526
- InvoiceNumber?: string | undefined;
527
- Contract?: string | undefined;
528
- ContractAmendment?: string | undefined;
529
- UnitPrice?: number | undefined;
530
- NetValue?: number | undefined;
531
- RentAmount?: number | undefined;
532
- CO2ImpactPerYear?: number | undefined;
533
- CO2ProductionImpact?: number | undefined;
534
- AssetAge?: number | undefined;
535
- Repair?: string | undefined;
536
- RepairAmount?: number | undefined;
537
- RetrologisticRefund?: number | undefined;
538
- PVNumber?: string | undefined;
493
+ "M\u00E9moire Disque"?: string | undefined;
494
+ "Adresse IP"?: string | undefined;
495
+ "N\u00B0 de Commande"?: string | undefined;
496
+ "Date de la Commande"?: string | undefined;
497
+ "Date de livraison"?: string | undefined;
498
+ "Date d'entr\u00E9e"?: string | undefined;
499
+ "Date pr\u00E9vi"?: string | undefined;
500
+ "Date de sortie"?: string | undefined;
501
+ "Motif de sortie"?: string | undefined;
502
+ "Montant de la valorisation"?: number | undefined;
503
+ "Co\u00FBts de r\u00E9trologistique"?: number | undefined;
504
+ Grade?: string | undefined;
505
+ "Montant Remboursement Assurance"?: number | undefined;
506
+ "Montant de la franchise"?: number | undefined;
507
+ "Date de Remboursement Assurance"?: string | undefined;
508
+ "Date de facture"?: string | undefined;
509
+ "N\u00B0 Facture"?: string | undefined;
510
+ Avenant?: string | undefined;
511
+ "Prix unitaire"?: number | undefined;
512
+ "Valeur Nette R\u00E9siduelle Comptable"?: number | undefined;
513
+ Matricule?: string | undefined;
514
+ Statut?: string | undefined;
515
+ Site?: string | undefined;
516
+ Filiale?: string | undefined;
517
+ "Montant R\u00E9paration"?: number | undefined;
518
+ "N\u00B0 de PV"?: string | undefined;
539
519
  }, {
540
- Type: string;
541
- SerialNumber: string;
542
- ProductCode: string;
543
- Label: string;
544
- Status?: string | undefined;
545
- PersonNumber?: string | undefined;
546
- SubsidiaryName?: string | undefined;
547
- SiteName?: string | undefined;
548
- AffectationDate?: Date | undefined;
549
- OwnerCompanyName?: string | undefined;
550
- ExternalIdNumber?: string | undefined;
551
- Constructor?: string | undefined;
520
+ "N\u00B0 de s\u00E9rie": string;
521
+ Type?: string | undefined;
522
+ "N\u00B0 Interne"?: string | undefined;
523
+ Propriétaire?: string | undefined;
524
+ Constructeur?: string | undefined;
525
+ "Code produit"?: string | undefined;
526
+ Label?: string | undefined;
552
527
  CPU?: string | undefined;
553
528
  OS?: string | undefined;
554
529
  RAM?: string | undefined;
555
- DiskMemory?: string | undefined;
556
- IPAddress?: string | undefined;
557
- OrderNumber?: string | undefined;
558
- OrderDate?: Date | undefined;
559
- DeliveryDate?: Date | undefined;
560
- EntryDate?: Date | undefined;
561
- PrevisionalExitDate?: Date | undefined;
562
- ExitDate?: Date | undefined;
563
- ExitReason?: string | undefined;
564
- AuditDate?: Date | undefined;
565
- ValorisationAmount?: number | undefined;
566
- ReturnCosts?: number | undefined;
567
- AuditGrade?: string | undefined;
568
- InsuranceRefundAmount?: number | undefined;
569
- InsuranceFranchiseAmount?: number | undefined;
570
- InsuranceRefundDate?: Date | undefined;
571
- InvoicePaymentDate?: Date | undefined;
572
- InvoiceDate?: Date | undefined;
573
- InvoiceNumber?: string | undefined;
574
- Contract?: string | undefined;
575
- ContractAmendment?: string | undefined;
576
- UnitPrice?: number | undefined;
577
- NetValue?: number | undefined;
578
- RentAmount?: number | undefined;
579
- CO2ImpactPerYear?: number | undefined;
580
- CO2ProductionImpact?: number | undefined;
581
- AssetAge?: number | undefined;
582
- Repair?: string | undefined;
583
- RepairAmount?: number | undefined;
584
- RetrologisticRefund?: number | undefined;
585
- PVNumber?: string | undefined;
530
+ "M\u00E9moire Disque"?: string | undefined;
531
+ "Adresse IP"?: string | undefined;
532
+ "N\u00B0 de Commande"?: string | undefined;
533
+ "Date de la Commande"?: string | undefined;
534
+ "Date de livraison"?: string | undefined;
535
+ "Date d'entr\u00E9e"?: string | undefined;
536
+ "Date pr\u00E9vi"?: string | undefined;
537
+ "Date de sortie"?: string | undefined;
538
+ "Motif de sortie"?: string | undefined;
539
+ "Montant de la valorisation"?: string | undefined;
540
+ "Co\u00FBts de r\u00E9trologistique"?: string | undefined;
541
+ Grade?: string | undefined;
542
+ "Montant Remboursement Assurance"?: string | undefined;
543
+ "Montant de la franchise"?: string | undefined;
544
+ "Date de Remboursement Assurance"?: string | undefined;
545
+ "Date de facture"?: string | undefined;
546
+ "N\u00B0 Facture"?: string | undefined;
547
+ Avenant?: string | undefined;
548
+ "Prix unitaire"?: string | undefined;
549
+ "Valeur Nette R\u00E9siduelle Comptable"?: string | undefined;
550
+ Matricule?: string | undefined;
551
+ Statut?: string | undefined;
552
+ Site?: string | undefined;
553
+ Filiale?: string | undefined;
554
+ "Montant R\u00E9paration"?: string | undefined;
555
+ "N\u00B0 de PV"?: string | undefined;
586
556
  }>, "many">;
587
557
  export declare const assetDefinitions: {
588
558
  asset_genre: z.ZodObject<z.objectUtil.extendShape<{
@@ -840,146 +810,116 @@ export declare const assetDefinitions: {
840
810
  valorisation_amount?: number | undefined;
841
811
  }>;
842
812
  computer_upload: z.ZodArray<z.ZodObject<{
843
- SerialNumber: z.ZodString;
844
- ExternalIdNumber: z.ZodOptional<z.ZodString>;
845
- OwnerCompanyName: z.ZodOptional<z.ZodString>;
846
- Type: z.ZodString;
847
- Constructor: z.ZodOptional<z.ZodString>;
848
- ProductCode: z.ZodString;
849
- Label: z.ZodString;
813
+ "N\u00B0 de s\u00E9rie": z.ZodString;
814
+ "N\u00B0 Interne": z.ZodOptional<z.ZodString>;
815
+ Propriétaire: z.ZodOptional<z.ZodString>;
816
+ Type: z.ZodOptional<z.ZodString>;
817
+ Constructeur: z.ZodOptional<z.ZodString>;
818
+ "Code produit": z.ZodOptional<z.ZodString>;
819
+ Label: z.ZodOptional<z.ZodString>;
850
820
  CPU: z.ZodOptional<z.ZodString>;
851
821
  OS: z.ZodOptional<z.ZodString>;
852
822
  RAM: z.ZodOptional<z.ZodString>;
853
- DiskMemory: z.ZodOptional<z.ZodString>;
854
- IPAddress: z.ZodOptional<z.ZodString>;
855
- OrderNumber: z.ZodOptional<z.ZodString>;
856
- OrderDate: z.ZodOptional<z.ZodDate>;
857
- DeliveryDate: z.ZodOptional<z.ZodDate>;
858
- EntryDate: z.ZodOptional<z.ZodDate>;
859
- AffectationDate: z.ZodOptional<z.ZodDate>;
860
- PrevisionalExitDate: z.ZodOptional<z.ZodDate>;
861
- ExitDate: z.ZodOptional<z.ZodDate>;
862
- ExitReason: z.ZodOptional<z.ZodString>;
863
- AuditDate: z.ZodOptional<z.ZodDate>;
864
- ValorisationAmount: z.ZodOptional<z.ZodNumber>;
865
- ReturnCosts: z.ZodOptional<z.ZodNumber>;
866
- AuditGrade: z.ZodOptional<z.ZodString>;
867
- InsuranceRefundAmount: z.ZodOptional<z.ZodNumber>;
868
- InsuranceFranchiseAmount: z.ZodOptional<z.ZodNumber>;
869
- InsuranceRefundDate: z.ZodOptional<z.ZodDate>;
870
- InvoicePaymentDate: z.ZodOptional<z.ZodDate>;
871
- InvoiceDate: z.ZodOptional<z.ZodDate>;
872
- InvoiceNumber: z.ZodOptional<z.ZodString>;
873
- Contract: z.ZodOptional<z.ZodString>;
874
- ContractAmendment: z.ZodOptional<z.ZodString>;
875
- UnitPrice: z.ZodOptional<z.ZodNumber>;
876
- NetValue: z.ZodOptional<z.ZodNumber>;
877
- RentAmount: z.ZodOptional<z.ZodNumber>;
878
- CO2ImpactPerYear: z.ZodOptional<z.ZodNumber>;
879
- CO2ProductionImpact: z.ZodOptional<z.ZodNumber>;
880
- AssetAge: z.ZodOptional<z.ZodNumber>;
881
- PersonNumber: z.ZodOptional<z.ZodString>;
882
- Status: z.ZodOptional<z.ZodString>;
883
- SiteName: z.ZodOptional<z.ZodString>;
884
- SubsidiaryName: z.ZodOptional<z.ZodString>;
885
- Repair: z.ZodOptional<z.ZodString>;
886
- RepairAmount: z.ZodOptional<z.ZodNumber>;
887
- RetrologisticRefund: z.ZodOptional<z.ZodNumber>;
888
- PVNumber: z.ZodOptional<z.ZodString>;
823
+ "M\u00E9moire Disque": z.ZodOptional<z.ZodString>;
824
+ "Adresse IP": z.ZodOptional<z.ZodString>;
825
+ "N\u00B0 de Commande": z.ZodOptional<z.ZodString>;
826
+ "Date de la Commande": z.ZodOptional<z.ZodString>;
827
+ "Date de livraison": z.ZodOptional<z.ZodString>;
828
+ "Date d'entr\u00E9e": z.ZodOptional<z.ZodString>;
829
+ "Date pr\u00E9vi": z.ZodOptional<z.ZodString>;
830
+ "Date de sortie": z.ZodOptional<z.ZodString>;
831
+ "Motif de sortie": z.ZodOptional<z.ZodString>;
832
+ "Montant de la valorisation": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
833
+ "Co\u00FBts de r\u00E9trologistique": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
834
+ Grade: z.ZodOptional<z.ZodString>;
835
+ "Montant Remboursement Assurance": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
836
+ "Montant de la franchise": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
837
+ "Date de Remboursement Assurance": z.ZodOptional<z.ZodString>;
838
+ "Date de facture": z.ZodOptional<z.ZodString>;
839
+ "N\u00B0 Facture": z.ZodOptional<z.ZodString>;
840
+ Avenant: z.ZodOptional<z.ZodString>;
841
+ "Prix unitaire": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
842
+ "Valeur Nette R\u00E9siduelle Comptable": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
843
+ Matricule: z.ZodOptional<z.ZodString>;
844
+ Statut: z.ZodOptional<z.ZodString>;
845
+ Site: z.ZodOptional<z.ZodString>;
846
+ Filiale: z.ZodOptional<z.ZodString>;
847
+ "Montant R\u00E9paration": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
848
+ "N\u00B0 de PV": z.ZodOptional<z.ZodString>;
889
849
  }, "strip", z.ZodTypeAny, {
890
- Type: string;
891
- SerialNumber: string;
892
- ProductCode: string;
893
- Label: string;
894
- Status?: string | undefined;
895
- PersonNumber?: string | undefined;
896
- SubsidiaryName?: string | undefined;
897
- SiteName?: string | undefined;
898
- AffectationDate?: Date | undefined;
899
- OwnerCompanyName?: string | undefined;
900
- ExternalIdNumber?: string | undefined;
901
- Constructor?: string | undefined;
850
+ "N\u00B0 de s\u00E9rie": string;
851
+ Type?: string | undefined;
852
+ "N\u00B0 Interne"?: string | undefined;
853
+ Propriétaire?: string | undefined;
854
+ Constructeur?: string | undefined;
855
+ "Code produit"?: string | undefined;
856
+ Label?: string | undefined;
902
857
  CPU?: string | undefined;
903
858
  OS?: string | undefined;
904
859
  RAM?: string | undefined;
905
- DiskMemory?: string | undefined;
906
- IPAddress?: string | undefined;
907
- OrderNumber?: string | undefined;
908
- OrderDate?: Date | undefined;
909
- DeliveryDate?: Date | undefined;
910
- EntryDate?: Date | undefined;
911
- PrevisionalExitDate?: Date | undefined;
912
- ExitDate?: Date | undefined;
913
- ExitReason?: string | undefined;
914
- AuditDate?: Date | undefined;
915
- ValorisationAmount?: number | undefined;
916
- ReturnCosts?: number | undefined;
917
- AuditGrade?: string | undefined;
918
- InsuranceRefundAmount?: number | undefined;
919
- InsuranceFranchiseAmount?: number | undefined;
920
- InsuranceRefundDate?: Date | undefined;
921
- InvoicePaymentDate?: Date | undefined;
922
- InvoiceDate?: Date | undefined;
923
- InvoiceNumber?: string | undefined;
924
- Contract?: string | undefined;
925
- ContractAmendment?: string | undefined;
926
- UnitPrice?: number | undefined;
927
- NetValue?: number | undefined;
928
- RentAmount?: number | undefined;
929
- CO2ImpactPerYear?: number | undefined;
930
- CO2ProductionImpact?: number | undefined;
931
- AssetAge?: number | undefined;
932
- Repair?: string | undefined;
933
- RepairAmount?: number | undefined;
934
- RetrologisticRefund?: number | undefined;
935
- PVNumber?: string | undefined;
860
+ "M\u00E9moire Disque"?: string | undefined;
861
+ "Adresse IP"?: string | undefined;
862
+ "N\u00B0 de Commande"?: string | undefined;
863
+ "Date de la Commande"?: string | undefined;
864
+ "Date de livraison"?: string | undefined;
865
+ "Date d'entr\u00E9e"?: string | undefined;
866
+ "Date pr\u00E9vi"?: string | undefined;
867
+ "Date de sortie"?: string | undefined;
868
+ "Motif de sortie"?: string | undefined;
869
+ "Montant de la valorisation"?: number | undefined;
870
+ "Co\u00FBts de r\u00E9trologistique"?: number | undefined;
871
+ Grade?: string | undefined;
872
+ "Montant Remboursement Assurance"?: number | undefined;
873
+ "Montant de la franchise"?: number | undefined;
874
+ "Date de Remboursement Assurance"?: string | undefined;
875
+ "Date de facture"?: string | undefined;
876
+ "N\u00B0 Facture"?: string | undefined;
877
+ Avenant?: string | undefined;
878
+ "Prix unitaire"?: number | undefined;
879
+ "Valeur Nette R\u00E9siduelle Comptable"?: number | undefined;
880
+ Matricule?: string | undefined;
881
+ Statut?: string | undefined;
882
+ Site?: string | undefined;
883
+ Filiale?: string | undefined;
884
+ "Montant R\u00E9paration"?: number | undefined;
885
+ "N\u00B0 de PV"?: string | undefined;
936
886
  }, {
937
- Type: string;
938
- SerialNumber: string;
939
- ProductCode: string;
940
- Label: string;
941
- Status?: string | undefined;
942
- PersonNumber?: string | undefined;
943
- SubsidiaryName?: string | undefined;
944
- SiteName?: string | undefined;
945
- AffectationDate?: Date | undefined;
946
- OwnerCompanyName?: string | undefined;
947
- ExternalIdNumber?: string | undefined;
948
- Constructor?: string | undefined;
887
+ "N\u00B0 de s\u00E9rie": string;
888
+ Type?: string | undefined;
889
+ "N\u00B0 Interne"?: string | undefined;
890
+ Propriétaire?: string | undefined;
891
+ Constructeur?: string | undefined;
892
+ "Code produit"?: string | undefined;
893
+ Label?: string | undefined;
949
894
  CPU?: string | undefined;
950
895
  OS?: string | undefined;
951
896
  RAM?: string | undefined;
952
- DiskMemory?: string | undefined;
953
- IPAddress?: string | undefined;
954
- OrderNumber?: string | undefined;
955
- OrderDate?: Date | undefined;
956
- DeliveryDate?: Date | undefined;
957
- EntryDate?: Date | undefined;
958
- PrevisionalExitDate?: Date | undefined;
959
- ExitDate?: Date | undefined;
960
- ExitReason?: string | undefined;
961
- AuditDate?: Date | undefined;
962
- ValorisationAmount?: number | undefined;
963
- ReturnCosts?: number | undefined;
964
- AuditGrade?: string | undefined;
965
- InsuranceRefundAmount?: number | undefined;
966
- InsuranceFranchiseAmount?: number | undefined;
967
- InsuranceRefundDate?: Date | undefined;
968
- InvoicePaymentDate?: Date | undefined;
969
- InvoiceDate?: Date | undefined;
970
- InvoiceNumber?: string | undefined;
971
- Contract?: string | undefined;
972
- ContractAmendment?: string | undefined;
973
- UnitPrice?: number | undefined;
974
- NetValue?: number | undefined;
975
- RentAmount?: number | undefined;
976
- CO2ImpactPerYear?: number | undefined;
977
- CO2ProductionImpact?: number | undefined;
978
- AssetAge?: number | undefined;
979
- Repair?: string | undefined;
980
- RepairAmount?: number | undefined;
981
- RetrologisticRefund?: number | undefined;
982
- PVNumber?: string | undefined;
897
+ "M\u00E9moire Disque"?: string | undefined;
898
+ "Adresse IP"?: string | undefined;
899
+ "N\u00B0 de Commande"?: string | undefined;
900
+ "Date de la Commande"?: string | undefined;
901
+ "Date de livraison"?: string | undefined;
902
+ "Date d'entr\u00E9e"?: string | undefined;
903
+ "Date pr\u00E9vi"?: string | undefined;
904
+ "Date de sortie"?: string | undefined;
905
+ "Motif de sortie"?: string | undefined;
906
+ "Montant de la valorisation"?: string | undefined;
907
+ "Co\u00FBts de r\u00E9trologistique"?: string | undefined;
908
+ Grade?: string | undefined;
909
+ "Montant Remboursement Assurance"?: string | undefined;
910
+ "Montant de la franchise"?: string | undefined;
911
+ "Date de Remboursement Assurance"?: string | undefined;
912
+ "Date de facture"?: string | undefined;
913
+ "N\u00B0 Facture"?: string | undefined;
914
+ Avenant?: string | undefined;
915
+ "Prix unitaire"?: string | undefined;
916
+ "Valeur Nette R\u00E9siduelle Comptable"?: string | undefined;
917
+ Matricule?: string | undefined;
918
+ Statut?: string | undefined;
919
+ Site?: string | undefined;
920
+ Filiale?: string | undefined;
921
+ "Montant R\u00E9paration"?: string | undefined;
922
+ "N\u00B0 de PV"?: string | undefined;
983
923
  }>, "many">;
984
924
  csr_data: z.ZodObject<z.objectUtil.extendShape<{
985
925
  id_company: z.ZodNumber;
package/lib/computers.js CHANGED
@@ -124,53 +124,72 @@ const AssetUpload = z
124
124
  .merge(AssetTypeUpload)
125
125
  .merge(OptLabelsUpload)
126
126
  .merge(OptAssetAffectationUplad);
127
+ const DATE_REGEX = /^\d{2}\/\d{2}\/\d{4}$/;
127
128
  const ComputerUpload = z.array(z.object({
128
- SerialNumber: z.string().max(200),
129
- ExternalIdNumber: z.string().max(200).optional(),
130
- OwnerCompanyName: z.string().max(200).optional(),
131
- Type: z.string().max(200),
132
- Constructor: z.string().max(200).optional(),
133
- ProductCode: z.string().max(200),
134
- Label: z.string().max(200),
135
- CPU: z.string().max(200).optional(),
136
- OS: z.string().max(200).optional(),
137
- RAM: z.string().max(200).optional(),
138
- DiskMemory: z.string().max(200).optional(),
139
- IPAddress: z.string().max(200).optional(),
140
- OrderNumber: z.string().max(200).optional(),
141
- OrderDate: z.coerce.date().optional(),
142
- DeliveryDate: z.coerce.date().optional(),
143
- EntryDate: z.coerce.date().optional(),
144
- AffectationDate: z.coerce.date().optional(),
145
- PrevisionalExitDate: z.coerce.date().optional(),
146
- ExitDate: z.coerce.date().optional(),
147
- ExitReason: z.string().optional(),
148
- AuditDate: z.coerce.date().optional(),
149
- ValorisationAmount: z.coerce.number().optional(),
150
- ReturnCosts: z.coerce.number().optional(),
151
- AuditGrade: z.string().optional(),
152
- InsuranceRefundAmount: z.coerce.number().optional(),
153
- InsuranceFranchiseAmount: z.coerce.number().optional(),
154
- InsuranceRefundDate: z.coerce.date().optional(),
155
- InvoicePaymentDate: z.coerce.date().optional(),
156
- InvoiceDate: z.coerce.date().optional(),
157
- InvoiceNumber: z.string().max(200).optional(),
158
- Contract: z.string().max(200).optional(),
159
- ContractAmendment: z.string().max(200).optional(),
160
- UnitPrice: z.coerce.number().optional(),
161
- NetValue: z.coerce.number().optional(),
162
- RentAmount: z.coerce.number().optional(),
163
- CO2ImpactPerYear: z.coerce.number().optional(),
164
- CO2ProductionImpact: z.coerce.number().optional(),
165
- AssetAge: z.coerce.number().optional(),
166
- PersonNumber: z.string().max(200).optional(),
167
- Status: z.string().max(200).optional(),
168
- SiteName: z.string().max(200).optional(),
169
- SubsidiaryName: z.string().max(200).optional(),
170
- Repair: z.string().max(50).optional(),
171
- RepairAmount: z.coerce.number().optional(),
172
- RetrologisticRefund: z.coerce.number().optional(),
173
- PVNumber: z.string().max(50).optional(),
129
+ "N° de série": z.string(),
130
+ "N° Interne": z.string().optional(),
131
+ Propriétaire: z.string().max(100).optional(),
132
+ Type: z.string().optional(),
133
+ Constructeur: z.string().optional(),
134
+ "Code produit": z.string().optional(),
135
+ Label: z.string().optional(),
136
+ CPU: z.string().optional(),
137
+ OS: z.string().optional(),
138
+ RAM: z.string().optional(),
139
+ "Mémoire Disque": z.string().optional(),
140
+ "Adresse IP": z.string().optional(),
141
+ "N° de Commande": z.string().optional(),
142
+ "Date de la Commande": z.string().regex(DATE_REGEX).optional(),
143
+ "Date de livraison": z.string().regex(DATE_REGEX).optional(),
144
+ "Date d'entrée": z.string().regex(DATE_REGEX).optional(),
145
+ "Date prévi": z.string().regex(DATE_REGEX).optional(),
146
+ "Date de sortie": z.string().regex(DATE_REGEX).optional(),
147
+ "Motif de sortie": z.string().optional(),
148
+ "Montant de la valorisation": z
149
+ .string()
150
+ .transform((v) => parseFloat(v.replace(",", ".")))
151
+ .pipe(z.number())
152
+ .optional(),
153
+ "Coûts de rétrologistique": z
154
+ .string()
155
+ .transform((v) => parseFloat(v.replace(",", ".")))
156
+ .pipe(z.number())
157
+ .optional(),
158
+ Grade: z.string().optional(),
159
+ "Montant Remboursement Assurance": z
160
+ .string()
161
+ .transform((v) => parseFloat(v.replace(",", ".")))
162
+ .pipe(z.number())
163
+ .optional(),
164
+ "Montant de la franchise": z
165
+ .string()
166
+ .transform((v) => parseFloat(v.replace(",", ".")))
167
+ .pipe(z.number())
168
+ .optional(),
169
+ "Date de Remboursement Assurance": z.string().regex(DATE_REGEX).optional(),
170
+ "Date de facture": z.string().regex(DATE_REGEX).optional(),
171
+ "N° Facture": z.string().optional(),
172
+ Avenant: z.string().optional(),
173
+ "Prix unitaire": z
174
+ .string()
175
+ .transform((v) => parseFloat(v.replace(",", ".")))
176
+ .pipe(z.number())
177
+ .optional(),
178
+ "Valeur Nette Résiduelle Comptable": z
179
+ .string()
180
+ .transform((v) => parseFloat(v.replace(",", ".")))
181
+ .pipe(z.number())
182
+ .optional(),
183
+ Matricule: z.string().optional(),
184
+ Statut: z.string().optional(),
185
+ Site: z.string().optional(),
186
+ Filiale: z.string().optional(),
187
+ "Montant Réparation": z
188
+ .string()
189
+ .transform((v) => parseFloat(v.replace(",", ".")))
190
+ .pipe(z.number())
191
+ .optional(),
192
+ "N° de PV": z.string().max(50).optional(),
174
193
  }));
175
194
  export const assetDefinitions = {
176
195
  asset_genre: AssetGenre,
package/lib/index.d.ts CHANGED
@@ -703,146 +703,116 @@ export declare const schemasDefinitions: {
703
703
  valorisation_amount?: number | undefined;
704
704
  }>;
705
705
  computer_upload: z.ZodArray<z.ZodObject<{
706
- SerialNumber: z.ZodString;
707
- ExternalIdNumber: z.ZodOptional<z.ZodString>;
708
- OwnerCompanyName: z.ZodOptional<z.ZodString>;
709
- Type: z.ZodString;
710
- Constructor: z.ZodOptional<z.ZodString>;
711
- ProductCode: z.ZodString;
712
- Label: z.ZodString;
706
+ "N\u00B0 de s\u00E9rie": z.ZodString;
707
+ "N\u00B0 Interne": z.ZodOptional<z.ZodString>;
708
+ Propriétaire: z.ZodOptional<z.ZodString>;
709
+ Type: z.ZodOptional<z.ZodString>;
710
+ Constructeur: z.ZodOptional<z.ZodString>;
711
+ "Code produit": z.ZodOptional<z.ZodString>;
712
+ Label: z.ZodOptional<z.ZodString>;
713
713
  CPU: z.ZodOptional<z.ZodString>;
714
714
  OS: z.ZodOptional<z.ZodString>;
715
715
  RAM: z.ZodOptional<z.ZodString>;
716
- DiskMemory: z.ZodOptional<z.ZodString>;
717
- IPAddress: z.ZodOptional<z.ZodString>;
718
- OrderNumber: z.ZodOptional<z.ZodString>;
719
- OrderDate: z.ZodOptional<z.ZodDate>;
720
- DeliveryDate: z.ZodOptional<z.ZodDate>;
721
- EntryDate: z.ZodOptional<z.ZodDate>;
722
- AffectationDate: z.ZodOptional<z.ZodDate>;
723
- PrevisionalExitDate: z.ZodOptional<z.ZodDate>;
724
- ExitDate: z.ZodOptional<z.ZodDate>;
725
- ExitReason: z.ZodOptional<z.ZodString>;
726
- AuditDate: z.ZodOptional<z.ZodDate>;
727
- ValorisationAmount: z.ZodOptional<z.ZodNumber>;
728
- ReturnCosts: z.ZodOptional<z.ZodNumber>;
729
- AuditGrade: z.ZodOptional<z.ZodString>;
730
- InsuranceRefundAmount: z.ZodOptional<z.ZodNumber>;
731
- InsuranceFranchiseAmount: z.ZodOptional<z.ZodNumber>;
732
- InsuranceRefundDate: z.ZodOptional<z.ZodDate>;
733
- InvoicePaymentDate: z.ZodOptional<z.ZodDate>;
734
- InvoiceDate: z.ZodOptional<z.ZodDate>;
735
- InvoiceNumber: z.ZodOptional<z.ZodString>;
736
- Contract: z.ZodOptional<z.ZodString>;
737
- ContractAmendment: z.ZodOptional<z.ZodString>;
738
- UnitPrice: z.ZodOptional<z.ZodNumber>;
739
- NetValue: z.ZodOptional<z.ZodNumber>;
740
- RentAmount: z.ZodOptional<z.ZodNumber>;
741
- CO2ImpactPerYear: z.ZodOptional<z.ZodNumber>;
742
- CO2ProductionImpact: z.ZodOptional<z.ZodNumber>;
743
- AssetAge: z.ZodOptional<z.ZodNumber>;
744
- PersonNumber: z.ZodOptional<z.ZodString>;
745
- Status: z.ZodOptional<z.ZodString>;
746
- SiteName: z.ZodOptional<z.ZodString>;
747
- SubsidiaryName: z.ZodOptional<z.ZodString>;
748
- Repair: z.ZodOptional<z.ZodString>;
749
- RepairAmount: z.ZodOptional<z.ZodNumber>;
750
- RetrologisticRefund: z.ZodOptional<z.ZodNumber>;
751
- PVNumber: z.ZodOptional<z.ZodString>;
716
+ "M\u00E9moire Disque": z.ZodOptional<z.ZodString>;
717
+ "Adresse IP": z.ZodOptional<z.ZodString>;
718
+ "N\u00B0 de Commande": z.ZodOptional<z.ZodString>;
719
+ "Date de la Commande": z.ZodOptional<z.ZodString>;
720
+ "Date de livraison": z.ZodOptional<z.ZodString>;
721
+ "Date d'entr\u00E9e": z.ZodOptional<z.ZodString>;
722
+ "Date pr\u00E9vi": z.ZodOptional<z.ZodString>;
723
+ "Date de sortie": z.ZodOptional<z.ZodString>;
724
+ "Motif de sortie": z.ZodOptional<z.ZodString>;
725
+ "Montant de la valorisation": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
726
+ "Co\u00FBts de r\u00E9trologistique": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
727
+ Grade: z.ZodOptional<z.ZodString>;
728
+ "Montant Remboursement Assurance": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
729
+ "Montant de la franchise": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
730
+ "Date de Remboursement Assurance": z.ZodOptional<z.ZodString>;
731
+ "Date de facture": z.ZodOptional<z.ZodString>;
732
+ "N\u00B0 Facture": z.ZodOptional<z.ZodString>;
733
+ Avenant: z.ZodOptional<z.ZodString>;
734
+ "Prix unitaire": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
735
+ "Valeur Nette R\u00E9siduelle Comptable": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
736
+ Matricule: z.ZodOptional<z.ZodString>;
737
+ Statut: z.ZodOptional<z.ZodString>;
738
+ Site: z.ZodOptional<z.ZodString>;
739
+ Filiale: z.ZodOptional<z.ZodString>;
740
+ "Montant R\u00E9paration": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
741
+ "N\u00B0 de PV": z.ZodOptional<z.ZodString>;
752
742
  }, "strip", z.ZodTypeAny, {
753
- Type: string;
754
- SerialNumber: string;
755
- ProductCode: string;
756
- Label: string;
757
- Status?: string | undefined;
758
- PersonNumber?: string | undefined;
759
- SubsidiaryName?: string | undefined;
760
- SiteName?: string | undefined;
761
- AffectationDate?: Date | undefined;
762
- OwnerCompanyName?: string | undefined;
763
- ExternalIdNumber?: string | undefined;
764
- Constructor?: string | undefined;
743
+ "N\u00B0 de s\u00E9rie": string;
744
+ Type?: string | undefined;
745
+ "N\u00B0 Interne"?: string | undefined;
746
+ Propriétaire?: string | undefined;
747
+ Constructeur?: string | undefined;
748
+ "Code produit"?: string | undefined;
749
+ Label?: string | undefined;
765
750
  CPU?: string | undefined;
766
751
  OS?: string | undefined;
767
752
  RAM?: string | undefined;
768
- DiskMemory?: string | undefined;
769
- IPAddress?: string | undefined;
770
- OrderNumber?: string | undefined;
771
- OrderDate?: Date | undefined;
772
- DeliveryDate?: Date | undefined;
773
- EntryDate?: Date | undefined;
774
- PrevisionalExitDate?: Date | undefined;
775
- ExitDate?: Date | undefined;
776
- ExitReason?: string | undefined;
777
- AuditDate?: Date | undefined;
778
- ValorisationAmount?: number | undefined;
779
- ReturnCosts?: number | undefined;
780
- AuditGrade?: string | undefined;
781
- InsuranceRefundAmount?: number | undefined;
782
- InsuranceFranchiseAmount?: number | undefined;
783
- InsuranceRefundDate?: Date | undefined;
784
- InvoicePaymentDate?: Date | undefined;
785
- InvoiceDate?: Date | undefined;
786
- InvoiceNumber?: string | undefined;
787
- Contract?: string | undefined;
788
- ContractAmendment?: string | undefined;
789
- UnitPrice?: number | undefined;
790
- NetValue?: number | undefined;
791
- RentAmount?: number | undefined;
792
- CO2ImpactPerYear?: number | undefined;
793
- CO2ProductionImpact?: number | undefined;
794
- AssetAge?: number | undefined;
795
- Repair?: string | undefined;
796
- RepairAmount?: number | undefined;
797
- RetrologisticRefund?: number | undefined;
798
- PVNumber?: string | undefined;
799
- }, {
800
- Type: string;
801
- SerialNumber: string;
802
- ProductCode: string;
803
- Label: string;
804
- Status?: string | undefined;
805
- PersonNumber?: string | undefined;
806
- SubsidiaryName?: string | undefined;
807
- SiteName?: string | undefined;
808
- AffectationDate?: Date | undefined;
809
- OwnerCompanyName?: string | undefined;
810
- ExternalIdNumber?: string | undefined;
811
- Constructor?: string | undefined;
753
+ "M\u00E9moire Disque"?: string | undefined;
754
+ "Adresse IP"?: string | undefined;
755
+ "N\u00B0 de Commande"?: string | undefined;
756
+ "Date de la Commande"?: string | undefined;
757
+ "Date de livraison"?: string | undefined;
758
+ "Date d'entr\u00E9e"?: string | undefined;
759
+ "Date pr\u00E9vi"?: string | undefined;
760
+ "Date de sortie"?: string | undefined;
761
+ "Motif de sortie"?: string | undefined;
762
+ "Montant de la valorisation"?: number | undefined;
763
+ "Co\u00FBts de r\u00E9trologistique"?: number | undefined;
764
+ Grade?: string | undefined;
765
+ "Montant Remboursement Assurance"?: number | undefined;
766
+ "Montant de la franchise"?: number | undefined;
767
+ "Date de Remboursement Assurance"?: string | undefined;
768
+ "Date de facture"?: string | undefined;
769
+ "N\u00B0 Facture"?: string | undefined;
770
+ Avenant?: string | undefined;
771
+ "Prix unitaire"?: number | undefined;
772
+ "Valeur Nette R\u00E9siduelle Comptable"?: number | undefined;
773
+ Matricule?: string | undefined;
774
+ Statut?: string | undefined;
775
+ Site?: string | undefined;
776
+ Filiale?: string | undefined;
777
+ "Montant R\u00E9paration"?: number | undefined;
778
+ "N\u00B0 de PV"?: string | undefined;
779
+ }, {
780
+ "N\u00B0 de s\u00E9rie": string;
781
+ Type?: string | undefined;
782
+ "N\u00B0 Interne"?: string | undefined;
783
+ Propriétaire?: string | undefined;
784
+ Constructeur?: string | undefined;
785
+ "Code produit"?: string | undefined;
786
+ Label?: string | undefined;
812
787
  CPU?: string | undefined;
813
788
  OS?: string | undefined;
814
789
  RAM?: string | undefined;
815
- DiskMemory?: string | undefined;
816
- IPAddress?: string | undefined;
817
- OrderNumber?: string | undefined;
818
- OrderDate?: Date | undefined;
819
- DeliveryDate?: Date | undefined;
820
- EntryDate?: Date | undefined;
821
- PrevisionalExitDate?: Date | undefined;
822
- ExitDate?: Date | undefined;
823
- ExitReason?: string | undefined;
824
- AuditDate?: Date | undefined;
825
- ValorisationAmount?: number | undefined;
826
- ReturnCosts?: number | undefined;
827
- AuditGrade?: string | undefined;
828
- InsuranceRefundAmount?: number | undefined;
829
- InsuranceFranchiseAmount?: number | undefined;
830
- InsuranceRefundDate?: Date | undefined;
831
- InvoicePaymentDate?: Date | undefined;
832
- InvoiceDate?: Date | undefined;
833
- InvoiceNumber?: string | undefined;
834
- Contract?: string | undefined;
835
- ContractAmendment?: string | undefined;
836
- UnitPrice?: number | undefined;
837
- NetValue?: number | undefined;
838
- RentAmount?: number | undefined;
839
- CO2ImpactPerYear?: number | undefined;
840
- CO2ProductionImpact?: number | undefined;
841
- AssetAge?: number | undefined;
842
- Repair?: string | undefined;
843
- RepairAmount?: number | undefined;
844
- RetrologisticRefund?: number | undefined;
845
- PVNumber?: string | undefined;
790
+ "M\u00E9moire Disque"?: string | undefined;
791
+ "Adresse IP"?: string | undefined;
792
+ "N\u00B0 de Commande"?: string | undefined;
793
+ "Date de la Commande"?: string | undefined;
794
+ "Date de livraison"?: string | undefined;
795
+ "Date d'entr\u00E9e"?: string | undefined;
796
+ "Date pr\u00E9vi"?: string | undefined;
797
+ "Date de sortie"?: string | undefined;
798
+ "Motif de sortie"?: string | undefined;
799
+ "Montant de la valorisation"?: string | undefined;
800
+ "Co\u00FBts de r\u00E9trologistique"?: string | undefined;
801
+ Grade?: string | undefined;
802
+ "Montant Remboursement Assurance"?: string | undefined;
803
+ "Montant de la franchise"?: string | undefined;
804
+ "Date de Remboursement Assurance"?: string | undefined;
805
+ "Date de facture"?: string | undefined;
806
+ "N\u00B0 Facture"?: string | undefined;
807
+ Avenant?: string | undefined;
808
+ "Prix unitaire"?: string | undefined;
809
+ "Valeur Nette R\u00E9siduelle Comptable"?: string | undefined;
810
+ Matricule?: string | undefined;
811
+ Statut?: string | undefined;
812
+ Site?: string | undefined;
813
+ Filiale?: string | undefined;
814
+ "Montant R\u00E9paration"?: string | undefined;
815
+ "N\u00B0 de PV"?: string | undefined;
846
816
  }>, "many">;
847
817
  csr_data: z.ZodObject<z.objectUtil.extendShape<{
848
818
  id_company: z.ZodNumber;
@@ -1198,43 +1168,43 @@ export declare const schemasDefinitions: {
1198
1168
  id_job_types?: number | undefined;
1199
1169
  exit_date?: Date | undefined;
1200
1170
  }>;
1201
- people_upload: z.ZodObject<{
1202
- RegistrationNumber: z.ZodString;
1203
- FirstName: z.ZodOptional<z.ZodString>;
1204
- LastName: z.ZodOptional<z.ZodString>;
1205
- SubsidiaryName: z.ZodOptional<z.ZodString>;
1206
- SiteName: z.ZodOptional<z.ZodString>;
1207
- Email: z.ZodOptional<z.ZodString>;
1208
- ContractType: z.ZodOptional<z.ZodString>;
1209
- JobDesignation: z.ZodOptional<z.ZodString>;
1210
- JobCategory: z.ZodOptional<z.ZodString>;
1211
- JobTypes: z.ZodOptional<z.ZodString>;
1212
- ExitDate: z.ZodOptional<z.ZodDate>;
1171
+ people_upload: z.ZodArray<z.ZodObject<{
1172
+ Matricule: z.ZodString;
1173
+ Prénom: z.ZodOptional<z.ZodString>;
1174
+ Nom: z.ZodOptional<z.ZodString>;
1175
+ Filiale: z.ZodOptional<z.ZodString>;
1176
+ Etablissement: z.ZodOptional<z.ZodString>;
1177
+ "E-mail": z.ZodOptional<z.ZodString>;
1178
+ Ctrt: z.ZodOptional<z.ZodString>;
1179
+ "Emploi type": z.ZodOptional<z.ZodString>;
1180
+ "Fili\u00E8re m\u00E9tier": z.ZodOptional<z.ZodString>;
1181
+ "Famille emploi": z.ZodOptional<z.ZodString>;
1182
+ "Date sortie": z.ZodOptional<z.ZodString>;
1213
1183
  }, "strip", z.ZodTypeAny, {
1214
- RegistrationNumber: string;
1215
- SubsidiaryName?: string | undefined;
1216
- SiteName?: string | undefined;
1217
- ExitDate?: Date | undefined;
1218
- FirstName?: string | undefined;
1219
- LastName?: string | undefined;
1220
- Email?: string | undefined;
1221
- ContractType?: string | undefined;
1222
- JobDesignation?: string | undefined;
1223
- JobCategory?: string | undefined;
1224
- JobTypes?: string | undefined;
1225
- }, {
1226
- RegistrationNumber: string;
1227
- SubsidiaryName?: string | undefined;
1228
- SiteName?: string | undefined;
1229
- ExitDate?: Date | undefined;
1230
- FirstName?: string | undefined;
1231
- LastName?: string | undefined;
1232
- Email?: string | undefined;
1233
- ContractType?: string | undefined;
1234
- JobDesignation?: string | undefined;
1235
- JobCategory?: string | undefined;
1236
- JobTypes?: string | undefined;
1237
- }>;
1184
+ Matricule: string;
1185
+ Filiale?: string | undefined;
1186
+ Prénom?: string | undefined;
1187
+ Nom?: string | undefined;
1188
+ Etablissement?: string | undefined;
1189
+ "E-mail"?: string | undefined;
1190
+ Ctrt?: string | undefined;
1191
+ "Emploi type"?: string | undefined;
1192
+ "Fili\u00E8re m\u00E9tier"?: string | undefined;
1193
+ "Famille emploi"?: string | undefined;
1194
+ "Date sortie"?: string | undefined;
1195
+ }, {
1196
+ Matricule: string;
1197
+ Filiale?: string | undefined;
1198
+ Prénom?: string | undefined;
1199
+ Nom?: string | undefined;
1200
+ Etablissement?: string | undefined;
1201
+ "E-mail"?: string | undefined;
1202
+ Ctrt?: string | undefined;
1203
+ "Emploi type"?: string | undefined;
1204
+ "Fili\u00E8re m\u00E9tier"?: string | undefined;
1205
+ "Famille emploi"?: string | undefined;
1206
+ "Date sortie"?: string | undefined;
1207
+ }>, "many">;
1238
1208
  site: z.ZodObject<z.objectUtil.extendShape<{
1239
1209
  id_company: z.ZodNumber;
1240
1210
  }, {
package/lib/org.d.ts CHANGED
@@ -273,43 +273,43 @@ declare const People: z.ZodObject<z.objectUtil.extendShape<{
273
273
  id_job_types?: number | undefined;
274
274
  exit_date?: Date | undefined;
275
275
  }>;
276
- declare const PeopleUpload: z.ZodObject<{
277
- RegistrationNumber: z.ZodString;
278
- FirstName: z.ZodOptional<z.ZodString>;
279
- LastName: z.ZodOptional<z.ZodString>;
280
- SubsidiaryName: z.ZodOptional<z.ZodString>;
281
- SiteName: z.ZodOptional<z.ZodString>;
282
- Email: z.ZodOptional<z.ZodString>;
283
- ContractType: z.ZodOptional<z.ZodString>;
284
- JobDesignation: z.ZodOptional<z.ZodString>;
285
- JobCategory: z.ZodOptional<z.ZodString>;
286
- JobTypes: z.ZodOptional<z.ZodString>;
287
- ExitDate: z.ZodOptional<z.ZodDate>;
276
+ declare const PeopleUpload: z.ZodArray<z.ZodObject<{
277
+ Matricule: z.ZodString;
278
+ Prénom: z.ZodOptional<z.ZodString>;
279
+ Nom: z.ZodOptional<z.ZodString>;
280
+ Filiale: z.ZodOptional<z.ZodString>;
281
+ Etablissement: z.ZodOptional<z.ZodString>;
282
+ "E-mail": z.ZodOptional<z.ZodString>;
283
+ Ctrt: z.ZodOptional<z.ZodString>;
284
+ "Emploi type": z.ZodOptional<z.ZodString>;
285
+ "Fili\u00E8re m\u00E9tier": z.ZodOptional<z.ZodString>;
286
+ "Famille emploi": z.ZodOptional<z.ZodString>;
287
+ "Date sortie": z.ZodOptional<z.ZodString>;
288
288
  }, "strip", z.ZodTypeAny, {
289
- RegistrationNumber: string;
290
- SubsidiaryName?: string | undefined;
291
- SiteName?: string | undefined;
292
- ExitDate?: Date | undefined;
293
- FirstName?: string | undefined;
294
- LastName?: string | undefined;
295
- Email?: string | undefined;
296
- ContractType?: string | undefined;
297
- JobDesignation?: string | undefined;
298
- JobCategory?: string | undefined;
299
- JobTypes?: string | undefined;
289
+ Matricule: string;
290
+ Filiale?: string | undefined;
291
+ Prénom?: string | undefined;
292
+ Nom?: string | undefined;
293
+ Etablissement?: string | undefined;
294
+ "E-mail"?: string | undefined;
295
+ Ctrt?: string | undefined;
296
+ "Emploi type"?: string | undefined;
297
+ "Fili\u00E8re m\u00E9tier"?: string | undefined;
298
+ "Famille emploi"?: string | undefined;
299
+ "Date sortie"?: string | undefined;
300
300
  }, {
301
- RegistrationNumber: string;
302
- SubsidiaryName?: string | undefined;
303
- SiteName?: string | undefined;
304
- ExitDate?: Date | undefined;
305
- FirstName?: string | undefined;
306
- LastName?: string | undefined;
307
- Email?: string | undefined;
308
- ContractType?: string | undefined;
309
- JobDesignation?: string | undefined;
310
- JobCategory?: string | undefined;
311
- JobTypes?: string | undefined;
312
- }>;
301
+ Matricule: string;
302
+ Filiale?: string | undefined;
303
+ Prénom?: string | undefined;
304
+ Nom?: string | undefined;
305
+ Etablissement?: string | undefined;
306
+ "E-mail"?: string | undefined;
307
+ Ctrt?: string | undefined;
308
+ "Emploi type"?: string | undefined;
309
+ "Fili\u00E8re m\u00E9tier"?: string | undefined;
310
+ "Famille emploi"?: string | undefined;
311
+ "Date sortie"?: string | undefined;
312
+ }>, "many">;
313
313
  export declare const organizationDefinitions: {
314
314
  model: z.ZodObject<{
315
315
  id_company: z.ZodNumber;
@@ -476,43 +476,43 @@ export declare const organizationDefinitions: {
476
476
  id_job_types?: number | undefined;
477
477
  exit_date?: Date | undefined;
478
478
  }>;
479
- people_upload: z.ZodObject<{
480
- RegistrationNumber: z.ZodString;
481
- FirstName: z.ZodOptional<z.ZodString>;
482
- LastName: z.ZodOptional<z.ZodString>;
483
- SubsidiaryName: z.ZodOptional<z.ZodString>;
484
- SiteName: z.ZodOptional<z.ZodString>;
485
- Email: z.ZodOptional<z.ZodString>;
486
- ContractType: z.ZodOptional<z.ZodString>;
487
- JobDesignation: z.ZodOptional<z.ZodString>;
488
- JobCategory: z.ZodOptional<z.ZodString>;
489
- JobTypes: z.ZodOptional<z.ZodString>;
490
- ExitDate: z.ZodOptional<z.ZodDate>;
479
+ people_upload: z.ZodArray<z.ZodObject<{
480
+ Matricule: z.ZodString;
481
+ Prénom: z.ZodOptional<z.ZodString>;
482
+ Nom: z.ZodOptional<z.ZodString>;
483
+ Filiale: z.ZodOptional<z.ZodString>;
484
+ Etablissement: z.ZodOptional<z.ZodString>;
485
+ "E-mail": z.ZodOptional<z.ZodString>;
486
+ Ctrt: z.ZodOptional<z.ZodString>;
487
+ "Emploi type": z.ZodOptional<z.ZodString>;
488
+ "Fili\u00E8re m\u00E9tier": z.ZodOptional<z.ZodString>;
489
+ "Famille emploi": z.ZodOptional<z.ZodString>;
490
+ "Date sortie": z.ZodOptional<z.ZodString>;
491
491
  }, "strip", z.ZodTypeAny, {
492
- RegistrationNumber: string;
493
- SubsidiaryName?: string | undefined;
494
- SiteName?: string | undefined;
495
- ExitDate?: Date | undefined;
496
- FirstName?: string | undefined;
497
- LastName?: string | undefined;
498
- Email?: string | undefined;
499
- ContractType?: string | undefined;
500
- JobDesignation?: string | undefined;
501
- JobCategory?: string | undefined;
502
- JobTypes?: string | undefined;
492
+ Matricule: string;
493
+ Filiale?: string | undefined;
494
+ Prénom?: string | undefined;
495
+ Nom?: string | undefined;
496
+ Etablissement?: string | undefined;
497
+ "E-mail"?: string | undefined;
498
+ Ctrt?: string | undefined;
499
+ "Emploi type"?: string | undefined;
500
+ "Fili\u00E8re m\u00E9tier"?: string | undefined;
501
+ "Famille emploi"?: string | undefined;
502
+ "Date sortie"?: string | undefined;
503
503
  }, {
504
- RegistrationNumber: string;
505
- SubsidiaryName?: string | undefined;
506
- SiteName?: string | undefined;
507
- ExitDate?: Date | undefined;
508
- FirstName?: string | undefined;
509
- LastName?: string | undefined;
510
- Email?: string | undefined;
511
- ContractType?: string | undefined;
512
- JobDesignation?: string | undefined;
513
- JobCategory?: string | undefined;
514
- JobTypes?: string | undefined;
515
- }>;
504
+ Matricule: string;
505
+ Filiale?: string | undefined;
506
+ Prénom?: string | undefined;
507
+ Nom?: string | undefined;
508
+ Etablissement?: string | undefined;
509
+ "E-mail"?: string | undefined;
510
+ Ctrt?: string | undefined;
511
+ "Emploi type"?: string | undefined;
512
+ "Fili\u00E8re m\u00E9tier"?: string | undefined;
513
+ "Famille emploi"?: string | undefined;
514
+ "Date sortie"?: string | undefined;
515
+ }>, "many">;
516
516
  site: z.ZodObject<z.objectUtil.extendShape<{
517
517
  id_company: z.ZodNumber;
518
518
  }, {
package/lib/org.js CHANGED
@@ -85,19 +85,20 @@ const People = Model.extend({
85
85
  id_job_types: z.number().optional(),
86
86
  exit_date: z.date().optional(),
87
87
  });
88
- const PeopleUpload = z.object({
89
- RegistrationNumber: z.string(),
90
- FirstName: z.string().optional(),
91
- LastName: z.string().optional(),
92
- SubsidiaryName: z.string().optional(),
93
- SiteName: z.string().optional(),
94
- Email: z.string().email().optional(),
95
- ContractType: z.string().optional(),
96
- JobDesignation: z.string().optional(),
97
- JobCategory: z.string().optional(),
98
- JobTypes: z.string().optional(),
99
- ExitDate: z.coerce.date().optional(),
100
- });
88
+ const DATE_REGEX = /^\d{2}\/\d{2}\/\d{4}$/;
89
+ const PeopleUpload = z.array(z.object({
90
+ Matricule: z.string(),
91
+ Prénom: z.string().optional(),
92
+ Nom: z.string().optional(),
93
+ Filiale: z.string().optional(),
94
+ Etablissement: z.string().optional(),
95
+ "E-mail": z.string().email().optional(),
96
+ Ctrt: z.string().optional(),
97
+ "Emploi type": z.string().optional(),
98
+ "Filière métier": z.string().optional(),
99
+ "Famille emploi": z.string().optional(),
100
+ "Date sortie": z.string().regex(DATE_REGEX).optional(),
101
+ }));
101
102
  export const organizationDefinitions = {
102
103
  model: Model,
103
104
  company_relation_type: CompaniesRelationType,
package/package.json CHANGED
@@ -1,15 +1,9 @@
1
1
  {
2
2
  "name": "colibris-types",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
7
- "scripts": {
8
- "test": "jest",
9
- "cover": "jest --coverage",
10
- "build": "tsc",
11
- "prepare": "npm run build"
12
- },
13
7
  "keywords": [],
14
8
  "author": "",
15
9
  "license": "ISC",
@@ -25,5 +19,10 @@
25
19
  "dependencies": {
26
20
  "zod": "^3.23.4"
27
21
  },
28
- "types": "./lib/index.d.ts"
29
- }
22
+ "types": "./lib/index.d.ts",
23
+ "scripts": {
24
+ "test": "jest",
25
+ "cover": "jest --coverage",
26
+ "build": "tsc"
27
+ }
28
+ }