@silexpert/core 1.2.27 → 1.2.28

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 (377) hide show
  1. package/dist/cjs/api/index.d.ts.map +1 -1
  2. package/dist/cjs/api/index.js +8 -3
  3. package/dist/cjs/api/index.js.map +1 -1
  4. package/dist/cjs/api/resources/Employee.d.ts.map +1 -1
  5. package/dist/cjs/api/resources/Employee.js +1 -0
  6. package/dist/cjs/api/resources/Employee.js.map +1 -1
  7. package/dist/cjs/api/resources/Task.d.ts.map +1 -1
  8. package/dist/cjs/api/resources/Task.js +1 -0
  9. package/dist/cjs/api/resources/Task.js.map +1 -1
  10. package/dist/cjs/index.d.ts.map +1 -1
  11. package/dist/cjs/index.js +0 -1
  12. package/dist/cjs/index.js.map +1 -1
  13. package/dist/cjs/types/Enum/Aspone.js +32 -32
  14. package/dist/cjs/types/Enum/Aspone.js.map +1 -1
  15. package/dist/cjs/types/Enum/BalanceSheet.js +1 -1
  16. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  17. package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/BalanceSheetQuestion.js +2 -0
  19. package/dist/cjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
  20. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  21. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js +1 -0
  22. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  23. package/dist/cjs/types/Enum/RevisionGuide.d.ts.map +1 -1
  24. package/dist/cjs/types/Enum/RevisionGuide.js +5 -0
  25. package/dist/cjs/types/Enum/RevisionGuide.js.map +1 -1
  26. package/dist/cjs/types/Enum/Role.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/Role.js +1 -0
  28. package/dist/cjs/types/Enum/Role.js.map +1 -1
  29. package/dist/cjs/types/Enum/SalesContractBrandClementine.js +4 -4
  30. package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  31. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.d.ts +1 -26
  32. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.d.ts.map +1 -1
  33. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.js +6 -6
  34. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.js.map +1 -1
  35. package/dist/cjs/types/Enum/TransactionKind.d.ts.map +1 -1
  36. package/dist/cjs/types/Enum/TransactionKind.js.map +1 -1
  37. package/dist/cjs/types/Enum/TransactionStatus.d.ts.map +1 -1
  38. package/dist/cjs/types/Enum/TransactionStatus.js.map +1 -1
  39. package/dist/cjs/types/Enum/TypePayment.d.ts.map +1 -1
  40. package/dist/cjs/types/Enum/TypePayment.js +1 -0
  41. package/dist/cjs/types/Enum/TypePayment.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/accountingFiles/Ocr.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/api/accountingFiles/Ocr.js.map +1 -1
  44. package/dist/cjs/types/Interface/api/checklist/Read.d.ts +1 -0
  45. package/dist/cjs/types/Interface/api/checklist/Read.d.ts.map +1 -1
  46. package/dist/cjs/types/Interface/api/checklist/Read.js.map +1 -1
  47. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +282 -0
  48. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -0
  49. package/dist/cjs/types/Interface/api/config/ConfigType.js +3 -0
  50. package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -0
  51. package/dist/cjs/types/Interface/api/crisp/GetCrisp.d.ts.map +1 -1
  52. package/dist/cjs/types/Interface/api/crisp/GetCrisp.js.map +1 -1
  53. package/dist/cjs/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.d.ts.map +1 -1
  54. package/dist/cjs/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.js +3 -1
  55. package/dist/cjs/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.js.map +1 -1
  56. package/dist/cjs/types/Interface/api/journal/Journals.d.ts.map +1 -1
  57. package/dist/cjs/types/Interface/api/journal/Journals.js.map +1 -1
  58. package/dist/cjs/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.d.ts.map +1 -1
  59. package/dist/cjs/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js +3 -1
  60. package/dist/cjs/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js.map +1 -1
  61. package/dist/cjs/types/Interface/api/notion/NotionResponse.d.ts +4 -4
  62. package/dist/cjs/types/Interface/api/notion/NotionResponse.d.ts.map +1 -1
  63. package/dist/cjs/types/Interface/api/notion/NotionResponse.js.map +1 -1
  64. package/dist/cjs/types/Interface/api/pappers/QueryPappers.d.ts.map +1 -1
  65. package/dist/cjs/types/Interface/api/pappers/QueryPappers.js.map +1 -1
  66. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts.map +1 -1
  67. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js +3 -1
  68. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +1 -1
  69. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPromotion.d.ts.map +1 -1
  70. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPromotion.js.map +1 -1
  71. package/dist/cjs/types/Interface/api/shopify/ShopifyFinancialStatus.d.ts.map +1 -1
  72. package/dist/cjs/types/Interface/api/shopify/ShopifyFinancialStatus.js.map +1 -1
  73. package/dist/cjs/types/Interface/api/shopify/ShopifyOrder.d.ts.map +1 -1
  74. package/dist/cjs/types/Interface/api/shopify/ShopifyOrder.js.map +1 -1
  75. package/dist/cjs/types/Interface/api/shopify/discount_code.d.ts.map +1 -1
  76. package/dist/cjs/types/Interface/api/shopify/discount_code.js.map +1 -1
  77. package/dist/cjs/types/Interface/api/shopify/shipping_line.d.ts.map +1 -1
  78. package/dist/cjs/types/Interface/api/shopify/shipping_line.js.map +1 -1
  79. package/dist/cjs/types/Interface/models/IBalanceSheetQuestion.d.ts.map +1 -1
  80. package/dist/cjs/types/Interface/models/IBalanceSheetQuestion.js.map +1 -1
  81. package/dist/cjs/types/Interface/models/IFecFile.d.ts.map +1 -1
  82. package/dist/cjs/types/Interface/models/IFecFile.js.map +1 -1
  83. package/dist/cjs/types/Interface/models/IRegistration.d.ts.map +1 -1
  84. package/dist/cjs/types/Interface/models/IRegistration.js.map +1 -1
  85. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  86. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  87. package/dist/cjs/types/index.d.ts +1 -0
  88. package/dist/cjs/types/index.d.ts.map +1 -1
  89. package/dist/cjs/types/index.js +1 -0
  90. package/dist/cjs/types/index.js.map +1 -1
  91. package/dist/cjs/utils/brands.d.ts.map +1 -1
  92. package/dist/cjs/utils/brands.js +5 -0
  93. package/dist/cjs/utils/brands.js.map +1 -1
  94. package/dist/cjs/utils/checkup.d.ts.map +1 -1
  95. package/dist/cjs/utils/checkup.js +5 -0
  96. package/dist/cjs/utils/checkup.js.map +1 -1
  97. package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
  98. package/dist/cjs/utils/commercialManagement/document.js +6 -5
  99. package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
  100. package/dist/cjs/utils/commercialManagement/recurrence.js +2 -2
  101. package/dist/cjs/utils/commercialManagement/recurrence.js.map +1 -1
  102. package/dist/cjs/utils/commercialManagement/vat.d.ts.map +1 -1
  103. package/dist/cjs/utils/commercialManagement/vat.js +1 -0
  104. package/dist/cjs/utils/commercialManagement/vat.js.map +1 -1
  105. package/dist/cjs/utils/date.d.ts.map +1 -1
  106. package/dist/cjs/utils/date.js +9 -0
  107. package/dist/cjs/utils/date.js.map +1 -1
  108. package/dist/cjs/utils/decorators.d.ts.map +1 -1
  109. package/dist/cjs/utils/decorators.js +3 -4
  110. package/dist/cjs/utils/decorators.js.map +1 -1
  111. package/dist/cjs/utils/email.d.ts.map +1 -1
  112. package/dist/cjs/utils/email.js +22 -0
  113. package/dist/cjs/utils/email.js.map +1 -1
  114. package/dist/cjs/utils/isUrl.d.ts.map +1 -1
  115. package/dist/cjs/utils/isUrl.js +1 -2
  116. package/dist/cjs/utils/isUrl.js.map +1 -1
  117. package/dist/cjs/utils/noLodash.d.ts.map +1 -1
  118. package/dist/cjs/utils/noLodash.js +10 -2
  119. package/dist/cjs/utils/noLodash.js.map +1 -1
  120. package/dist/cjs/utils/objectUtils/flattenObject.d.ts.map +1 -1
  121. package/dist/cjs/utils/objectUtils/flattenObject.js +1 -0
  122. package/dist/cjs/utils/objectUtils/flattenObject.js.map +1 -1
  123. package/dist/cjs/utils/objectUtils/fullFlattenObject.d.ts.map +1 -1
  124. package/dist/cjs/utils/objectUtils/fullFlattenObject.js +1 -0
  125. package/dist/cjs/utils/objectUtils/fullFlattenObject.js.map +1 -1
  126. package/dist/cjs/utils/objectUtils/unflattenObject.d.ts.map +1 -1
  127. package/dist/cjs/utils/objectUtils/unflattenObject.js +0 -1
  128. package/dist/cjs/utils/objectUtils/unflattenObject.js.map +1 -1
  129. package/dist/cjs/utils/payment.d.ts.map +1 -1
  130. package/dist/cjs/utils/payment.js +6 -1
  131. package/dist/cjs/utils/payment.js.map +1 -1
  132. package/dist/cjs/utils/phone.d.ts.map +1 -1
  133. package/dist/cjs/utils/phone.js +1 -0
  134. package/dist/cjs/utils/phone.js.map +1 -1
  135. package/dist/cjs/utils/quotation.js +2 -2
  136. package/dist/cjs/utils/quotation.js.map +1 -1
  137. package/dist/cjs/utils/social.js +0 -1
  138. package/dist/cjs/utils/social.js.map +1 -1
  139. package/dist/cjs/utils/statutsGeneration.js +2 -2
  140. package/dist/cjs/utils/statutsGeneration.js.map +1 -1
  141. package/dist/cjs/utils/tests/payment.spec.js +30 -39
  142. package/dist/cjs/utils/tests/payment.spec.js.map +1 -1
  143. package/dist/cjs/utils/transforms/boolean.transform.d.ts.map +1 -1
  144. package/dist/cjs/utils/transforms/boolean.transform.js +3 -1
  145. package/dist/cjs/utils/transforms/boolean.transform.js.map +1 -1
  146. package/dist/cjs/utils/vat/3310/century23.d.ts.map +1 -1
  147. package/dist/cjs/utils/vat/3310/century23.js +23 -0
  148. package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
  149. package/dist/cjs/utils/vat/3310/century24.d.ts.map +1 -1
  150. package/dist/cjs/utils/vat/3310/century24.js +23 -0
  151. package/dist/cjs/utils/vat/3310/century24.js.map +1 -1
  152. package/dist/cjs/utils/vat/3517/century23.d.ts.map +1 -1
  153. package/dist/cjs/utils/vat/3517/century23.js +4 -0
  154. package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
  155. package/dist/cjs/utils/vat/registration.d.ts.map +1 -1
  156. package/dist/cjs/utils/vat/registration.js +0 -1
  157. package/dist/cjs/utils/vat/registration.js.map +1 -1
  158. package/dist/mjs/api/index.d.ts.map +1 -1
  159. package/dist/mjs/api/index.js +7 -1
  160. package/dist/mjs/api/index.js.map +1 -1
  161. package/dist/mjs/api/resources/Employee.d.ts.map +1 -1
  162. package/dist/mjs/api/resources/Employee.js +1 -0
  163. package/dist/mjs/api/resources/Employee.js.map +1 -1
  164. package/dist/mjs/api/resources/Task.d.ts.map +1 -1
  165. package/dist/mjs/api/resources/Task.js +1 -0
  166. package/dist/mjs/api/resources/Task.js.map +1 -1
  167. package/dist/mjs/index.d.ts.map +1 -1
  168. package/dist/mjs/index.js +0 -1
  169. package/dist/mjs/index.js.map +1 -1
  170. package/dist/mjs/types/Enum/Aspone.js +32 -32
  171. package/dist/mjs/types/Enum/Aspone.js.map +1 -1
  172. package/dist/mjs/types/Enum/BalanceSheet.js +1 -1
  173. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  174. package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  175. package/dist/mjs/types/Enum/BalanceSheetQuestion.js +2 -0
  176. package/dist/mjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
  177. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  178. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js +1 -0
  179. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  180. package/dist/mjs/types/Enum/RevisionGuide.d.ts.map +1 -1
  181. package/dist/mjs/types/Enum/RevisionGuide.js +5 -0
  182. package/dist/mjs/types/Enum/RevisionGuide.js.map +1 -1
  183. package/dist/mjs/types/Enum/Role.d.ts.map +1 -1
  184. package/dist/mjs/types/Enum/Role.js +1 -0
  185. package/dist/mjs/types/Enum/Role.js.map +1 -1
  186. package/dist/mjs/types/Enum/SalesContractBrandClementine.js +4 -4
  187. package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  188. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.d.ts +1 -26
  189. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.d.ts.map +1 -1
  190. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.js +6 -6
  191. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.js.map +1 -1
  192. package/dist/mjs/types/Enum/TransactionKind.d.ts.map +1 -1
  193. package/dist/mjs/types/Enum/TransactionKind.js.map +1 -1
  194. package/dist/mjs/types/Enum/TransactionStatus.d.ts.map +1 -1
  195. package/dist/mjs/types/Enum/TransactionStatus.js.map +1 -1
  196. package/dist/mjs/types/Enum/TypePayment.d.ts.map +1 -1
  197. package/dist/mjs/types/Enum/TypePayment.js +1 -0
  198. package/dist/mjs/types/Enum/TypePayment.js.map +1 -1
  199. package/dist/mjs/types/Interface/api/accountingFiles/Ocr.d.ts.map +1 -1
  200. package/dist/mjs/types/Interface/api/accountingFiles/Ocr.js.map +1 -1
  201. package/dist/mjs/types/Interface/api/checklist/Read.d.ts +1 -0
  202. package/dist/mjs/types/Interface/api/checklist/Read.d.ts.map +1 -1
  203. package/dist/mjs/types/Interface/api/checklist/Read.js.map +1 -1
  204. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +282 -0
  205. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -0
  206. package/dist/mjs/types/Interface/api/config/ConfigType.js +2 -0
  207. package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -0
  208. package/dist/mjs/types/Interface/api/crisp/GetCrisp.d.ts.map +1 -1
  209. package/dist/mjs/types/Interface/api/crisp/GetCrisp.js.map +1 -1
  210. package/dist/mjs/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.d.ts.map +1 -1
  211. package/dist/mjs/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.js +3 -1
  212. package/dist/mjs/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.js.map +1 -1
  213. package/dist/mjs/types/Interface/api/journal/Journals.d.ts.map +1 -1
  214. package/dist/mjs/types/Interface/api/journal/Journals.js.map +1 -1
  215. package/dist/mjs/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.d.ts.map +1 -1
  216. package/dist/mjs/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js +3 -1
  217. package/dist/mjs/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js.map +1 -1
  218. package/dist/mjs/types/Interface/api/notion/NotionResponse.d.ts +4 -4
  219. package/dist/mjs/types/Interface/api/notion/NotionResponse.d.ts.map +1 -1
  220. package/dist/mjs/types/Interface/api/notion/NotionResponse.js.map +1 -1
  221. package/dist/mjs/types/Interface/api/pappers/QueryPappers.d.ts.map +1 -1
  222. package/dist/mjs/types/Interface/api/pappers/QueryPappers.js +3 -0
  223. package/dist/mjs/types/Interface/api/pappers/QueryPappers.js.map +1 -1
  224. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts.map +1 -1
  225. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js +4 -1
  226. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +1 -1
  227. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPromotion.d.ts.map +1 -1
  228. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPromotion.js.map +1 -1
  229. package/dist/mjs/types/Interface/api/shopify/ShopifyFinancialStatus.d.ts.map +1 -1
  230. package/dist/mjs/types/Interface/api/shopify/ShopifyFinancialStatus.js.map +1 -1
  231. package/dist/mjs/types/Interface/api/shopify/ShopifyOrder.d.ts.map +1 -1
  232. package/dist/mjs/types/Interface/api/shopify/ShopifyOrder.js.map +1 -1
  233. package/dist/mjs/types/Interface/api/shopify/discount_code.d.ts.map +1 -1
  234. package/dist/mjs/types/Interface/api/shopify/discount_code.js.map +1 -1
  235. package/dist/mjs/types/Interface/api/shopify/shipping_line.d.ts.map +1 -1
  236. package/dist/mjs/types/Interface/api/shopify/shipping_line.js.map +1 -1
  237. package/dist/mjs/types/Interface/models/IBalanceSheetQuestion.d.ts.map +1 -1
  238. package/dist/mjs/types/Interface/models/IBalanceSheetQuestion.js.map +1 -1
  239. package/dist/mjs/types/Interface/models/IFecFile.d.ts.map +1 -1
  240. package/dist/mjs/types/Interface/models/IFecFile.js.map +1 -1
  241. package/dist/mjs/types/Interface/models/IRegistration.d.ts.map +1 -1
  242. package/dist/mjs/types/Interface/models/IRegistration.js.map +1 -1
  243. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  244. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  245. package/dist/mjs/types/index.d.ts +1 -0
  246. package/dist/mjs/types/index.d.ts.map +1 -1
  247. package/dist/mjs/types/index.js +1 -0
  248. package/dist/mjs/types/index.js.map +1 -1
  249. package/dist/mjs/utils/brands.d.ts.map +1 -1
  250. package/dist/mjs/utils/brands.js +5 -0
  251. package/dist/mjs/utils/brands.js.map +1 -1
  252. package/dist/mjs/utils/checkup.d.ts.map +1 -1
  253. package/dist/mjs/utils/checkup.js +5 -0
  254. package/dist/mjs/utils/checkup.js.map +1 -1
  255. package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
  256. package/dist/mjs/utils/commercialManagement/document.js +2 -1
  257. package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
  258. package/dist/mjs/utils/commercialManagement/recurrence.js +2 -2
  259. package/dist/mjs/utils/commercialManagement/recurrence.js.map +1 -1
  260. package/dist/mjs/utils/commercialManagement/vat.d.ts.map +1 -1
  261. package/dist/mjs/utils/commercialManagement/vat.js +1 -0
  262. package/dist/mjs/utils/commercialManagement/vat.js.map +1 -1
  263. package/dist/mjs/utils/date.d.ts.map +1 -1
  264. package/dist/mjs/utils/date.js +9 -0
  265. package/dist/mjs/utils/date.js.map +1 -1
  266. package/dist/mjs/utils/decorators.d.ts.map +1 -1
  267. package/dist/mjs/utils/decorators.js +3 -4
  268. package/dist/mjs/utils/decorators.js.map +1 -1
  269. package/dist/mjs/utils/email.d.ts.map +1 -1
  270. package/dist/mjs/utils/email.js +22 -0
  271. package/dist/mjs/utils/email.js.map +1 -1
  272. package/dist/mjs/utils/isUrl.d.ts.map +1 -1
  273. package/dist/mjs/utils/isUrl.js +1 -2
  274. package/dist/mjs/utils/isUrl.js.map +1 -1
  275. package/dist/mjs/utils/noLodash.d.ts.map +1 -1
  276. package/dist/mjs/utils/noLodash.js +8 -1
  277. package/dist/mjs/utils/noLodash.js.map +1 -1
  278. package/dist/mjs/utils/objectUtils/flattenObject.d.ts.map +1 -1
  279. package/dist/mjs/utils/objectUtils/flattenObject.js +1 -0
  280. package/dist/mjs/utils/objectUtils/flattenObject.js.map +1 -1
  281. package/dist/mjs/utils/objectUtils/fullFlattenObject.d.ts.map +1 -1
  282. package/dist/mjs/utils/objectUtils/fullFlattenObject.js +1 -0
  283. package/dist/mjs/utils/objectUtils/fullFlattenObject.js.map +1 -1
  284. package/dist/mjs/utils/objectUtils/unflattenObject.d.ts.map +1 -1
  285. package/dist/mjs/utils/objectUtils/unflattenObject.js +0 -1
  286. package/dist/mjs/utils/objectUtils/unflattenObject.js.map +1 -1
  287. package/dist/mjs/utils/payment.d.ts.map +1 -1
  288. package/dist/mjs/utils/payment.js +6 -1
  289. package/dist/mjs/utils/payment.js.map +1 -1
  290. package/dist/mjs/utils/phone.d.ts.map +1 -1
  291. package/dist/mjs/utils/phone.js +1 -0
  292. package/dist/mjs/utils/phone.js.map +1 -1
  293. package/dist/mjs/utils/quotation.js +1 -1
  294. package/dist/mjs/utils/quotation.js.map +1 -1
  295. package/dist/mjs/utils/social.js +0 -1
  296. package/dist/mjs/utils/social.js.map +1 -1
  297. package/dist/mjs/utils/statutsGeneration.js +2 -2
  298. package/dist/mjs/utils/statutsGeneration.js.map +1 -1
  299. package/dist/mjs/utils/tests/payment.spec.js +15 -15
  300. package/dist/mjs/utils/tests/payment.spec.js.map +1 -1
  301. package/dist/mjs/utils/transforms/boolean.transform.d.ts.map +1 -1
  302. package/dist/mjs/utils/transforms/boolean.transform.js +3 -1
  303. package/dist/mjs/utils/transforms/boolean.transform.js.map +1 -1
  304. package/dist/mjs/utils/vat/3310/century23.d.ts.map +1 -1
  305. package/dist/mjs/utils/vat/3310/century23.js +23 -0
  306. package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
  307. package/dist/mjs/utils/vat/3310/century24.d.ts.map +1 -1
  308. package/dist/mjs/utils/vat/3310/century24.js +23 -0
  309. package/dist/mjs/utils/vat/3310/century24.js.map +1 -1
  310. package/dist/mjs/utils/vat/3517/century23.d.ts.map +1 -1
  311. package/dist/mjs/utils/vat/3517/century23.js +4 -0
  312. package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
  313. package/dist/mjs/utils/vat/registration.d.ts.map +1 -1
  314. package/dist/mjs/utils/vat/registration.js +0 -1
  315. package/dist/mjs/utils/vat/registration.js.map +1 -1
  316. package/eslint.config.mjs +47 -0
  317. package/package.json +7 -10
  318. package/ts/api/index.ts +9 -2
  319. package/ts/api/resources/Employee.ts +1 -0
  320. package/ts/api/resources/Task.ts +1 -0
  321. package/ts/index.ts +0 -1
  322. package/ts/types/Enum/Aspone.ts +32 -32
  323. package/ts/types/Enum/BalanceSheet.ts +1 -1
  324. package/ts/types/Enum/BalanceSheetQuestion.ts +2 -0
  325. package/ts/types/Enum/BalanceSheetQuestionWording.ts +1 -0
  326. package/ts/types/Enum/RevisionGuide.ts +5 -0
  327. package/ts/types/Enum/Role.ts +1 -0
  328. package/ts/types/Enum/SalesContractBrandClementine.ts +4 -4
  329. package/ts/types/Enum/SalesContractBrandPourcentage.ts +7 -7
  330. package/ts/types/Enum/TransactionKind.ts +1 -0
  331. package/ts/types/Enum/TransactionStatus.ts +1 -0
  332. package/ts/types/Enum/TypePayment.ts +1 -0
  333. package/ts/types/Interface/api/accountingFiles/Ocr.ts +1 -0
  334. package/ts/types/Interface/api/checklist/Read.ts +1 -0
  335. package/ts/types/Interface/api/config/ConfigType.ts +325 -0
  336. package/ts/types/Interface/api/crisp/GetCrisp.ts +2 -0
  337. package/ts/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.ts +1 -0
  338. package/ts/types/Interface/api/journal/Journals.ts +0 -1
  339. package/ts/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.ts +1 -0
  340. package/ts/types/Interface/api/notion/NotionResponse.ts +2 -4
  341. package/ts/types/Interface/api/pappers/QueryPappers.ts +9 -0
  342. package/ts/types/Interface/api/promoCode/CreateDefaultPromoCode.ts +1 -0
  343. package/ts/types/Interface/api/promoCode/ReadDefaultPromotion.ts +1 -0
  344. package/ts/types/Interface/api/shopify/ShopifyFinancialStatus.ts +1 -0
  345. package/ts/types/Interface/api/shopify/ShopifyOrder.ts +2 -0
  346. package/ts/types/Interface/api/shopify/discount_code.ts +1 -0
  347. package/ts/types/Interface/api/shopify/shipping_line.ts +2 -0
  348. package/ts/types/Interface/models/IBalanceSheetQuestion.ts +1 -0
  349. package/ts/types/Interface/models/IFecFile.ts +1 -0
  350. package/ts/types/Interface/models/IRegistration.ts +1 -0
  351. package/ts/types/Interface/models/IUser.ts +1 -0
  352. package/ts/types/index.ts +1 -0
  353. package/ts/utils/brands.ts +5 -0
  354. package/ts/utils/checkup.ts +5 -0
  355. package/ts/utils/commercialManagement/document.ts +3 -2
  356. package/ts/utils/commercialManagement/recurrence.ts +2 -2
  357. package/ts/utils/commercialManagement/vat.ts +1 -0
  358. package/ts/utils/date.ts +9 -0
  359. package/ts/utils/decorators.ts +5 -4
  360. package/ts/utils/email.ts +22 -1
  361. package/ts/utils/isUrl.ts +1 -2
  362. package/ts/utils/noLodash.ts +7 -1
  363. package/ts/utils/objectUtils/flattenObject.ts +1 -0
  364. package/ts/utils/objectUtils/fullFlattenObject.ts +1 -0
  365. package/ts/utils/objectUtils/unflattenObject.ts +0 -1
  366. package/ts/utils/payment.ts +8 -3
  367. package/ts/utils/phone.ts +1 -0
  368. package/ts/utils/quotation.ts +1 -1
  369. package/ts/utils/social.ts +1 -1
  370. package/ts/utils/statutsGeneration.ts +4 -4
  371. package/ts/utils/tests/payment.spec.ts +15 -15
  372. package/ts/utils/transforms/boolean.transform.ts +1 -0
  373. package/ts/utils/vat/3310/century23.ts +24 -0
  374. package/ts/utils/vat/3310/century24.ts +23 -0
  375. package/ts/utils/vat/3517/century23.ts +4 -0
  376. package/ts/utils/vat/registration.ts +0 -1
  377. package/tsconfig-base.json +1 -2
