@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
@@ -0,0 +1,325 @@
1
+ export interface ConfigType {
2
+ port: number
3
+ db: Db
4
+ hostS3: string
5
+ hostApplication: string
6
+ hostSiteInternet: string
7
+ redis: Redis
8
+ redisPrimary: RedisPrimary
9
+ budgetInsight: BudgetInsight
10
+ caarl: Caarl
11
+ yousign: Yousign
12
+ secretToken: string
13
+ comptaclementineTest: ComptaclementineTest
14
+ bred: Bred
15
+ awsClementine: AwsClementine
16
+ stripe: Stripe
17
+ stripeECB: StripeEcb
18
+ stripeStatuts: StripeStatuts
19
+ mail: Mail
20
+ client: Client
21
+ twilio: Twilio
22
+ aspone: Aspone
23
+ societyTestId: number
24
+ pappers: Pappers
25
+ shine: Shine
26
+ defaultPermissions: DefaultPermissions
27
+ crisp: Crisp
28
+ brand: ConfigBrand
29
+ adminStatic: AdminStatic
30
+ ocr: Ocr
31
+ jeDeclare: JeDeclare
32
+ firebase: Firebase
33
+ notification: Notification
34
+ pdfizer: Pdfizer
35
+ iDocus: IDocus
36
+ imageMagick: LambdaInfos
37
+ companeo: Companeo
38
+ inpi: Inpi
39
+ notion: Notion
40
+ brevo: Brevo
41
+ tinyurl: LambdaInfos
42
+ machineLearning: MachineLearning
43
+ echo: Echo
44
+ compressPdf: LambdaInfos
45
+ mongodb: Mongodb
46
+ pdftkizer: LambdaInfos
47
+ sharper: LambdaInfos
48
+ chartizer: LambdaInfos
49
+ authentication: Authentication
50
+ }
51
+
52
+ export interface Authentication {
53
+ token: string
54
+ }
55
+
56
+ export interface LambdaInfos {
57
+ url: string
58
+ key: string
59
+ }
60
+
61
+ export interface Mongodb {
62
+ username: string
63
+ password: string
64
+ host: string
65
+ }
66
+
67
+ export interface MachineLearning {
68
+ transactionAnnotation: string
69
+ }
70
+
71
+ export interface Db {
72
+ username: string
73
+ password: string
74
+ database: string
75
+ port: string
76
+ host: string
77
+ dialect: string
78
+ }
79
+
80
+ export interface Redis {
81
+ host: string
82
+ port: number
83
+ }
84
+
85
+ export interface RedisPrimary {
86
+ replicationGroupId: string
87
+ }
88
+
89
+ export interface BudgetInsight {
90
+ apiLinkBudget: string
91
+ clientId: string
92
+ clientSecret: string
93
+ hookToken: string
94
+ }
95
+
96
+ export interface Caarl {
97
+ api: string
98
+ token: string
99
+ bundle: string
100
+ }
101
+
102
+ export interface Yousign {
103
+ apiYousign: string
104
+ appYousign: string
105
+ token: Token
106
+ workspaceId: string
107
+ }
108
+
109
+ export interface Token {
110
+ clementine: string
111
+ pourcentage: string
112
+ }
113
+
114
+ export interface ComptaclementineTest {
115
+ username: string
116
+ password: string
117
+ database: string
118
+ port: string
119
+ host: string
120
+ dialect: string
121
+ }
122
+
123
+ export interface Bred {
124
+ authorizeHost: string
125
+ authorizePath: string
126
+ urlPostCodeRequest: string
127
+ urlGetToken: string
128
+ apiUrl: string
129
+ clientId: string
130
+ clientSecret: string
131
+ scope: string
132
+ redirectUri: string
133
+ subscriptionKey: string
134
+ }
135
+
136
+ export interface AwsClementine {
137
+ accessKeyId: string
138
+ secretAccessKey: string
139
+ clementineBucketName: string
140
+ apiVersion: string
141
+ }
142
+
143
+ export interface Stripe {
144
+ secretKey: string
145
+ secretKeyTestToDelete: string
146
+ }
147
+
148
+ export interface StripeEcb {
149
+ secretKey: string
150
+ }
151
+
152
+ export interface StripeStatuts {
153
+ secretKey: string
154
+ }
155
+
156
+ export interface Mail {
157
+ user: string
158
+ password: string
159
+ host: string
160
+ port: number
161
+ tls: boolean
162
+ }
163
+
164
+ export interface Client {
165
+ host: string
166
+ hostFull: string
167
+ }
168
+
169
+ export interface Twilio {
170
+ accountSID: string
171
+ authToken: string
172
+ number: string
173
+ }
174
+
175
+ export interface Aspone {
176
+ siret: string
177
+ api: string
178
+ access: Access
179
+ serviceVersion: string
180
+ }
181
+
182
+ export interface Access {
183
+ login: string
184
+ password: string
185
+ }
186
+
187
+ export interface Pappers {
188
+ token: string
189
+ url: string
190
+ }
191
+
192
+ export interface Shine {
193
+ host: string
194
+ hostV3: string
195
+ clientId: string
196
+ clientSecret: string
197
+ redirect_uris: string[]
198
+ status: string
199
+ scope: string
200
+ }
201
+
202
+ export interface DefaultPermissions {
203
+ gescom: boolean
204
+ compta: boolean
205
+ stats: boolean
206
+ docTreso: boolean
207
+ services: boolean
208
+ social: boolean
209
+ tva: boolean
210
+ simulation: boolean
211
+ simulationMultiple: boolean
212
+ balanceSheet: boolean
213
+ setting: boolean
214
+ purchase: boolean
215
+ }
216
+
217
+ export interface Crisp {
218
+ identifier: string
219
+ key: string
220
+ }
221
+
222
+ export interface ConfigBrand {
223
+ name: string
224
+ api: string
225
+ api2: string
226
+ api2Clementine: string
227
+ api2Legalstart: string
228
+ }
229
+
230
+ export interface AdminStatic {
231
+ login: string
232
+ password: string
233
+ }
234
+
235
+ export interface Ocr {
236
+ URL: string
237
+ }
238
+
239
+ export interface JeDeclare {
240
+ access: Access2[]
241
+ serviceVersion: string
242
+ }
243
+
244
+ export interface Access2 {
245
+ name: string
246
+ test: Test
247
+ production: Production
248
+ }
249
+
250
+ export interface Test {
251
+ login: string
252
+ password: string
253
+ editor: string
254
+ software: string
255
+ wsdl: Wsdl
256
+ }
257
+
258
+ export interface Wsdl {
259
+ url: string
260
+ }
261
+
262
+ export interface Production {
263
+ login: string
264
+ password: string
265
+ editor: string
266
+ software: string
267
+ wsdl: Wsdl2
268
+ }
269
+
270
+ export interface Wsdl2 {
271
+ url: string
272
+ }
273
+
274
+ export interface Firebase {
275
+ type: string
276
+ project_id: string
277
+ private_key_id: string
278
+ private_key: string
279
+ client_email: string
280
+ client_id: string
281
+ auth_uri: string
282
+ token_uri: string
283
+ auth_provider_x509_cert_url: string
284
+ client_x509_cert_url: string
285
+ universe_domain: string
286
+ }
287
+
288
+ export interface Notification {
289
+ hookToken: string
290
+ }
291
+
292
+ export interface Pdfizer {
293
+ url: string
294
+ key: string
295
+ }
296
+
297
+ export interface IDocus {
298
+ baseUrl: string
299
+ callbackurl: string
300
+ authorizationKey: string
301
+ }
302
+
303
+ export interface Companeo {
304
+ username: string
305
+ pass: string
306
+ }
307
+
308
+ export interface Inpi {
309
+ username: string
310
+ password: string
311
+ }
312
+
313
+ export interface Notion {
314
+ key: string
315
+ }
316
+
317
+ export interface Brevo {
318
+ apiKeyProd: string
319
+ }
320
+
321
+ export interface Echo {
322
+ url: string
323
+ accountid: string
324
+ apikey: string
325
+ }
@@ -1,10 +1,12 @@
1
1
  export type CrispHookPayload = {
2
2
  website_id: string;
3
3
  event: CrispEvent;
4
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
4
5
  data: CrispData | any; // TODO: Implement other data when used
5
6
  timestamp: number;
6
7
  };
