@silexpert/core 1.3.131-4 → 1.3.131

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 (400) hide show
  1. package/dist/cjs/api/resources/Checklist.d.ts +2 -3
  2. package/dist/cjs/api/resources/Checklist.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Checklist.js +1 -9
  4. package/dist/cjs/api/resources/Checklist.js.map +1 -1
  5. package/dist/cjs/api/resources/Exercice.d.ts +0 -1
  6. package/dist/cjs/api/resources/Exercice.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Exercice.js +0 -3
  8. package/dist/cjs/api/resources/Exercice.js.map +1 -1
  9. package/dist/cjs/api/resources/Payment.d.ts +2 -3
  10. package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/Payment.js +0 -3
  12. package/dist/cjs/api/resources/Payment.js.map +1 -1
  13. package/dist/cjs/api/resources/Registration.js +1 -1
  14. package/dist/cjs/api/resources/Registration.js.map +1 -1
  15. package/dist/cjs/api/resources/Team.d.ts +1 -21
  16. package/dist/cjs/api/resources/Team.d.ts.map +1 -1
  17. package/dist/cjs/api/resources/Team.js +0 -26
  18. package/dist/cjs/api/resources/Team.js.map +1 -1
  19. package/dist/cjs/api/resources.d.ts +0 -4
  20. package/dist/cjs/api/resources.d.ts.map +1 -1
  21. package/dist/cjs/api/resources.js +0 -4
  22. package/dist/cjs/api/resources.js.map +1 -1
  23. package/dist/cjs/types/Enum/Aspone.d.ts +0 -8
  24. package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
  25. package/dist/cjs/types/Enum/Aspone.js +1 -11
  26. package/dist/cjs/types/Enum/Aspone.js.map +1 -1
  27. package/dist/cjs/types/Enum/BalanceSheet.d.ts +0 -66
  28. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  29. package/dist/cjs/types/Enum/BalanceSheet.js +69 -136
  30. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  31. package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts +1 -62
  32. package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  33. package/dist/cjs/types/Enum/BalanceSheetQuestion.js +0 -62
  34. package/dist/cjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
  35. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts +13 -58
  36. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  37. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js +12 -58
  38. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  39. package/dist/cjs/types/Enum/Ged.js +1 -1
  40. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  41. package/dist/cjs/types/Enum/GlobalRegime.js +19 -19
  42. package/dist/cjs/types/Enum/GlobalRegime.js.map +1 -1
  43. package/dist/cjs/types/Enum/IncomeStatement.d.ts +0 -32
  44. package/dist/cjs/types/Enum/IncomeStatement.d.ts.map +1 -1
  45. package/dist/cjs/types/Enum/IncomeStatement.js +41 -74
  46. package/dist/cjs/types/Enum/IncomeStatement.js.map +1 -1
  47. package/dist/cjs/types/Enum/LegalForm.d.ts +0 -1
  48. package/dist/cjs/types/Enum/LegalForm.d.ts.map +1 -1
  49. package/dist/cjs/types/Enum/LegalForm.js +4 -39
  50. package/dist/cjs/types/Enum/LegalForm.js.map +1 -1
  51. package/dist/cjs/types/Enum/MailAuto.d.ts +1 -2
  52. package/dist/cjs/types/Enum/MailAuto.d.ts.map +1 -1
  53. package/dist/cjs/types/Enum/MailAuto.js +0 -1
  54. package/dist/cjs/types/Enum/MailAuto.js.map +1 -1
  55. package/dist/cjs/types/Interface/api/OnBoarding.d.ts +0 -1
  56. package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  57. package/dist/cjs/types/Interface/api/OnBoarding.js +0 -6
  58. package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
  59. package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +2 -3
  60. package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
  61. package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
  62. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +2 -3
  63. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  64. package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
  65. package/dist/cjs/types/Interface/api/cerfa/2050.d.ts +1634 -1592
  66. package/dist/cjs/types/Interface/api/cerfa/2050.d.ts.map +1 -1
  67. package/dist/cjs/types/Interface/api/cerfa/2050.js.map +1 -1
  68. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +2 -3
  69. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  70. package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
  71. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +1 -10
  72. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  73. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  74. package/dist/cjs/types/Interface/api/checklist/Query.d.ts +0 -3
  75. package/dist/cjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
  76. package/dist/cjs/types/Interface/api/checklist/Query.js +1 -11
  77. package/dist/cjs/types/Interface/api/checklist/Query.js.map +1 -1
  78. package/dist/cjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts +2 -3
  79. package/dist/cjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts.map +1 -1
  80. package/dist/cjs/types/Interface/api/incomeStatement/ReadIncomeStatement.js.map +1 -1
  81. package/dist/cjs/types/Interface/api/payment/Params.d.ts +0 -4
  82. package/dist/cjs/types/Interface/api/payment/Params.d.ts.map +1 -1
  83. package/dist/cjs/types/Interface/api/payment/Params.js +1 -18
  84. package/dist/cjs/types/Interface/api/payment/Params.js.map +1 -1
  85. package/dist/cjs/types/Interface/api/payment/Util.d.ts +2 -0
  86. package/dist/cjs/types/Interface/api/payment/Util.d.ts.map +1 -1
  87. package/dist/cjs/types/Interface/api/payment/Util.js.map +1 -1
  88. package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts +0 -4
  89. package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  90. package/dist/cjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  91. package/dist/cjs/types/Interface/api/society/ReadSociety.d.ts +4 -2
  92. package/dist/cjs/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
  93. package/dist/cjs/types/Interface/api/society/ReadSociety.js.map +1 -1
  94. package/dist/cjs/types/Interface/models/IPrestation.d.ts.map +1 -1
  95. package/dist/cjs/types/Interface/models/IPrestation.js.map +1 -1
  96. package/dist/cjs/types/Interface/models/IUser.d.ts +0 -1
  97. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  98. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  99. package/dist/cjs/types/index.d.ts +0 -4
  100. package/dist/cjs/types/index.d.ts.map +1 -1
  101. package/dist/cjs/types/index.js +0 -4
  102. package/dist/cjs/types/index.js.map +1 -1
  103. package/dist/cjs/utils/payment.js +50 -54
  104. package/dist/cjs/utils/payment.js.map +1 -1
  105. package/dist/cjs/utils/prestation.d.ts +0 -1
  106. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  107. package/dist/cjs/utils/prestation.js +0 -1
  108. package/dist/cjs/utils/prestation.js.map +1 -1
  109. package/dist/cjs/utils/tests/payment.spec.js +33 -33
  110. package/dist/cjs/utils/tests/payment.spec.js.map +1 -1
  111. package/dist/cjs/utils/vat/3310/century25.js +1 -1
  112. package/dist/cjs/utils/vat/3310/century25.js.map +1 -1
  113. package/dist/cjs/utils/vat/3517/century25.js +1 -1
  114. package/dist/cjs/utils/vat/3517/century25.js.map +1 -1
  115. package/dist/mjs/api/resources/Checklist.d.ts +2 -3
  116. package/dist/mjs/api/resources/Checklist.d.ts.map +1 -1
  117. package/dist/mjs/api/resources/Checklist.js +1 -9
  118. package/dist/mjs/api/resources/Checklist.js.map +1 -1
  119. package/dist/mjs/api/resources/Exercice.d.ts +0 -1
  120. package/dist/mjs/api/resources/Exercice.d.ts.map +1 -1
  121. package/dist/mjs/api/resources/Exercice.js +0 -3
  122. package/dist/mjs/api/resources/Exercice.js.map +1 -1
  123. package/dist/mjs/api/resources/Payment.d.ts +2 -3
  124. package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
  125. package/dist/mjs/api/resources/Payment.js +0 -3
  126. package/dist/mjs/api/resources/Payment.js.map +1 -1
  127. package/dist/mjs/api/resources/Registration.js +1 -1
  128. package/dist/mjs/api/resources/Registration.js.map +1 -1
  129. package/dist/mjs/api/resources/Team.d.ts +1 -21
  130. package/dist/mjs/api/resources/Team.d.ts.map +1 -1
  131. package/dist/mjs/api/resources/Team.js +0 -26
  132. package/dist/mjs/api/resources/Team.js.map +1 -1
  133. package/dist/mjs/api/resources.d.ts +0 -4
  134. package/dist/mjs/api/resources.d.ts.map +1 -1
  135. package/dist/mjs/api/resources.js +0 -4
  136. package/dist/mjs/api/resources.js.map +1 -1
  137. package/dist/mjs/types/Enum/Aspone.d.ts +0 -8
  138. package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
  139. package/dist/mjs/types/Enum/Aspone.js +0 -10
  140. package/dist/mjs/types/Enum/Aspone.js.map +1 -1
  141. package/dist/mjs/types/Enum/BalanceSheet.d.ts +0 -66
  142. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  143. package/dist/mjs/types/Enum/BalanceSheet.js +68 -135
  144. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  145. package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts +1 -62
  146. package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  147. package/dist/mjs/types/Enum/BalanceSheetQuestion.js +0 -62
  148. package/dist/mjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
  149. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts +13 -58
  150. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  151. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js +12 -58
  152. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  153. package/dist/mjs/types/Enum/Ged.js +1 -1
  154. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  155. package/dist/mjs/types/Enum/GlobalRegime.js +19 -19
  156. package/dist/mjs/types/Enum/GlobalRegime.js.map +1 -1
  157. package/dist/mjs/types/Enum/IncomeStatement.d.ts +0 -32
  158. package/dist/mjs/types/Enum/IncomeStatement.d.ts.map +1 -1
  159. package/dist/mjs/types/Enum/IncomeStatement.js +40 -73
  160. package/dist/mjs/types/Enum/IncomeStatement.js.map +1 -1
  161. package/dist/mjs/types/Enum/LegalForm.d.ts +0 -1
  162. package/dist/mjs/types/Enum/LegalForm.d.ts.map +1 -1
  163. package/dist/mjs/types/Enum/LegalForm.js +4 -39
  164. package/dist/mjs/types/Enum/LegalForm.js.map +1 -1
  165. package/dist/mjs/types/Enum/MailAuto.d.ts +1 -2
  166. package/dist/mjs/types/Enum/MailAuto.d.ts.map +1 -1
  167. package/dist/mjs/types/Enum/MailAuto.js +0 -1
  168. package/dist/mjs/types/Enum/MailAuto.js.map +1 -1
  169. package/dist/mjs/types/Interface/api/OnBoarding.d.ts +0 -1
  170. package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  171. package/dist/mjs/types/Interface/api/OnBoarding.js +0 -7
  172. package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
  173. package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +2 -3
  174. package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
  175. package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
  176. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +2 -3
  177. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  178. package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
  179. package/dist/mjs/types/Interface/api/cerfa/2050.d.ts +1634 -1592
  180. package/dist/mjs/types/Interface/api/cerfa/2050.d.ts.map +1 -1
  181. package/dist/mjs/types/Interface/api/cerfa/2050.js.map +1 -1
  182. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +2 -3
  183. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  184. package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
  185. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +1 -10
  186. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  187. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  188. package/dist/mjs/types/Interface/api/checklist/Query.d.ts +0 -3
  189. package/dist/mjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
  190. package/dist/mjs/types/Interface/api/checklist/Query.js +0 -10
  191. package/dist/mjs/types/Interface/api/checklist/Query.js.map +1 -1
  192. package/dist/mjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts +2 -3
  193. package/dist/mjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts.map +1 -1
  194. package/dist/mjs/types/Interface/api/incomeStatement/ReadIncomeStatement.js.map +1 -1
  195. package/dist/mjs/types/Interface/api/payment/Params.d.ts +0 -4
  196. package/dist/mjs/types/Interface/api/payment/Params.d.ts.map +1 -1
  197. package/dist/mjs/types/Interface/api/payment/Params.js +1 -19
  198. package/dist/mjs/types/Interface/api/payment/Params.js.map +1 -1
  199. package/dist/mjs/types/Interface/api/payment/Util.d.ts +2 -0
  200. package/dist/mjs/types/Interface/api/payment/Util.d.ts.map +1 -1
  201. package/dist/mjs/types/Interface/api/payment/Util.js.map +1 -1
  202. package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts +0 -4
  203. package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  204. package/dist/mjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  205. package/dist/mjs/types/Interface/api/society/ReadSociety.d.ts +4 -2
  206. package/dist/mjs/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
  207. package/dist/mjs/types/Interface/api/society/ReadSociety.js.map +1 -1
  208. package/dist/mjs/types/Interface/models/IPrestation.d.ts.map +1 -1
  209. package/dist/mjs/types/Interface/models/IPrestation.js.map +1 -1
  210. package/dist/mjs/types/Interface/models/IUser.d.ts +0 -1
  211. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  212. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  213. package/dist/mjs/types/index.d.ts +0 -4
  214. package/dist/mjs/types/index.d.ts.map +1 -1
  215. package/dist/mjs/types/index.js +0 -4
  216. package/dist/mjs/types/index.js.map +1 -1
  217. package/dist/mjs/utils/payment.js +48 -52
  218. package/dist/mjs/utils/payment.js.map +1 -1
  219. package/dist/mjs/utils/prestation.d.ts +0 -1
  220. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  221. package/dist/mjs/utils/prestation.js +0 -1
  222. package/dist/mjs/utils/prestation.js.map +1 -1
  223. package/dist/mjs/utils/tests/payment.spec.js +34 -34
  224. package/dist/mjs/utils/tests/payment.spec.js.map +1 -1
  225. package/dist/mjs/utils/vat/3310/century25.js +1 -1
  226. package/dist/mjs/utils/vat/3310/century25.js.map +1 -1
  227. package/dist/mjs/utils/vat/3517/century25.js +1 -1
  228. package/dist/mjs/utils/vat/3517/century25.js.map +1 -1
  229. package/package.json +1 -1
  230. package/ts/api/resources/Checklist.ts +2 -12
  231. package/ts/api/resources/Exercice.ts +0 -4
  232. package/ts/api/resources/Payment.ts +1 -6
  233. package/ts/api/resources/Registration.ts +1 -1
  234. package/ts/api/resources/Team.ts +1 -31
  235. package/ts/api/resources.ts +0 -4
  236. package/ts/types/Enum/Aspone.ts +0 -10
  237. package/ts/types/Enum/BalanceSheet.ts +68 -137
  238. package/ts/types/Enum/BalanceSheetQuestion.ts +0 -63
  239. package/ts/types/Enum/BalanceSheetQuestionWording.ts +81 -130
  240. package/ts/types/Enum/Ged.ts +1 -1
  241. package/ts/types/Enum/GlobalRegime.ts +19 -19
  242. package/ts/types/Enum/IncomeStatement.ts +40 -73
  243. package/ts/types/Enum/LegalForm.ts +4 -40
  244. package/ts/types/Enum/MailAuto.ts +0 -1
  245. package/ts/types/Interface/api/OnBoarding.ts +0 -5
  246. package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +2 -4
  247. package/ts/types/Interface/api/cerfa/2031.ts +2 -3
  248. package/ts/types/Interface/api/cerfa/2050.ts +1399 -1580
  249. package/ts/types/Interface/api/cerfa/2065.ts +2 -2
  250. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +2 -20
  251. package/ts/types/Interface/api/checklist/Query.ts +0 -8
  252. package/ts/types/Interface/api/incomeStatement/ReadIncomeStatement.ts +2 -4
  253. package/ts/types/Interface/api/payment/Params.ts +1 -14
  254. package/ts/types/Interface/api/payment/Util.ts +2 -2
  255. package/ts/types/Interface/api/registration/ReadRegistration.ts +0 -4
  256. package/ts/types/Interface/api/society/ReadSociety.ts +4 -2
  257. package/ts/types/Interface/models/IPrestation.ts +0 -1
  258. package/ts/types/Interface/models/IUser.ts +0 -1
  259. package/ts/types/index.ts +0 -4
  260. package/ts/utils/payment.ts +49 -49
  261. package/ts/utils/prestation.ts +0 -1
  262. package/ts/utils/tests/payment.spec.ts +34 -34
  263. package/ts/utils/vat/3310/century25.ts +1 -1
  264. package/ts/utils/vat/3517/century25.ts +1 -1
  265. package/dist/cjs/api/resources/DashboardLayout.d.ts +0 -9
  266. package/dist/cjs/api/resources/DashboardLayout.d.ts.map +0 -1
  267. package/dist/cjs/api/resources/DashboardLayout.js +0 -20
  268. package/dist/cjs/api/resources/DashboardLayout.js.map +0 -1
  269. package/dist/cjs/api/resources/Mfa.d.ts +0 -19
  270. package/dist/cjs/api/resources/Mfa.d.ts.map +0 -1
  271. package/dist/cjs/api/resources/Mfa.js +0 -27
  272. package/dist/cjs/api/resources/Mfa.js.map +0 -1
  273. package/dist/cjs/types/Enum/DashboardBlock.d.ts +0 -13
  274. package/dist/cjs/types/Enum/DashboardBlock.d.ts.map +0 -1
  275. package/dist/cjs/types/Enum/DashboardBlock.js +0 -17
  276. package/dist/cjs/types/Enum/DashboardBlock.js.map +0 -1
  277. package/dist/cjs/types/Interface/api/DashboardLayout.d.ts +0 -24
  278. package/dist/cjs/types/Interface/api/DashboardLayout.d.ts.map +0 -1
  279. package/dist/cjs/types/Interface/api/DashboardLayout.js +0 -3
  280. package/dist/cjs/types/Interface/api/DashboardLayout.js.map +0 -1
  281. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -7
  282. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +0 -1
  283. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js +0 -3
  284. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +0 -1
  285. package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +0 -5
  286. package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +0 -1
  287. package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +0 -3
  288. package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +0 -1
  289. package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.d.ts +0 -4
  290. package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.d.ts.map +0 -1
  291. package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.js +0 -21
  292. package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.js.map +0 -1
  293. package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.d.ts +0 -5
  294. package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.d.ts.map +0 -1
  295. package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.js +0 -25
  296. package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.js.map +0 -1
  297. package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.d.ts +0 -5
  298. package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.d.ts.map +0 -1
  299. package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.js +0 -25
  300. package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.js.map +0 -1
  301. package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.d.ts +0 -5
  302. package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.d.ts.map +0 -1
  303. package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.js +0 -26
  304. package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.js.map +0 -1
  305. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts +0 -5
  306. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts.map +0 -1
  307. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js +0 -26
  308. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js.map +0 -1
  309. package/dist/cjs/types/Interface/api/mfa/mfa.d.ts +0 -19
  310. package/dist/cjs/types/Interface/api/mfa/mfa.d.ts.map +0 -1
  311. package/dist/cjs/types/Interface/api/mfa/mfa.js +0 -3
  312. package/dist/cjs/types/Interface/api/mfa/mfa.js.map +0 -1
  313. package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.d.ts +0 -6
  314. package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.d.ts.map +0 -1
  315. package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.js +0 -38
  316. package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.js.map +0 -1
  317. package/dist/cjs/types/Interface/models/IUserMfa.d.ts +0 -12
  318. package/dist/cjs/types/Interface/models/IUserMfa.d.ts.map +0 -1
  319. package/dist/cjs/types/Interface/models/IUserMfa.js +0 -3
  320. package/dist/cjs/types/Interface/models/IUserMfa.js.map +0 -1
  321. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +0 -9
  322. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +0 -1
  323. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js +0 -3
  324. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js.map +0 -1
  325. package/dist/mjs/api/resources/DashboardLayout.d.ts +0 -9
  326. package/dist/mjs/api/resources/DashboardLayout.d.ts.map +0 -1
  327. package/dist/mjs/api/resources/DashboardLayout.js +0 -16
  328. package/dist/mjs/api/resources/DashboardLayout.js.map +0 -1
  329. package/dist/mjs/api/resources/Mfa.d.ts +0 -19
  330. package/dist/mjs/api/resources/Mfa.d.ts.map +0 -1
  331. package/dist/mjs/api/resources/Mfa.js +0 -23
  332. package/dist/mjs/api/resources/Mfa.js.map +0 -1
  333. package/dist/mjs/types/Enum/DashboardBlock.d.ts +0 -13
  334. package/dist/mjs/types/Enum/DashboardBlock.d.ts.map +0 -1
  335. package/dist/mjs/types/Enum/DashboardBlock.js +0 -14
  336. package/dist/mjs/types/Enum/DashboardBlock.js.map +0 -1
  337. package/dist/mjs/types/Interface/api/DashboardLayout.d.ts +0 -24
  338. package/dist/mjs/types/Interface/api/DashboardLayout.d.ts.map +0 -1
  339. package/dist/mjs/types/Interface/api/DashboardLayout.js +0 -2
  340. package/dist/mjs/types/Interface/api/DashboardLayout.js.map +0 -1
  341. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -7
  342. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +0 -1
  343. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js +0 -2
  344. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +0 -1
  345. package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +0 -5
  346. package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +0 -1
  347. package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +0 -2
  348. package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +0 -1
  349. package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.d.ts +0 -4
  350. package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.d.ts.map +0 -1
  351. package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.js +0 -18
  352. package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.js.map +0 -1
  353. package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.d.ts +0 -5
  354. package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.d.ts.map +0 -1
  355. package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.js +0 -23
  356. package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.js.map +0 -1
  357. package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.d.ts +0 -5
  358. package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.d.ts.map +0 -1
  359. package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.js +0 -23
  360. package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.js.map +0 -1
  361. package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.d.ts +0 -5
  362. package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.d.ts.map +0 -1
  363. package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.js +0 -24
  364. package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.js.map +0 -1
  365. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts +0 -5
  366. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts.map +0 -1
  367. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js +0 -24
  368. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js.map +0 -1
  369. package/dist/mjs/types/Interface/api/mfa/mfa.d.ts +0 -19
  370. package/dist/mjs/types/Interface/api/mfa/mfa.d.ts.map +0 -1
  371. package/dist/mjs/types/Interface/api/mfa/mfa.js +0 -2
  372. package/dist/mjs/types/Interface/api/mfa/mfa.js.map +0 -1
  373. package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.d.ts +0 -6
  374. package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.d.ts.map +0 -1
  375. package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.js +0 -37
  376. package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.js.map +0 -1
  377. package/dist/mjs/types/Interface/models/IUserMfa.d.ts +0 -12
  378. package/dist/mjs/types/Interface/models/IUserMfa.d.ts.map +0 -1
  379. package/dist/mjs/types/Interface/models/IUserMfa.js +0 -2
  380. package/dist/mjs/types/Interface/models/IUserMfa.js.map +0 -1
  381. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +0 -9
  382. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +0 -1
  383. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js +0 -2
  384. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js.map +0 -1
  385. package/ts/api/resources/DashboardLayout.ts +0 -20
  386. package/ts/api/resources/Mfa.ts +0 -29
  387. package/ts/types/Enum/DashboardBlock.ts +0 -12
  388. package/ts/types/Interface/api/DashboardLayout.ts +0 -27
  389. package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +0 -6
  390. package/ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts +0 -5
  391. package/ts/types/Interface/api/mfa/DisableMfa.dto.ts +0 -6
  392. package/ts/types/Interface/api/mfa/SetupInit.dto.ts +0 -9
  393. package/ts/types/Interface/api/mfa/SetupVerify.dto.ts +0 -9
  394. package/ts/types/Interface/api/mfa/VerifyCode.dto.ts +0 -10
  395. package/ts/types/Interface/api/mfa/VerifyRecoveryCode.dto.ts +0 -10
  396. package/ts/types/Interface/api/mfa/mfa.ts +0 -21
  397. package/ts/types/Interface/api/mfa/setupInit +0 -0
  398. package/ts/types/Interface/api/team/UpdateTeamsForUser.ts +0 -22
  399. package/ts/types/Interface/models/IUserMfa.ts +0 -11
  400. package/ts/types/Interface/models/IUserMfaRecoveryCode.ts +0 -8
