@silexpert/core 1.3.204 → 1.3.205-2

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.
Files changed (103) hide show
  1. package/dist/cjs/api/resources/Transaction.d.ts +1 -0
  2. package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Transaction.js +3 -0
  4. package/dist/cjs/api/resources/Transaction.js.map +1 -1
  5. package/dist/cjs/api/resources/UsersHistory.d.ts +11 -0
  6. package/dist/cjs/api/resources/UsersHistory.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/UsersHistory.js +26 -0
  8. package/dist/cjs/api/resources/UsersHistory.js.map +1 -0
  9. package/dist/cjs/api/resources.d.ts +2 -0
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +2 -0
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Enum/PrestationType.d.ts +11 -0
  14. package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/PrestationType.js +84 -68
  16. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  17. package/dist/cjs/types/Enum/SocietyApproval.js +6 -6
  18. package/dist/cjs/types/Enum/SocietyApproval.js.map +1 -1
  19. package/dist/cjs/types/Enum/UsersHistory.d.ts +16 -0
  20. package/dist/cjs/types/Enum/UsersHistory.d.ts.map +1 -0
  21. package/dist/cjs/types/Enum/UsersHistory.js +38 -0
  22. package/dist/cjs/types/Enum/UsersHistory.js.map +1 -0
  23. package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +13 -0
  24. package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +14 -1
  26. package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts +8 -0
  28. package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts.map +1 -0
  29. package/dist/cjs/types/Interface/api/usersHistory/Create.js +35 -0
  30. package/dist/cjs/types/Interface/api/usersHistory/Create.js.map +1 -0
  31. package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts +7 -0
  32. package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts.map +1 -0
  33. package/dist/cjs/types/Interface/api/usersHistory/Update.js +31 -0
  34. package/dist/cjs/types/Interface/api/usersHistory/Update.js.map +1 -0
  35. package/dist/cjs/types/Interface/models/IUsersHistory.d.ts +14 -0
  36. package/dist/cjs/types/Interface/models/IUsersHistory.d.ts.map +1 -0
  37. package/dist/cjs/types/Interface/models/IUsersHistory.js +3 -0
  38. package/dist/cjs/types/Interface/models/IUsersHistory.js.map +1 -0
  39. package/dist/cjs/types/index.d.ts +4 -0
  40. package/dist/cjs/types/index.d.ts.map +1 -1
  41. package/dist/cjs/types/index.js +4 -0
  42. package/dist/cjs/types/index.js.map +1 -1
  43. package/dist/cjs/utils/societyApproval.d.ts.map +1 -1
  44. package/dist/cjs/utils/societyApproval.js +22 -19
  45. package/dist/cjs/utils/societyApproval.js.map +1 -1
  46. package/dist/mjs/api/resources/Transaction.d.ts +1 -0
  47. package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
  48. package/dist/mjs/api/resources/Transaction.js +3 -0
  49. package/dist/mjs/api/resources/Transaction.js.map +1 -1
  50. package/dist/mjs/api/resources/UsersHistory.d.ts +11 -0
  51. package/dist/mjs/api/resources/UsersHistory.d.ts.map +1 -0
  52. package/dist/mjs/api/resources/UsersHistory.js +28 -0
  53. package/dist/mjs/api/resources/UsersHistory.js.map +1 -0
  54. package/dist/mjs/api/resources.d.ts +2 -0
  55. package/dist/mjs/api/resources.d.ts.map +1 -1
  56. package/dist/mjs/api/resources.js +2 -0
  57. package/dist/mjs/api/resources.js.map +1 -1
  58. package/dist/mjs/types/Enum/PrestationType.d.ts +11 -0
  59. package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
  60. package/dist/mjs/types/Enum/PrestationType.js +83 -67
  61. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  62. package/dist/mjs/types/Enum/SocietyApproval.js +6 -6
  63. package/dist/mjs/types/Enum/SocietyApproval.js.map +1 -1
  64. package/dist/mjs/types/Enum/UsersHistory.d.ts +16 -0
  65. package/dist/mjs/types/Enum/UsersHistory.d.ts.map +1 -0
  66. package/dist/mjs/types/Enum/UsersHistory.js +35 -0
  67. package/dist/mjs/types/Enum/UsersHistory.js.map +1 -0
  68. package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +13 -0
  69. package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  70. package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +16 -2
  71. package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  72. package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts +8 -0
  73. package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts.map +1 -0
  74. package/dist/mjs/types/Interface/api/usersHistory/Create.js +34 -0
  75. package/dist/mjs/types/Interface/api/usersHistory/Create.js.map +1 -0
  76. package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts +7 -0
  77. package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts.map +1 -0
  78. package/dist/mjs/types/Interface/api/usersHistory/Update.js +29 -0
  79. package/dist/mjs/types/Interface/api/usersHistory/Update.js.map +1 -0
  80. package/dist/mjs/types/Interface/models/IUsersHistory.d.ts +14 -0
  81. package/dist/mjs/types/Interface/models/IUsersHistory.d.ts.map +1 -0
  82. package/dist/mjs/types/Interface/models/IUsersHistory.js +2 -0
  83. package/dist/mjs/types/Interface/models/IUsersHistory.js.map +1 -0
  84. package/dist/mjs/types/index.d.ts +4 -0
  85. package/dist/mjs/types/index.d.ts.map +1 -1
  86. package/dist/mjs/types/index.js +4 -0
  87. package/dist/mjs/types/index.js.map +1 -1
  88. package/dist/mjs/utils/societyApproval.d.ts.map +1 -1
  89. package/dist/mjs/utils/societyApproval.js +6 -3
  90. package/dist/mjs/utils/societyApproval.js.map +1 -1
  91. package/package.json +1 -1
  92. package/ts/api/resources/Transaction.ts +3 -0
  93. package/ts/api/resources/UsersHistory.ts +35 -0
  94. package/ts/api/resources.ts +2 -0
  95. package/ts/types/Enum/PrestationType.ts +84 -67
  96. package/ts/types/Enum/SocietyApproval.ts +6 -6
  97. package/ts/types/Enum/UsersHistory.ts +38 -0
  98. package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +18 -2
  99. package/ts/types/Interface/api/usersHistory/Create.ts +21 -0
  100. package/ts/types/Interface/api/usersHistory/Update.ts +17 -0
  101. package/ts/types/Interface/models/IUsersHistory.ts +17 -0
  102. package/ts/types/index.ts +5 -0
  103. package/ts/utils/societyApproval.ts +10 -3