7
8
 
9
+ // eslint-disable-next-line @typescript-eslint/no-duplicate-type-constituents
8
10
  export type CrispEvent = 'session:sync:rating' | 'session:update_availability' | 'session:update_verify' | 'session:request' | 'session:set_email' | 'session:set_phone' | 'session:set_address' | 'session:set_avatar' | 'session:set_nickname' | 'session:set_data' | 'session:sync' | 'session:sync' | 'session:sync' | 'session:sync' | 'session:sync' | 'session:sync' | 'session:sync' | 'session:sync' | 'session:sync' | 'session:set_state' | 'session:set_block' | 'session:set_segments' | 'session:set_opened' | 'session:set_closed' | 'session:set_participants' | 'session:set_mentions' | 'session:set_routing' | 'session:removed' | 'message:updated' | 'message:send' | 'message:received' | 'message:compose:send' | 'message:compose:receive' | 'message:acknowledge:read:send' | 'message:acknowledge:read:received' | 'message:acknowledge:delivered' | 'message:notify:unread:send' | 'message:notify:unread:received' | 'people:profile:created' | 'people:profile:updated' | 'people:profile:removed' | 'people:bind:session' | 'people:sync:profile' | 'people:import:progress' | 'people:import:done' | 'campaign:progress' | 'campaign:dispatched' | 'campaign:running' | 'browsing:request:initiated' | 'browsing:request:rejected' | 'call:request:initiated' | 'call:request:rejected' | 'widget:action:processed' | 'status:health:changed' | 'website:update_visitors_count' | 'website:update_operators_availability' | 'website:users:available' | 'bucket:url:upload:generated' | 'bucket:url:avatar:generated' | 'bucket:url:website:generated' | 'bucket:url:campaign:generated' | 'bucket:url:helpdesk:generated' | 'bucket:url:status:generated' | 'bucket:url:processing:generated' | 'media:animation:listed' | 'email:subscribe' | 'email:track:view' | 'plugin:channel' | 'plugin:event' | 'plugin:settings:saved';