@@ -1,4 +1,4 @@
1
- import { AnyCerfa2033Century, AnyCerfa2050Century, ApiPropertyOptional } from '../../../..';
1
+ import { AnyCerfa2033Century, ApiPropertyOptional } from '../../../..';
2
2
  import { CerfaAddress, ViewerDetails, Accountant, CouncilDetails, EcfDetails, Termination } from './ReadCerfa';
3
3
  import { PartnersLegalEntity } from './Utils';
4
4
 
@@ -257,7 +257,7 @@ export type PrepareCerfa2065 = {
257
257
  idExercice: number;
258
258
  idSociety: number;
259
259
  idUser: number;
260
- values: { cerfa2065: AnyCerfa2065Century; cerfa2033?: AnyCerfa2033Century; cerfa2050?: AnyCerfa2050Century };
260
+ values: { cerfa2065: AnyCerfa2065Century; cerfa2033: AnyCerfa2033Century };
261
261
  };
262
262
 
263
263
  export interface Cerfa2065_2025 {
@@ -2,7 +2,6 @@ import { CerfaType } from '../../../Enum/CerfaType';
2
2
  import {
3
3
  AnyCerfa2031Century,
4
4
  AnyCerfa2033Century,
5
- AnyCerfa2050Century,
6
5
  AnyCerfa2035Century,
7
6
  AnyCerfa2065Century,
8
7
  AnyCerfa2571Century,
@@ -113,19 +112,8 @@ export type Termination = {
113
112
  date: string | null;
114
113
  };
115
114
 
116
- export type AsponeFormFields = Array<{
117
- name: string;
118
- /** Système dynamique de remplissage néant si aucun champ du formulaire n'est rempli */
119
- nilKey?: string;
120
- fields: FieldForGeneration[];
121
- index?: number;
122
- }>;
123
- export type AsponeFormField = {
124
- name: string;
125
- /** Système dynamique de remplissage néant si aucun champ du formulaire n'est rempli */
126
- nilKey?: string;
127
- fields: FieldForGeneration[];
128
- };
115
+ export type AsponeFormFields = Array<{ name: string; fields: FieldForGeneration[]; index?: number }>;
116
+ export type AsponeFormField = { name: string; fields: FieldForGeneration[] };
129
117
 
130
118
  export interface RegistrationPayload {
131
119
  cerfa2573?: Cerfa2573_2024;
@@ -133,7 +121,6 @@ export interface RegistrationPayload {
133
121
  cerfa2571?: AnyCerfa2571Century;
134
122
  cerfa2031?: AnyCerfa2031Century;
135
123
  cerfa2033?: AnyCerfa2033Century;
136
- cerfa2050?: AnyCerfa2050Century;
137
124
  cerfa2065?: AnyCerfa2065Century;
138
125
  cerfa2035?: AnyCerfa2035Century;
139
126
  cerfa2069RCI?: Cerfa2069RCI_2024;
@@ -156,8 +143,3 @@ export interface ReadFormGeneration {
156
143
  file: ReadFormFile;
157
144
  payload: RegistrationPayload;
158
145
  }
159
-
160
- export interface ReadAnnexFormGeneration {
161
- file?: ReadFormFile;
162
- payload: RegistrationPayload;
163
- }
@@ -191,11 +191,3 @@ export class QueryGenerateAdvice {
191
191
  @IsInt()
192
192
  idExercice: number;
193
193
  }
194
-
195
- export class SendAskDocumentsOptions {
196
- @ApiPropertyOptional()
197
- @IsOptional()
198
- @IsBoolean()
199
- @ToBoolean()
200
- addAdviceNote?: boolean;
201
- }
@@ -1,8 +1,6 @@
1
- export type ReadIncomeStatementItem = {
1
+ export type ReadIncomeStatement = Array<{
2
2
  name: string;
3
3
  total: number;
4
4
  description?: ReadIncomeStatement;
5
5
  key: string;
6
- };
7
-
8
- export type ReadIncomeStatement = ReadIncomeStatementItem[];
6
+ }>;
@@ -1,4 +1,4 @@
1
- import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString, Matches } from 'class-validator';
1
+ import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
@@ -8,19 +8,6 @@ export class CreatePaymentsAutoBilling {
8
8
  @IsInt()
9
9
  idSociety?: number;
10
10
  }
11
- export class CreatePaymentsRebilling {
12
- @ApiProperty()
13
- @IsInt()
14
- idSociety: number;
15
-
16
- @ApiPropertyOptional()
17
- @IsOptional()
18
- @IsString()
19
- @Matches(/^\d{4}-(0[1-9]|1[0-2])$/, {
20
- message: 'endDate doit être au format YYYY-MM',
21
- })
22
- endDate?: string;
23
- }
24
11
 
25
12
  export class UpdateCollectable {
26
13
  @ApiProperty()
@@ -10,8 +10,8 @@ export interface ParamsForPaymentsAuto {
10
10
  idTypeBrand: number;
11
11
  firstExerciceNonExpresssEndDate: Date;
12
12
  idPrestation: number;
13
- // idLegalForm: number; // Application fees are not charged anymore
14
- // isWithApplicationFees: boolean;
13
+ idLegalForm: number;
14
+ isWithApplicationFees: boolean;
15
15
  idVat: number;
16
16
  prestationList: IPrestationList;
17
17
  yearlyAmountNonExpress: number;
@@ -15,10 +15,6 @@ export interface ReadSynchronization {
15
15
 
16
16
  export type ReadRegistrationFormValues = {
17
17
  carriedForwardDeficit: number;
18
- sellOfMerchandises: number;
19
- productionOfGoods: number;
20
- productionOfServices: number;
21
- paidUpShareCapital: number;
22
18
  };
23
19
 
24
20
  export type ReadRegistrationHistory = InterchangeState;
@@ -1,4 +1,4 @@
1
- import { IFile, IGedFile, TypeFile } from '../../..';
1
+ import { IFile, TypeFile } from '../../..';
2
2
 
3
3
  export type UnpaidDetail = {
4
4
  datePayment: Date;
@@ -15,7 +15,10 @@ export type ReadInvalidFieldState = {
15
15
  };
16
16
 
17
17
  export type ReadAskOrRequiredDocuments = {
18
+ idGedFile?: number;
19
+ idFile?: number;
18
20
  name: string;
21
+ status: string;
19
22
  idGedFolder: number;
20
23
  idGedFileType?: number;
21
24
  typeFile?: TypeFile;
@@ -23,5 +26,4 @@ export type ReadAskOrRequiredDocuments = {
23
26
  idExercice?: number;
24
27
  idBalanceSheet?: number;
25
28
  idBankAccount?: number;
26
- gedFiles: IGedFile[];
27
29
  };
@@ -32,7 +32,6 @@ export interface IPrestation {
32
32
  goToFacturation?: Date | null;
33
33
  dateLeavingFacturation?: Date | null;
34
34
  scoring: number | null;
35
- // @deprecated Application fees are not charged anymore
36
35
  isWithApplicationFees?: boolean;
37
36
  state: boolean;
38
37
  commentPdf: string | null;
@@ -51,7 +51,6 @@ export interface IUser {
51
51
  textMessageNumber?: string | null;
52
52
  prefix?: string | null;
53
53
  tokenLostPassword?: string | null;
54
- twoFactorEnabled?: boolean | null;
55
54
  tokenApi?: string | null;
56
55
  tokenNotification?: string | null;
57
56
  tokenSocket?: string | null;
package/ts/types/index.ts CHANGED
@@ -344,7 +344,6 @@ export * from './Enum/VisualizedInformation';
344
344
  export * from './Enum/NafCode';
345
345
  export * from './Enum/Acceptance';
346
346
  export * from './Enum/FolderFile';
347
- export * from './Enum/DashboardBlock';
348
347
  export * from './Enum/CommercialGrade';
349
348
  export * from './Enum/CommercialOfferType';
350
349
  export * from './Enum/CommercialManagement';
@@ -559,7 +558,6 @@ export * from './Enum/PartneredAccountantServiceTypeId';
559
558
  export * from './Enum/PaymentAttempt';
560
559
 
561
560
  // Interfaces API
562
- export * from './Interface/api/authentification/AuthenticationResponse';
563
561
  export * from './Interface/api/exercice/ReadExercice';
564
562
  export * from './Interface/api/balanceSheet/consistency/Read';
565
563
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -774,7 +772,6 @@ export * from './Interface/api/inpi/inpi';
774
772
  export * from './Interface/api/team/QueryCreate';
775
773
  export * from './Interface/api/team/QueryGetAllWithIncludes';
776
774
  export * from './Interface/api/team/QueryUpdate';
777
- export * from './Interface/api/team/UpdateTeamsForUser';
778
775
  export * from './Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory';
779
776
  export * from './Interface/api/userSpecialDay/BodyUserSpecialDay';
780
777
  export * from './Interface/api/userSpecialDay/QueryUserSpecialDay';
@@ -938,7 +935,6 @@ export * from './Interface/api/thirdParty/CreateThirdPartyForm';
938
935
  export * from './Interface/api/thirdParty/UpdateThirdPartyForm';
939
936
  export * from './Interface/api/thirdParty/QueryThirdParty';
940
937
  export * from './Interface/api/bankAccount/Read';
941
- export * from './Interface/api/DashboardLayout';
942
938
  export * from './Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule';
943
939
  export * from './Interface/api/calendarEvent/createCalendarEvent';
944
940
  export * from './Interface/api/calendarEvent/createCalendarEventForUsers';
@@ -10,7 +10,7 @@ import {
10
10
  } from '../types';
11
11
  import * as dayjs from 'dayjs';
12
12
  import { PartialExercicePrestationExpress } from '../types/Interface/api/payment/Util';
13
- import { /* getApplicationFeesAmount, */ getPriceGrid } from './prestation';
13
+ import { getApplicationFeesAmount, getPriceGrid } from './prestation';
14
14
 
15
15
  export interface PaymentsWithList extends IPayment {
16
16
  type?: 'isComptable' | 'isJuridique' | 'isSocial' | 'isOther';
@@ -85,23 +85,23 @@ const groupPaymentsByServiceType = (
85
85
  return societyPayment;
86
86
  };
87
87
 
88
- // const calculateFees = (amount: number, paymentDate: Date): number => {
89
- // const yearlyPriceIncreasing = 1.0275;
88
+ const calculateFees = (amount: number, paymentDate: Date): number => {
89
+ const yearlyPriceIncreasing = 1.0275;
90
90
 
91
- // // Commenté car en fin d'année, pour appliquer le taux d'inflation annuel,
92
- // // un script enlève les 2,75€ appliqués pour appliquer le bon taux
93
- // // const oneYearLessIfIn3LastMonthsOfYear = dayjs(goToClient).month() >= 9 ? 1 : 0;
91
+ // Commenté car en fin d'année, pour appliquer le taux d'inflation annuel,
92
+ // un script enlève les 2,75€ appliqués pour appliquer le bon taux
93
+ // const oneYearLessIfIn3LastMonthsOfYear = dayjs(goToClient).month() >= 9 ? 1 : 0;
94
94
 
95
- // if (dayjs(paymentDate).year() - dayjs().year() > 0) {
96
- // const nbYearsMore = dayjs(paymentDate).year() - dayjs().year(); /* - oneYearLessIfIn3LastMonthsOfYear */
97
- // // on applique X fois l'augmentation
98
- // // ex. : si on lance l'appel en 2024, et qu'on génére un paiement pour 2026, on applique 2 fois l'augmentation
99
- // // soit amount * yearlyPriceIncreasing * yearlyPriceIncreasing
100
- // // soit amount * yearlyPriceIncreasing ^ nbYearsMore
101
- // amount = amount * Math.pow(yearlyPriceIncreasing, nbYearsMore);
102
- // }
103
- // return amount;
104
- // };
95
+ if (dayjs(paymentDate).year() - dayjs().year() > 0) {
96
+ const nbYearsMore = dayjs(paymentDate).year() - dayjs().year(); /* - oneYearLessIfIn3LastMonthsOfYear */
97
+ // on applique X fois l'augmentation
98
+ // ex. : si on lance l'appel en 2024, et qu'on génére un paiement pour 2026, on applique 2 fois l'augmentation
99
+ // soit amount * yearlyPriceIncreasing * yearlyPriceIncreasing
100
+ // soit amount * yearlyPriceIncreasing ^ nbYearsMore
101
+ amount = amount * Math.pow(yearlyPriceIncreasing, nbYearsMore);
102
+ }
103
+ return amount;
104
+ };
105
105
 
106
106
  /**
107
107
  // * @param {number} firstPaymentAmount - amount of the first payment (first regulation of the customer)
@@ -121,10 +121,10 @@ const groupPaymentsByServiceType = (
121
121
  const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] => {
122
122
  const {
123
123
  idTypeBrand,
124
- // isWithApplicationFees,
124
+ isWithApplicationFees,
125
125
  firstExerciceNonExpresssEndDate,
126
126
  idPrestation,
127
- // idLegalForm,
127
+ idLegalForm,
128
128
  prestationList,
129
129
  idVat,
130
130
  yearlyAmountNonExpress,
@@ -157,10 +157,10 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
157
157
  if (!prestationList.id) throw new Error('idPrestationList manquant');
158
158
  const priceGrid = getPriceGrid(idTypeBrand, prestationList.id);
159
159
  if (!priceGrid) throw new Error('Impossible de trouver la grille tarifaire correspondante');
160
- const { /* applicationCost, */ priceWithTaxesIncluded } = priceGrid;
161
- // const applicationCostTotalTTC =
162
- // (priceWithTaxesIncluded ? applicationCost : getTaxesIncludedAmount(applicationCost, idVat)) * 12;
163
- // const applicationFeesAmountTTC = getApplicationFeesAmount(idLegalForm, idVat);
160
+ const { applicationCost, priceWithTaxesIncluded } = priceGrid;
161
+ const applicationCostTotalTTC =
162
+ (priceWithTaxesIncluded ? applicationCost : getTaxesIncludedAmount(applicationCost, idVat)) * 12;
163
+ const applicationFeesAmountTTC = getApplicationFeesAmount(idLegalForm, idVat);
164
164
 
165
165
  if (prestationList?.isCatalog || !prestationList?.isComptable)
166
166
  throw new Error('Ce type de prestation ne correspond pas aux conditions attendues.');
@@ -170,10 +170,10 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
170
170
  )
171
171
  throw new Error('Start date of some exercice are missing');
172
172
 
173
- // let yearlyAmountNonExpressClone = yearlyAmountNonExpress;
174
- // if (isWithApplicationFees) {
175
- // yearlyAmountNonExpressClone -= getApplicationFeesAmount(idLegalForm); //HT
176
- // }
173
+ let yearlyAmountNonExpressClone = yearlyAmountNonExpress;
174
+ if (isWithApplicationFees) {
175
+ yearlyAmountNonExpressClone -= getApplicationFeesAmount(idLegalForm); //HT
176
+ }
177
177
 
178
178
  const nbExoExpress = listPartialExercicePrestationExpress.length;
179
179
  const listPayments: PaymentAuto[] = [];
@@ -212,20 +212,20 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
212
212
  });
213
213
 
214
214
  // Si les frais de dossiers sont facturés, on ajoute un paiement sur le mois en cours
215
- // if (isWithApplicationFees) {
216
- // listPayments.push({
217
- // amount: applicationFeesAmountTTC, //TTC
218
- // isPaid: true,
219
- // datePayment: dayjs().toDate(),
220
- // idPrestation,
221
- // idPaymentMethod: listRegulations[0]?.idPaymentMethod ?? PaymentMethod.DIRECT_DEBIT.id,
222
- // closingDate: listPartialExercicePrestationExpress?.length
223
- // ? listPartialExercicePrestationExpress[0].endDate
224
- // : firstExerciceNonExpresssEndDate,
225
- // comment: 'Frais de dossier',
226
- // });
227
- // remainingAmount += applicationFeesAmountTTC;
228
- // }
215
+ if (isWithApplicationFees) {
216
+ listPayments.push({
217
+ amount: applicationFeesAmountTTC, //TTC
218
+ isPaid: true,
219
+ datePayment: dayjs().toDate(),
220
+ idPrestation,
221
+ idPaymentMethod: listRegulations[0]?.idPaymentMethod ?? PaymentMethod.DIRECT_DEBIT.id,
222
+ closingDate: listPartialExercicePrestationExpress?.length
223
+ ? listPartialExercicePrestationExpress[0].endDate
224
+ : firstExerciceNonExpresssEndDate,
225
+ comment: 'Frais de dossier',
226
+ });
227
+ remainingAmount += applicationFeesAmountTTC;
228
+ }
229
229
 
230
230
  // =========================
231
231
  // EXPRESS
@@ -324,7 +324,7 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
324
324
  continue;
325
325
  }
326
326
 
327
- const exoAmount = isFirstNonExpress ? yearlyAmountNonExpress : nextYearlyAmountNonExpress;
327
+ const exoAmount = isFirstNonExpress ? yearlyAmountNonExpressClone : nextYearlyAmountNonExpress;
328
328
  const remainingBeforeThisExo = remainingAmount;
329
329
  remainingAmount += priceWithTaxesIncluded ? exoAmount : getTaxesIncludedAmount(exoAmount, idVat);
330
330
 
@@ -356,17 +356,17 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
356
356
  let remainingAmountByExercicePrestation = remainingAmount;
357
357
 
358
358
  // - frais d'application dès les second exo non express
359
- // if (!isFirstNonExpress) remainingAmountByExercicePrestation += applicationCostTotalTTC;
359
+ if (!isFirstNonExpress) remainingAmountByExercicePrestation += applicationCostTotalTTC;
360
360
 
361
361
  const monthlyAmount = remainingAmountByExercicePrestation / countMonthsBeforeExerciceEnd; //TTC
362
362
 
363
363
  if (monthlyAmount > 0) {
364
364
  for (let index = 1; index <= countMonthsBeforeExerciceEnd; index++) {
365
- const amount = index < countMonthsBeforeExerciceEnd ? monthlyAmount : remainingAmountByExercicePrestation;
365
+ let amount = index < countMonthsBeforeExerciceEnd ? monthlyAmount : remainingAmountByExercicePrestation;
366
366
 
367
367
  // Si besoin, on applique les frais nécessaires :
368
368
  // - 2,75% d'augmentation chaque année, sauf si souscriptiuon dans les 3 derniers mois de l'année civile)
369
- // amount = calculateFees(amount, paymentDate);
369
+ amount = calculateFees(amount, paymentDate);
370
370
 
371
371
  listPayments.push({
372
372
  amount: Math.round(100 * amount) / 100,
@@ -396,13 +396,13 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
396
396
  ? nextYearlyAmountNonExpress
397
397
  : getTaxesIncludedAmount(nextYearlyAmountNonExpress, idVat);
398
398
 
399
- const remainingAmountByExercicePrestation = remainingAmount;
399
+ let remainingAmountByExercicePrestation = remainingAmount;
400
400
  //On compte le nb de mois restants entre la date à laquelle le paiement va être créé et la date de fin d'exercice
401
401
  let countMonthsBeforeExerciceEnd = Math.ceil(dayjs(exerciceEndDate).diff(paymentDate, 'months', true));
402
402
  if (countMonthsBeforeExerciceEnd < 3) countMonthsBeforeExerciceEnd = 3;
403
403
 
404
404
  // - frais d'application dès les second exo non express
405
- // remainingAmountByExercicePrestation += applicationCostTotalTTC;
405
+ remainingAmountByExercicePrestation += applicationCostTotalTTC;
406
406
 
407
407
  const monthlyAmount = remainingAmountByExercicePrestation / countMonthsBeforeExerciceEnd;
408
408
 
@@ -410,15 +410,15 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
410
410
  if (!listPayments.length) return [];
411
411
 
412
412
  while (dayjs(listPayments.slice(-1)[0].datePayment).month() < 11) {
413
- // const amount = monthlyAmount;
413
+ let amount = monthlyAmount;
414
414
 
415
415
  // Si besoin, on applique les frais nécessaires :
416
416
  // - 2,75% d'augmentation chaque année, sauf si souscriptiuon dans les 3 derniers mois de l'année civile)
417
417
  // - frais d'application dès les second exo non express
418
- // amount = calculateFees(amount, paymentDate);
418
+ amount = calculateFees(amount, paymentDate);
419
419
 
420
420
  listPayments.push({
421
- amount: Math.round(100 * monthlyAmount) / 100,
421
+ amount: Math.round(100 * amount) / 100,
422
422
  datePayment: paymentDate,
423
423
  idPrestation,
424
424
  idPaymentMethod: PaymentMethod.DIRECT_DEBIT.id,
@@ -429,7 +429,6 @@ const calculatePrestationPriceWithPrestationList = (prestationList: IPrestationL
429
429
  * @param idLegalForm
430
430
  * @param idVat
431
431
  * @returns amount of application fees, without taxes included
432
- * @deprecated Application fees are not charged anymore
433
432
  */
434
433
  const getApplicationFeesAmount = (idLegalForm: number, idVat?: number) => {
435
434
  let applicationFeesAmount = 50;
@@ -1,5 +1,5 @@
1
1
  import * as dayjs from 'dayjs';
2
- import { IRegulation, Vat, PaymentMethod, getTaxesIncludedAmount } from '../../types';
2
+ import { IRegulation, Vat, PaymentMethod, LegalFormTypeEnum, getTaxesIncludedAmount } from '../../types';
3
3
  import MockDate from 'mockdate';
4
4
 
5
5
  import { calculatePaymentsAuto } from '../payment';
@@ -77,7 +77,7 @@ describe('Payment', () => {
77
77
  // =====================
78
78
  // errors handling
79
79
  // =====================
80
- test("should return error if prestationList doesn't correspond (!hidden, isCatalog, isComptable)", () => {
80
+ test('should return error if prestationList doesn\'t correspond (!hidden, isCatalog, isComptable)', () => {
81
81
  expect.assertions(2);
82
82
  try {
83
83
  prestationList.hidden = true;
@@ -85,8 +85,8 @@ describe('Payment', () => {
85
85
  idTypeBrand: 1,
86
86
  firstExerciceNonExpresssEndDate,
87
87
  idPrestation,
88
- // isWithApplicationFees: true,
89
- // idLegalForm: LegalFormTypeEnum.SARL,
88
+ isWithApplicationFees: true,
89
+ idLegalForm: LegalFormTypeEnum.SARL,
90
90
  prestationList: {
91
91
  ...prestationList,
92
92
  isCatalog: true,
@@ -113,8 +113,8 @@ describe('Payment', () => {
113
113
  idTypeBrand: 1,
114
114
  firstExerciceNonExpresssEndDate,
115
115
  idPrestation,
116
- // isWithApplicationFees: true,
117
- // idLegalForm: LegalFormTypeEnum.SARL,
116
+ isWithApplicationFees: true,
117
+ idLegalForm: LegalFormTypeEnum.SARL,
118
118
  prestationList,
119
119
  idVat,
120
120
  listPartialExercicePrestationExpress: [listPartialExercicePrestationExpress[0]],
@@ -136,8 +136,8 @@ describe('Payment', () => {
136
136
  idTypeBrand: 1,
137
137
  firstExerciceNonExpresssEndDate,
138
138
  idPrestation,
139
- // isWithApplicationFees: true,
140
- // idLegalForm: LegalFormTypeEnum.SARL,
139
+ isWithApplicationFees: true,
140
+ idLegalForm: LegalFormTypeEnum.SARL,
141
141
  prestationList,
142
142
  idVat,
143
143
  listPartialExercicePrestationExpress,
@@ -166,8 +166,8 @@ describe('Payment', () => {
166
166
  idTypeBrand: 1,
167
167
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
168
168
  idPrestation,
169
- // isWithApplicationFees: true,
170
- // idLegalForm: LegalFormTypeEnum.SARL,
169
+ isWithApplicationFees: true,
170
+ idLegalForm: LegalFormTypeEnum.SARL,
171
171
  prestationList,
172
172
  idVat,
173
173
  listPartialExercicePrestationExpress: [],
@@ -197,8 +197,8 @@ describe('Payment', () => {
197
197
  idTypeBrand: 1,
198
198
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
199
199
  idPrestation,
200
- // isWithApplicationFees: true,
201
- // idLegalForm: LegalFormTypeEnum.SARL,
200
+ isWithApplicationFees: true,
201
+ idLegalForm: LegalFormTypeEnum.SARL,
202
202
  prestationList,
203
203
  idVat,
204
204
  listPartialExercicePrestationExpress: [],
@@ -233,8 +233,8 @@ describe('Payment', () => {
233
233
  idTypeBrand: 1,
234
234
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
235
235
  idPrestation,
236
- // isWithApplicationFees: false,
237
- // idLegalForm: LegalFormTypeEnum.SARL,
236
+ isWithApplicationFees: false,
237
+ idLegalForm: LegalFormTypeEnum.SARL,
238
238
  prestationList,
239
239
  idVat,
240
240
  listPartialExercicePrestationExpress: [],
@@ -265,8 +265,8 @@ describe('Payment', () => {
265
265
  idTypeBrand: 1,
266
266
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
267
267
  idPrestation,
268
- // isWithApplicationFees: false,
269
- // idLegalForm: LegalFormTypeEnum.SARL,
268
+ isWithApplicationFees: false,
269
+ idLegalForm: LegalFormTypeEnum.SARL,
270
270
  prestationList,
271
271
  idVat,
272
272
  listPartialExercicePrestationExpress: [],
@@ -293,8 +293,8 @@ describe('Payment', () => {
293
293
  idTypeBrand: 1,
294
294
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
295
295
  idPrestation,
296
- // isWithApplicationFees: true,
297
- // idLegalForm: LegalFormTypeEnum.SARL,
296
+ isWithApplicationFees: true,
297
+ idLegalForm: LegalFormTypeEnum.SARL,
298
298
  prestationList,
299
299
  idVat,
300
300
  listPartialExercicePrestationExpress: [],
@@ -326,8 +326,8 @@ describe('Payment', () => {
326
326
  idTypeBrand: 1,
327
327
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
328
328
  idPrestation,
329
- // isWithApplicationFees: true,
330
- // idLegalForm: LegalFormTypeEnum.SARL,
329
+ isWithApplicationFees: true,
330
+ idLegalForm: LegalFormTypeEnum.SARL,
331
331
  prestationList,
332
332
  idVat,
333
333
  listPartialExercicePrestationExpress: [],
@@ -357,8 +357,8 @@ describe('Payment', () => {
357
357
  idTypeBrand: 1,
358
358
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
359
359
  idPrestation,
360
- // isWithApplicationFees: false,
361
- // idLegalForm: LegalFormTypeEnum.SARL,
360
+ isWithApplicationFees: false,
361
+ idLegalForm: LegalFormTypeEnum.SARL,
362
362
  prestationList,
363
363
  idVat,
364
364
  listPartialExercicePrestationExpress: [],
@@ -398,8 +398,8 @@ describe('Payment', () => {
398
398
  idTypeBrand: 1,
399
399
  firstExerciceNonExpresssEndDate,
400
400
  idPrestation,
401
- // isWithApplicationFees: true,
402
- // idLegalForm: LegalFormTypeEnum.SARL,
401
+ isWithApplicationFees: true,
402
+ idLegalForm: LegalFormTypeEnum.SARL,
403
403
  prestationList,
404
404
  idVat,
405
405
  listPartialExercicePrestationExpress: listPartialExercicePrestationExpressCloned,
@@ -420,8 +420,8 @@ describe('Payment', () => {
420
420
  idTypeBrand: 1,
421
421
  firstExerciceNonExpresssEndDate,
422
422
  idPrestation,
423
- // isWithApplicationFees: false,
424
- // idLegalForm: LegalFormTypeEnum.SARL,
423
+ isWithApplicationFees: false,
424
+ idLegalForm: LegalFormTypeEnum.SARL,
425
425
  prestationList,
426
426
  idVat,
427
427
  listPartialExercicePrestationExpress,
@@ -459,8 +459,8 @@ describe('Payment', () => {
459
459
  idTypeBrand: 1,
460
460
  firstExerciceNonExpresssEndDate,
461
461
  idPrestation,
462
- // isWithApplicationFees: false,
463
- // idLegalForm: LegalFormTypeEnum.SARL,
462
+ isWithApplicationFees: false,
463
+ idLegalForm: LegalFormTypeEnum.SARL,
464
464
  prestationList,
465
465
  idVat,
466
466
  listPartialExercicePrestationExpress,
@@ -480,8 +480,8 @@ describe('Payment', () => {
480
480
  idTypeBrand: 1,
481
481
  firstExerciceNonExpresssEndDate,
482
482
  idPrestation,
483
- // isWithApplicationFees: true,
484
- // idLegalForm: LegalFormTypeEnum.SARL,
483
+ isWithApplicationFees: true,
484
+ idLegalForm: LegalFormTypeEnum.SARL,
485
485
  prestationList,
486
486
  idVat,
487
487
  listPartialExercicePrestationExpress,
@@ -497,8 +497,8 @@ describe('Payment', () => {
497
497
  idTypeBrand: 1,
498
498
  firstExerciceNonExpresssEndDate,
499
499
  idPrestation,
500
- // isWithApplicationFees: true,
501
- // idLegalForm: LegalFormTypeEnum.SARL,
500
+ isWithApplicationFees: true,
501
+ idLegalForm: LegalFormTypeEnum.SARL,
502
502
  prestationList,
503
503
  idVat,
504
504
  listPartialExercicePrestationExpress: [],
@@ -515,8 +515,8 @@ describe('Payment', () => {
515
515
  idTypeBrand: 1,
516
516
  firstExerciceNonExpresssEndDate: dayjs('2024-12-31').toDate(),
517
517
  idPrestation,
518
- // isWithApplicationFees: true,
519
- // idLegalForm: LegalFormTypeEnum.SARL,
518
+ isWithApplicationFees: true,
519
+ idLegalForm: LegalFormTypeEnum.SARL,
520
520
  prestationList,
521
521
  idVat: Vat.TX_20.id,
522
522
  listPartialExercicePrestationExpress: [],
@@ -974,7 +974,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
974
974
  tag: 'Valeur',
975
975
  isMultiple: false,
976
976
  description: 'Autres',
977
- value: comment && comment?.length > 0 && !data.isHolidayDeposit ? 'X' : null,
977
+ value: data.isNil && !data.isHolidayDeposit ? 'X' : null,
978
978
  },
979
979
  {
980
980
  key: 'BB',
@@ -1350,7 +1350,7 @@ export function getCerfa3517Century25RegistrationField(data: Cerfa3517_2025): As
1350
1350
  tag: 'Valeur',
1351
1351
  isMultiple: false,
1352
1352
  description: 'Autres',
1353
- value: comment && comment.length > 0 ? 'X' : null,
1353
+ value: data.isNil ? 'X' : null,
1354
1354
  },
1355
1355
  {
1356
1356
  key: 'SH',
@@ -1,9 +0,0 @@
1
- import { DashboardBlock, IDashboardLayoutItem } from '../../types';
2
- import { Resource } from '../Resource';
3
- export declare class DashboardLayout extends Resource {
4
- createOrUpdate(idSociety: number, jsonLayout: IDashboardLayoutItem[]): Promise<DashboardLayout>;
5
- findOneByUserAndSociety(idSociety: number): Promise<IDashboardLayoutItem[]>;
6
- deleteByUserAndSociety(idSociety: number): Promise<true>;
7
- getAvailableDashboardBlocks(idSociety: number): Promise<DashboardBlock[]>;
8
- }
9
- //# sourceMappingURL=DashboardLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DashboardLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAI/F,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAI3E,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAG1E"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DashboardLayout = void 0;
4
- const Resource_1 = require("../Resource");
5
- class DashboardLayout extends Resource_1.Resource {
6
- createOrUpdate(idSociety, jsonLayout) {
7
- return this.axios.$post(`/societies/${idSociety}/dashboards/layouts`, { jsonLayout });
8
- }
9
- findOneByUserAndSociety(idSociety) {
10
- return this.axios.$get(`/societies/${idSociety}/dashboards/layouts`);
11
- }
12
- deleteByUserAndSociety(idSociety) {
13
- return this.axios.$delete(`/societies/${idSociety}/dashboards/layouts`);
14
- }
15
- getAvailableDashboardBlocks(idSociety) {
16
- return this.axios.$get(`/societies/${idSociety}/dashboards/features`);
17
- }
18
- }
19
- exports.DashboardLayout = DashboardLayout;
20
- //# sourceMappingURL=DashboardLayout.js.map