@@ -307,11 +307,28 @@ export const ClementineSubscriptionAccountancySoftwarePrestations: PrestationTyp
307
307
  PrestationType.BALANCESHEET,
308
308
  ];
309
309
 
310
+ export const ClementineJuridicalPvAgPrestations: PrestationType[] = [
311
+ PrestationType.PV_AG,
312
+ PrestationType.JURIDIQUE,
313
+ PrestationType.GESTION_JURIDIQUE,
314
+ ];
315
+
310
316
  export const ClementineSubscriptionAccountancyPrestations: PrestationType[] = [
311
317
  ...ClementineSubscriptionAccountancyExpertPrestations,
312
318
  ...ClementineSubscriptionAccountancySoftwarePrestations,
313
319
  ];
314
320
 
321
+ /**
322
+ * PCA Type Enum
323
+ * Represents the two categories of Professional Client Accounts (PCA)
324
+ * - ACCOUNTING (1): For accounting-related PCA
325
+ * - LEGAL (2): For legal-related PCA
326
+ */
327
+ export enum PcaType {
328
+ ACCOUNTING = 1,
329
+ LEGAL = 2,
330
+ }
331
+
315
332
  export interface PrestationDetailEnum {
316
333
  [key: string]: IPrestationList;
317
334
  }
@@ -339,7 +356,7 @@ export const PrestationDetail: PrestationDetailEnum = {
339
356
  signaturePosition: null,
340
357
  signaturePage: null,
341
358
  point: 0,
342
- listPcaTypes: [1],
359
+ listPcaTypes: [PcaType.ACCOUNTING],
343
360
  },