9
11
 
10
12
  export type CrispData = SessionSyncRating;
@@ -25,6 +25,7 @@ class ExerciceQuestion {
25
25
 
26
26
  export class CreateExerciceQuestions {
27
27
  @IsArray()
28
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
28
29
  @ArrayUnique((q) => q.idQuestion)
29
30
  @ValidateNested({
30
31
  each: true,
@@ -33,7 +33,6 @@ export class IPeriods {
33
33
  export class Journals {
34
34
  [index: string]: {
35
35
  idJournal: number;
36
- // eslint-disable-next-line no-restricted-globals
37
36
  name: string;
38
37
  fullName: string;
39
38
  periods?: IPeriods;
@@ -18,6 +18,7 @@ class KilometricAllowanceValidation {
18
18
 
19
19
  export class CreateKilometricAllowanceValidation {
20
20
  @IsArray()
21
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
21
22
  @ArrayUnique((q) => q.idVehicle)
22
23
  @ValidateNested({
23
24
  each: true,
@@ -466,9 +466,7 @@ export type CalloutBlockObjectResponse = {
466
466
  color: ApiColor
467
467
  icon:
468
468
  | { type: 'emoji'; emoji: string }
469
- | null
470
469
  | { type: 'external'; external: { url: string } }
471
- | null
472
470
  | { type: 'file'; file: { url: string; expiry_time: string } }
473
471
  | null
474
472
  }
@@ -899,7 +897,7 @@ type VerificationPropertyResponse = {
899
897
  avatar_url?: string | null
900
898
  object?: 'user'
901
899
  }
902
- | null
900
+
903
901
  | {
904
902
  bot:
905
903
  | Record<string, never>
@@ -927,7 +925,7 @@ type VerificationPropertyResponse = {
927
925
  avatar_url?: string | null
928
926
  object?: 'user'
929
927
  }
930
- | null
928
+
931
929
  };
932
930
 
933
931
  export type PartialPageObjectResponse = { object: 'page'; id: string };
@@ -108,14 +108,20 @@ export type BeneficialOwnerPappers = {
108
108
  pourcentage_parts_directes: number | null;
109
109
  pourcentage_parts_indirectes: number | null;
110
110
  pourcentage_parts_vocation_titulaire: number | null;
111
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
111
112
  details_parts_directes: any | null;
113
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
112
114
  details_parts_indirectes: any | null;
115
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
113
116
  details_parts_vocation_titulaire: any | null;
114
117
  pourcentage_votes: number | null;
115
118
  pourcentage_votes_directs: number | null;
116
119
  pourcentage_votes_indirect: number | null;
120
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
117
121
  details_votes_directs: any | null;
122
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
118
123
  details_votes_indirects: any | null;
124
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
119
125
  details_societe_de_gestion: any | null;
120
126
  detention_pouvoir_decision_ag: boolean | null;
121
127
  detention_pouvoir_nom_membre_conseil_administration: boolean | null;
@@ -235,10 +241,12 @@ export class GetBusinessPappersResponse {
235
241
  dernier_traitement: string | null;
236
242
  siege: HeadOfficePappers | null;
237
243
  diffusable: boolean;
244
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
238
245
  sigle: any | null;
239
246
  objet_social: string | null;
240
247
  capital: number | null;
241
248
  capital_formate: string | null;
249
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
242
250
  capital_actuel_si_variable: any | null;
243
251
  numero_rcs: string | null;
244
252
  date_cloture_exercice: string | null;
@@ -247,6 +255,7 @@ export class GetBusinessPappersResponse {
247
255
  prochaine_date_cloture_exercice: string | null;
248
256
  prochaine_date_cloture_exercice_formate: string | null;
249
257
  economie_sociale_solidaire: boolean;
258
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
250
259
  duree_personne_morale: any | null;
251
260
  derniere_mise_a_jour_sirene: string | null;
252
261
  derniere_mise_a_jour_rcs: string | null;
@@ -49,6 +49,7 @@ export class CreateDefaultPromoCode {
49
49
 
50
50
  @ApiPropertyOptional()
51
51
  @IsJSON()
52
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
52
53
  metadata?: any | null;
53
54
 
54
55
  @ApiProperty()
@@ -2,5 +2,6 @@ export interface ReadDefaultPromotion {
2
2
  label: string;
3
3
  startDate?: Date | null;
4
4
  endDate?: Date | null;
5
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
5
6
  metadata?: unknown | null;
6
7
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-redundant-type-constituents */
1
2
  export type FinancialStatus =
2
3
  | 'authorized'
3
4
  | 'pending'
@@ -159,6 +159,7 @@ export interface ShopifyOrder extends ShopifyObject {
159
159
  /**
160
160
  * The fulfillment status for this order. Known values are 'fulfilled', 'partial' or null.
161
161
  */
162
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
162
163
  fulfillment_status: 'fulfilled' | 'partial' | string | null;
163
164
 
164
165
  /**
@@ -316,6 +317,7 @@ export interface ShopifyOrder extends ShopifyObject {
316
317
  /**
317
318
  * not documented; always null in test data
318
319
  */
320
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
319
321
  source_url?: null | any;
320
322
 
321
323
  /**
@@ -14,5 +14,6 @@ export interface DiscountCode extends ShopifyObject {
14
14
  /**
15
15
  * The type of discount. Known values are 'percentage', 'shipping', 'fixed_amount' and 'none'.
16
16
  */
17
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
17
18
  type?: 'percentage' | 'shipping' | 'fixed_amount' | string;
18
19
  }
@@ -18,6 +18,7 @@ export interface ShippingLine extends ShopifyObject {
18
18
  /**
19
19
  * not documented
20
20
  */
21
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
21
22
  delivery_category: null | any;
22
23
 
23
24
  /**
@@ -52,6 +53,7 @@ export interface ShippingLine extends ShopifyObject {
52
53
  /**
53
54
  * undocumented (always null in available test data)
54
55
  */
56
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
55
57
  requested_fulfillment_service_id: null | any;
56
58
 
57
59
  /**
@@ -6,6 +6,7 @@ export interface IBalanceSheetQuestion {
6
6
  theme: string;
7
7
  category: string | null;
8
8
  idAnswerType: number;
9
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
9
10
  jsonTypedef: any | null;
10
11
 
11
12
  createdAt?: Date | null;
@@ -6,6 +6,7 @@ export interface IFecFile {
6
6
  id?: number;
7
7
  importComplete: boolean;
8
8
  delimiter: string;
9
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
9
10
  mapping: any | null;
10
11
  idFile: number;
11
12
  idSociety: number;
@@ -12,6 +12,7 @@ export interface IRegistration {
12
12
  endDate?: Date;
13
13
  payload: any;
14
14
  amountToPay?: number | null;
15
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
15
16
  response: any | null;
16
17
  sendAt: Date | null;
17
18
  isComplete: boolean;
@@ -24,6 +24,7 @@ import { IUserBrand } from './IUserBrand';
24
24
  import { ICollaboraterDetail } from './ICollaboraterDetail';
25
25
  import { IUserTimeSlot } from './IUserTimeSlot';
26
26
 
27
+ // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
27
28
  type isAny<T> = T | any;
28
29
 
29
30
  // users
package/ts/types/index.ts CHANGED
@@ -1129,6 +1129,7 @@ export * from './Interface/api/previsionalForm/PrevisionalFormPayload';
1129
1129
  export * from './Interface/api/previsionalForm/CreatePrevisionalForm';
1130
1130
  export * from './Interface/api/toDoExpress/Query';
1131
1131
  export * from './Interface/api/toDoExpress/Read';
1132
+ export * from './Interface/api/config/ConfigType';
1132
1133
  export * from './Interface/api/card/OrganizeBalanceSheets';
1133
1134
 
1134
1135
 
@@ -145,6 +145,7 @@ export type Brand = {
145
145
  }
146
146
  };
147
147
 
148
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
148
149
  const allBrands = ['Legalstart', 'Comptalib', 'Clementine', 'Pourcentage', 'StatutsExpress', 'Anytime'] as const;
149
150
  type BrandList = typeof allBrands[number];
150
151
 
@@ -212,6 +213,7 @@ const getAllBrandByNodeEnv = (nodeEnv?: string): Array<Brand> => {
212
213
 
213
214
  const brand = currentConfigFile;
214
215
 
216
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
215
217
  return brand;
216
218
  };
217
219
 
@@ -275,9 +277,11 @@ const getBrandConfig = (params: GetBrandConfigParam): Brand => {
275
277
  const brandDefault = currentConfigFile.find((b: Brand) => b.name === currentEnvName);
276
278
  objectToReturn = getLodash(brandDefault, objectWaited);
277
279
  }
280
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
278
281
  return objectToReturn;
279
282
  }
280
283
 
284
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
281
285
  return brand;
282
286
  };
283
287
 
@@ -299,6 +303,7 @@ const getSubBrandList = (nodeEnv?: string): Array<object> => {
299
303
  // @ts-ignore
300
304
  const currentConfigFile: brand[] = listEnvEnum[`Brand${currentEnvName}`];
301
305
 
306
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
302
307
  return currentConfigFile;
303
308
  };
304
309
 
@@ -9,6 +9,7 @@ export const setRangeItems = (maxRange:number) => {
9
9
  for (let i = 0; i < maxRange; i += 1) {
10
10
  res.push({ text: i, value: i });
11
11
  }
12
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
12
13
  return res;
13
14
  };
14
15
 
@@ -46,6 +47,7 @@ export const getCheckupDetailForm = (
46
47
  component: 'FormInputSelect',
47
48
  text: 'Combien de comptes bancaires avez-vous ?',
48
49
  meta: {
50
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
49
51
  items: setRangeItems(15).map(i => ({ ...i, value: i.value.toString() })),
50
52
  hideDetails: true,
51
53
  },
@@ -183,6 +185,7 @@ export const getCheckupDetailForm = (
183
185
  text: 'Votre structure a-t-elle des participations dans d\'autres sociétés ?',
184
186
  value: 'interestOtherCompanies',
185
187
  meta: {
188
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
186
189
  items: setRangeItems(15).map(i => ({ ...i, value: i.value.toString() })),
187
190
  hideDetails: true,
188
191
  },
@@ -476,6 +479,7 @@ export const getCheckupDetailForm = (
476
479
  text: 'Existe-t-il des emprunts en cours ?',
477
480
  value: 'isLoans',
478
481
  meta: {
482
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
479
483
  items: setRangeItems(15).map(i => ({ ...i, value: i.value.toString() })),
480
484
  hideDetails: true,
481
485
  },
@@ -540,6 +544,7 @@ export const getCheckupDetailForm = (
540
544
  text: 'Existe-t-il des emprunts en cours ?',
541
545
  value: 'borrowingInProgress',
542
546
  meta: {
547
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
543
548
  items: setRangeItems(15).map(i => ({ ...i, value: i.value.toString() })),
544
549
  hideDetails: true,
545
550
  },
@@ -21,7 +21,8 @@ import { thirdPartyToReadThirdPartyEditing } from './thirdParty';
21
21
  import { getBrandConfig } from '../brands';
22
22
  import { internationalizationChoices } from './internationalization/choices';
23
23
 
24
- const ejs = require('ejs');
24
+ import ejs from 'ejs';
25
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
25
26
  require('dayjs/locale/fr');
26
27
 
27
28
  type brandColorType = {
@@ -109,7 +110,7 @@ export function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoic
109
110
  ?.label ?? null,
110
111
  // @ts-ignore
111
112
  brandColors: getBrandConfig({ objectWaited: 'colors', nodeEnv }) as brandColorType,
112
- brandName: `${getBrandConfig({ objectWaited: 'name', nodeEnv })}`,
113
+ brandName: `${getBrandConfig({ objectWaited: 'name', nodeEnv }) as unknown as string}`,
113
114
  shouldHideBrandName,
114
115
  paymentType: payload.paymentType,
115
116
  languageTemplate: languageOption,
@@ -1,8 +1,8 @@
1
1
  import * as dayjs from 'dayjs';
2
2
  import { RecurrenceType } from '../../types/Enum/RecurrenceType';
3
3
 
4
- const isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
5
- const quarterOfYear = require('dayjs/plugin/quarterOfYear');
4
+ import * as quarterOfYear from 'dayjs/plugin/quarterOfYear';
5
+ import * as isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
6
6
 
7
7
  dayjs.extend(quarterOfYear);
8
8
  dayjs.extend(isSameOrBefore);
@@ -9,6 +9,7 @@ export function getAmount(amount: number | null, vatValue: number): number {
9
9
  }
10
10
 
11
11
  export function getById(id: number): VatType | undefined {
12
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
12
13
  return Object.values(Vat).find((vat) => vat.id === id);
13
14
  }
14
15