@@ -1 +1 @@
1
- {"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/registration.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,eAAe,EACf,aAAa,EAGb,gBAAgB,EAAE,oBAAoB,EACvC,MAAM,aAAa,CAAC;AAWrB,wBAAgB,QAAQ,CAAC,YAAY,EAAE,gBAAgB,GAAG,oBAAoB,EAAE,EAAE,CAsGjF;AAED,wBAAgB,gCAAgC,CAAC,YAAY,EAAE,aAAa,GAAG;IAAE,IAAI,EAAE,eAAe,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;CAAE,CAyC/K"}
1
+ {"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/registration.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,eAAe,EACf,aAAa,EAGb,gBAAgB,EAAE,oBAAoB,EACvC,MAAM,aAAa,CAAC;AAWrB,wBAAgB,QAAQ,CAAC,YAAY,EAAE,gBAAgB,GAAG,oBAAoB,EAAE,EAAE,CAsGjF;AAED,wBAAgB,gCAAgC,CAAC,YAAY,EAAE,aAAa,GAAG;IAAE,IAAI,EAAE,eAAe,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;CAAE,CAwC/K"}
@@ -115,7 +115,6 @@ export function getTypeAndAmountFromRegistration(registration) {
115
115
  return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };
116
116
  }
117
117
  if (registration.idCerfaType === CerfaType.CERFA_3514) {
118
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
119
118
  const payload = registration.payload.cerfa3514;
120
119
  const other = { collectable: payload.vatAmountCollected, deductible: payload.vatAmountDeductible };
121
120
  if (payload?.vatAmountToPay > 0)
@@ -1 +1 @@
1
- {"version":3,"file":"registration.js","sourceRoot":"","sources":["../../../../ts/utils/vat/registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAIL,SAAS,EACT,eAAe,EAIyB,iBAAiB,EAAE,qBAAqB,EAAE,OAAO,GAC1F,MAAM,aAAa,CAAC;AAGrB,MAAM,YAAY,GAAyB;IACzC,KAAK,EAAE,qBAAqB,CAAC,WAAW;IACxC,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;CACjB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AY,CAAC,gBAAgB,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;YAC3D,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAG,CAAC;QACtH,CAAC;aAAM,IAAI,YAAY,CAAC,gBAAgB,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;YAClE,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAG,CAAC;QAC7H,CAAC;aAAM,IAAI,YAAY,CAAC,gBAAgB,EAAE,IAAI,KAAK,OAAO,CAAC,UAAU,EAAE,CAAC;YACtE,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAG,CAAC;QAC7H,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAG,CAAC;IACtH,CAAC;IAED,OAAO;QACL,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC;KACxD,CAAC;AACJ,CAAC","sourcesContent":["import * as dayjs from 'dayjs';\nimport { isDefined } from 'class-validator';\nimport { reverse } from 'lodash';\nimport {\n Cerfa2571_2023,\n Cerfa3310_2023,\n Cerfa3514_2022,\n CerfaType,\n CustomerVatType,\n IRegistration,\n InterchangeHistory,\n ReadDeclaration,\n ReadRegistration, ReadRegistrationTick, RegistrationState, RegistrationTickState, TaxType,\n} from '../../types';\nimport { Cerfa3517_2023 } from '../../types/Interface/api/cerfa/3517';\n\nconst waitingState: ReadRegistrationTick = {\n state: RegistrationTickState.IN_PROGRESS,\n title: 'En cours de traitement',\n details: [],\n date: null,\n isPayment: false,\n};\n\nexport function getTicks(registration: ReadRegistration): ReadRegistrationTick[][] {\n const declarations: Array<ReadDeclaration> = registration.response?.declarations ?? [];\n const history : InterchangeHistory[] = registration.response?.history;\n\n if (registration.state === RegistrationState.IN_PROGRESS) {\n const data: ReadRegistrationTick[][] = [];\n\n declarations.forEach((declaration) => {\n const result = [\n {\n type: isDefined(declaration?.type) && isDefined(declaration?.declarationType?.label) ? `${declaration?.type} - ${declaration?.declarationType?.label}` : null,\n state: RegistrationTickState.FINISHED,\n title: 'Déclaration envoyée',\n details: [],\n date: registration.sendAt ? dayjs(registration.sendAt).toISOString() : null,\n isPayment: false,\n },\n waitingState,\n waitingState,\n waitingState,\n ];\n\n if (registration.amountToPay && registration.amountToPay > 0) {\n result.push({\n ...waitingState,\n isPayment: true,\n });\n }\n\n data.push(result);\n });\n\n return data;\n } if ([RegistrationState.ACCEPTED, RegistrationState.REFUSED].includes(registration.state)) {\n const data: ReadRegistrationTick[][] = [];\n\n if (!declarations.length) {\n const response: ReadRegistrationTick[] = [\n {\n type: null,\n state: RegistrationTickState.FINISHED,\n title: 'Déclaration envoyée',\n date: registration.sendAt ? dayjs(registration.sendAt).toISOString() : null,\n details: [],\n },\n {\n state: RegistrationTickState.FAILED,\n title: history?.find((h) => h.isError)?.label ?? '',\n details: history?.find((h) => h.isError)?.stateDetailsHistory ?? [],\n date: history?.find((h) => h.isError)?.date ?? null,\n },\n waitingState,\n waitingState,\n ];\n\n if (registration.amountToPay && registration.amountToPay > 0) {\n response.push({\n ...waitingState,\n isPayment: true,\n });\n }\n\n data.push(response);\n }\n\n declarations.forEach((declaration) => {\n const response: ReadRegistrationTick[] = [\n {\n type: isDefined(declaration?.type) && isDefined(declaration?.declarationType?.label) ? `${declaration?.type} - ${declaration?.declarationType?.label}` : null,\n state: RegistrationTickState.FINISHED,\n title: 'Déclaration envoyée',\n date: registration.sendAt ? dayjs(registration.sendAt).toISOString() : null,\n details: [],\n },\n ...reverse(declaration.states).map((d: InterchangeHistory) => ({\n state: d.isError ? RegistrationTickState.FAILED : RegistrationTickState.FINISHED,\n title: d.label ?? null,\n details: d?.stateDetailsHistory,\n date: d.date ?? null,\n })),\n ];\n\n for (let index = declaration.states.length; index < 3; index += 1) {\n response.push({ ...waitingState, title: null });\n }\n\n if (isDefined(declaration.payment)) {\n response.push({\n state: declaration.payment.isError ? RegistrationTickState.FAILED : declaration.payment.isError === null ? RegistrationTickState.IN_PROGRESS : RegistrationTickState.FINISHED,\n title: declaration.payment?.label ?? '',\n details: [],\n isPayment: true,\n date: declaration.payment.date ?? null,\n });\n }\n data.push(response);\n });\n\n return data;\n }\n\n return [];\n}\n\nexport function getTypeAndAmountFromRegistration(registration: IRegistration): { type: CustomerVatType | null; amount: number | null; collectable: number; deductible: number; } {\n if (registration.idCerfaType === CerfaType.CERFA_3310) {\n const payload = registration.payload.cerfa3310 as Cerfa3310_2023;\n const other = { collectable: payload.vat?.grossDue, deductible: payload.vat?.deductible.total };\n if (payload?.isNil) return { type: CustomerVatType.VAT_TO_NIL, amount: 0, ...other };\n if (payload?.toPay?.total > 0) return { type: CustomerVatType.VAT_TO_PAY, amount: payload.toPay.total, ...other };\n if (payload?.credit?.refundAsked > 0) return { type: CustomerVatType.VAT_REFUND, amount: payload.credit.refundAsked, ...other };\n if (payload?.credit?.toReport > 0) return { type: CustomerVatType.VAT_REPORT, amount: payload.credit.toReport, ...other };\n return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };\n } if (registration.idCerfaType === CerfaType.CERFA_3514) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const payload = registration.payload.cerfa3514 as Cerfa3514_2022;\n const other = { collectable: payload.vatAmountCollected, deductible: payload.vatAmountDeductible };\n if (payload?.vatAmountToPay > 0) return { type: CustomerVatType.VAT_TO_PAY, amount: payload.vatAmountToPay, ...other };\n if (payload?.vatRefundedOnInvests) return { type: CustomerVatType.VAT_REFUND, amount: payload.vatRefundedOnInvests, ...other };\n return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };\n } if (registration.idCerfaType === CerfaType.CERFA_3517) {\n const payload = registration.payload.cerfa3517 as Cerfa3517_2023;\n const other = { collectable: payload.other.total, deductible: payload.deductible.total };\n if (payload?.isNil) return { type: CustomerVatType.VAT_TO_NIL, amount: 0, ...other };\n if (payload?.recapitulation?.toPay > 0) return { type: CustomerVatType.VAT_TO_PAY, amount: payload?.recapitulation?.toPay, ...other };\n if (payload?.recapitulation?.refund > 0) return { type: CustomerVatType.VAT_REFUND, amount: payload?.recapitulation?.refund, ...other };\n if (payload?.recapitulation?.creditToReport > 0 || payload?.recapitulation?.imputedCredit > 0) return { type: CustomerVatType.VAT_REPORT, amount: payload?.recapitulation?.creditToReport ?? payload?.recapitulation?.imputedCredit, ...other };\n return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };\n } if ([CerfaType.CERFA_2571_2023_A, CerfaType.CERFA_2571_2023_B, CerfaType.CERFA_2571_2023_C, CerfaType.CERFA_2571_2023_D].includes(registration.idCerfaType)) {\n const payload = registration.payload.cerfa2571 as Cerfa2571_2023;\n\n if (registration.customerIsRegime?.type === TaxType.TO_PAY) {\n return { type: CustomerVatType.VAT_TO_PAY, amount: payload.companyTax.toPay.total, collectable: 0, deductible: 0 };\n } else if (registration.customerIsRegime?.type === TaxType.REFUND) {\n return { type: CustomerVatType.VAT_REFUND, amount: registration.customerIsRegime?.amount, collectable: 0, deductible: 0 };\n } else if (registration.customerIsRegime?.type === TaxType.REPORTABLE) {\n return { type: CustomerVatType.VAT_REPORT, amount: registration.customerIsRegime?.amount, collectable: 0, deductible: 0 };\n }\n\n return { type: CustomerVatType.VAT_TO_PAY, amount: payload.companyTax.toPay.total, collectable: 0, deductible: 0 };\n }\n\n return {\n type: null, amount: null, collectable: 0, deductible: 0,\n };\n}"]}
1
+ {"version":3,"file":"registration.js","sourceRoot":"","sources":["../../../../ts/utils/vat/registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAIL,SAAS,EACT,eAAe,EAIyB,iBAAiB,EAAE,qBAAqB,EAAE,OAAO,GAC1F,MAAM,aAAa,CAAC;AAGrB,MAAM,YAAY,GAAyB;IACzC,KAAK,EAAE,qBAAqB,CAAC,WAAW;IACxC,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAC,YAA8B;IACrD,MAAM,YAAY,GAA2B,YAAY,CAAC,QAAQ,EAAE,YAAY,IAAI,EAAE,CAAC;IACvF,MAAM,OAAO,GAA0B,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC;IAEtE,IAAI,YAAY,CAAC,KAAK,KAAK,iBAAiB,CAAC,WAAW,EAAE,CAAC;QACzD,MAAM,IAAI,GAA6B,EAAE,CAAC;QAE1C,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;YACnC,MAAM,MAAM,GAAG;gBACb;oBACE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,SAAS,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,EAAE,IAAI,MAAM,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI;oBAC7J,KAAK,EAAE,qBAAqB,CAAC,QAAQ;oBACrC,KAAK,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AgB,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAG,CAAC;QAC7H,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAG,CAAC;IACtH,CAAC;IAED,OAAO;QACL,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC;KACxD,CAAC;AACJ,CAAC","sourcesContent":["import * as dayjs from 'dayjs';\nimport { isDefined } from 'class-validator';\nimport { reverse } from 'lodash';\nimport {\n Cerfa2571_2023,\n Cerfa3310_2023,\n Cerfa3514_2022,\n CerfaType,\n CustomerVatType,\n IRegistration,\n InterchangeHistory,\n ReadDeclaration,\n ReadRegistration, ReadRegistrationTick, RegistrationState, RegistrationTickState, TaxType,\n} from '../../types';\nimport { Cerfa3517_2023 } from '../../types/Interface/api/cerfa/3517';\n\nconst waitingState: ReadRegistrationTick = {\n state: RegistrationTickState.IN_PROGRESS,\n title: 'En cours de traitement',\n details: [],\n date: null,\n isPayment: false,\n};\n\nexport function getTicks(registration: ReadRegistration): ReadRegistrationTick[][] {\n const declarations: Array<ReadDeclaration> = registration.response?.declarations ?? [];\n const history : InterchangeHistory[] = registration.response?.history;\n\n if (registration.state === RegistrationState.IN_PROGRESS) {\n const data: ReadRegistrationTick[][] = [];\n\n declarations.forEach((declaration) => {\n const result = [\n {\n type: isDefined(declaration?.type) && isDefined(declaration?.declarationType?.label) ? `${declaration?.type} - ${declaration?.declarationType?.label}` : null,\n state: RegistrationTickState.FINISHED,\n title: 'Déclaration envoyée',\n details: [],\n date: registration.sendAt ? dayjs(registration.sendAt).toISOString() : null,\n isPayment: false,\n },\n waitingState,\n waitingState,\n waitingState,\n ];\n\n if (registration.amountToPay && registration.amountToPay > 0) {\n result.push({\n ...waitingState,\n isPayment: true,\n });\n }\n\n data.push(result);\n });\n\n return data;\n } if ([RegistrationState.ACCEPTED, RegistrationState.REFUSED].includes(registration.state)) {\n const data: ReadRegistrationTick[][] = [];\n\n if (!declarations.length) {\n const response: ReadRegistrationTick[] = [\n {\n type: null,\n state: RegistrationTickState.FINISHED,\n title: 'Déclaration envoyée',\n date: registration.sendAt ? dayjs(registration.sendAt).toISOString() : null,\n details: [],\n },\n {\n state: RegistrationTickState.FAILED,\n title: history?.find((h) => h.isError)?.label ?? '',\n details: history?.find((h) => h.isError)?.stateDetailsHistory ?? [],\n date: history?.find((h) => h.isError)?.date ?? null,\n },\n waitingState,\n waitingState,\n ];\n\n if (registration.amountToPay && registration.amountToPay > 0) {\n response.push({\n ...waitingState,\n isPayment: true,\n });\n }\n\n data.push(response);\n }\n\n declarations.forEach((declaration) => {\n const response: ReadRegistrationTick[] = [\n {\n type: isDefined(declaration?.type) && isDefined(declaration?.declarationType?.label) ? `${declaration?.type} - ${declaration?.declarationType?.label}` : null,\n state: RegistrationTickState.FINISHED,\n title: 'Déclaration envoyée',\n date: registration.sendAt ? dayjs(registration.sendAt).toISOString() : null,\n details: [],\n },\n ...reverse(declaration.states).map((d: InterchangeHistory) => ({\n state: d.isError ? RegistrationTickState.FAILED : RegistrationTickState.FINISHED,\n title: d.label ?? null,\n details: d?.stateDetailsHistory,\n date: d.date ?? null,\n })),\n ];\n\n for (let index = declaration.states.length; index < 3; index += 1) {\n response.push({ ...waitingState, title: null });\n }\n\n if (isDefined(declaration.payment)) {\n response.push({\n state: declaration.payment.isError ? RegistrationTickState.FAILED : declaration.payment.isError === null ? RegistrationTickState.IN_PROGRESS : RegistrationTickState.FINISHED,\n title: declaration.payment?.label ?? '',\n details: [],\n isPayment: true,\n date: declaration.payment.date ?? null,\n });\n }\n data.push(response);\n });\n\n return data;\n }\n\n return [];\n}\n\nexport function getTypeAndAmountFromRegistration(registration: IRegistration): { type: CustomerVatType | null; amount: number | null; collectable: number; deductible: number; } {\n if (registration.idCerfaType === CerfaType.CERFA_3310) {\n const payload = registration.payload.cerfa3310 as Cerfa3310_2023;\n const other = { collectable: payload.vat?.grossDue, deductible: payload.vat?.deductible.total };\n if (payload?.isNil) return { type: CustomerVatType.VAT_TO_NIL, amount: 0, ...other };\n if (payload?.toPay?.total > 0) return { type: CustomerVatType.VAT_TO_PAY, amount: payload.toPay.total, ...other };\n if (payload?.credit?.refundAsked > 0) return { type: CustomerVatType.VAT_REFUND, amount: payload.credit.refundAsked, ...other };\n if (payload?.credit?.toReport > 0) return { type: CustomerVatType.VAT_REPORT, amount: payload.credit.toReport, ...other };\n return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };\n } if (registration.idCerfaType === CerfaType.CERFA_3514) {\n const payload = registration.payload.cerfa3514 as Cerfa3514_2022;\n const other = { collectable: payload.vatAmountCollected, deductible: payload.vatAmountDeductible };\n if (payload?.vatAmountToPay > 0) return { type: CustomerVatType.VAT_TO_PAY, amount: payload.vatAmountToPay, ...other };\n if (payload?.vatRefundedOnInvests) return { type: CustomerVatType.VAT_REFUND, amount: payload.vatRefundedOnInvests, ...other };\n return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };\n } if (registration.idCerfaType === CerfaType.CERFA_3517) {\n const payload = registration.payload.cerfa3517 as Cerfa3517_2023;\n const other = { collectable: payload.other.total, deductible: payload.deductible.total };\n if (payload?.isNil) return { type: CustomerVatType.VAT_TO_NIL, amount: 0, ...other };\n if (payload?.recapitulation?.toPay > 0) return { type: CustomerVatType.VAT_TO_PAY, amount: payload?.recapitulation?.toPay, ...other };\n if (payload?.recapitulation?.refund > 0) return { type: CustomerVatType.VAT_REFUND, amount: payload?.recapitulation?.refund, ...other };\n if (payload?.recapitulation?.creditToReport > 0 || payload?.recapitulation?.imputedCredit > 0) return { type: CustomerVatType.VAT_REPORT, amount: payload?.recapitulation?.creditToReport ?? payload?.recapitulation?.imputedCredit, ...other };\n return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };\n } if ([CerfaType.CERFA_2571_2023_A, CerfaType.CERFA_2571_2023_B, CerfaType.CERFA_2571_2023_C, CerfaType.CERFA_2571_2023_D].includes(registration.idCerfaType)) {\n const payload = registration.payload.cerfa2571 as Cerfa2571_2023;\n\n if (registration.customerIsRegime?.type === TaxType.TO_PAY) {\n return { type: CustomerVatType.VAT_TO_PAY, amount: payload.companyTax.toPay.total, collectable: 0, deductible: 0 };\n } else if (registration.customerIsRegime?.type === TaxType.REFUND) {\n return { type: CustomerVatType.VAT_REFUND, amount: registration.customerIsRegime?.amount, collectable: 0, deductible: 0 };\n } else if (registration.customerIsRegime?.type === TaxType.REPORTABLE) {\n return { type: CustomerVatType.VAT_REPORT, amount: registration.customerIsRegime?.amount, collectable: 0, deductible: 0 };\n }\n\n return { type: CustomerVatType.VAT_TO_PAY, amount: payload.companyTax.toPay.total, collectable: 0, deductible: 0 };\n }\n\n return {\n type: null, amount: null, collectable: 0, deductible: 0,\n };\n}"]}
@@ -0,0 +1,47 @@
1
+ import tseslint from 'typescript-eslint';
2
+ import eslintConfigPrettier from 'eslint-config-prettier';
3
+
4
+ export default tseslint.config(
5
+ {
6
+ ignores: ['dist'],
7
+ },
8
+ eslintConfigPrettier,
9
+ tseslint.configs.recommendedTypeChecked,
10
+ {
11
+ languageOptions: {
12
+ parserOptions: {
13
+ project: ['../tsconfig.eslint.json'],
14
+ tsconfigRootDir: import.meta.dirname,
15
+ }
16
+ },
17
+ rules: {
18
+ '@typescript-eslint/no-unsafe-assignment': 'off',
19
+ '@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
20
+ '@typescript-eslint/interface-name-prefix': 'off',
21
+ '@typescript-eslint/explicit-function-return-type': 'off',
22
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
23
+ '@typescript-eslint/no-unsafe-assignment': 'off',
24
+ '@typescript-eslint/no-unsafe-argument': 'off',
25
+ '@typescript-eslint/no-explicit-any': 'off',
26
+ '@typescript-eslint/no-unsafe-enum-comparison': 'off',
27
+ '@typescript-eslint/no-unsafe-call': 'off',
28
+ '@typescript-eslint/no-unsafe-member-access': 'off',
29
+ 'semi': 2,
30
+ 'no-console': 'error',
31
+ 'quotes': ['error', 'single'],
32
+ 'max-len': 'off',
33
+ '@typescript-eslint/naming-convention': 'off',
34
+ 'import/no-extraneous-dependencies': 'off',
35
+ '@typescript-eslint/no-var-requires': 'off',
36
+ 'eol-last': 'off',
37
+ 'class-methods-use-this': 'off',
38
+ '@typescript-eslint/ban-ts-comment': 'off',
39
+ '@typescript-eslint/lines-between-class-members':'off',
40
+ 'no-nested-ternary': 'off',
41
+ 'max-classes-per-file': 'off',
42
+ 'no-underscore-dangle': 'off',
43
+ 'import/prefer-default-export': 'off',
44
+ 'no-underscore-dangle': 'off',
45
+ },
46
+ }
47
+ );
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.2.27",
3
+ "version": "1.2.28",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
7
- "type": "commonjs",
8
7
  "scripts": {
9
8
  "clean": "rimraf ./es ./js ./dist",
10
9
  "watch": "tsc -w",
11
- "lint": "eslint ts --fix --ext .js,.ts",
10
+ "lint": "eslint .",
12
11
  "tsc": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
13
12
  "compile": "yarn tsc",
14
13
  "import:interface": "node --require ts-node/register importInterfaces.ts",
@@ -43,21 +42,19 @@
43
42
  "@types/ejs": "^3.0.6",
44
43
  "@types/node": "^22.8.1",
45
44
  "@types/validator": "^13.11.1",
46
- "@typescript-eslint/eslint-plugin": "6.5.0",
47
- "@typescript-eslint/parser": "6.5.0",
48
45
  "babel-plugin-replace-import-extension": "^1.1.3",
49
46
  "babel-preset-env": "^1.7.0",
50
- "eslint": "^8.47.0",
51
- "eslint-config-airbnb-typescript": "^17.1.0",
52
- "eslint-config-prettier": "^9.0.0",
53
- "eslint-plugin-import": "^2.25.2",
47
+ "eslint": "^9.16.0",
48
+ "eslint-config-airbnb-typescript": "^18.0.0",
49
+ "eslint-config-prettier": "^9.1.0",
54
50
  "husky": "^9.1.6",
55
51
  "prettier": "^3.0.2",
56
52
  "reflect-metadata": "^0.2.2",
57
53
  "rimraf": "^6.0.1",
58
54
  "standard-version": "^9.3.0",
59
55
  "ts-node": "^10.9.2",
60
- "typescript": "5.6.3"
56
+ "typescript": "5.6.3",
57
+ "typescript-eslint": "^8.16.0"
61
58
  },
62
59
  "peerDependencies": {
63
60
  "@babel/runtime": "^7.6.3",
package/ts/api/index.ts CHANGED
@@ -1,5 +1,6 @@
1
- /* eslint-disable @typescript-eslint/no-shadow */
1
+
2
2
  import { AxiosInstance } from 'axios';
3
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
3
4
  const axios = require('axios').default;
4
5
 
5
6
  import { resources } from './resources';
@@ -13,26 +14,32 @@ export const Silex = (params: { url: string, loginWith?: any, setToken?: any })
13
14
  baseURL: params.url || `${DEFAULT_HOST}${DEFAULT_BASE_PATH}`,
14
15
  });
15
16
 
17
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
16
18
  const wrapAxios = (instance: any) => ({
17
19
  ...instance,
18
20
  async $get(...params: any[]) {
19
21
  const { data } = await instance.get(...params);
22
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
20
23
  return data;
21
24
  },
22
25
  async $put(...params: any[]) {
23
26
  const { data } = await instance.put(...params);
27
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
24
28
  return data;
25
29
  },
26
30
  async $post(...params: any[]) {
27
31
  const { data } = await instance.post(...params);
32
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
28
33
  return data;
29
34
  },
30
35
  async $patch(...params: any[]) {
31
36
  const { data } = await instance.patch(...params);
37
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
32
38
  return data;
33
39
  },
34
40
  async $delete(...params: any[]) {
35
41
  const { data } = await instance.delete(...params);
42
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
36
43
  return data;
37
44
  },
38
45
  });
@@ -40,7 +47,7 @@ export const Silex = (params: { url: string, loginWith?: any, setToken?: any })
40
47
  const _resources = Object.entries(resources)
41
48
  .reduce((acc, [name, value]) => ({
42
49
  ...acc,
43
- // eslint-disable-next-line new-cap
50
+
44
51
  [name]: new value(wrapAxios(axiosInstance)),
45
52
  }), {});
46
53
 
@@ -19,6 +19,7 @@ export class Employee extends Resource {
19
19
  if (['dpaeFile', 'contractFile'].includes(key)) {
20
20
  formData.append(key, value as File);
21
21
  } else {
22
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-base-to-string
22
23
  formData.append(key, `${value}`);
23
24
  }
24
25
  }
@@ -56,6 +56,7 @@ export class Task extends Resource {
56
56
  if (csv1) res.push(csv1);
57
57
  if (csv2) res.push(csv2);
58
58
  if (csv3) res.push(csv3);
59
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
59
60
  return res;
60
61
  }
61
62
 
package/ts/index.ts CHANGED
@@ -2,6 +2,5 @@ export * from './utils';
2
2
  export * from './utils/commercialManagement/product';
3
3
  export * from './utils/commercialManagement/vat';
4
4
  export * from './utils/commercialManagement/recovery';
5
- // eslint-disable-next-line
6
5
  export * from './types';
7
6
  export * from './api';
@@ -154,38 +154,38 @@ export enum AsponeCRB_2024 {
154
154
  }
155
155
 
156
156
  export const AsponeCRB_2024_List: Array<{ id: AsponeCRB_2024, value: string; }> = [
157
- { id: AsponeCRB_2024.FOR, value: 'FOR Dépenses de formation des dirigeants' },
158
- { id: AsponeCRB_2024.RAC, value: 'RAC Rachat d\'une entreprise par ses salariés' },
159
- { id: AsponeCRB_2024.FAM, value: 'FAM Famille' },
160
- { id: AsponeCRB_2024.CIR, value: 'CIR Recherche' },
161
- { id: AsponeCRB_2024.CRC, value: 'CRC CRC - Crédit d’impôt recherche collaborative' },
162
- { id: AsponeCRB_2024.COR, value: 'COR Investissements réalisés et exploités en Corse' },
163
- { id: AsponeCRB_2024.RAD, value: 'RAD Report en arrière de déficits' },
164
- { id: AsponeCRB_2024.APR, value: 'APR Apprentissage' },
165
- { id: AsponeCRB_2024.EXP, value: 'EXP Dépenses de prospection commerciale' },
166
- { id: AsponeCRB_2024.PTZ, value: 'PTZ Prêt à taux zéro' },
167
- { id: AsponeCRB_2024.CIN, value: 'CIN Cinéma' },
168
- { id: AsponeCRB_2024.BIO, value: 'BIO Agriculture biologique' },
169
- { id: AsponeCRB_2024.PHO, value: 'PHO Production d\'œuvre phonographique' },
170
- { id: AsponeCRB_2024.MAI, value: 'MAI Maîtres restaurateurs' },
171
- { id: AsponeCRB_2024.AUD, value: 'AUD Formats audiovisuels' },
172
- { id: AsponeCRB_2024.ART, value: 'ART Métiers d\'art' },
173
- { id: AsponeCRB_2024.CJV, value: 'CJV Création de jeux vidéo' },
174
- { id: AsponeCRB_2024.CAI, value: 'CAI Intéressement' },
175
- { id: AsponeCRB_2024.CPE, value: 'CPE Eco-PTZ' },
176
- { id: AsponeCRB_2024.CCI, value: 'CCI Cinéma international' },
177
- { id: AsponeCRB_2024.PTR, value: 'PTR Prêt à taux "plus"' },
178
- { id: AsponeCRB_2024.CIC, value: 'CIC Compétitivité des entreprises' },
179
- { id: AsponeCRB_2024.CIO, value: 'CIO Outre Mer secteur productif' },
180
- { id: AsponeCRB_2024.COL, value: 'COL Outre Mer logement social' },
181
- { id: AsponeCRB_2024.CSV, value: 'CSV Spectacle vivant' },
182
- { id: AsponeCRB_2024.CAC, value: 'CAC Crédit d\'impôt création audiovisuelle et cinématographique' },
183
- { id: AsponeCRB_2024.REB, value: 'REB Crédit d\'impôt PME pour la rénovation énergétique des bâtiments à usage tertiaire' },
184
- { id: AsponeCRB_2024.BLC, value: 'BLC Crédit d\'impôt pour abandon de loyers des bailleurs de locaux commerciaux' },
185
- { id: AsponeCRB_2024.RTD, value: 'RTD RTD - Crédit d\'impôt en faveur des représentations théâtrales d’oeuvres dramatiques' },
186
- { id: AsponeCRB_2024.CPG, value: 'CPG CPG – Crédit d\'impôt entreprises agricoles secteur cultures permanentes sans glyphosate' },
187
- { id: AsponeCRB_2024.HVE, value: 'HVE HVE - Crédit d\'impôt entreprises agricoles certification exploitation haute valeur environnementale' },
188
- { id: AsponeCRB_2024.EOM, value: 'EOM EOM - Crédit d’impôt en faveur des éditeurs d’oeuvres musicales' },
157
+ { id: AsponeCRB_2024.FOR, value: 'FOR - Dépenses de formation des dirigeants' },
158
+ { id: AsponeCRB_2024.RAC, value: 'RAC - Rachat d\'une entreprise par ses salariés' },
159
+ { id: AsponeCRB_2024.FAM, value: 'FAM - Famille' },
160
+ { id: AsponeCRB_2024.CIR, value: 'CIR - Recherche' },
161
+ { id: AsponeCRB_2024.CRC, value: 'CRC - CRC - Crédit d’impôt recherche collaborative' },
162
+ { id: AsponeCRB_2024.COR, value: 'COR - Investissements réalisés et exploités en Corse' },
163
+ { id: AsponeCRB_2024.RAD, value: 'RAD - Report en arrière de déficits' },
164
+ { id: AsponeCRB_2024.APR, value: 'APR - Apprentissage' },
165
+ { id: AsponeCRB_2024.EXP, value: 'EXP - Dépenses de prospection commerciale' },
166
+ { id: AsponeCRB_2024.PTZ, value: 'PTZ - Prêt à taux zéro' },
167
+ { id: AsponeCRB_2024.CIN, value: 'CIN - Cinéma' },
168
+ { id: AsponeCRB_2024.BIO, value: 'BIO - Agriculture biologique' },
169
+ { id: AsponeCRB_2024.PHO, value: 'PHO - Production d\'œuvre phonographique' },
170
+ { id: AsponeCRB_2024.MAI, value: 'MAI - Maîtres restaurateurs' },
171
+ { id: AsponeCRB_2024.AUD, value: 'AUD - Formats audiovisuels' },
172
+ { id: AsponeCRB_2024.ART, value: 'ART - Métiers d\'art' },
173
+ { id: AsponeCRB_2024.CJV, value: 'CJV - Création de jeux vidéo' },
174
+ { id: AsponeCRB_2024.CAI, value: 'CAI - Intéressement' },
175
+ { id: AsponeCRB_2024.CPE, value: 'CPE - Eco-PTZ' },
176
+ { id: AsponeCRB_2024.CCI, value: 'CCI - Cinéma international' },
177
+ { id: AsponeCRB_2024.PTR, value: 'PTR - Prêt à taux "plus"' },
178
+ { id: AsponeCRB_2024.CIC, value: 'CIC - Compétitivité des entreprises' },
179
+ { id: AsponeCRB_2024.CIO, value: 'CIO - Outre Mer secteur productif' },
180
+ { id: AsponeCRB_2024.COL, value: 'COL - Outre Mer logement social' },
181
+ { id: AsponeCRB_2024.CSV, value: 'CSV - Spectacle vivant' },
182
+ { id: AsponeCRB_2024.CAC, value: 'CAC - Crédit d\'impôt création audiovisuelle et cinématographique' },
183
+ { id: AsponeCRB_2024.REB, value: 'REB - Crédit d\'impôt PME pour la rénovation énergétique des bâtiments à usage tertiaire' },
184
+ { id: AsponeCRB_2024.BLC, value: 'BLC - Crédit d\'impôt pour abandon de loyers des bailleurs de locaux commerciaux' },
185
+ { id: AsponeCRB_2024.RTD, value: 'RTD - Crédit d\'impôt en faveur des représentations théâtrales d’oeuvres dramatiques' },
186
+ { id: AsponeCRB_2024.CPG, value: 'CPG – Crédit d\'impôt entreprises agricoles secteur cultures permanentes sans glyphosate' },
187
+ { id: AsponeCRB_2024.HVE, value: 'HVE - Crédit d\'impôt entreprises agricoles certification exploitation haute valeur environnementale' },
188
+ { id: AsponeCRB_2024.EOM, value: 'EOM - Crédit d’impôt en faveur des éditeurs d’oeuvres musicales' },
189
189
  ];
190
190
 
191
191
  export enum AsponeENT_2024 {
@@ -704,7 +704,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
704
704
  {
705
705
  name: 'Emprunts et dettes auprès établissements de crédits (1)',
706
706
  key: 'loansCredits',
707
- accounts: ['164', '16884', '512', '514', '517', '5186', '519', '53', '58'],
707
+ accounts: ['164', '512', '514', '517', '5186', '519', '53', '58'], // Ben.P. 10/12/24 suppression 16884 car déjà pris en dessous
708
708
  isSubcategory: true,
709
709
  total: 0,
710
710
  type: 'passive',
@@ -66,6 +66,7 @@ export enum QuestionCategory {
66
66
  /**
67
67
  * CERFA 2065
68
68
  */
69
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
69
70
  '2065_ACCOUNTING' = 'ACCOUNTING',
70
71
  '2065_GROUP' = 'GROUP',
71
72
  '2065_IMPUTATION' = 'IMPUTATION',
@@ -73,6 +74,7 @@ export enum QuestionCategory {
73
74
  '2065_INCOME_DISTRIBUTION' = 'INCOME_DISTRIBUTION',
74
75
  '2065_INCOME_DISTRIBUTION_PART_2' = 'INCOME_DISTRIBUTION_2',
75
76
  '2065_PARTNERS_REMUNERATION' = 'PARTNERS_REMUNERATION',
77
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
76
78
  '2065_ADDITIONAL_DETAILS' = 'ADDITIONAL_DETAILS',
77
79
  '2065_ADDITIONAL_DETAILS_PART_2' = 'ADDITIONAL_DETAILS_2',
78
80
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-duplicate-enum-values */
1
2
  export enum QuestionCategoryWording {
2
3
  /**
3
4
  * COMPANY TAXES 2033
@@ -115,9 +115,11 @@ export enum RevisionGuideLabel {
115
115
  ASSOCIATION_DIRIGEE_ELU = 'Association dirigée par un élu ou un membre de sa famille et recevant des subventions publiques pour un montant annuel supérieur à 25 KE de la collectivité dont il est élu',
116
116
  ARTISAN_BTP = '<b>Est concerné ?</b>',
117
117
  ENTREPRISE_BATIMENT = 'Entreprise du bâtiment ou des travaux publics ayant un chiffre d\'affaires HT supérieur à 500 K€',
118
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
118
119
  IMMOBILIER = '<b>Est concerné ?</b>',
119
120
  MARCHAND_BIENS_IMMOBILIER = 'Marchand de biens immobiliers qui réalise des opérations supérieures à 500 K€HT',
120
121
  PROMOTION_IMMOBILIERE = 'Promotion immobilière portant sur des opérations supérieur à 500 K€ HT',
122
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
121
123
  BIEN_OCCASION = '<b>Est concerné ?</b>',
122
124
  VENTE_VEHICULE_OCCASION = 'Vente de véhicule d\'occasion, si la marge dégagée par l\'activité représente plus du tiers de la marge totale',
123
125
  CASSE_AUTOMOBILE = 'Casse automobile ou ferrailleur',
@@ -126,10 +128,13 @@ export enum RevisionGuideLabel {
126
128
  BIJOUTIER = 'Bijoutier ou commerçant de métaux précieux ou de pierres précieuses, ayant un chiffre d\'affaires HT supérieur à 500e',
127
129
  AUTRES_COMMERCANT = 'Autres commerçants ayant un chiffre d\'affaires HT supérieur à 500K€ ?',
128
130
  ECOMMERCE_ETRANGER = 'Entreprise exerçant une activité e-commerce vers l\'étranger ou encaissant ses créances à l\'étranger, et donc l\'activité est autre que celle listées',
131
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
129
132
  BUREAU_TABAC = '<b>Est concerné ?</b>',
130
133
  FDJ = 'Point de vente de la Française des jeux ou du PMU',
134
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
131
135
  CAFE = '<b>Est concerné ?</b>',
132
136
  ETABLISSEMENT_NUIT = 'Établissement de nuit',
137
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
133
138
  NEGOCE = '<b>Est concerné ?</b>',
134
139
  IMPORT_EXPORT = 'Activité d\'import/export ou de négociation international de matière première',
135
140
  N1ELEMENT = '<b>Reprise du dossier</b>: Eléments N-1 à intégrer ?',
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-duplicate-enum-values */
1
2
  export enum Role {
2
3
  CLIENT = 1,
3
4
  ADMIN = 2,
@@ -28,14 +28,14 @@ export const SalesContractClementine: SaleContract[] = [
28
28
  name: 'page_detail_ldm',
29
29
  needBgImage: false,
30
30
  versionable: false,
31
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id!), // Prestations non express
31
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations non express
32
32
  },
33
33
  {
34
34
  label: 'Détail de la lettre de mission (express)',
35
35
  name: 'page_detail_ldm_back',
36
36
  needBgImage: false,
37
37
  versionable: false,
38
- idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id!), // Prestations express
38
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations express
39
39
  },
40
40
  {
41
41
  label: 'Compta Pro',
@@ -214,14 +214,14 @@ export const SalesContractKlems: SaleContract[] = [
214
214
  name: 'page_detail_ldm',
215
215
  needBgImage: false,
216
216
  versionable: false,
217
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.BILAN_PREVISIONNEL].includes(p.id!)).map(({ id }) => id!), // Prestations non express
217
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.BILAN_PREVISIONNEL].includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations non express
218
218
  },
219
219
  {
220
220
  label: 'Détail de la lettre de mission (express)',
221
221
  name: 'page_detail_ldm_back',
222
222
  needBgImage: false,
223
223
  versionable: false,
224
- idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS].includes(p.id!)).map(({ id }) => id!), // Prestations express
224
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS].includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations express
225
225
  },
226
226
  {
227
227
  label: 'Forfait Expertise Micro',
@@ -29,14 +29,14 @@ export const SalesContractBrandPourcentageOnline: SaleContract[] = [
29
29
  name: 'page_detail_ldm',
30
30
  needBgImage: false,
31
31
  versionable: false,
32
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id!), // Prestations non express
32
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations non express
33
33
  },
34
34
  {
35
35
  label: 'Détail de la lettre de mission (express)',
36
36
  name: 'page_detail_ldm_back',
37
37
  needBgImage: false,
38
38
  versionable: false,
39
- idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id!), // Prestations express
39
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations express
40
40
  },
