@silexpert/core 0.4.142 → 0.4.144
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/es/api/resources/User.d.ts +2 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +3 -0
- package/es/api/resources/User.js.map +1 -1
- package/es/types/Enum/AnswerTypeValue.d.ts +1 -1
- package/es/types/Enum/AnswerTypeValue.d.ts.map +1 -1
- package/es/types/Enum/AnswerTypeValue.js +1 -1
- package/es/types/Enum/AnswerTypeValue.js.map +1 -1
- package/es/types/Enum/BalanceSheetQuestion.d.ts +68 -1
- package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheetQuestion.js +67 -0
- package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/es/types/Enum/BalanceSheetQuestionWording.d.ts +30 -1
- package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheetQuestionWording.js +34 -0
- package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/es/types/Enum/JeDeclare.d.ts +2 -2
- package/es/types/Enum/JeDeclare.d.ts.map +1 -1
- package/es/types/Enum/JeDeclare.js +2 -2
- package/es/types/Enum/JeDeclare.js.map +1 -1
- package/es/types/Interface/api/cerfa/2033.d.ts +2 -94
- package/es/types/Interface/api/cerfa/2033.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/2033.js +1 -373
- package/es/types/Interface/api/cerfa/2033.js.map +1 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +1 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/es/types/Interface/api/cerfa/Utils.d.ts +8 -0
- package/es/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/Utils.js.map +1 -1
- package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts +0 -2
- package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts.map +1 -1
- package/es/types/Interface/api/jeDeclare/UtilCFONB.js +0 -123
- package/es/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
- package/es/types/Interface/api/user/CreateCoworker.d.ts +19 -0
- package/es/types/Interface/api/user/CreateCoworker.d.ts.map +1 -0
- package/es/types/Interface/api/user/CreateCoworker.js +93 -0
- package/es/types/Interface/api/user/CreateCoworker.js.map +1 -0
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/User.js +4 -0
- package/js/api/resources/User.js.map +1 -1
- package/js/types/Enum/AnswerTypeValue.js +1 -1
- package/js/types/Enum/AnswerTypeValue.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestion.js +67 -0
- package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestionWording.js +38 -1
- package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/js/types/Enum/JeDeclare.js +2 -2
- package/js/types/Enum/JeDeclare.js.map +1 -1
- package/js/types/Interface/api/cerfa/2033.js +0 -186
- package/js/types/Interface/api/cerfa/2033.js.map +1 -1
- package/js/types/Interface/api/jeDeclare/UtilCFONB.js +0 -128
- package/js/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
- package/js/types/Interface/api/user/CreateCoworker.js +57 -0
- package/js/types/Interface/api/user/CreateCoworker.js.map +1 -0
- package/js/types/index.js +12 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/User.ts +4 -1
- package/ts/types/Enum/AnswerTypeValue.ts +1 -1
- package/ts/types/Enum/BalanceSheetQuestion.ts +70 -0
- package/ts/types/Enum/BalanceSheetQuestionWording.ts +39 -0
- package/ts/types/Enum/JeDeclare.ts +2 -2
- package/ts/types/Interface/api/cerfa/2033.ts +3 -281
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +2 -1
- package/ts/types/Interface/api/cerfa/Utils.ts +10 -0
- package/ts/types/Interface/api/jeDeclare/UtilCFONB.ts +0 -126
- package/ts/types/Interface/api/user/CreateCoworker.ts +69 -0
- package/ts/types/index.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiPropertyOptional
|
|
1
|
+
import { ApiPropertyOptional } from '../../../..';
|
|
2
2
|
import { PhysicShareholder, MoralShareholder, Subsidiarie } from './CreateCerfa';
|
|
3
3
|
|
|
4
4
|
export class Cerfa2033Society {
|
|
@@ -294,7 +294,7 @@ export type Cerfa2033ProvisionMovesDotationsAndRevivals = {
|
|
|
294
294
|
};
|
|
295
295
|
|
|
296
296
|
export type Cerfa2033ProvisionMovesVentilation = {
|
|
297
|
-
label:
|
|
297
|
+
label: string;
|
|
298
298
|
amount: number;
|
|
299
299
|
};
|
|
300
300
|
|
|
@@ -399,6 +399,7 @@ export interface Cerfa2033ShareCapital {
|
|
|
399
399
|
|
|
400
400
|
export interface Cerfa2033 {
|
|
401
401
|
isNil: boolean;
|
|
402
|
+
isPageBNil: boolean;
|
|
402
403
|
isPageCNil: boolean;
|
|
403
404
|
isPageDNil: boolean;
|
|
404
405
|
society: Cerfa2033Society;
|
|
@@ -445,283 +446,4 @@ export interface Cerfa2033 {
|
|
|
445
446
|
export class ParamsGenerate2033 {
|
|
446
447
|
@ApiPropertyOptional({ description: 'Modifie le chemin du PDF' })
|
|
447
448
|
isTest?: boolean;
|
|
448
|
-
|
|
449
|
-
@ApiProperty()
|
|
450
|
-
isNil: boolean; // Néant
|
|
451
|
-
|
|
452
|
-
@ApiPropertyOptional()
|
|
453
|
-
equityOtherReservePurchaseOfOriginalWorks?: number | null; // Passif > Capitaux propres > Autres réserves (ligne 131)
|
|
454
|
-
|
|
455
|
-
@ApiPropertyOptional()
|
|
456
|
-
referralFixedAssets?: number | null; // Passif > Renvois > Dont immobilisations financières à moins d'un an (ligne 193)
|
|
457
|
-
|
|
458
|
-
@ApiPropertyOptional()
|
|
459
|
-
referralDebtsMoreThanOneYear?: number | null; // Passif > Renvois > Dont immobilisations financières à moins d'un an (ligne 195)
|
|
460
|
-
|
|
461
|
-
@ApiPropertyOptional()
|
|
462
|
-
referralClaims?: number | null; // Passif > Renvois > Dont immobilisations financières à moins d'un an (ligne 197)
|
|
463
|
-
|
|
464
|
-
@ApiPropertyOptional()
|
|
465
|
-
saleOfMerchandiseExport?: number | null; // Résultat comptable > Produits d'exploitation > Ventes de marchandises > Dont export (ligne 209)
|
|
466
|
-
|
|
467
|
-
@ApiPropertyOptional()
|
|
468
|
-
saleOfProductionGoodsExport?: number | null; // Résultat comptable > Produits d'exploitation > Production vendue - biens > Dont export (ligne 215)
|
|
469
|
-
|
|
470
|
-
@ApiPropertyOptional()
|
|
471
|
-
saleOfProductionServicesExport?: number | null; // Résultat comptable > Produits d'exploitation > Production vendue - services > Dont export (ligne 217)
|
|
472
|
-
|
|
473
|
-
@ApiPropertyOptional()
|
|
474
|
-
otherExpensesProvisions?: number | null; // Résultat comptable > Charges d'exploitation > Autres charges > dont provisions fiscales pour implantations commerciales à l'étranger (ligne 259)
|
|
475
|
-
|
|
476
|
-
@ApiPropertyOptional()
|
|
477
|
-
otherExpensesCotisations?: number | null; // Résultat comptable > Charges d'exploitation > Autres charges > dont provisions fiscales pour implantations commerciales à l'étranger (ligne 260)
|
|
478
|
-
|
|
479
|
-
@ApiPropertyOptional()
|
|
480
|
-
exceptionalExpensesSubscriptions?: number | null; // Résultat d'exploitation > Charges exceptionnelles > dont amortissements des souscriptions
|
|
481
|
-
|
|
482
|
-
@ApiPropertyOptional()
|
|
483
|
-
exceptionalExpensesExceptional?: number | null; // Résultat d'exploitation > Charges exceptionnelles > dont amortissements exceptionnels
|
|
484
|
-
|
|
485
|
-
@ApiPropertyOptional()
|
|
486
|
-
reinstatementsRemuneration?: number | null; // Résultat fiscal > Rémunérations et avantages personnels non déductibles (ligne 316)
|
|
487
|
-
|
|
488
|
-
@ApiPropertyOptional()
|
|
489
|
-
reinstatementsAmortizations?: number | null; // Résultat fiscal > Amortissements excédentaires (art. 39-4 du CGI) et autres amortissements non déductibles (ligne 318)
|
|
490
|
-
|
|
491
|
-
@ApiPropertyOptional()
|
|
492
|
-
reinstatementsProvisions?: number | null; // Résultat fiscal > Provisions non déductibles (ligne 322)
|
|
493
|
-
|
|
494
|
-
@ApiPropertyOptional()
|
|
495
|
-
reinstatementsDiverse?: number | null; // Résultat fiscal > Réintégrations (ligne 247)
|
|
496
|
-
|
|
497
|
-
@ApiPropertyOptional()
|
|
498
|
-
reinstatementsDeviations?: number | null; // Résultat fiscal > Réintégrations (ligne 248)
|
|
499
|
-
|
|
500
|
-
@ApiPropertyOptional()
|
|
501
|
-
reinstatementsShareOfRent?: number | null; // Résultat fiscal > Réintégrations (ligne )
|
|
502
|
-
|
|
503
|
-
@ApiPropertyOptional()
|
|
504
|
-
reinstatementsFractionOfRents?: number | null; // Résultat fiscal > Réintégrations (ligne 249)
|
|
505
|
-
|
|
506
|
-
@ApiPropertyOptional()
|
|
507
|
-
reinstatementsRelatedCharges?: number | null; // Résultat fiscal > Réintégrations (ligne 998)
|
|
508
|
-
|
|
509
|
-
@ApiPropertyOptional()
|
|
510
|
-
reinstatementsFiscalResult?: number | null; // Résultat fiscal > Réintégrations (ligne 999)
|
|
511
|
-
|
|
512
|
-
@ApiPropertyOptional()
|
|
513
|
-
maritimeTransportDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 997)
|
|
514
|
-
|
|
515
|
-
@ApiPropertyOptional()
|
|
516
|
-
newBusinessDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 986)
|
|
517
|
-
|
|
518
|
-
@ApiPropertyOptional()
|
|
519
|
-
ZFUDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 987)
|
|
520
|
-
|
|
521
|
-
@ApiPropertyOptional()
|
|
522
|
-
difficultBusinessDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 981)
|
|
523
|
-
|
|
524
|
-
@ApiPropertyOptional()
|
|
525
|
-
JEIDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 989)
|
|
526
|
-
|
|
527
|
-
@ApiPropertyOptional()
|
|
528
|
-
ZRDDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 127)
|
|
529
|
-
|
|
530
|
-
@ApiPropertyOptional()
|
|
531
|
-
ZRRDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 138)
|
|
532
|
-
|
|
533
|
-
@ApiPropertyOptional()
|
|
534
|
-
revitalizeDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 991)
|
|
535
|
-
|
|
536
|
-
@ApiPropertyOptional()
|
|
537
|
-
overseasInvestmentDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 344)
|
|
538
|
-
|
|
539
|
-
@ApiPropertyOptional()
|
|
540
|
-
ZFANGDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 345)
|
|
541
|
-
|
|
542
|
-
@ApiPropertyOptional()
|
|
543
|
-
BUDDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 992)
|
|
544
|
-
|
|
545
|
-
@ApiPropertyOptional()
|
|
546
|
-
priorityDevelopmentDeduction?: number | null; // Résultat fiscal > Déductions > ( ligne 993)
|
|
547
|
-
|
|
548
|
-
@ApiPropertyOptional()
|
|
549
|
-
diverseDebts?: number | null; // Résultat fiscal > Divers
|
|
550
|
-
|
|
551
|
-
@ApiPropertyOptional()
|
|
552
|
-
exceptionalDeduction?: number | null; // Résultat fiscal > Divers
|
|
553
|
-
|
|
554
|
-
@ApiPropertyOptional()
|
|
555
|
-
exceptionalDeductionA?: number | null; // Résultat fiscal > Divers
|
|
556
|
-
|
|
557
|
-
@ApiPropertyOptional()
|
|
558
|
-
exceptionalDeductionB?: number | null; // Résultat fiscal > Divers
|
|
559
|
-
|
|
560
|
-
@ApiPropertyOptional()
|
|
561
|
-
exceptionalDeductionC?: number | null; // Résultat fiscal > Divers
|
|
562
|
-
|
|
563
|
-
@ApiPropertyOptional()
|
|
564
|
-
exceptionalDeductionD?: number | null; // Résultat fiscal > Divers
|
|
565
|
-
|
|
566
|
-
@ApiPropertyOptional()
|
|
567
|
-
exceptionalDeductionE?: number | null; // Résultat fiscal > Divers
|
|
568
|
-
|
|
569
|
-
@ApiPropertyOptional()
|
|
570
|
-
exceptionalDeductionF?: number | null; // Résultat fiscal > Divers
|
|
571
|
-
|
|
572
|
-
@ApiPropertyOptional()
|
|
573
|
-
exceptionalDeductionG?: number | null; // Résultat fiscal > Divers
|
|
574
|
-
|
|
575
|
-
@ApiPropertyOptional()
|
|
576
|
-
deficitsExercise?: number | null; // Déficit de l'exercice reporté en arrière
|
|
577
|
-
|
|
578
|
-
@ApiPropertyOptional()
|
|
579
|
-
deficitsReportable?: number | null; // Déficits antérieurs reportables
|
|
580
|
-
|
|
581
|
-
@ApiPropertyOptional()
|
|
582
|
-
deficitsImputed?: number | null; // dont imputés sur le résultat
|
|
583
|
-
|
|
584
|
-
@ApiPropertyOptional()
|
|
585
|
-
addedValueNatures?: string[]; // Nature des immobilisations cédées virées de poste à poste, mise hors service ou réintégrées dans le patrimoine privé
|
|
586
|
-
|
|
587
|
-
@ApiPropertyOptional()
|
|
588
|
-
majorationsBeginingAmount?: number;
|
|
589
|
-
|
|
590
|
-
@ApiPropertyOptional()
|
|
591
|
-
majorationsIncreases?: number;
|
|
592
|
-
|
|
593
|
-
@ApiPropertyOptional()
|
|
594
|
-
majorationsDiminution?: number;
|
|
595
|
-
|
|
596
|
-
@ApiPropertyOptional()
|
|
597
|
-
provisionsMovesBodilyDotations?: number;
|
|
598
|
-
|
|
599
|
-
@ApiPropertyOptional()
|
|
600
|
-
provisionsMovesBodilyRevivals?: number;
|
|
601
|
-
|
|
602
|
-
@ApiPropertyOptional()
|
|
603
|
-
provisionsMovesBodilyAmount?: number;
|
|
604
|
-
|
|
605
|
-
@ApiPropertyOptional()
|
|
606
|
-
provisionsMovesLandDotations?: number;
|
|
607
|
-
|
|
608
|
-
@ApiPropertyOptional()
|
|
609
|
-
provisionsMovesLandRevivals?: number;
|
|
610
|
-
|
|
611
|
-
@ApiPropertyOptional()
|
|
612
|
-
provisionsMovesLandLabel?: number;
|
|
613
|
-
|
|
614
|
-
@ApiPropertyOptional()
|
|
615
|
-
provisionsMovesLandAmount?: number;
|
|
616
|
-
|
|
617
|
-
@ApiPropertyOptional()
|
|
618
|
-
provisionsMovesConstructionsDotations?: number;
|
|
619
|
-
|
|
620
|
-
@ApiPropertyOptional()
|
|
621
|
-
provisionsMovesConstructionsRevivals?: number;
|
|
622
|
-
|
|
623
|
-
@ApiPropertyOptional()
|
|
624
|
-
provisionsMovesConstructionsLabel?: number;
|
|
625
|
-
|
|
626
|
-
@ApiPropertyOptional()
|
|
627
|
-
provisionsMovesConstructionsAmount?: number;
|
|
628
|
-
|
|
629
|
-
@ApiPropertyOptional()
|
|
630
|
-
provisionsMovesTechicalInstallationsDotations?: number;
|
|
631
|
-
|
|
632
|
-
@ApiPropertyOptional()
|
|
633
|
-
provisionsMovesTechicalInstallationsRevivals?: number;
|
|
634
|
-
|
|
635
|
-
@ApiPropertyOptional()
|
|
636
|
-
provisionsMovesTechicalInstallationsLabel?: number;
|
|
637
|
-
|
|
638
|
-
@ApiPropertyOptional()
|
|
639
|
-
provisionsMovesTechicalInstallationsAmount?: number;
|
|
640
|
-
|
|
641
|
-
@ApiPropertyOptional()
|
|
642
|
-
provisionsMovesGeneralInstallationsDotations?: number;
|
|
643
|
-
|
|
644
|
-
@ApiPropertyOptional()
|
|
645
|
-
provisionsMovesGeneralInstallationsRevivals?: number;
|
|
646
|
-
|
|
647
|
-
@ApiPropertyOptional()
|
|
648
|
-
provisionsMovesGeneralInstallationsLabel?: number;
|
|
649
|
-
|
|
650
|
-
@ApiPropertyOptional()
|
|
651
|
-
provisionsMovesGeneralInstallationsAmount?: number;
|
|
652
|
-
|
|
653
|
-
@ApiPropertyOptional()
|
|
654
|
-
provisionsMovesEquipmentTransactionDotations?: number;
|
|
655
|
-
|
|
656
|
-
@ApiPropertyOptional()
|
|
657
|
-
provisionsMovesEquipmentTransactionRevivals?: number;
|
|
658
|
-
|
|
659
|
-
@ApiPropertyOptional()
|
|
660
|
-
provisionsMovesEquipmentTransactionLabel?: number;
|
|
661
|
-
|
|
662
|
-
@ApiPropertyOptional()
|
|
663
|
-
provisionsMovesEquipmentTransactionAmount?: number;
|
|
664
|
-
|
|
665
|
-
@ApiPropertyOptional()
|
|
666
|
-
provisionsMovesOtherDotations?: number;
|
|
667
|
-
|
|
668
|
-
@ApiPropertyOptional()
|
|
669
|
-
provisionsMovesOtherRevivals?: number;
|
|
670
|
-
|
|
671
|
-
@ApiPropertyOptional()
|
|
672
|
-
provisionsMovesOtherLabel?: number;
|
|
673
|
-
|
|
674
|
-
@ApiPropertyOptional()
|
|
675
|
-
provisionsMovesOtherAmount?: number;
|
|
676
|
-
|
|
677
|
-
@ApiPropertyOptional()
|
|
678
|
-
ventilations?: Cerfa2033ProvisionMovesVentilation[];
|
|
679
|
-
|
|
680
|
-
@ApiPropertyOptional()
|
|
681
|
-
applicationDeficitsResult?: number;
|
|
682
|
-
|
|
683
|
-
@ApiPropertyOptional()
|
|
684
|
-
applicationDeficitsStranger?: number;
|
|
685
|
-
|
|
686
|
-
@ApiPropertyOptional()
|
|
687
|
-
applicationDeficitsDeductible?: number;
|
|
688
|
-
|
|
689
|
-
@ApiPropertyOptional()
|
|
690
|
-
applicationDeficitsCotisations?: number;
|
|
691
|
-
|
|
692
|
-
@ApiPropertyOptional()
|
|
693
|
-
applicationDeficitsTotal?: number;
|
|
694
|
-
|
|
695
|
-
@ApiPropertyOptional()
|
|
696
|
-
cotisationsDeductible?: number;
|
|
697
|
-
|
|
698
|
-
@ApiPropertyOptional()
|
|
699
|
-
cotisationsTotal?: number;
|
|
700
|
-
|
|
701
|
-
@ApiPropertyOptional()
|
|
702
|
-
approvedManagementCenter?: number;
|
|
703
|
-
|
|
704
|
-
@ApiPropertyOptional()
|
|
705
|
-
vatCollected?: number;
|
|
706
|
-
|
|
707
|
-
@ApiPropertyOptional()
|
|
708
|
-
vatDeductible?: number;
|
|
709
|
-
|
|
710
|
-
@ApiPropertyOptional()
|
|
711
|
-
specimens?: number;
|
|
712
|
-
|
|
713
|
-
@ApiPropertyOptional()
|
|
714
|
-
aidReceived?: number;
|
|
715
|
-
|
|
716
|
-
@ApiPropertyOptional()
|
|
717
|
-
investment?: number;
|
|
718
|
-
|
|
719
|
-
@ApiPropertyOptional()
|
|
720
|
-
reportableDeficitsTransferred?: number;
|
|
721
|
-
|
|
722
|
-
@ApiPropertyOptional()
|
|
723
|
-
reportableDeficitsOperations?: number;
|
|
724
|
-
|
|
725
|
-
@ApiPropertyOptional()
|
|
726
|
-
deductionsDiverseTotal?: number;
|
|
727
449
|
}
|
|
@@ -47,7 +47,8 @@ export interface CerfaAddress {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export type CerfaAnswers = {
|
|
50
|
-
[key in keyof typeof QuestionWording
|
|
50
|
+
[key in keyof typeof QuestionWording
|
|
51
|
+
| keyof typeof Question]: any
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
export type Termination = {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { AmountType } from './Util';
|
|
2
|
-
|
|
3
1
|
export const CFONB_START_LINE = 0;
|
|
4
2
|
export const CFONB_START_LINE_LENGTH = 2;
|
|
5
3
|
export const CFFONB_LINE_LENGHT = 120;
|
|
@@ -260,128 +258,4 @@ export function initializeCFONBStructreObject(structure:CFONBStructureObejct): {
|
|
|
260
258
|
object = { ...(object ? { ...object, [key]: null } : { [key]: null }) };
|
|
261
259
|
});
|
|
262
260
|
return object;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export function codeInterbankToTypeAmount(code: string | null): AmountType {
|
|
266
|
-
switch (code) {
|
|
267
|
-
case '02':
|
|
268
|
-
case '04':
|
|
269
|
-
case '05':
|
|
270
|
-
case '12':
|
|
271
|
-
case '13':
|
|
272
|
-
case '15':
|
|
273
|
-
case '16':
|
|
274
|
-
case '17':
|
|
275
|
-
case '18':
|
|
276
|
-
case '24':
|
|
277
|
-
case '25':
|
|
278
|
-
case '30':
|
|
279
|
-
case '31':
|
|
280
|
-
case '32':
|
|
281
|
-
case '35':
|
|
282
|
-
case '37':
|
|
283
|
-
case '39':
|
|
284
|
-
case '40':
|
|
285
|
-
case '45':
|
|
286
|
-
case '47':
|
|
287
|
-
case '49':
|
|
288
|
-
case '54':
|
|
289
|
-
case '57':
|
|
290
|
-
case '59':
|
|
291
|
-
case '63':
|
|
292
|
-
case '69':
|
|
293
|
-
case '71':
|
|
294
|
-
case '73':
|
|
295
|
-
case '74':
|
|
296
|
-
case '77':
|
|
297
|
-
case '78':
|
|
298
|
-
case '81':
|
|
299
|
-
case '85':
|
|
300
|
-
case '87':
|
|
301
|
-
case '89':
|
|
302
|
-
case '94':
|
|
303
|
-
case '97':
|
|
304
|
-
case 'A1':
|
|
305
|
-
case 'A2':
|
|
306
|
-
case 'A3':
|
|
307
|
-
case 'A4':
|
|
308
|
-
case 'B5':
|
|
309
|
-
case 'B6':
|
|
310
|
-
case 'C2':
|
|
311
|
-
case 'C3':
|
|
312
|
-
case 'C5':
|
|
313
|
-
return 'credit';
|
|
314
|
-
case '01':
|
|
315
|
-
case '03':
|
|
316
|
-
case '06':
|
|
317
|
-
case '07':
|
|
318
|
-
case '08':
|
|
319
|
-
case '10':
|
|
320
|
-
case '14':
|
|
321
|
-
case '19':
|
|
322
|
-
case '20':
|
|
323
|
-
case '21':
|
|
324
|
-
case '22':
|
|
325
|
-
case '23':
|
|
326
|
-
case '26':
|
|
327
|
-
case '27':
|
|
328
|
-
case '28':
|
|
329
|
-
case '29':
|
|
330
|
-
case '33':
|
|
331
|
-
case '36':
|
|
332
|
-
case '38':
|
|
333
|
-
case '44':
|
|
334
|
-
case '46':
|
|
335
|
-
case '48':
|
|
336
|
-
case '50':
|
|
337
|
-
case '53':
|
|
338
|
-
case '56':
|
|
339
|
-
case '58':
|
|
340
|
-
case '62':
|
|
341
|
-
case '64':
|
|
342
|
-
case '65':
|
|
343
|
-
case '66':
|
|
344
|
-
case '67':
|
|
345
|
-
case '68':
|
|
346
|
-
case '70':
|
|
347
|
-
case '72':
|
|
348
|
-
case '75':
|
|
349
|
-
case '76':
|
|
350
|
-
case '79':
|
|
351
|
-
case '80':
|
|
352
|
-
case '84':
|
|
353
|
-
case '88':
|
|
354
|
-
case '90':
|
|
355
|
-
case '95':
|
|
356
|
-
case '96':
|
|
357
|
-
case '98':
|
|
358
|
-
case 'A5':
|
|
359
|
-
case 'A6':
|
|
360
|
-
case 'B1':
|
|
361
|
-
case 'B2':
|
|
362
|
-
case 'B3':
|
|
363
|
-
case 'B4':
|
|
364
|
-
case 'C1':
|
|
365
|
-
case 'C4':
|
|
366
|
-
return 'debit';
|
|
367
|
-
// here we have a problème to infer the symbol for amount, because all this code have credit and debit. for now it will match credit when infering the amount in
|
|
368
|
-
// transformData function
|
|
369
|
-
case '11':
|
|
370
|
-
case '34':
|
|
371
|
-
case '41':
|
|
372
|
-
case '42':
|
|
373
|
-
case '43':
|
|
374
|
-
case '52':
|
|
375
|
-
case '55':
|
|
376
|
-
case '61':
|
|
377
|
-
case '82':
|
|
378
|
-
case '83':
|
|
379
|
-
case '91':
|
|
380
|
-
case '92':
|
|
381
|
-
case '93':
|
|
382
|
-
case '99':
|
|
383
|
-
return 'neutral';
|
|
384
|
-
default:
|
|
385
|
-
return 'unknown';
|
|
386
|
-
}
|
|
387
261
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean, IsDate, IsDefined, IsEmail, IsNumber, IsOptional, IsPhoneNumber, IsString, IsUrl,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
|
|
5
|
+
export class CreateCoworker {
|
|
6
|
+
@IsDefined()
|
|
7
|
+
@IsString()
|
|
8
|
+
firstname: string;
|
|
9
|
+
|
|
10
|
+
@IsDefined()
|
|
11
|
+
@IsString()
|
|
12
|
+
lastname: string;
|
|
13
|
+
|
|
14
|
+
@IsDefined()
|
|
15
|
+
@IsEmail()
|
|
16
|
+
email: string;
|
|
17
|
+
|
|
18
|
+
@IsDefined()
|
|
19
|
+
@IsString()
|
|
20
|
+
username: string;
|
|
21
|
+
|
|
22
|
+
@IsDefined()
|
|
23
|
+
@IsString()
|
|
24
|
+
password: string;
|
|
25
|
+
|
|
26
|
+
@IsOptional()
|
|
27
|
+
@IsString()
|
|
28
|
+
hash: string;
|
|
29
|
+
|
|
30
|
+
@IsDefined()
|
|
31
|
+
@IsPhoneNumber()
|
|
32
|
+
phone: string;
|
|
33
|
+
|
|
34
|
+
@IsDefined()
|
|
35
|
+
@IsNumber()
|
|
36
|
+
idCivility: number;
|
|
37
|
+
|
|
38
|
+
@IsDefined()
|
|
39
|
+
@IsBoolean()
|
|
40
|
+
active: number;
|
|
41
|
+
|
|
42
|
+
@IsOptional()
|
|
43
|
+
@IsUrl()
|
|
44
|
+
calendlyUrl: string;
|
|
45
|
+
|
|
46
|
+
@IsOptional()
|
|
47
|
+
@IsString()
|
|
48
|
+
positionLabel: string;
|
|
49
|
+
|
|
50
|
+
@IsOptional()
|
|
51
|
+
@IsBoolean()
|
|
52
|
+
isNewProspect: number;
|
|
53
|
+
|
|
54
|
+
@IsOptional()
|
|
55
|
+
@IsBoolean()
|
|
56
|
+
apprentice: boolean;
|
|
57
|
+
|
|
58
|
+
@IsOptional()
|
|
59
|
+
@IsDate()
|
|
60
|
+
birthdate: Date;
|
|
61
|
+
|
|
62
|
+
@IsOptional()
|
|
63
|
+
@IsDate()
|
|
64
|
+
arrivalDate: Date;
|
|
65
|
+
|
|
66
|
+
@IsOptional()
|
|
67
|
+
@IsDate()
|
|
68
|
+
confirmedAt: Date;
|
|
69
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -420,6 +420,7 @@ export * from './Interface/api/user/QueryConfirm';
|
|
|
420
420
|
export * from './Interface/api/user/QuerySocieties';
|
|
421
421
|
export * from './Interface/api/user/QueryResendConfirmationLink';
|
|
422
422
|
export * from './Interface/api/user/CreateUser';
|
|
423
|
+
export * from './Interface/api/user/CreateCoworker';
|
|
423
424
|
export * from './Interface/api/user/QueryUserSmsConfirmation';
|
|
424
425
|
export * from './Interface/api/user/Permissions';
|
|
425
426
|
export * from './Interface/api/account/ReadAccounts';
|