@silexpert/core 2.0.18 → 2.0.20-0

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.
@@ -114,7 +114,7 @@ export enum TypeFile {
114
114
  AUTHORIZATION = 52,
115
115
  COMMERCIAL_LEASE_AND_RELEASE = 53,
116
116
  CLOSE_BALANCE_SHEET = 54,
117
- PLAQUETTE = 55,
117
+ PLAQUETTE = 55, // Plaquette bilan comptable
118
118
  BALANCE_SHEET_NOTE = 56,
119
119
  SUMMARY_NOTE = 57,
120
120
  STATUTES = 58,
@@ -173,6 +173,8 @@ export enum TypeFile {
173
173
  PURCHASE_DEED = 111, // Acte d'achat
174
174
  APPROVAL = 112, // Appro des comptes
175
175
  BANK_STATEMENT = 113, // Relevé bancaire
176
+ ACCOUNTING_CONSISTENCY_CHECK = 114, // Contrôle de cohérence
177
+ ACCOUNTING_PREVIEW_PLAQUETTE = 115, // Preview plaquette comptable
176
178
  }
177
179
 
178
180
  /** @deprecated this is a legacy enum try to use TypeFile enum if you can or use both enum's */
@@ -420,203 +422,203 @@ export const GedFolderList: Array<{
420
422
  idGedCategory: GedCategory;
421
423
  name: string;
422
424
  }> = [
423
- {
424
- id: GedFolder.KBIS,
425
- name: 'K-bis & Carte d\'identité & Mémento fiscal',
426
- isVisibleForClient: true,
427
- idGedCategory: GedCategory.COMPANY,
428
- },
429
- { id: GedFolder.LDM, name: 'Lettres de missions', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
430
- { id: GedFolder.RIB_MANDATES, name: 'Mandats & RIB', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
431
- {
432
- id: GedFolder.BALANCE_GL,
433
- name: 'Balance-GL Journaux',
434
- isVisibleForClient: true,
435
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
436
- },
437
- {
438
- id: GedFolder.CLOSE_BALANCE_SHEET,
439
- name: 'Clôtures & Bilans',
440
- isVisibleForClient: true,
441
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
442
- },
443
- {
444
- id: GedFolder.VAT,
445
- name: 'Déclarations de TVA',
446
- isVisibleForClient: true,
447
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
448
- },
449
- {
450
- id: GedFolder.IS_DECLARATIONS,
451
- name: 'Déclarations d\'IS',
452
- isVisibleForClient: true,
453
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
454
- },
455
- { id: GedFolder.STATUTES, name: 'Statuts & avenants', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
456
- {
457
- id: GedFolder.TRAINING_AND_PROFESSIONAL_TAX,
458
- name: 'Formation et taxe professionnelle',
459
- isVisibleForClient: true,
460
- idGedCategory: GedCategory.SOCIAL,
461
- },
462
- { id: GedFolder.DADS_U_DUE, name: 'DADS-U & DUE', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
463
- { id: GedFolder.URSSAF, name: 'URSSAF & Pôle-Emploi', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
464
- {
465
- id: GedFolder.PAY_SLIPS,
466
- name: 'Bulletins de salaires',
467
- isVisibleForClient: true,
468
- idGedCategory: GedCategory.SOCIAL,
469
- },
470
- { id: GedFolder.TNS, name: 'TNS', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
471
- { id: GedFolder.AGM, name: 'PV d\'AG', isVisibleForClient: true, idGedCategory: GedCategory.JURIDIC },
472
- {
473
- id: GedFolder.CONTRACTS_LEASES,
474
- name: 'Contrats & Baux',
475
- isVisibleForClient: true,
476
- idGedCategory: GedCategory.GENERALITY,
477
- },
478
- { id: GedFolder.INSURANCES, name: 'Assurances', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
479
- {
480
- id: GedFolder.CABINET_INVOICES,
481
- name: 'Factures Cabinet',
482
- isVisibleForClient: true,
483
- idGedCategory: GedCategory.BILLING,
484
- },
485
- { id: GedFolder.OTHER, name: 'Autres', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
486
- { id: GedFolder.VEHICLES, name: 'Véhicules', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
487
- {
488
- id: GedFolder.BORROWING_TABLES,
489
- name: 'Tableaux d’emprunts',
490
- isVisibleForClient: true,
491
- idGedCategory: GedCategory.GENERALITY,
492
- },
493
- { id: GedFolder.RSI_URSSAF, name: 'RSI & URSSAF', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
494
- {
495
- id: GedFolder.GA_BALANCE_PV,
496
- name: 'Bilan & PV d’AG antérieur',
497
- isVisibleForClient: true,
498
- idGedCategory: GedCategory.GENERALITY,
499
- },
500
- {
501
- id: GedFolder.SLIPS_CFE,
502
- name: 'Bordereaux pour la CFE',
503
- isVisibleForClient: true,
504
- idGedCategory: GedCategory.GENERALITY,
505
- },
506
- {
507
- id: GedFolder.APPENDIX_PROVIDERS_CUSTOMERS,
508
- name: 'Annexes fournisseurs/clients',
509
- isVisibleForClient: true,
510
- idGedCategory: GedCategory.GENERALITY,
511
- },
512
- {
513
- id: GedFolder.MISCELLANEOUS,
514
- name: 'Divers',
515
- isVisibleForClient: true,
516
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
517
- },
518
- {
519
- id: GedFolder.LEGAL_ANNOUNCEMENTS,
520
- name: 'Annonces Légales',
521
- isVisibleForClient: true,
522
- idGedCategory: GedCategory.JURIDIC,
523
- },
524
- { id: GedFolder.CERTIFICATES, name: 'Attestations', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
525
- { id: GedFolder.PARTNERS, name: 'Associés', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
526
- {
527
- id: GedFolder.INCOMING_MAILS,
528
- name: 'Courriers entrants',
529
- isVisibleForClient: true,
530
- idGedCategory: GedCategory.MAIL,
531
- },
532
- {
533
- id: GedFolder.OUTGOING_MAIL,
534
- name: 'Courriers sortants',
535
- isVisibleForClient: true,
536
- idGedCategory: GedCategory.MAIL,
537
- },
538
- {
539
- id: GedFolder.BANK_STATEMENT,
540
- name: 'Relevés Bancaires',
541
- isVisibleForClient: true,
542
- idGedCategory: GedCategory.BANK_STATEMENT,
543
- },
544
- {
545
- id: GedFolder.FORMALISM,
546
- name: 'Formalisme',
547
- isVisibleForClient: false,
548
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
549
- },
550
- {
551
- id: GedFolder.PENDING_POINTS,
552
- name: 'Points en suspens',
553
- isVisibleForClient: false,
554
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
555
- },
556
- {
557
- id: GedFolder.BALANCE_GL_JOURNALS_YEAR,
558
- name: 'Balance-GL Journaux Année N-1',
559
- isVisibleForClient: true,
560
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
561
- },
562
- { id: GedFolder.JURIDICAL, name: 'Juridique', isVisibleForClient: true, idGedCategory: GedCategory.JURIDIC },
563
- { id: GedFolder.SUBVENTION, name: 'Subvention', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
564
- {
565
- id: GedFolder.EMPLOYEMENT_CONTRACT,
566
- name: 'Contrats de travail & avenants',
567
- isVisibleForClient: true,
568
- idGedCategory: GedCategory.SOCIAL,
569
- },
570
- {
571
- id: GedFolder.EXIT_DOCUMENT,
572
- name: 'Documents de sorties',
573
- isVisibleForClient: true,
574
- idGedCategory: GedCategory.SOCIAL,
575
- },
576
- {
577
- id: GedFolder.JEDECLARE_MANDATES,
578
- name: 'Mandat JeDeclare',
579
- isVisibleForClient: true,
580
- idGedCategory: GedCategory.COMPANY,
581
- },
582
- {
583
- id: GedFolder.COMPANY_PASSWORD_SERVICE,
584
- name: 'Mot de passe service entreprise',
585
- isVisibleForClient: false,
586
- idGedCategory: GedCategory.COMPANY,
587
- },
588
- { id: GedFolder.FEC, name: 'Fec', isVisibleForClient: false, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
589
- {
590
- id: GedFolder.PREVISIONAL,
591
- name: 'Prévisionnels',
592
- isVisibleForClient: true,
593
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
594
- },
595
- {
596
- id: GedFolder.PREVISIONAL_ANNEX,
597
- name: 'Annexes Prévisionnels',
598
- isVisibleForClient: false,
599
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
600
- },
601
- {
602
- id: GedFolder.CASH_BOOK,
603
- name: 'Caisse',
604
- isVisibleForClient: true,
605
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
606
- },
607
- {
608
- id: GedFolder.STOCK,
609
- name: 'Stock',
610
- isVisibleForClient: true,
611
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
612
- },
613
- {
614
- id: GedFolder.SUMMARY,
615
- name: 'Récapitulatif',
616
- isVisibleForClient: true,
617
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
618
- },
619
- ];
425
+ {
426
+ id: GedFolder.KBIS,
427
+ name: 'K-bis & Carte d\'identité & Mémento fiscal',
428
+ isVisibleForClient: true,
429
+ idGedCategory: GedCategory.COMPANY,
430
+ },
431
+ { id: GedFolder.LDM, name: 'Lettres de missions', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
432
+ { id: GedFolder.RIB_MANDATES, name: 'Mandats & RIB', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
433
+ {
434
+ id: GedFolder.BALANCE_GL,
435
+ name: 'Balance-GL Journaux',
436
+ isVisibleForClient: true,
437
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
438
+ },
439
+ {
440
+ id: GedFolder.CLOSE_BALANCE_SHEET,
441
+ name: 'Clôtures & Bilans',
442
+ isVisibleForClient: true,
443
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
444
+ },
445
+ {
446
+ id: GedFolder.VAT,
447
+ name: 'Déclarations de TVA',
448
+ isVisibleForClient: true,
449
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
450
+ },
451
+ {
452
+ id: GedFolder.IS_DECLARATIONS,
453
+ name: 'Déclarations d\'IS',
454
+ isVisibleForClient: true,
455
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
456
+ },
457
+ { id: GedFolder.STATUTES, name: 'Statuts & avenants', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
458
+ {
459
+ id: GedFolder.TRAINING_AND_PROFESSIONAL_TAX,
460
+ name: 'Formation et taxe professionnelle',
461
+ isVisibleForClient: true,
462
+ idGedCategory: GedCategory.SOCIAL,
463
+ },
464
+ { id: GedFolder.DADS_U_DUE, name: 'DADS-U & DUE', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
465
+ { id: GedFolder.URSSAF, name: 'URSSAF & Pôle-Emploi', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
466
+ {
467
+ id: GedFolder.PAY_SLIPS,
468
+ name: 'Bulletins de salaires',
469
+ isVisibleForClient: true,
470
+ idGedCategory: GedCategory.SOCIAL,
471
+ },
472
+ { id: GedFolder.TNS, name: 'TNS', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
473
+ { id: GedFolder.AGM, name: 'PV d\'AG', isVisibleForClient: true, idGedCategory: GedCategory.JURIDIC },
474
+ {
475
+ id: GedFolder.CONTRACTS_LEASES,
476
+ name: 'Contrats & Baux',
477
+ isVisibleForClient: true,
478
+ idGedCategory: GedCategory.GENERALITY,
479
+ },
480
+ { id: GedFolder.INSURANCES, name: 'Assurances', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
481
+ {
482
+ id: GedFolder.CABINET_INVOICES,
483
+ name: 'Factures Cabinet',
484
+ isVisibleForClient: true,
485
+ idGedCategory: GedCategory.BILLING,
486
+ },
487
+ { id: GedFolder.OTHER, name: 'Autres', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
488
+ { id: GedFolder.VEHICLES, name: 'Véhicules', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
489
+ {
490
+ id: GedFolder.BORROWING_TABLES,
491
+ name: 'Tableaux d’emprunts',
492
+ isVisibleForClient: true,
493
+ idGedCategory: GedCategory.GENERALITY,
494
+ },
495
+ { id: GedFolder.RSI_URSSAF, name: 'RSI & URSSAF', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
496
+ {
497
+ id: GedFolder.GA_BALANCE_PV,
498
+ name: 'Bilan & PV d’AG antérieur',
499
+ isVisibleForClient: true,
500
+ idGedCategory: GedCategory.GENERALITY,
501
+ },
502
+ {
503
+ id: GedFolder.SLIPS_CFE,
504
+ name: 'Bordereaux pour la CFE',
505
+ isVisibleForClient: true,
506
+ idGedCategory: GedCategory.GENERALITY,
507
+ },
508
+ {
509
+ id: GedFolder.APPENDIX_PROVIDERS_CUSTOMERS,
510
+ name: 'Annexes fournisseurs/clients',
511
+ isVisibleForClient: true,
512
+ idGedCategory: GedCategory.GENERALITY,
513
+ },
514
+ {
515
+ id: GedFolder.MISCELLANEOUS,
516
+ name: 'Divers',
517
+ isVisibleForClient: true,
518
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
519
+ },
520
+ {
521
+ id: GedFolder.LEGAL_ANNOUNCEMENTS,
522
+ name: 'Annonces Légales',
523
+ isVisibleForClient: true,
524
+ idGedCategory: GedCategory.JURIDIC,
525
+ },
526
+ { id: GedFolder.CERTIFICATES, name: 'Attestations', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
527
+ { id: GedFolder.PARTNERS, name: 'Associés', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
528
+ {
529
+ id: GedFolder.INCOMING_MAILS,
530
+ name: 'Courriers entrants',
531
+ isVisibleForClient: true,
532
+ idGedCategory: GedCategory.MAIL,
533
+ },
534
+ {
535
+ id: GedFolder.OUTGOING_MAIL,
536
+ name: 'Courriers sortants',
537
+ isVisibleForClient: true,
538
+ idGedCategory: GedCategory.MAIL,
539
+ },
540
+ {
541
+ id: GedFolder.BANK_STATEMENT,
542
+ name: 'Relevés Bancaires',
543
+ isVisibleForClient: true,
544
+ idGedCategory: GedCategory.BANK_STATEMENT,
545
+ },
546
+ {
547
+ id: GedFolder.FORMALISM,
548
+ name: 'Formalisme',
549
+ isVisibleForClient: false,
550
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
551
+ },
552
+ {
553
+ id: GedFolder.PENDING_POINTS,
554
+ name: 'Points en suspens',
555
+ isVisibleForClient: false,
556
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
557
+ },
558
+ {
559
+ id: GedFolder.BALANCE_GL_JOURNALS_YEAR,
560
+ name: 'Balance-GL Journaux Année N-1',
561
+ isVisibleForClient: true,
562
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
563
+ },
564
+ { id: GedFolder.JURIDICAL, name: 'Juridique', isVisibleForClient: true, idGedCategory: GedCategory.JURIDIC },
565
+ { id: GedFolder.SUBVENTION, name: 'Subvention', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
566
+ {
567
+ id: GedFolder.EMPLOYEMENT_CONTRACT,
568
+ name: 'Contrats de travail & avenants',
569
+ isVisibleForClient: true,
570
+ idGedCategory: GedCategory.SOCIAL,
571
+ },
572
+ {
573
+ id: GedFolder.EXIT_DOCUMENT,
574
+ name: 'Documents de sorties',
575
+ isVisibleForClient: true,
576
+ idGedCategory: GedCategory.SOCIAL,
577
+ },
578
+ {
579
+ id: GedFolder.JEDECLARE_MANDATES,
580
+ name: 'Mandat JeDeclare',
581
+ isVisibleForClient: true,
582
+ idGedCategory: GedCategory.COMPANY,
583
+ },
584
+ {
585
+ id: GedFolder.COMPANY_PASSWORD_SERVICE,
586
+ name: 'Mot de passe service entreprise',
587
+ isVisibleForClient: false,
588
+ idGedCategory: GedCategory.COMPANY,
589
+ },
590
+ { id: GedFolder.FEC, name: 'Fec', isVisibleForClient: false, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
591
+ {
592
+ id: GedFolder.PREVISIONAL,
593
+ name: 'Prévisionnels',
594
+ isVisibleForClient: true,
595
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
596
+ },
597
+ {
598
+ id: GedFolder.PREVISIONAL_ANNEX,
599
+ name: 'Annexes Prévisionnels',
600
+ isVisibleForClient: false,
601
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
602
+ },
603
+ {
604
+ id: GedFolder.CASH_BOOK,
605
+ name: 'Caisse',
606
+ isVisibleForClient: true,
607
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
608
+ },
609
+ {
610
+ id: GedFolder.STOCK,
611
+ name: 'Stock',
612
+ isVisibleForClient: true,
613
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
614
+ },
615
+ {
616
+ id: GedFolder.SUMMARY,
617
+ name: 'Récapitulatif',
618
+ isVisibleForClient: true,
619
+ idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
620
+ },
621
+ ];
620
622
 
621
623
  export const gedCategoryWithName: Array<{
622
624
  idGedCategory: number;
@@ -624,20 +626,20 @@ export const gedCategoryWithName: Array<{
624
626
  usableByClient: boolean;
625
627
  brandCondition?: string[];
626
628
  }> = [
627
- { idGedCategory: GedCategory.COMPANY, name: 'Entreprise', usableByClient: true },
628
- { idGedCategory: GedCategory.ACCOUNTING_AND_TAX, name: 'Comptabilité', usableByClient: false },
629
- { idGedCategory: GedCategory.SOCIAL, name: 'Social', usableByClient: false },
630
- { idGedCategory: GedCategory.JURIDIC, name: 'Juridique', usableByClient: false },
631
- { idGedCategory: GedCategory.GENERALITY, name: 'Généralités', usableByClient: true },
632
- { idGedCategory: GedCategory.BILLING, name: 'Facturation', usableByClient: false },
633
- {
634
- idGedCategory: GedCategory.MAIL,
635
- name: 'Courriers',
636
- usableByClient: true,
637
- brandCondition: ['Clementine', 'Comptastart'],
638
- },
639
- { idGedCategory: GedCategory.BANK_STATEMENT, name: 'Relevés bancaires', usableByClient: true },
640
- ];
629
+ { idGedCategory: GedCategory.COMPANY, name: 'Entreprise', usableByClient: true },
630
+ { idGedCategory: GedCategory.ACCOUNTING_AND_TAX, name: 'Comptabilité', usableByClient: false },
631
+ { idGedCategory: GedCategory.SOCIAL, name: 'Social', usableByClient: false },
632
+ { idGedCategory: GedCategory.JURIDIC, name: 'Juridique', usableByClient: false },
633
+ { idGedCategory: GedCategory.GENERALITY, name: 'Généralités', usableByClient: true },
634
+ { idGedCategory: GedCategory.BILLING, name: 'Facturation', usableByClient: false },
635
+ {
636
+ idGedCategory: GedCategory.MAIL,
637
+ name: 'Courriers',
638
+ usableByClient: true,
639
+ brandCondition: ['Clementine', 'Comptastart'],
640
+ },
641
+ { idGedCategory: GedCategory.BANK_STATEMENT, name: 'Relevés bancaires', usableByClient: true },
642
+ ];
641
643
 
642
644
  export type TypeFileDetailType = {
643
645
  typeFile: TypeFile;
@@ -990,4 +992,14 @@ Le montant de l’indemnité calculée`,
990
992
  name: 'Relevé bancaire',
991
993
  idGedFolder: GedFolder.BANK_STATEMENT,
992
994
  },
995
+ [TypeFile.ACCOUNTING_CONSISTENCY_CHECK]: {
996
+ typeFile: TypeFile.ACCOUNTING_CONSISTENCY_CHECK,
997
+ name: 'Contrôle de cohérence',
998
+ idGedFolder: GedFolder.FORMALISM,
999
+ },
1000
+ [TypeFile.ACCOUNTING_PREVIEW_PLAQUETTE]: {
1001
+ typeFile: TypeFile.ACCOUNTING_PREVIEW_PLAQUETTE,
1002
+ name: 'Projet',
1003
+ idGedFolder: GedFolder.PREVISIONAL_ANNEX,
1004
+ }
993
1005
  };
@@ -129,3 +129,11 @@ export class CreateProjectExercice {
129
129
  @IsOptional()
130
130
  files?: TFile[];
131
131
  }
132
+
133
+ export class GenerateProjectExercice {
134
+ @ApiPropertyOptional()
135
+ @IsOptional()
136
+ @IsBoolean()
137
+ @ToBoolean()
138
+ isPreview?: boolean;
139
+ }
@@ -35,9 +35,8 @@ export class QueryLibraryFile {
35
35
  idFile?: number;
36
36
 
37
37
  @ApiPropertyOptional()
38
- @IsNumber()
39
38
  @IsOptional()
40
- typeFile?: TypeFile;
39
+ typeFile?: TypeFile | TypeFile[];
41
40
 
42
41
  @ApiPropertyOptional()
43
42
  @IsBoolean()