41
41
  {
42
42
  label: 'Compta Pourcentage',
@@ -191,14 +191,14 @@ export const SalesContractBrandPourcentageECE: SaleContract[] = [
191
191
  name: 'page_detail_ldm',
192
192
  needBgImage: false,
193
193
  versionable: false,
194
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id!), // Prestations non express
194
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations non express
195
195
  },
196
196
  {
197
197
  label: 'Détail de la lettre de mission (express)',
198
198
  name: 'page_detail_ldm_back',
199
199
  needBgImage: false,
200
200
  versionable: false,
201
- idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id!), // Prestations express
201
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations express
202
202
  },
203
203
  {
204
204
  label: 'Compta Pourcentage',
@@ -323,7 +323,7 @@ export const SalesContractBrandPourcentageECE: SaleContract[] = [
323
323
  },
324
324
  ];
325
325
 
326
- export const SalesContractBrandPourcentageECF = [
326
+ export const SalesContractBrandPourcentageECF: SaleContract[] = [
327
327
  // pour les pages statiques
328
328
  {
329
329
  label: 'Page d\'introduction',
@@ -351,14 +351,14 @@ export const SalesContractBrandPourcentageECF = [
351
351
  name: 'page_detail_ldm',
352
352
  needBgImage: false,
353
353
  versionable: false,
354
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id!), // Prestations non express
354
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations non express
355
355
  },
356
356
  {
357
357
  label: 'Détail de la lettre de mission (express)',
358
358
  name: 'page_detail_ldm_back',
359
359
  needBgImage: false,
360
360
  versionable: false,
361
- idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id!), // Prestations express
361
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id ?? 0)).map(({ id }) => id as PrestationType), // Prestations express
362
362
  },
363
363
  {
364
364
  label: 'Compta Pourcentage',
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-redundant-type-constituents */
1
2
  export type TransactionKind =
2
3
  | 'authorization'
3
4
  | 'capture'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-redundant-type-constituents */
1
2
  export type TransactionStatus =
2
3
  | 'pending'
3
4
  | 'failure'
@@ -11,6 +11,7 @@ export enum TypePayment {
11
11
  export enum TypePaymentCashBased {
12
12
  CCARD = 511001,
13
13
  CTICKET = 511002,
14
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
14
15
  CVOUCHER = 511002,
15
16
  CCREDIT = 511003,
16
17
  CCHECK = 511004,
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-redundant-type-constituents */
1
2
  export interface IOcr {
2
3
  Invoice_Number: number | any;
3
4
  Invoice_Date: Date | any;
@@ -37,4 +37,5 @@ export type ReadChecklistStatistic = {
37
37
  export type ReadChecklistStats = {
38
38
  todo: number,
39
39
  done: number,
40
+ mail: number,
40
41
  };