colibris-types 1.0.22 → 1.0.24

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.
package/README.md CHANGED
@@ -1,2 +1,2 @@
1
- Update package version: `npm version [patch|minor|major]`
2
- Publish new version: `npm publish`
1
+ Update package version: `npm version [patch|minor|major]`
2
+ Publish new version: `npm publish`
@@ -442,148 +442,118 @@ declare const AssetUpload: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
442
442
  SubsidiaryName?: string | undefined;
443
443
  AffectationDate?: Date | undefined;
444
444
  }>;
445
- declare const ComputerUpload: 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;
445
+ declare const ComputerUpload: z.ZodArray<z.ZodObject<{
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;
586
- }>;
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;
556
+ }>, "many">;
587
557
  export declare const assetDefinitions: {
588
558
  asset_genre: z.ZodObject<z.objectUtil.extendShape<{
589
559
  id_company: z.ZodNumber;
@@ -839,148 +809,118 @@ export declare const assetDefinitions: {
839
809
  retrologistic_cost?: number | undefined;
840
810
  valorisation_amount?: number | undefined;
841
811
  }>;
842
- computer_upload: 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;
812
+ computer_upload: z.ZodArray<z.ZodObject<{
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;
983
- }>;
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;
923
+ }>, "many">;
984
924
  csr_data: z.ZodObject<z.objectUtil.extendShape<{
985
925
  id_company: z.ZodNumber;
986
926
  }, {
package/lib/computers.js CHANGED
@@ -124,54 +124,73 @@ const AssetUpload = z
124
124
  .merge(AssetTypeUpload)
125
125
  .merge(OptLabelsUpload)
126
126
  .merge(OptAssetAffectationUplad);
127
- const ComputerUpload = 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(),
174
- });
127
+ const DATE_REGEX = /^\d{2}\/\d{2}\/\d{4}$/;
128
+ const ComputerUpload = z.array(z.object({
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(),
193
+ }));
175
194
  export const assetDefinitions = {
176
195
  asset_genre: AssetGenre,
177
196
  asset_status: AssetStatus,