344
361
  FRUCTUCOMPTA: {
345
362
  id: 2,
@@ -359,7 +376,7 @@ export const PrestationDetail: PrestationDetailEnum = {
359
376
  signaturePosition: null,
360
377
  signaturePage: null,
361
378
  point: 0,
362
- listPcaTypes: [1],
379
+ listPcaTypes: [PcaType.ACCOUNTING],
363
380
  },
364
381
  FRUCTUCOMPTAEXPRESS: {
365
382
  id: 3,
@@ -379,7 +396,7 @@ export const PrestationDetail: PrestationDetailEnum = {
379
396
  signaturePosition: null,
380
397
  signaturePage: null,
381
398
  point: 0,
382
- listPcaTypes: [1],
399
+ listPcaTypes: [PcaType.ACCOUNTING],
383
400
  },
384
401
  FRUCTUCOMPTA_ASSISTANCE: {
385
402
  id: 4,
@@ -399,7 +416,7 @@ export const PrestationDetail: PrestationDetailEnum = {
399
416
  signaturePosition: null,
400
417
  signaturePage: null,
401
418
  point: 0,
402
- listPcaTypes: [1],
419
+ listPcaTypes: [PcaType.ACCOUNTING],
403
420
  },
404
421
  FRUCTUPAIE: {
405
422
  id: 5,
@@ -476,7 +493,7 @@ export const PrestationDetail: PrestationDetailEnum = {
476
493
  signaturePosition: null,
477
494
  signaturePage: null,
478
495
  point: 100,
479
- listPcaTypes: [2],
496
+ listPcaTypes: [PcaType.LEGAL],
480
497
  },
481
498
  BILAN_INTERMEDIAIRE: {
482
499
  id: 9,
@@ -515,7 +532,7 @@ export const PrestationDetail: PrestationDetailEnum = {
515
532
  signaturePosition: null,
516
533
  signaturePage: null,
517
534
  point: 0,
518
- listPcaTypes: [1],
535
+ listPcaTypes: [PcaType.ACCOUNTING],
519
536
  },
520
537
  MYFRUCTUCOMPTA_EXPRESS: {
521
538
  id: 11,
@@ -535,7 +552,7 @@ export const PrestationDetail: PrestationDetailEnum = {
535
552
  signaturePosition: null,
536
553
  signaturePage: null,
537
554
  point: 0,
538
- listPcaTypes: [1],
555
+ listPcaTypes: [PcaType.ACCOUNTING],
539
556
  },
540
557
  SOCIAL: {
541
558
  id: 12,
@@ -574,7 +591,7 @@ export const PrestationDetail: PrestationDetailEnum = {
574
591
  signaturePosition: null,
575
592
  signaturePage: null,
576
593
  point: 50,
577
- listPcaTypes: [1],
594
+ listPcaTypes: [PcaType.ACCOUNTING],
578
595
  },
579
596
  CREATION_SOCIETE: {
580
597
  id: 15,
@@ -613,7 +630,7 @@ export const PrestationDetail: PrestationDetailEnum = {
613
630
  signaturePosition: null,
614
631
  signaturePage: null,
615
632
  point: 50,
616
- listPcaTypes: [2],
633
+ listPcaTypes: [PcaType.LEGAL],
617
634
  },
618
635
  MYFRUCTUCOMPTA_STATUT_EXPRESS: {
619
636
  id: 17,
@@ -652,7 +669,7 @@ export const PrestationDetail: PrestationDetailEnum = {
652
669
  signaturePosition: null,
653
670
  signaturePage: null,
654
671
  point: 0,
655
- listPcaTypes: [1],
672
+ listPcaTypes: [PcaType.ACCOUNTING],
656
673
  },
657
674
  FRUCTUCOMPTA_SCI: {
658
675
  id: 21,
@@ -672,7 +689,7 @@ export const PrestationDetail: PrestationDetailEnum = {
672
689
  signaturePosition: null,
673
690
  signaturePage: null,
674
691
  point: 0,
675
- listPcaTypes: [1],
692
+ listPcaTypes: [PcaType.ACCOUNTING],
676
693
  },
677
694
  BILAN_LIQUIDATION: {
678
695
  id: 22,
@@ -749,7 +766,7 @@ export const PrestationDetail: PrestationDetailEnum = {
749
766
  signaturePosition: null,
750
767
  signaturePage: null,
751
768
  point: 0,
752
- listPcaTypes: [1],
769
+ listPcaTypes: [PcaType.ACCOUNTING],
753
770
  },
754
771
  FRUCTUCOMPTA_ASSISTANCE_EXPRESS_SOCIAL: {
755
772
  id: 26,
@@ -769,7 +786,7 @@ export const PrestationDetail: PrestationDetailEnum = {
769
786
  signaturePosition: null,
770
787
  signaturePage: null,
771
788
  point: 0,
772
- listPcaTypes: [1],
789
+ listPcaTypes: [PcaType.ACCOUNTING],
773
790
  },
774
791
  FRUCTUCOMPTA_ASSISTANCE_SOCIAL: {
775
792
  id: 27,
@@ -789,7 +806,7 @@ export const PrestationDetail: PrestationDetailEnum = {
789
806
  signaturePosition: null,
790
807
  signaturePage: null,
791
808
  point: 0,
792
- listPcaTypes: [1],
809
+ listPcaTypes: [PcaType.ACCOUNTING],
793
810
  },
794
811
  FRUCTUCOMPTA_EXPRESS_SOCIAL: {
795
812
  id: 28,
@@ -809,7 +826,7 @@ export const PrestationDetail: PrestationDetailEnum = {
809
826
  signaturePosition: null,
810
827
  signaturePage: null,
811
828
  point: 0,
812
- listPcaTypes: [1],
829
+ listPcaTypes: [PcaType.ACCOUNTING],
813
830
  },
814
831
  FRUCTUCOMPTA_SOCIAL: {
815
832
  id: 29,
@@ -829,7 +846,7 @@ export const PrestationDetail: PrestationDetailEnum = {
829
846
  signaturePosition: null,
830
847
  signaturePage: null,
831
848
  point: 0,
832
- listPcaTypes: [1],
849
+ listPcaTypes: [PcaType.ACCOUNTING],
833
850
  },
834
851
  FRUCTU_WEB: {
835
852
  id: 31,
@@ -849,7 +866,7 @@ export const PrestationDetail: PrestationDetailEnum = {
849
866
  signaturePosition: null,
850
867
  signaturePage: null,
851
868
  point: 0,
852
- listPcaTypes: [1],
869
+ listPcaTypes: [PcaType.ACCOUNTING],
853
870
  },
854
871
  FRUCTUCOMPTA_STATUT_EXPRESS: {
855
872
  id: 32,
@@ -888,7 +905,7 @@ export const PrestationDetail: PrestationDetailEnum = {
888
905
  signaturePosition: null,
889
906
  signaturePage: null,
890
907
  point: 0,
891
- listPcaTypes: [1],
908
+ listPcaTypes: [PcaType.ACCOUNTING],
892
909
  },
893
910
  COMPTA_PRO: {
894
911
  id: 34,
@@ -908,7 +925,7 @@ export const PrestationDetail: PrestationDetailEnum = {
908
925
  signaturePosition: '400,54,569,90',
909
926
  signaturePage: 7,
910
927
  point: 200,
911
- listPcaTypes: [1],
928
+ listPcaTypes: [PcaType.ACCOUNTING],
912
929
  },
913
930
  COMPTA_PRO_PAIE: {
914
931
  id: 35,
@@ -928,7 +945,7 @@ export const PrestationDetail: PrestationDetailEnum = {
928
945
  signaturePosition: '332,49,517,117',
929
946
  signaturePage: 5,
930
947
  point: 0,
931
- listPcaTypes: [1],
948
+ listPcaTypes: [PcaType.ACCOUNTING],
932
949
  },
933
950
  COMPTA_PRO_EXPRESS: {
934
951
  id: 36,
@@ -948,7 +965,7 @@ export const PrestationDetail: PrestationDetailEnum = {
948
965
  signaturePosition: '400,54,569,90',
949
966
  signaturePage: 7,
950
967
  point: 300,
951
- listPcaTypes: [1],
968
+ listPcaTypes: [PcaType.ACCOUNTING],
952
969
  },
953
970
  COMPTA_PRO_EXPRESS_PAIE: {
954
971
  id: 37,
@@ -968,7 +985,7 @@ export const PrestationDetail: PrestationDetailEnum = {
968
985
  signaturePosition: '318,53,548,204',
969
986
  signaturePage: 5,
970
987
  point: 0,
971
- listPcaTypes: [1],
988
+ listPcaTypes: [PcaType.ACCOUNTING],
972
989
  },
973
990
  COMPTA_ENTREPRISE: {
974
991
  id: 38,
@@ -988,7 +1005,7 @@ export const PrestationDetail: PrestationDetailEnum = {
988
1005
  signaturePosition: '400,54,569,90',
989
1006
  signaturePage: 7,
990
1007
  point: 300,
991
- listPcaTypes: [1],
1008
+ listPcaTypes: [PcaType.ACCOUNTING],
992
1009
  },
993
1010
  COMPTA_ENTREPRISE_PAIE: {
994
1011
  id: 39,
@@ -1008,7 +1025,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1008
1025
  signaturePosition: '336,51,526,107',
1009
1026
  signaturePage: 5,
1010
1027
  point: 0,
1011
- listPcaTypes: [1],
1028
+ listPcaTypes: [PcaType.ACCOUNTING],
1012
1029
  },
1013
1030
  COMPTA_ENTREPRISE_EXPRESS: {
1014
1031
  id: 40,
@@ -1028,7 +1045,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1028
1045
  signaturePosition: '400,54,569,90',
1029
1046
  signaturePage: 7,
1030
1047
  point: 400,
1031
- listPcaTypes: [1],
1048
+ listPcaTypes: [PcaType.ACCOUNTING],
1032
1049
  },
1033
1050
  COMPTA_ENTREPRISE_EXPRESS_PAIE: {
1034
1051
  id: 41,
@@ -1048,7 +1065,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1048
1065
  signaturePosition: '318,53,548,204',
1049
1066
  signaturePage: 5,
1050
1067
  point: 0,
1051
- listPcaTypes: [1],
1068
+ listPcaTypes: [PcaType.ACCOUNTING],
1052
1069
  },
1053
1070
  COMPTA_CLASSIQUE: {
1054
1071
  id: 42,
@@ -1068,7 +1085,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1068
1085
  signaturePosition: '312,53,546,114',
1069
1086
  signaturePage: 5,
1070
1087
  point: 0,
1071
- listPcaTypes: [1],
1088
+ listPcaTypes: [PcaType.ACCOUNTING],
1072
1089
  },
1073
1090
  COMPTA_CLASSIQUE_EXPRESS: {
1074
1091
  id: 43,
@@ -1088,7 +1105,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1088
1105
  signaturePosition: '316,49,538,107',
1089
1106
  signaturePage: 5,
1090
1107
  point: 0,
1091
- listPcaTypes: [1],
1108
+ listPcaTypes: [PcaType.ACCOUNTING],
1092
1109
  },
1093
1110
  GESTION_JURIDIQUE: {
1094
1111
  id: 44,
@@ -1108,7 +1125,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1108
1125
  signaturePosition: '400,54,569,90',
1109
1126
  signaturePage: 5,
1110
1127
  point: 100,
1111
- listPcaTypes: [2],
1128
+ listPcaTypes: [PcaType.LEGAL],
1112
1129
  },
1113
1130
  COMPTA_ASSISTANCE: {
1114
1131
  id: 45,
@@ -1128,7 +1145,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1128
1145
  signaturePosition: '1,1,1,1',
1129
1146
  signaturePage: null,
1130
1147
  point: 0,
1131
- listPcaTypes: [1],
1148
+ listPcaTypes: [PcaType.ACCOUNTING],
1132
1149
  },
1133
1150
  AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE: {
1134
1151
  id: 46,
@@ -2041,7 +2058,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2041
2058
  signaturePosition: null,
2042
2059
  signaturePage: null,
2043
2060
  point: 0,
2044
- listPcaTypes: [1],
2061
+ listPcaTypes: [PcaType.ACCOUNTING],
2045
2062
  },
2046
2063
  ATTESTATION_REMUNERATION: {
2047
2064
  id: 95,
@@ -2518,7 +2535,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2518
2535
  signaturePosition: '400,54,569,90',
2519
2536
  signaturePage: 5,
2520
2537
  point: 0,
2521
- listPcaTypes: [1],
2538
+ listPcaTypes: [PcaType.ACCOUNTING],
2522
2539
  },
2523
2540
  EXPERTISE_COMPTABLE_PLUS: {
2524
2541
  id: 123,
@@ -2538,7 +2555,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2538
2555
  signaturePosition: '400,54,569,90',
2539
2556
  signaturePage: 5,
2540
2557
  point: 0,
2541
- listPcaTypes: [1],
2558
+ listPcaTypes: [PcaType.ACCOUNTING],
2542
2559
  },
2543
2560
  DEMANDE_CHOMAGE_PARTIEL: {
2544
2561
  id: 124,
@@ -2995,7 +3012,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2995
3012
  signaturePosition: '400,54,569,90',
2996
3013
  signaturePage: 7,
2997
3014
  point: 100,
2998
- listPcaTypes: [1],
3015
+ listPcaTypes: [PcaType.ACCOUNTING],
2999
3016
  },
3000
3017
  COMPTA_MICRO_EXPRESS: {
3001
3018
  id: 186,
@@ -3015,7 +3032,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3015
3032
  signaturePosition: '400,54,569,90',
3016
3033
  signaturePage: 7,
3017
3034
  point: 150,
3018
- listPcaTypes: [1],
3035
+ listPcaTypes: [PcaType.ACCOUNTING],
3019
3036
  },
3020
3037
  COMPTA_SCI: {
3021
3038
  id: 187,
@@ -3035,7 +3052,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3035
3052
  signaturePosition: '400,54,569,90',
3036
3053
  signaturePage: 6,
3037
3054
  point: 150,
3038
- listPcaTypes: [1],
3055
+ listPcaTypes: [PcaType.ACCOUNTING],
3039
3056
  },
3040
3057
  COMPTA_SCI_EXPRESS: {
3041
3058
  id: 188,
@@ -3055,7 +3072,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3055
3072
  signaturePosition: '400,54,569,90',
3056
3073
  signaturePage: 6,
3057
3074
  point: 200,
3058
- listPcaTypes: [1],
3075
+ listPcaTypes: [PcaType.ACCOUNTING],
3059
3076
  },
3060
3077
  BILAN_PREVISIONNEL: {
3061
3078
  id: 189,
@@ -3170,7 +3187,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3170
3187
  signaturePosition: '400,54,569,90',
3171
3188
  signaturePage: 7,
3172
3189
  point: 0,
3173
- listPcaTypes: [1],
3190
+ listPcaTypes: [PcaType.ACCOUNTING],
3174
3191
  },
3175
3192
  COMPTA_STARTER_ENTREPRISE: {
3176
3193
  id: 195,
@@ -3190,7 +3207,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3190
3207
  signaturePosition: '400,54,569,90',
3191
3208
  signaturePage: 7,
3192
3209
  point: 0,
3193
- listPcaTypes: [1],
3210
+ listPcaTypes: [PcaType.ACCOUNTING],
3194
3211
  },
3195
3212
  ABO_STRIPE: {
3196
3213
  id: 196,
@@ -3210,7 +3227,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3210
3227
  signaturePosition: null,
3211
3228
  signaturePage: null,
3212
3229
  point: 0,
3213
- listPcaTypes: [1],
3230
+ listPcaTypes: [PcaType.ACCOUNTING],
3214
3231
  },
3215
3232
  COMPTA_POURCENTAGE: {
3216
3233
  id: 197,
@@ -3230,7 +3247,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3230
3247
  signaturePosition: '400,54,569,90',
3231
3248
  signaturePage: 7,
3232
3249
  point: 0,
3233
- listPcaTypes: [1],
3250
+ listPcaTypes: [PcaType.ACCOUNTING],
3234
3251
  },
3235
3252
  COMPTA_PRO_COMPTASTART: {
3236
3253
  id: 198,
@@ -3250,7 +3267,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3250
3267
  signaturePosition: '400,54,569,90',
3251
3268
  signaturePage: 5,
3252
3269
  point: 150,
3253
- listPcaTypes: [1],
3270
+ listPcaTypes: [PcaType.ACCOUNTING],
3254
3271
  },
3255
3272
  COMPTA_PRO_COMPTASTART_EXPRESS: {
3256
3273
  id: 199,
@@ -3270,7 +3287,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3270
3287
  signaturePosition: '400,54,569,90',
3271
3288
  signaturePage: 5,
3272
3289
  point: 250,
3273
- listPcaTypes: [1],
3290
+ listPcaTypes: [PcaType.ACCOUNTING],
3274
3291
  },
3275
3292
  ATTESTATION_NON_REMUNERATION_RECURRENTE: {
3276
3293
  id: 200,
@@ -3309,7 +3326,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3309
3326
  signaturePosition: '400,54,569,90',
3310
3327
  signaturePage: 7,
3311
3328
  point: 0,
3312
- listPcaTypes: [1],
3329
+ listPcaTypes: [PcaType.ACCOUNTING],
3313
3330
  },
3314
3331
  COMPTA_PREMIUM: {
3315
3332
  id: 202,
@@ -3329,7 +3346,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3329
3346
  signaturePosition: '400,54,569,90',
3330
3347
  signaturePage: 7,
3331
3348
  point: 0,
3332
- listPcaTypes: [1],
3349
+ listPcaTypes: [PcaType.ACCOUNTING],
3333
3350
  },
3334
3351
  COMPTA_BUSINESS: {
3335
3352
  id: 203,
@@ -3349,7 +3366,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3349
3366
  signaturePosition: '400,54,569,90',
3350
3367
  signaturePage: 7,
3351
3368
  point: 0,
3352
- listPcaTypes: [1],
3369
+ listPcaTypes: [PcaType.ACCOUNTING],
3353
3370
  },
3354
3371
  DOCUMENT_DE_SORTIE: {
3355
3372
  id: 204,
@@ -3388,7 +3405,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3388
3405
  signaturePosition: '400,54,569,90',
3389
3406
  signaturePage: 7,
3390
3407
  point: 0,
3391
- listPcaTypes: [1],
3408
+ listPcaTypes: [PcaType.ACCOUNTING],
3392
3409
  },
3393
3410
  DECLARATION_IR: {
3394
3411
  id: 206,
@@ -3427,7 +3444,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3427
3444
  signaturePosition: '400,54,569,90',
3428
3445
  signaturePage: 7,
3429
3446
  point: 0,
3430
- listPcaTypes: [1],
3447
+ listPcaTypes: [PcaType.ACCOUNTING],
3431
3448
  },
3432
3449
  COMPTA_POURCENTAGE_PREMIUM_EXPRESS: {
3433
3450
  id: 208,
@@ -3447,7 +3464,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3447
3464
  signaturePosition: '400,54,569,90',
3448
3465
  signaturePage: 7,
3449
3466
  point: 0,
3450
- listPcaTypes: [1],
3467
+ listPcaTypes: [PcaType.ACCOUNTING],
3451
3468
  },
3452
3469
  ANNONCE_LEGALE: {
3453
3470
  id: 209,
@@ -3600,7 +3617,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3600
3617
  signaturePosition: '',
3601
3618
  signaturePage: null,
3602
3619
  point: 100,
3603
- listPcaTypes: [1],
3620
+ listPcaTypes: [PcaType.ACCOUNTING],
3604
3621
  },
3605
3622
  COMPTA_EI_KLEMS: {
3606
3623
  id: PrestationType.COMPTA_EI_KLEMS,
@@ -3620,7 +3637,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3620
3637
  signaturePosition: '',
3621
3638
  signaturePage: null,
3622
3639
  point: 200,
3623
- listPcaTypes: [1],
3640
+ listPcaTypes: [PcaType.ACCOUNTING],
3624
3641
  },
3625
3642
  COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS: {
3626
3643
  id: PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,
@@ -3640,7 +3657,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3640
3657
  signaturePosition: '',
3641
3658
  signaturePage: null,
3642
3659
  point: 150,
3643
- listPcaTypes: [1],
3660
+ listPcaTypes: [PcaType.ACCOUNTING],
3644
3661
  },
3645
3662
  COMPTA_MICRO_KLEMS_EXPRESS: {
3646
3663
  id: PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,
@@ -3660,7 +3677,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3660
3677
  signaturePosition: '',
3661
3678
  signaturePage: null,
3662
3679
  point: 150,
3663
- listPcaTypes: [1],
3680
+ listPcaTypes: [PcaType.ACCOUNTING],
3664
3681
  },
3665
3682
  COMPTA_EI_KLEMS_EXPRESS: {
3666
3683
  id: PrestationType.COMPTA_EI_KLEMS_EXPRESS,
@@ -3680,7 +3697,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3680
3697
  signaturePosition: '',
3681
3698
  signaturePage: null,
3682
3699
  point: 250,
3683
- listPcaTypes: [1],
3700
+ listPcaTypes: [PcaType.ACCOUNTING],
3684
3701
  },
3685
3702
  COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS: {
3686
3703
  id: PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,
@@ -3700,7 +3717,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3700
3717
  signaturePosition: '',
3701
3718
  signaturePage: null,
3702
3719
  point: 200,
3703
- listPcaTypes: [1],
3720
+ listPcaTypes: [PcaType.ACCOUNTING],
3704
3721
  },
3705
3722
  ENVOIE_LRAR: {
3706
3723
  id: PrestationType.ENVOIE_LRAR,
@@ -3739,7 +3756,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3739
3756
  signaturePosition: '400,54,569,90',
3740
3757
  signaturePage: null,
3741
3758
  point: 0,
3742
- listPcaTypes: [1],
3759
+ listPcaTypes: [PcaType.ACCOUNTING],
3743
3760
  },
3744
3761
  CONSULTING_HOUR: {
3745
3762
  id: PrestationType.CONSULTING_HOUR,
@@ -3778,7 +3795,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3778
3795
  signaturePosition: '400,54,569,90',
3779
3796
  signaturePage: 7,
3780
3797
  point: 200,
3781
- listPcaTypes: [1],
3798
+ listPcaTypes: [PcaType.ACCOUNTING],
3782
3799
  },
3783
3800
  //Software
3784
3801
  STEERING: {
@@ -3799,7 +3816,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3799
3816
  signaturePosition: '400,54,569,90',
3800
3817
  signaturePage: 7,
3801
3818
  point: 200,
3802
- listPcaTypes: [1],
3819
+ listPcaTypes: [PcaType.ACCOUNTING],
3803
3820
  },
3804
3821
  //Software
3805
3822
  VAT: {
@@ -3820,7 +3837,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3820
3837
  signaturePosition: '400,54,569,90',
3821
3838
  signaturePage: 7,
3822
3839
  point: 200,
3823
- listPcaTypes: [1],
3840
+ listPcaTypes: [PcaType.ACCOUNTING],
3824
3841
  },
3825
3842
  //Software
3826
3843
  BALANCESHEET: {
@@ -3841,7 +3858,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3841
3858
  signaturePosition: '400,54,569,90',
3842
3859
  signaturePage: 7,
3843
3860
  point: 200,
3844
- listPcaTypes: [1],
3861
+ listPcaTypes: [PcaType.ACCOUNTING],
3845
3862
  },
3846
3863
  EXPERTISE: {
3847
3864
  id: PrestationType.EXPERTISE,
@@ -3861,7 +3878,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3861
3878
  signaturePosition: '400,54,569,90',
3862
3879
  signaturePage: 7, //???
3863
3880
  point: 200,
3864
- listPcaTypes: [1],
3881
+ listPcaTypes: [PcaType.ACCOUNTING],
3865
3882
  },
3866
3883
  SUPPORT: {
3867
3884
  id: PrestationType.SUPPORT,
@@ -3881,7 +3898,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3881
3898
  signaturePosition: '400,54,569,90',
3882
3899
  signaturePage: 7, //???
3883
3900
  point: 200,
3884
- listPcaTypes: [1, 2],
3901
+ listPcaTypes: [PcaType.ACCOUNTING, PcaType.LEGAL],
3885
3902
  },
3886
3903
  PREMIUM: {
3887
3904
  id: PrestationType.PREMIUM,
@@ -3901,7 +3918,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3901
3918
  signaturePosition: '400,54,569,90',
3902
3919
  signaturePage: 7, //???
3903
3920
  point: 400,
3904
- listPcaTypes: [1, 2],
3921
+ listPcaTypes: [PcaType.ACCOUNTING, PcaType.LEGAL],
3905
3922
  },
3906
3923
  CUSTOM_MADE: {
3907
3924
  id: PrestationType.CUSTOM_MADE,
@@ -3921,7 +3938,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3921
3938
  signaturePosition: '400,54,569,90',
3922
3939
  signaturePage: 7, //???
3923
3940
  point: 400,
3924
- listPcaTypes: [1, 2],
3941
+ listPcaTypes: [PcaType.ACCOUNTING, PcaType.LEGAL],
3925
3942
  },
3926
3943
  EI: {
3927
3944
  id: PrestationType.EI,
@@ -3941,7 +3958,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3941
3958
  signaturePosition: '400,54,569,90',
3942
3959
  signaturePage: 7, //???
3943
3960
  point: 200, //???
3944
- listPcaTypes: [1],
3961
+ listPcaTypes: [PcaType.ACCOUNTING],
3945
3962
  },
3946
3963
  MICRO: {
3947
3964
  id: PrestationType.MICRO,
@@ -3961,7 +3978,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3961
3978
  signaturePosition: '400,54,569,90',
3962
3979
  signaturePage: 7, //???
3963
3980
  point: 200, //???
3964
- listPcaTypes: [1],
3981
+ listPcaTypes: [PcaType.ACCOUNTING],
3965
3982
  },
3966
3983
  GESTION_IMMO: {
3967
3984
  id: PrestationType.GESTION_IMMO,
@@ -3981,7 +3998,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3981
3998
  signaturePosition: '400,54,569,90',
3982
3999
  signaturePage: 7, //???
3983
4000
  point: 200, //???
3984
- listPcaTypes: [1],
4001
+ listPcaTypes: [PcaType.ACCOUNTING],
3985
4002
  },
3986
4003
  TERMINATION_FEES: {
3987
4004
  id: PrestationType.TERMINATION_FEES,
@@ -41,25 +41,25 @@ export const RegulatedConventions: RegulatedConvention[] = [
41
41
  },
42
42
  {
43
43
  id: RegulatedConventionType.CURRENT_ACCOUNT_CREDITOR,
44
- label: 'Existence d\'un compte courant créditeur',
44
+ label: "Existence d'un compte courant créditeur",
45
45
  templateName: 'CONVENTION_CURRENT_ACCOUNT_CREDITOR',
46
46
  applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],
47
47
  },
48
48
  {
49
49
  id: RegulatedConventionType.CURRENT_ACCOUNT_DEBTOR,
50
- label: 'Existence d\'un compte courant débiteur',
50
+ label: "Existence d'un compte courant débiteur",
51
51
  templateName: 'CONVENTION_CURRENT_ACCOUNT_DEBTOR',
52
52
  applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],
53
53
  },
54
54
  {
55
55
  id: RegulatedConventionType.CURRENT_ACCOUNT_WAIVER,
56
- label: 'Convention d\'abandon de compte courant sous réserve de retour à meilleure fortune',
56
+ label: "Convention d'abandon de compte courant sous réserve de retour à meilleure fortune",
57
57
  templateName: 'CONVENTION_CURRENT_ACCOUNT_WAIVER',
58
58
  applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],
59
59
  },
60
60
  {
61
61
  id: RegulatedConventionType.EMPLOYMENT_CONTRACT,
62
- label: 'Existence d\'un contrat de travail',
62
+ label: "Existence d'un contrat de travail",
63
63
  templateName: 'CONVENTION_EMPLOYMENT_CONTRACT',
64
64
  applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],
65
65
  },
@@ -71,13 +71,13 @@ export const RegulatedConventions: RegulatedConvention[] = [
71
71
  },
72
72
  {
73
73
  id: RegulatedConventionType.COMMERCIAL_LEASE,
74
- label: 'Existence d\'un bail commercial',
74
+ label: "Existence d'un bail commercial",
75
75
  templateName: 'CONVENTION_COMMERCIAL_LEASE',
76
76
  applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],
77
77
  },
78
78
  {
79
79
  id: RegulatedConventionType.RENT_SHARING,
80
- label: 'Prise en charge d\'une quote part du loyer',
80
+ label: "Prise en charge d'une quote part du loyer",
81
81
  templateName: 'CONVENTION_RENT_SHARING',
82
82
  applicableTo: [LegalFormTypeEnum.EURL, LegalFormTypeEnum.SASU],
83
83
  },
@@ -0,0 +1,38 @@
1
+ export enum TypeUserHistory {
2
+ // Cycle de vie Compte
3
+ CREATE = 1,
4
+ UPDATE = 2,
5
+ DELETE = 3,
6
+ RESTORE = 4,
7
+
8
+ // Validation & Modifications Spécifiques
9
+ INFO_UPDATE = 5, // Info ok
10
+ ROLE_UPDATE = 6, // Role ok
11
+
12
+ // Sécurité
13
+ PASSWORD_UPDATE = 7,
14
+
15
+ // Gestion Matériel
16
+ EQUIPMENT_ASSIGN = 8,
17
+ EQUIPMENT_BROKEN = 9,
18
+ EQUIPMENT_RETURN = 10,
19
+ EQUIPMENT_LOST = 11,
20
+
21
+ // Communication
22
+ MAIL_SENT_TO_TS = 12, // Mail envoyé à TS
23
+ }
24
+
25
+ export const TypeUserHistoryLabels: Record<TypeUserHistory, string> = {
26
+ [TypeUserHistory.CREATE]: 'Création',
27
+ [TypeUserHistory.UPDATE]: 'Mise à jour',
28
+ [TypeUserHistory.DELETE]: 'Suppression',
29
+ [TypeUserHistory.RESTORE]: 'Restauration',
30
+ [TypeUserHistory.INFO_UPDATE]: 'Mise à jour Info',
31
+ [TypeUserHistory.ROLE_UPDATE]: 'Mise à jour Rôle',
32
+ [TypeUserHistory.PASSWORD_UPDATE]: 'Changement Mot de passe',
33
+ [TypeUserHistory.EQUIPMENT_ASSIGN]: 'Assignation Matériel',
34
+ [TypeUserHistory.EQUIPMENT_BROKEN]: 'Matériel Cassé',
35
+ [TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',
36
+ [TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',
37
+ [TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',
38
+ };