@silexpert/core 0.4.290 → 1.0.5

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 (963) hide show
  1. package/CHANGELOG.md +0 -17
  2. package/es/api/resources/BudgetInsight.d.ts +7 -0
  3. package/es/api/resources/BudgetInsight.d.ts.map +1 -1
  4. package/es/api/resources/BudgetInsight.js +8 -0
  5. package/es/api/resources/BudgetInsight.js.map +1 -1
  6. package/es/api/resources/CalendarEvent.d.ts +1 -2
  7. package/es/api/resources/CalendarEvent.d.ts.map +1 -1
  8. package/es/api/resources/CalendarEvent.js +2 -2
  9. package/es/api/resources/CalendarEvent.js.map +1 -1
  10. package/es/api/resources/CommercialSetting.d.ts +7 -0
  11. package/es/api/resources/CommercialSetting.d.ts.map +1 -0
  12. package/es/api/resources/CommercialSetting.js +10 -0
  13. package/es/api/resources/CommercialSetting.js.map +1 -0
  14. package/es/api/resources/Connector.d.ts +4 -1
  15. package/es/api/resources/Connector.d.ts.map +1 -1
  16. package/es/api/resources/Connector.js +9 -0
  17. package/es/api/resources/Connector.js.map +1 -1
  18. package/es/api/resources/Dashboard.d.ts +1 -2
  19. package/es/api/resources/Dashboard.d.ts.map +1 -1
  20. package/es/api/resources/Dashboard.js +0 -3
  21. package/es/api/resources/Dashboard.js.map +1 -1
  22. package/es/api/resources/Exercice.d.ts +0 -1
  23. package/es/api/resources/Exercice.d.ts.map +1 -1
  24. package/es/api/resources/Exercice.js +0 -3
  25. package/es/api/resources/Exercice.js.map +1 -1
  26. package/es/api/resources/FecFile.d.ts +0 -6
  27. package/es/api/resources/FecFile.d.ts.map +1 -1
  28. package/es/api/resources/FecFile.js +6 -26
  29. package/es/api/resources/FecFile.js.map +1 -1
  30. package/es/api/resources/GeneralLedger.d.ts +1 -1
  31. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  32. package/es/api/resources/GeneralLedger.js +2 -2
  33. package/es/api/resources/GeneralLedger.js.map +1 -1
  34. package/es/api/resources/Invoice.d.ts +11 -0
  35. package/es/api/resources/Invoice.d.ts.map +1 -0
  36. package/es/api/resources/Invoice.js +19 -0
  37. package/es/api/resources/Invoice.js.map +1 -0
  38. package/es/api/resources/Loan.js +1 -1
  39. package/es/api/resources/Loan.js.map +1 -1
  40. package/es/api/resources/Mail.d.ts +1 -1
  41. package/es/api/resources/Mail.d.ts.map +1 -1
  42. package/es/api/resources/Mail.js +3 -4
  43. package/es/api/resources/Mail.js.map +1 -1
  44. package/es/api/resources/Partner.d.ts +0 -1
  45. package/es/api/resources/Partner.d.ts.map +1 -1
  46. package/es/api/resources/Partner.js +0 -3
  47. package/es/api/resources/Partner.js.map +1 -1
  48. package/es/api/resources/Qonto.d.ts +1 -6
  49. package/es/api/resources/Qonto.d.ts.map +1 -1
  50. package/es/api/resources/Qonto.js +1 -16
  51. package/es/api/resources/Qonto.js.map +1 -1
  52. package/es/api/resources/User.d.ts +3 -5
  53. package/es/api/resources/User.d.ts.map +1 -1
  54. package/es/api/resources/User.js +27 -27
  55. package/es/api/resources/User.js.map +1 -1
  56. package/es/api/resources/commercialDocument.d.ts +18 -0
  57. package/es/api/resources/commercialDocument.d.ts.map +1 -0
  58. package/es/api/resources/commercialDocument.js +41 -0
  59. package/es/api/resources/commercialDocument.js.map +1 -0
  60. package/es/api/resources/reminder.d.ts +8 -0
  61. package/es/api/resources/reminder.d.ts.map +1 -0
  62. package/es/api/resources/reminder.js +13 -0
  63. package/es/api/resources/reminder.js.map +1 -0
  64. package/es/api/resources.d.ts +8 -18
  65. package/es/api/resources.d.ts.map +1 -1
  66. package/es/api/resources.js +8 -18
  67. package/es/api/resources.js.map +1 -1
  68. package/es/index.d.ts +1 -0
  69. package/es/index.d.ts.map +1 -1
  70. package/es/index.js +1 -0
  71. package/es/index.js.map +1 -1
  72. package/es/types/Enum/Account.d.ts +8 -0
  73. package/es/types/Enum/Account.d.ts.map +1 -1
  74. package/es/types/Enum/Account.js +8 -0
  75. package/es/types/Enum/Account.js.map +1 -1
  76. package/es/types/Enum/BalanceSheet.js +1 -1
  77. package/es/types/Enum/BalanceSheet.js.map +1 -1
  78. package/es/types/Enum/BrandClementine.d.ts +1 -12
  79. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  80. package/es/types/Enum/BrandClementine.js +1 -10
  81. package/es/types/Enum/BrandClementine.js.map +1 -1
  82. package/es/types/Enum/BrandComptalib.d.ts +0 -87
  83. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  84. package/es/types/Enum/BrandComptalib.js +4 -13
  85. package/es/types/Enum/BrandComptalib.js.map +1 -1
  86. package/es/types/Enum/BrandLegalstart.d.ts +0 -3
  87. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  88. package/es/types/Enum/BrandLegalstart.js +0 -3
  89. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  90. package/es/types/Enum/BrandPourcentage.d.ts +0 -4
  91. package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
  92. package/es/types/Enum/BrandPourcentage.js +3 -7
  93. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  94. package/es/types/Enum/BudgetInsight.js.map +1 -1
  95. package/es/types/Enum/CommercialManagement.d.ts +32 -0
  96. package/es/types/Enum/CommercialManagement.d.ts.map +1 -0
  97. package/es/types/Enum/CommercialManagement.js +39 -0
  98. package/es/types/Enum/CommercialManagement.js.map +1 -0
  99. package/es/types/Enum/EstimateInvoice.d.ts +1 -1
  100. package/es/types/Enum/EstimateInvoice.d.ts.map +1 -1
  101. package/es/types/Enum/EstimateInvoice.js +1 -1
  102. package/es/types/Enum/EstimateInvoice.js.map +1 -1
  103. package/es/types/Enum/Ged.d.ts +1 -101
  104. package/es/types/Enum/Ged.d.ts.map +1 -1
  105. package/es/types/Enum/Ged.js +14 -100
  106. package/es/types/Enum/Ged.js.map +1 -1
  107. package/es/types/Enum/Log.d.ts +1 -2
  108. package/es/types/Enum/Log.d.ts.map +1 -1
  109. package/es/types/Enum/Log.js +0 -1
  110. package/es/types/Enum/Log.js.map +1 -1
  111. package/es/types/Enum/Prestation.d.ts +15 -0
  112. package/es/types/Enum/Prestation.d.ts.map +1 -0
  113. package/es/types/Enum/Prestation.js +16 -0
  114. package/es/types/Enum/Prestation.js.map +1 -0
  115. package/es/types/Enum/Role.d.ts +11 -6
  116. package/es/types/Enum/Role.d.ts.map +1 -1
  117. package/es/types/Enum/Role.js +10 -15
  118. package/es/types/Enum/Role.js.map +1 -1
  119. package/es/types/Enum/RoleDetail.d.ts +51 -42
  120. package/es/types/Enum/RoleDetail.d.ts.map +1 -1
  121. package/es/types/Enum/RoleDetail.js +64 -127
  122. package/es/types/Enum/RoleDetail.js.map +1 -1
  123. package/es/types/Enum/SheetMonthScheduleDetailType.js +1 -1
  124. package/es/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
  125. package/es/types/Enum/TaskResponseType.d.ts +0 -9
  126. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  127. package/es/types/Enum/TaskResponseType.js +2 -57
  128. package/es/types/Enum/TaskResponseType.js.map +1 -1
  129. package/es/types/Enum/TimeCounterType.d.ts +12 -40
  130. package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
  131. package/es/types/Enum/TimeCounterType.js +19 -47
  132. package/es/types/Enum/TimeCounterType.js.map +1 -1
  133. package/es/types/Enum/Vat.d.ts +1 -17
  134. package/es/types/Enum/Vat.d.ts.map +1 -1
  135. package/es/types/Enum/Vat.js +26 -24
  136. package/es/types/Enum/Vat.js.map +1 -1
  137. package/es/types/Enum/VatDeclarationType.d.ts.map +1 -1
  138. package/es/types/Enum/VatDeclarationType.js +0 -6
  139. package/es/types/Enum/VatDeclarationType.js.map +1 -1
  140. package/es/types/Interface/api/3cx/Query3cxSearch.d.ts +0 -1
  141. package/es/types/Interface/api/3cx/Query3cxSearch.d.ts.map +1 -1
  142. package/es/types/Interface/api/3cx/Query3cxSearch.js +0 -6
  143. package/es/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
  144. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
  145. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts +0 -1
  146. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts.map +1 -1
  147. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.js.map +1 -1
  148. package/es/types/Interface/api/commercialManagement/Create.d.ts +107 -0
  149. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -0
  150. package/es/types/Interface/api/commercialManagement/Create.js +496 -0
  151. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -0
  152. package/es/types/Interface/api/commercialManagement/Query.d.ts +45 -0
  153. package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -0
  154. package/es/types/Interface/api/commercialManagement/Query.js +121 -0
  155. package/es/types/Interface/api/commercialManagement/Query.js.map +1 -0
  156. package/es/types/Interface/api/commercialManagement/Read.d.ts +60 -0
  157. package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -0
  158. package/es/types/Interface/api/commercialManagement/Read.js +2 -0
  159. package/es/types/Interface/api/commercialManagement/Read.js.map +1 -0
  160. package/es/types/Interface/api/commercialManagement/Update.d.ts +16 -0
  161. package/es/types/Interface/api/commercialManagement/Update.d.ts.map +1 -0
  162. package/es/types/Interface/api/{societyConfig/update.js → commercialManagement/Update.js} +21 -61
  163. package/es/types/Interface/api/commercialManagement/Update.js.map +1 -0
  164. package/es/types/Interface/api/connector/CreateConnector.d.ts +13 -0
  165. package/es/types/Interface/api/connector/CreateConnector.d.ts.map +1 -0
  166. package/es/types/Interface/api/connector/CreateConnector.js +68 -0
  167. package/es/types/Interface/api/connector/CreateConnector.js.map +1 -0
  168. package/es/types/Interface/api/connector/QueryConnector.d.ts +7 -0
  169. package/es/types/Interface/api/connector/QueryConnector.d.ts.map +1 -0
  170. package/es/types/Interface/api/{qonto/ProcessBankAccount.js → connector/QueryConnector.js} +10 -7
  171. package/es/types/Interface/api/connector/QueryConnector.js.map +1 -0
  172. package/es/types/Interface/api/dashboard/ReadGescom.d.ts +2 -3
  173. package/es/types/Interface/api/dashboard/ReadGescom.d.ts.map +1 -1
  174. package/es/types/Interface/api/dashboard/ReadGescom.js.map +1 -1
  175. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +0 -1
  176. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
  177. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +1 -7
  178. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  179. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +0 -1
  180. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  181. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -7
  182. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  183. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -2
  184. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
  185. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +2 -8
  186. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  187. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -2
  188. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  189. package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -7
  190. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  191. package/es/types/Interface/api/product/CreateProduct.d.ts +1 -0
  192. package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
  193. package/es/types/Interface/api/product/CreateProduct.js +9 -6
  194. package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
  195. package/es/types/Interface/api/product/QueryProduct.d.ts +2 -0
  196. package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
  197. package/es/types/Interface/api/product/QueryProduct.js +15 -1
  198. package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
  199. package/es/types/Interface/api/report/QueryReports.d.ts +0 -1
  200. package/es/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  201. package/es/types/Interface/api/report/QueryReports.js +0 -4
  202. package/es/types/Interface/api/report/QueryReports.js.map +1 -1
  203. package/es/types/Interface/api/revision/QueryRevision.d.ts +0 -2
  204. package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -1
  205. package/es/types/Interface/api/revision/QueryRevision.js +2 -16
  206. package/es/types/Interface/api/revision/QueryRevision.js.map +1 -1
  207. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +1 -1
  208. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -1
  209. package/es/types/Interface/api/revision/QueryRevisionAccount.js +5 -11
  210. package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  211. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +0 -2
  212. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +1 -1
  213. package/es/types/Interface/api/revision/QueryRevisionPaginate.js +2 -16
  214. package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  215. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +1 -1
  216. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
  217. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  218. package/es/types/Interface/api/revision/ReadRevision.d.ts +1 -2
  219. package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -1
  220. package/es/types/Interface/api/revision/ReadRevision.js.map +1 -1
  221. package/es/types/Interface/api/simulation/CreateSimulation.d.ts +0 -2
  222. package/es/types/Interface/api/simulation/CreateSimulation.d.ts.map +1 -1
  223. package/es/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  224. package/es/types/Interface/api/task/QueryCountTask.d.ts +1 -1
  225. package/es/types/Interface/api/task/QueryCountTask.d.ts.map +1 -1
  226. package/es/types/Interface/api/task/QueryCountTask.js +1 -1
  227. package/es/types/Interface/api/task/QueryCountTask.js.map +1 -1
  228. package/es/types/Interface/api/task/QueryPaginatedTask.d.ts +0 -2
  229. package/es/types/Interface/api/task/QueryPaginatedTask.d.ts.map +1 -1
  230. package/es/types/Interface/api/task/QueryPaginatedTask.js +0 -11
  231. package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  232. package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts +0 -1
  233. package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts.map +1 -1
  234. package/es/types/Interface/api/thirdParty/QueryThirdParty.js +1 -7
  235. package/es/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
  236. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +0 -1
  237. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
  238. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +1 -10
  239. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  240. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +0 -1
  241. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
  242. package/es/types/Interface/api/user/QueryGetAllCollaborators.js +1 -11
  243. package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  244. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +0 -1
  245. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +1 -1
  246. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +1 -8
  247. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
  248. package/es/types/Interface/models/IAccount.d.ts +0 -2
  249. package/es/types/Interface/models/IAccount.d.ts.map +1 -1
  250. package/es/types/Interface/models/IAccount.js.map +1 -1
  251. package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -1
  252. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  253. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  254. package/es/types/Interface/models/IApiError.d.ts +4 -2
  255. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  256. package/es/types/Interface/models/IApiError.js +4 -2
  257. package/es/types/Interface/models/IApiError.js.map +1 -1
  258. package/es/types/Interface/models/IAttributionHistory.d.ts +4 -4
  259. package/es/types/Interface/models/IAttributionHistory.d.ts.map +1 -1
  260. package/es/types/Interface/models/IAttributionHistory.js.map +1 -1
  261. package/es/types/Interface/models/ICommercialMail.d.ts +14 -0
  262. package/es/types/Interface/models/ICommercialMail.d.ts.map +1 -0
  263. package/es/types/Interface/models/ICommercialMail.js +2 -0
  264. package/es/types/Interface/models/ICommercialMail.js.map +1 -0
  265. package/es/types/Interface/models/IEngagementBankTransaction.d.ts +2 -0
  266. package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -1
  267. package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -1
  268. package/es/types/Interface/models/IEstimateInvoice.d.ts +24 -28
  269. package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  270. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  271. package/es/types/Interface/models/IExercice.d.ts +0 -1
  272. package/es/types/Interface/models/IExercice.d.ts.map +1 -1
  273. package/es/types/Interface/models/IExercice.js.map +1 -1
  274. package/es/types/Interface/models/{ISocietyRelance.d.ts → IInvoiceReminder.d.ts} +8 -8
  275. package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -0
  276. package/es/types/Interface/models/IInvoiceReminder.js +2 -0
  277. package/es/types/Interface/models/IInvoiceReminder.js.map +1 -0
  278. package/es/types/Interface/models/ILegalNotice.d.ts +0 -1
  279. package/es/types/Interface/models/ILegalNotice.d.ts.map +1 -1
  280. package/es/types/Interface/models/ILegalNotice.js.map +1 -1
  281. package/es/types/Interface/models/ILoan.d.ts +0 -2
  282. package/es/types/Interface/models/ILoan.d.ts.map +1 -1
  283. package/es/types/Interface/models/ILoan.js.map +1 -1
  284. package/es/types/Interface/models/IPartnerTransaction.d.ts +1 -0
  285. package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
  286. package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
  287. package/es/types/Interface/models/IPaymentExpectation.d.ts +0 -1
  288. package/es/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  289. package/es/types/Interface/models/IPaymentExpectation.js.map +1 -1
  290. package/es/types/Interface/models/IPrestation.d.ts +0 -3
  291. package/es/types/Interface/models/IPrestation.d.ts.map +1 -1
  292. package/es/types/Interface/models/IPrestation.js.map +1 -1
  293. package/es/types/Interface/models/IPrestationComplementary.d.ts +1 -1
  294. package/es/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
  295. package/es/types/Interface/models/IPrestationComplementary.js.map +1 -1
  296. package/es/types/Interface/models/IProduct.d.ts +1 -0
  297. package/es/types/Interface/models/IProduct.d.ts.map +1 -1
  298. package/es/types/Interface/models/IProduct.js.map +1 -1
  299. package/es/types/Interface/models/IProductInvoice.d.ts +5 -3
  300. package/es/types/Interface/models/IProductInvoice.d.ts.map +1 -1
  301. package/es/types/Interface/models/IProductInvoice.js.map +1 -1
  302. package/es/types/Interface/models/ISociety.d.ts +2 -5
  303. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  304. package/es/types/Interface/models/ISociety.js.map +1 -1
  305. package/es/types/Interface/models/ISocietyGescom.d.ts +13 -1
  306. package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  307. package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
  308. package/es/types/Interface/models/ISocietyPartner.d.ts +1 -2
  309. package/es/types/Interface/models/ISocietyPartner.d.ts.map +1 -1
  310. package/es/types/Interface/models/ISocietyPartner.js.map +1 -1
  311. package/es/types/Interface/models/ITask.d.ts +2 -2
  312. package/es/types/Interface/models/ITask.d.ts.map +1 -1
  313. package/es/types/Interface/models/ITask.js.map +1 -1
  314. package/es/types/index.d.ts +11 -42
  315. package/es/types/index.d.ts.map +1 -1
  316. package/es/types/index.js +11 -42
  317. package/es/types/index.js.map +1 -1
  318. package/es/utils/amount.d.ts +2 -0
  319. package/es/utils/amount.d.ts.map +1 -0
  320. package/es/utils/amount.js +12 -0
  321. package/es/utils/amount.js.map +1 -0
  322. package/es/utils/brands.d.ts +1 -1
  323. package/es/utils/brands.d.ts.map +1 -1
  324. package/es/utils/brands.js +26 -8
  325. package/es/utils/brands.js.map +1 -1
  326. package/es/utils/commercialManagement/document.d.ts +6 -0
  327. package/es/utils/commercialManagement/document.d.ts.map +1 -0
  328. package/es/utils/commercialManagement/document.js +54 -0
  329. package/es/utils/commercialManagement/document.js.map +1 -0
  330. package/es/utils/commercialManagement/product.d.ts +5 -0
  331. package/es/utils/commercialManagement/product.d.ts.map +1 -0
  332. package/es/utils/commercialManagement/product.js +27 -0
  333. package/es/utils/commercialManagement/product.js.map +1 -0
  334. package/es/utils/commercialManagement/templates/body.d.ts +2 -0
  335. package/es/utils/commercialManagement/templates/body.d.ts.map +1 -0
  336. package/es/utils/commercialManagement/templates/body.js +111 -0
  337. package/es/utils/commercialManagement/templates/body.js.map +1 -0
  338. package/es/utils/commercialManagement/templates/common.d.ts +12 -0
  339. package/es/utils/commercialManagement/templates/common.d.ts.map +1 -0
  340. package/es/utils/commercialManagement/templates/common.js +199 -0
  341. package/es/utils/commercialManagement/templates/common.js.map +1 -0
  342. package/es/utils/commercialManagement/vat.d.ts +6 -0
  343. package/es/utils/commercialManagement/vat.d.ts.map +1 -0
  344. package/es/utils/commercialManagement/vat.js +22 -0
  345. package/es/utils/commercialManagement/vat.js.map +1 -0
  346. package/es/utils/index.d.ts +2 -1
  347. package/es/utils/index.d.ts.map +1 -1
  348. package/es/utils/index.js +2 -1
  349. package/es/utils/index.js.map +1 -1
  350. package/es/utils/task.d.ts +2 -3
  351. package/es/utils/task.d.ts.map +1 -1
  352. package/es/utils/task.js +19 -23
  353. package/es/utils/task.js.map +1 -1
  354. package/es/utils/webmail.d.ts.map +1 -1
  355. package/es/utils/webmail.js +4 -1
  356. package/es/utils/webmail.js.map +1 -1
  357. package/importInterfaces.ts +1 -1
  358. package/js/api/resources/BudgetInsight.js +10 -0
  359. package/js/api/resources/BudgetInsight.js.map +1 -1
  360. package/js/api/resources/CalendarEvent.js +3 -5
  361. package/js/api/resources/CalendarEvent.js.map +1 -1
  362. package/js/api/resources/CommercialSetting.js +22 -0
  363. package/js/api/resources/CommercialSetting.js.map +1 -0
  364. package/js/api/resources/Connector.js +14 -0
  365. package/js/api/resources/Connector.js.map +1 -1
  366. package/js/api/resources/Dashboard.js +0 -6
  367. package/js/api/resources/Dashboard.js.map +1 -1
  368. package/js/api/resources/Exercice.js +0 -4
  369. package/js/api/resources/Exercice.js.map +1 -1
  370. package/js/api/resources/FecFile.js +6 -34
  371. package/js/api/resources/FecFile.js.map +1 -1
  372. package/js/api/resources/GeneralLedger.js +2 -2
  373. package/js/api/resources/GeneralLedger.js.map +1 -1
  374. package/js/api/resources/Invoice.js +42 -0
  375. package/js/api/resources/Invoice.js.map +1 -0
  376. package/js/api/resources/Loan.js +1 -1
  377. package/js/api/resources/Loan.js.map +1 -1
  378. package/js/api/resources/Mail.js +3 -4
  379. package/js/api/resources/Mail.js.map +1 -1
  380. package/js/api/resources/Partner.js +0 -4
  381. package/js/api/resources/Partner.js.map +1 -1
  382. package/js/api/resources/Qonto.js +1 -23
  383. package/js/api/resources/Qonto.js.map +1 -1
  384. package/js/api/resources/User.js +8 -31
  385. package/js/api/resources/User.js.map +1 -1
  386. package/js/api/resources/commercialDocument.js +74 -0
  387. package/js/api/resources/commercialDocument.js.map +1 -0
  388. package/js/api/resources/reminder.js +26 -0
  389. package/js/api/resources/reminder.js.map +1 -0
  390. package/js/api/resources.js +9 -24
  391. package/js/api/resources.js.map +1 -1
  392. package/js/index.js +12 -0
  393. package/js/index.js.map +1 -1
  394. package/js/types/Enum/Account.js +8 -0
  395. package/js/types/Enum/Account.js.map +1 -1
  396. package/js/types/Enum/BalanceSheet.js +1 -1
  397. package/js/types/Enum/BalanceSheet.js.map +1 -1
  398. package/js/types/Enum/BrandClementine.js +1 -10
  399. package/js/types/Enum/BrandClementine.js.map +1 -1
  400. package/js/types/Enum/BrandComptalib.js +5 -14
  401. package/js/types/Enum/BrandComptalib.js.map +1 -1
  402. package/js/types/Enum/BrandLegalstart.js +0 -3
  403. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  404. package/js/types/Enum/BrandPourcentage.js +3 -7
  405. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  406. package/js/types/Enum/BudgetInsight.js.map +1 -1
  407. package/js/types/Enum/CommercialManagement.js +67 -0
  408. package/js/types/Enum/CommercialManagement.js.map +1 -0
  409. package/js/types/Enum/EstimateInvoice.js +1 -1
  410. package/js/types/Enum/EstimateInvoice.js.map +1 -1
  411. package/js/types/Enum/Ged.js +17 -104
  412. package/js/types/Enum/Ged.js.map +1 -1
  413. package/js/types/Enum/Log.js +0 -1
  414. package/js/types/Enum/Log.js.map +1 -1
  415. package/js/types/Enum/Prestation.js +22 -0
  416. package/js/types/Enum/Prestation.js.map +1 -0
  417. package/js/types/Enum/Role.js +13 -18
  418. package/js/types/Enum/Role.js.map +1 -1
  419. package/js/types/Enum/RoleDetail.js +86 -149
  420. package/js/types/Enum/RoleDetail.js.map +1 -1
  421. package/js/types/Enum/SheetMonthScheduleDetailType.js +1 -1
  422. package/js/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
  423. package/js/types/Enum/TaskResponseType.js +3 -56
  424. package/js/types/Enum/TaskResponseType.js.map +1 -1
  425. package/js/types/Enum/TimeCounterType.js +40 -68
  426. package/js/types/Enum/TimeCounterType.js.map +1 -1
  427. package/js/types/Enum/Vat.js +46 -45
  428. package/js/types/Enum/Vat.js.map +1 -1
  429. package/js/types/Enum/VatDeclarationType.js +0 -5
  430. package/js/types/Enum/VatDeclarationType.js.map +1 -1
  431. package/js/types/Interface/api/3cx/Query3cxSearch.js +0 -2
  432. package/js/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
  433. package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
  434. package/js/types/Interface/api/commercialManagement/Create.js +235 -0
  435. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -0
  436. package/js/types/Interface/api/commercialManagement/Query.js +79 -0
  437. package/js/types/Interface/api/commercialManagement/Query.js.map +1 -0
  438. package/js/types/Interface/api/{qonto/Query.js → commercialManagement/Read.js} +1 -1
  439. package/js/types/Interface/api/commercialManagement/Read.js.map +1 -0
  440. package/js/types/Interface/api/commercialManagement/Update.js +55 -0
  441. package/js/types/Interface/api/commercialManagement/Update.js.map +1 -0
  442. package/js/types/Interface/api/connector/CreateConnector.js +47 -0
  443. package/js/types/Interface/api/connector/CreateConnector.js.map +1 -0
  444. package/js/types/Interface/api/{qonto/ProcessBankAccount.js → connector/QueryConnector.js} +10 -6
  445. package/js/types/Interface/api/connector/QueryConnector.js.map +1 -0
  446. package/js/types/Interface/api/dashboard/ReadGescom.js.map +1 -1
  447. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +0 -2
  448. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  449. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +0 -2
  450. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  451. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -5
  452. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  453. package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -3
  454. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  455. package/js/types/Interface/api/product/CreateProduct.js +5 -5
  456. package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
  457. package/js/types/Interface/api/product/QueryProduct.js +6 -0
  458. package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
  459. package/js/types/Interface/api/report/QueryReports.js +0 -2
  460. package/js/types/Interface/api/report/QueryReports.js.map +1 -1
  461. package/js/types/Interface/api/revision/QueryRevision.js +0 -6
  462. package/js/types/Interface/api/revision/QueryRevision.js.map +1 -1
  463. package/js/types/Interface/api/revision/QueryRevisionAccount.js +5 -7
  464. package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  465. package/js/types/Interface/api/revision/QueryRevisionPaginate.js +0 -6
  466. package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  467. package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  468. package/js/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  469. package/js/types/Interface/api/task/QueryCountTask.js +1 -1
  470. package/js/types/Interface/api/task/QueryCountTask.js.map +1 -1
  471. package/js/types/Interface/api/task/QueryPaginatedTask.js +0 -6
  472. package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  473. package/js/types/Interface/api/thirdParty/QueryThirdParty.js +0 -2
  474. package/js/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
  475. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +0 -6
  476. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  477. package/js/types/Interface/api/user/QueryGetAllCollaborators.js +0 -8
  478. package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  479. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +0 -4
  480. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
  481. package/js/types/Interface/models/IApiError.js +5 -3
  482. package/js/types/Interface/models/IApiError.js.map +1 -1
  483. package/js/types/Interface/models/{ISocietyRelance.js → ICommercialMail.js} +1 -1
  484. package/js/types/Interface/models/ICommercialMail.js.map +1 -0
  485. package/js/types/Interface/{api/dashboard/ReadVatDisbursed.js → models/IInvoiceReminder.js} +1 -1
  486. package/js/types/Interface/models/IInvoiceReminder.js.map +1 -0
  487. package/js/types/index.js +64 -436
  488. package/js/types/index.js.map +1 -1
  489. package/js/utils/amount.js +23 -0
  490. package/js/utils/amount.js.map +1 -0
  491. package/js/utils/brands.js +26 -7
  492. package/js/utils/brands.js.map +1 -1
  493. package/js/utils/commercialManagement/document.js +148 -0
  494. package/js/utils/commercialManagement/document.js.map +1 -0
  495. package/js/utils/commercialManagement/product.js +56 -0
  496. package/js/utils/commercialManagement/product.js.map +1 -0
  497. package/js/utils/commercialManagement/templates/body.js +120 -0
  498. package/js/utils/commercialManagement/templates/body.js.map +1 -0
  499. package/js/utils/commercialManagement/templates/common.js +211 -0
  500. package/js/utils/commercialManagement/templates/common.js.map +1 -0
  501. package/js/utils/commercialManagement/vat.js +44 -0
  502. package/js/utils/commercialManagement/vat.js.map +1 -0
  503. package/js/utils/index.js +21 -9
  504. package/js/utils/index.js.map +1 -1
  505. package/js/utils/task.js +20 -29
  506. package/js/utils/task.js.map +1 -1
  507. package/js/utils/webmail.js +3 -1
  508. package/js/utils/webmail.js.map +1 -1
  509. package/package.json +3 -1
  510. package/ts/api/resources/BudgetInsight.ts +13 -0
  511. package/ts/api/resources/CalendarEvent.ts +2 -3
  512. package/ts/api/resources/CommercialSetting.ts +12 -0
  513. package/ts/api/resources/Connector.ts +16 -1
  514. package/ts/api/resources/Dashboard.ts +0 -6
  515. package/ts/api/resources/Exercice.ts +0 -4
  516. package/ts/api/resources/FecFile.ts +6 -32
  517. package/ts/api/resources/GeneralLedger.ts +2 -2
  518. package/ts/api/resources/Invoice.ts +39 -0
  519. package/ts/api/resources/Loan.ts +1 -1
  520. package/ts/api/resources/Mail.ts +3 -4
  521. package/ts/api/resources/Partner.ts +0 -4
  522. package/ts/api/resources/Qonto.ts +5 -27
  523. package/ts/api/resources/User.ts +29 -30
  524. package/ts/api/resources/commercialDocument.ts +66 -0
  525. package/ts/api/resources/reminder.ts +20 -0
  526. package/ts/api/resources.ts +8 -18
  527. package/ts/index.ts +1 -0
  528. package/ts/types/Enum/Account.ts +8 -0
  529. package/ts/types/Enum/BalanceSheet.ts +1 -1
  530. package/ts/types/Enum/BrandClementine.ts +1 -10
  531. package/ts/types/Enum/BrandComptalib.ts +4 -13
  532. package/ts/types/Enum/BrandLegalstart.ts +0 -3
  533. package/ts/types/Enum/BrandPourcentage.ts +3 -7
  534. package/ts/types/Enum/BudgetInsight.ts +1 -1
  535. package/ts/types/Enum/CommercialManagement.ts +38 -0
  536. package/ts/types/Enum/EstimateInvoice.ts +1 -1
  537. package/ts/types/Enum/Ged.ts +15 -102
  538. package/ts/types/Enum/Log.ts +0 -1
  539. package/ts/types/Enum/Prestation.ts +14 -0
  540. package/ts/types/Enum/Role.ts +10 -15
  541. package/ts/types/Enum/RoleDetail.ts +64 -127
  542. package/ts/types/Enum/SheetMonthScheduleDetailType.ts +1 -1
  543. package/ts/types/Enum/TaskResponseType.ts +2 -57
  544. package/ts/types/Enum/TimeCounterType.ts +19 -47
  545. package/ts/types/Enum/Vat.ts +28 -25
  546. package/ts/types/Enum/VatDeclarationType.ts +0 -6
  547. package/ts/types/Interface/api/3cx/Query3cxSearch.ts +0 -5
  548. package/ts/types/Interface/api/calendarEvent/getAllCalendarEvent.ts +1 -1
  549. package/ts/types/Interface/api/calendarEvent/readAllCalendarEvent.ts +0 -1
  550. package/ts/types/Interface/api/commercialManagement/Create.ts +423 -0
  551. package/ts/types/Interface/api/commercialManagement/Query.ts +115 -0
  552. package/ts/types/Interface/api/commercialManagement/Read.ts +64 -0
  553. package/ts/types/Interface/api/commercialManagement/Update.ts +72 -0
  554. package/ts/types/Interface/api/connector/CreateConnector.ts +51 -0
  555. package/ts/types/Interface/api/connector/QueryConnector.ts +16 -0
  556. package/ts/types/Interface/api/dashboard/ReadGescom.ts +2 -3
  557. package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +0 -6
  558. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +1 -6
  559. package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -7
  560. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -6
  561. package/ts/types/Interface/api/product/CreateProduct.ts +8 -5
  562. package/ts/types/Interface/api/product/QueryProduct.ts +13 -0
  563. package/ts/types/Interface/api/report/QueryReports.ts +0 -3
  564. package/ts/types/Interface/api/revision/QueryRevision.ts +2 -15
  565. package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +4 -11
  566. package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +2 -15
  567. package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +1 -1
  568. package/ts/types/Interface/api/revision/ReadRevision.ts +1 -2
  569. package/ts/types/Interface/api/simulation/CreateSimulation.ts +0 -2
  570. package/ts/types/Interface/api/task/QueryCountTask.ts +1 -1
  571. package/ts/types/Interface/api/task/QueryPaginatedTask.ts +0 -9
  572. package/ts/types/Interface/api/thirdParty/QueryThirdParty.ts +1 -8
  573. package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +0 -9
  574. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +1 -12
  575. package/ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts +1 -7
  576. package/ts/types/Interface/models/IAccount.ts +0 -2
  577. package/ts/types/Interface/models/IAccountingTransaction.ts +1 -1
  578. package/ts/types/Interface/models/IApiError.ts +5 -3
  579. package/ts/types/Interface/models/IAttributionHistory.ts +4 -4
  580. package/ts/types/Interface/models/ICommercialMail.ts +15 -0
  581. package/ts/types/Interface/models/IEngagementBankTransaction.ts +2 -0
  582. package/ts/types/Interface/models/IEstimateInvoice.ts +24 -28
  583. package/ts/types/Interface/models/IExercice.ts +0 -1
  584. package/ts/types/Interface/models/{ISocietyRelance.ts → IInvoiceReminder.ts} +7 -7
  585. package/ts/types/Interface/models/ILegalNotice.ts +0 -1
  586. package/ts/types/Interface/models/ILoan.ts +0 -2
  587. package/ts/types/Interface/models/IPartnerTransaction.ts +1 -0
  588. package/ts/types/Interface/models/IPaymentExpectation.ts +0 -1
  589. package/ts/types/Interface/models/IPrestation.ts +0 -3
  590. package/ts/types/Interface/models/IPrestationComplementary.ts +1 -1
  591. package/ts/types/Interface/models/IProduct.ts +1 -0
  592. package/ts/types/Interface/models/IProductInvoice.ts +5 -3
  593. package/ts/types/Interface/models/ISociety.ts +2 -5
  594. package/ts/types/Interface/models/ISocietyGescom.ts +14 -1
  595. package/ts/types/Interface/models/ISocietyPartner.ts +1 -2
  596. package/ts/types/Interface/models/ITask.ts +2 -2
  597. package/ts/types/index.ts +11 -42
  598. package/ts/utils/amount.ts +13 -0
  599. package/ts/utils/brands.ts +25 -7
  600. package/ts/utils/commercialManagement/document.ts +105 -0
  601. package/ts/utils/commercialManagement/product.ts +36 -0
  602. package/ts/utils/commercialManagement/templates/body.ts +113 -0
  603. package/ts/utils/commercialManagement/templates/common.ts +205 -0
  604. package/ts/utils/commercialManagement/vat.ts +24 -0
  605. package/ts/utils/index.ts +2 -1
  606. package/ts/utils/task.ts +16 -24
  607. package/ts/utils/webmail.ts +3 -1
  608. package/es/api/resources/LegalNotice.d.ts +0 -6
  609. package/es/api/resources/LegalNotice.d.ts.map +0 -1
  610. package/es/api/resources/LegalNotice.js +0 -7
  611. package/es/api/resources/LegalNotice.js.map +0 -1
  612. package/es/api/resources/PaymentExpectation.d.ts +0 -6
  613. package/es/api/resources/PaymentExpectation.d.ts.map +0 -1
  614. package/es/api/resources/PaymentExpectation.js +0 -7
  615. package/es/api/resources/PaymentExpectation.js.map +0 -1
  616. package/es/api/resources/SlowDetection.d.ts +0 -11
  617. package/es/api/resources/SlowDetection.d.ts.map +0 -1
  618. package/es/api/resources/SlowDetection.js +0 -12
  619. package/es/api/resources/SlowDetection.js.map +0 -1
  620. package/es/api/resources/SocietyConfig.d.ts +0 -7
  621. package/es/api/resources/SocietyConfig.d.ts.map +0 -1
  622. package/es/api/resources/SocietyConfig.js +0 -10
  623. package/es/api/resources/SocietyConfig.js.map +0 -1
  624. package/es/api/resources/Source.d.ts +0 -6
  625. package/es/api/resources/Source.d.ts.map +0 -1
  626. package/es/api/resources/Source.js +0 -7
  627. package/es/api/resources/Source.js.map +0 -1
  628. package/es/api/resources/TerminationList.d.ts +0 -7
  629. package/es/api/resources/TerminationList.d.ts.map +0 -1
  630. package/es/api/resources/TerminationList.js +0 -10
  631. package/es/api/resources/TerminationList.js.map +0 -1
  632. package/es/api/resources/Wallet.d.ts +0 -8
  633. package/es/api/resources/Wallet.d.ts.map +0 -1
  634. package/es/api/resources/Wallet.js +0 -7
  635. package/es/api/resources/Wallet.js.map +0 -1
  636. package/es/api/resources/statistic/Accountant.d.ts +0 -59
  637. package/es/api/resources/statistic/Accountant.d.ts.map +0 -1
  638. package/es/api/resources/statistic/Accountant.js +0 -86
  639. package/es/api/resources/statistic/Accountant.js.map +0 -1
  640. package/es/api/resources/statistic/Direction.d.ts +0 -11
  641. package/es/api/resources/statistic/Direction.d.ts.map +0 -1
  642. package/es/api/resources/statistic/Direction.js +0 -14
  643. package/es/api/resources/statistic/Direction.js.map +0 -1
  644. package/es/api/resources/statistic/ExpertAccountant.d.ts +0 -29
  645. package/es/api/resources/statistic/ExpertAccountant.d.ts.map +0 -1
  646. package/es/api/resources/statistic/ExpertAccountant.js +0 -41
  647. package/es/api/resources/statistic/ExpertAccountant.js.map +0 -1
  648. package/es/types/Enum/AdditionnalSells.d.ts +0 -7
  649. package/es/types/Enum/AdditionnalSells.d.ts.map +0 -1
  650. package/es/types/Enum/AdditionnalSells.js +0 -8
  651. package/es/types/Enum/AdditionnalSells.js.map +0 -1
  652. package/es/types/Enum/CustomerVat.d.ts +0 -24
  653. package/es/types/Enum/CustomerVat.d.ts.map +0 -1
  654. package/es/types/Enum/CustomerVat.js +0 -26
  655. package/es/types/Enum/CustomerVat.js.map +0 -1
  656. package/es/types/Enum/Lab.d.ts +0 -25
  657. package/es/types/Enum/Lab.d.ts.map +0 -1
  658. package/es/types/Enum/Lab.js +0 -26
  659. package/es/types/Enum/Lab.js.map +0 -1
  660. package/es/types/Enum/OperationLegalNotice.d.ts +0 -4
  661. package/es/types/Enum/OperationLegalNotice.d.ts.map +0 -1
  662. package/es/types/Enum/OperationLegalNotice.js +0 -5
  663. package/es/types/Enum/OperationLegalNotice.js.map +0 -1
  664. package/es/types/Enum/OrderStatus.d.ts +0 -6
  665. package/es/types/Enum/OrderStatus.d.ts.map +0 -1
  666. package/es/types/Enum/OrderStatus.js +0 -7
  667. package/es/types/Enum/OrderStatus.js.map +0 -1
  668. package/es/types/Enum/PrestationType.d.ts +0 -2776
  669. package/es/types/Enum/PrestationType.d.ts.map +0 -1
  670. package/es/types/Enum/PrestationType.js +0 -2778
  671. package/es/types/Enum/PrestationType.js.map +0 -1
  672. package/es/types/Enum/Reason.d.ts +0 -4
  673. package/es/types/Enum/Reason.d.ts.map +0 -1
  674. package/es/types/Enum/Reason.js +0 -5
  675. package/es/types/Enum/Reason.js.map +0 -1
  676. package/es/types/Enum/RegistrationSourceDetail.d.ts +0 -195
  677. package/es/types/Enum/RegistrationSourceDetail.d.ts.map +0 -1
  678. package/es/types/Enum/RegistrationSourceDetail.js +0 -99
  679. package/es/types/Enum/RegistrationSourceDetail.js.map +0 -1
  680. package/es/types/Enum/ReportService.d.ts +0 -10
  681. package/es/types/Enum/ReportService.d.ts.map +0 -1
  682. package/es/types/Enum/ReportService.js +0 -31
  683. package/es/types/Enum/ReportService.js.map +0 -1
  684. package/es/types/Enum/Rules.d.ts +0 -2
  685. package/es/types/Enum/Rules.d.ts.map +0 -1
  686. package/es/types/Enum/Rules.js +0 -19
  687. package/es/types/Enum/Rules.js.map +0 -1
  688. package/es/types/Enum/StatisticType.d.ts +0 -16
  689. package/es/types/Enum/StatisticType.d.ts.map +0 -1
  690. package/es/types/Enum/StatisticType.js +0 -17
  691. package/es/types/Enum/StatisticType.js.map +0 -1
  692. package/es/types/Enum/StatsCaStateDetail.d.ts +0 -28
  693. package/es/types/Enum/StatsCaStateDetail.d.ts.map +0 -1
  694. package/es/types/Enum/StatsCaStateDetail.js +0 -28
  695. package/es/types/Enum/StatsCaStateDetail.js.map +0 -1
  696. package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts +0 -5
  697. package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts.map +0 -1
  698. package/es/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -24
  699. package/es/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
  700. package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts +0 -13
  701. package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts.map +0 -1
  702. package/es/types/Interface/api/dashboard/ReadVatDisbursed.js +0 -2
  703. package/es/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
  704. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts +0 -5
  705. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts.map +0 -1
  706. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -25
  707. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
  708. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +0 -4
  709. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +0 -1
  710. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -17
  711. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
  712. package/es/types/Interface/api/prestation/CreatePrestation.d.ts +0 -6
  713. package/es/types/Interface/api/prestation/CreatePrestation.d.ts.map +0 -1
  714. package/es/types/Interface/api/prestation/CreatePrestation.js +0 -28
  715. package/es/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
  716. package/es/types/Interface/api/qonto/CreateImportation.d.ts +0 -5
  717. package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +0 -1
  718. package/es/types/Interface/api/qonto/CreateImportation.js +0 -26
  719. package/es/types/Interface/api/qonto/CreateImportation.js.map +0 -1
  720. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +0 -5
  721. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +0 -1
  722. package/es/types/Interface/api/qonto/CreateQontoConnection.js +0 -24
  723. package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
  724. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +0 -4
  725. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +0 -1
  726. package/es/types/Interface/api/qonto/GetConnectionInformation.js +0 -19
  727. package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
  728. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +0 -5
  729. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +0 -1
  730. package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
  731. package/es/types/Interface/api/qonto/Query.d.ts +0 -77
  732. package/es/types/Interface/api/qonto/Query.d.ts.map +0 -1
  733. package/es/types/Interface/api/qonto/Query.js +0 -2
  734. package/es/types/Interface/api/qonto/Query.js.map +0 -1
  735. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts +0 -6
  736. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +0 -1
  737. package/es/types/Interface/api/qonto/ReadCreateConnection.js +0 -2
  738. package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
  739. package/es/types/Interface/api/qonto/UpdateConnection.d.ts +0 -4
  740. package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +0 -1
  741. package/es/types/Interface/api/qonto/UpdateConnection.js +0 -19
  742. package/es/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
  743. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts +0 -13
  744. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts.map +0 -1
  745. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +0 -74
  746. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +0 -1
  747. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts +0 -11
  748. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts.map +0 -1
  749. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js +0 -2
  750. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js.map +0 -1
  751. package/es/types/Interface/api/societyConfig/update.d.ts +0 -21
  752. package/es/types/Interface/api/societyConfig/update.d.ts.map +0 -1
  753. package/es/types/Interface/api/societyConfig/update.js.map +0 -1
  754. package/es/types/Interface/api/statistic/ExitRequest.d.ts +0 -108
  755. package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +0 -1
  756. package/es/types/Interface/api/statistic/ExitRequest.js +0 -2
  757. package/es/types/Interface/api/statistic/ExitRequest.js.map +0 -1
  758. package/es/types/Interface/api/statistic/QueryAccountant.d.ts +0 -6
  759. package/es/types/Interface/api/statistic/QueryAccountant.d.ts.map +0 -1
  760. package/es/types/Interface/api/statistic/QueryAccountant.js +0 -31
  761. package/es/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
  762. package/es/types/Interface/api/statistic/QueryDirection.d.ts +0 -6
  763. package/es/types/Interface/api/statistic/QueryDirection.d.ts.map +0 -1
  764. package/es/types/Interface/api/statistic/QueryDirection.js +0 -31
  765. package/es/types/Interface/api/statistic/QueryDirection.js.map +0 -1
  766. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts +0 -6
  767. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts.map +0 -1
  768. package/es/types/Interface/api/statistic/QueryExpertAccountant.js +0 -31
  769. package/es/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
  770. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts +0 -5
  771. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts.map +0 -1
  772. package/es/types/Interface/api/statistic/QueryGetAccountant.js +0 -24
  773. package/es/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
  774. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts +0 -5
  775. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts.map +0 -1
  776. package/es/types/Interface/api/statistic/QueryGetDirection.js +0 -24
  777. package/es/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
  778. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts +0 -5
  779. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts.map +0 -1
  780. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -24
  781. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
  782. package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts +0 -17
  783. package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts.map +0 -1
  784. package/es/types/Interface/api/terminationList/DestroyTerminationList.js +0 -96
  785. package/es/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
  786. package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts +0 -17
  787. package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts.map +0 -1
  788. package/es/types/Interface/api/terminationList/QueryTerminationList.js +0 -98
  789. package/es/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
  790. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts +0 -6
  791. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts.map +0 -1
  792. package/es/types/Interface/api/wallet/UpdateAttribution.js +0 -34
  793. package/es/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
  794. package/es/types/Interface/models/IPrestationHistory.d.ts +0 -13
  795. package/es/types/Interface/models/IPrestationHistory.d.ts.map +0 -1
  796. package/es/types/Interface/models/IPrestationHistory.js +0 -2
  797. package/es/types/Interface/models/IPrestationHistory.js.map +0 -1
  798. package/es/types/Interface/models/ISlowDetection.d.ts +0 -9
  799. package/es/types/Interface/models/ISlowDetection.d.ts.map +0 -1
  800. package/es/types/Interface/models/ISlowDetection.js +0 -2
  801. package/es/types/Interface/models/ISlowDetection.js.map +0 -1
  802. package/es/types/Interface/models/ISocietyRelance.d.ts.map +0 -1
  803. package/es/types/Interface/models/ISocietyRelance.js +0 -2
  804. package/es/types/Interface/models/ISocietyRelance.js.map +0 -1
  805. package/es/types/Interface/models/IStatistic.d.ts +0 -11
  806. package/es/types/Interface/models/IStatistic.d.ts.map +0 -1
  807. package/es/types/Interface/models/IStatistic.js +0 -2
  808. package/es/types/Interface/models/IStatistic.js.map +0 -1
  809. package/es/utils/prestation.d.ts +0 -11
  810. package/es/utils/prestation.d.ts.map +0 -1
  811. package/es/utils/prestation.js +0 -62
  812. package/es/utils/prestation.js.map +0 -1
  813. package/js/api/resources/LegalNotice.js +0 -18
  814. package/js/api/resources/LegalNotice.js.map +0 -1
  815. package/js/api/resources/PaymentExpectation.js +0 -20
  816. package/js/api/resources/PaymentExpectation.js.map +0 -1
  817. package/js/api/resources/SlowDetection.js +0 -23
  818. package/js/api/resources/SlowDetection.js.map +0 -1
  819. package/js/api/resources/SocietyConfig.js +0 -22
  820. package/js/api/resources/SocietyConfig.js.map +0 -1
  821. package/js/api/resources/Source.js +0 -18
  822. package/js/api/resources/Source.js.map +0 -1
  823. package/js/api/resources/TerminationList.js +0 -26
  824. package/js/api/resources/TerminationList.js.map +0 -1
  825. package/js/api/resources/Wallet.js +0 -18
  826. package/js/api/resources/Wallet.js.map +0 -1
  827. package/js/api/resources/statistic/Accountant.js +0 -150
  828. package/js/api/resources/statistic/Accountant.js.map +0 -1
  829. package/js/api/resources/statistic/Direction.js +0 -30
  830. package/js/api/resources/statistic/Direction.js.map +0 -1
  831. package/js/api/resources/statistic/ExpertAccountant.js +0 -75
  832. package/js/api/resources/statistic/ExpertAccountant.js.map +0 -1
  833. package/js/types/Enum/AdditionnalSells.js +0 -14
  834. package/js/types/Enum/AdditionnalSells.js.map +0 -1
  835. package/js/types/Enum/CustomerVat.js +0 -34
  836. package/js/types/Enum/CustomerVat.js.map +0 -1
  837. package/js/types/Enum/Lab.js +0 -33
  838. package/js/types/Enum/Lab.js.map +0 -1
  839. package/js/types/Enum/OperationLegalNotice.js +0 -11
  840. package/js/types/Enum/OperationLegalNotice.js.map +0 -1
  841. package/js/types/Enum/OrderStatus.js +0 -13
  842. package/js/types/Enum/OrderStatus.js.map +0 -1
  843. package/js/types/Enum/PrestationType.js +0 -2785
  844. package/js/types/Enum/PrestationType.js.map +0 -1
  845. package/js/types/Enum/Reason.js +0 -11
  846. package/js/types/Enum/Reason.js.map +0 -1
  847. package/js/types/Enum/RegistrationSourceDetail.js +0 -200
  848. package/js/types/Enum/RegistrationSourceDetail.js.map +0 -1
  849. package/js/types/Enum/ReportService.js +0 -32
  850. package/js/types/Enum/ReportService.js.map +0 -1
  851. package/js/types/Enum/Rules.js +0 -7
  852. package/js/types/Enum/Rules.js.map +0 -1
  853. package/js/types/Enum/StatisticType.js +0 -23
  854. package/js/types/Enum/StatisticType.js.map +0 -1
  855. package/js/types/Enum/StatsCaStateDetail.js +0 -33
  856. package/js/types/Enum/StatsCaStateDetail.js.map +0 -1
  857. package/js/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -31
  858. package/js/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
  859. package/js/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
  860. package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -31
  861. package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
  862. package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -27
  863. package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
  864. package/js/types/Interface/api/prestation/CreatePrestation.js +0 -33
  865. package/js/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
  866. package/js/types/Interface/api/qonto/CreateImportation.js +0 -31
  867. package/js/types/Interface/api/qonto/CreateImportation.js.map +0 -1
  868. package/js/types/Interface/api/qonto/CreateQontoConnection.js +0 -31
  869. package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
  870. package/js/types/Interface/api/qonto/GetConnectionInformation.js +0 -29
  871. package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
  872. package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
  873. package/js/types/Interface/api/qonto/Query.js.map +0 -1
  874. package/js/types/Interface/api/qonto/ReadCreateConnection.js +0 -6
  875. package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
  876. package/js/types/Interface/api/qonto/UpdateConnection.js +0 -29
  877. package/js/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
  878. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +0 -53
  879. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +0 -1
  880. package/js/types/Interface/api/society/SocietyWithStatsCaParams.js +0 -6
  881. package/js/types/Interface/api/society/SocietyWithStatsCaParams.js.map +0 -1
  882. package/js/types/Interface/api/societyConfig/update.js +0 -65
  883. package/js/types/Interface/api/societyConfig/update.js.map +0 -1
  884. package/js/types/Interface/api/statistic/ExitRequest.js +0 -6
  885. package/js/types/Interface/api/statistic/ExitRequest.js.map +0 -1
  886. package/js/types/Interface/api/statistic/QueryAccountant.js +0 -35
  887. package/js/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
  888. package/js/types/Interface/api/statistic/QueryDirection.js +0 -35
  889. package/js/types/Interface/api/statistic/QueryDirection.js.map +0 -1
  890. package/js/types/Interface/api/statistic/QueryExpertAccountant.js +0 -35
  891. package/js/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
  892. package/js/types/Interface/api/statistic/QueryGetAccountant.js +0 -31
  893. package/js/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
  894. package/js/types/Interface/api/statistic/QueryGetDirection.js +0 -31
  895. package/js/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
  896. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -31
  897. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
  898. package/js/types/Interface/api/terminationList/DestroyTerminationList.js +0 -55
  899. package/js/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
  900. package/js/types/Interface/api/terminationList/QueryTerminationList.js +0 -55
  901. package/js/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
  902. package/js/types/Interface/api/wallet/UpdateAttribution.js +0 -35
  903. package/js/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
  904. package/js/types/Interface/models/IPrestationHistory.js +0 -6
  905. package/js/types/Interface/models/IPrestationHistory.js.map +0 -1
  906. package/js/types/Interface/models/ISlowDetection.js +0 -6
  907. package/js/types/Interface/models/ISlowDetection.js.map +0 -1
  908. package/js/types/Interface/models/ISocietyRelance.js.map +0 -1
  909. package/js/types/Interface/models/IStatistic.js +0 -6
  910. package/js/types/Interface/models/IStatistic.js.map +0 -1
  911. package/js/utils/prestation.js +0 -41
  912. package/js/utils/prestation.js.map +0 -1
  913. package/ts/api/resources/LegalNotice.ts +0 -8
  914. package/ts/api/resources/PaymentExpectation.ts +0 -8
  915. package/ts/api/resources/SlowDetection.ts +0 -13
  916. package/ts/api/resources/SocietyConfig.ts +0 -12
  917. package/ts/api/resources/Source.ts +0 -8
  918. package/ts/api/resources/TerminationList.ts +0 -12
  919. package/ts/api/resources/Wallet.ts +0 -8
  920. package/ts/api/resources/statistic/Accountant.ts +0 -121
  921. package/ts/api/resources/statistic/Direction.ts +0 -17
  922. package/ts/api/resources/statistic/ExpertAccountant.ts +0 -56
  923. package/ts/types/Enum/AdditionnalSells.ts +0 -6
  924. package/ts/types/Enum/CustomerVat.ts +0 -24
  925. package/ts/types/Enum/Lab.ts +0 -25
  926. package/ts/types/Enum/OperationLegalNotice.ts +0 -3
  927. package/ts/types/Enum/OrderStatus.ts +0 -5
  928. package/ts/types/Enum/PrestationType.ts +0 -2777
  929. package/ts/types/Enum/Reason.ts +0 -3
  930. package/ts/types/Enum/RegistrationSourceDetail.ts +0 -98
  931. package/ts/types/Enum/ReportService.ts +0 -32
  932. package/ts/types/Enum/Rules.ts +0 -18
  933. package/ts/types/Enum/StatisticType.ts +0 -15
  934. package/ts/types/Enum/StatsCaStateDetail.ts +0 -27
  935. package/ts/types/Interface/api/dashboard/QueryVatDisbursed.ts +0 -12
  936. package/ts/types/Interface/api/dashboard/ReadVatDisbursed.ts +0 -14
  937. package/ts/types/Interface/api/legalNotice/UpdateLegalNotice.ts +0 -13
  938. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +0 -6
  939. package/ts/types/Interface/api/prestation/CreatePrestation.ts +0 -15
  940. package/ts/types/Interface/api/qonto/CreateImportation.ts +0 -14
  941. package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +0 -12
  942. package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +0 -8
  943. package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +0 -12
  944. package/ts/types/Interface/api/qonto/Query.ts +0 -80
  945. package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +0 -6
  946. package/ts/types/Interface/api/qonto/UpdateConnection.ts +0 -8
  947. package/ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts +0 -56
  948. package/ts/types/Interface/api/society/SocietyWithStatsCaParams.ts +0 -11
  949. package/ts/types/Interface/api/societyConfig/update.ts +0 -103
  950. package/ts/types/Interface/api/statistic/ExitRequest.ts +0 -120
  951. package/ts/types/Interface/api/statistic/QueryAccountant.ts +0 -20
  952. package/ts/types/Interface/api/statistic/QueryDirection.ts +0 -20
  953. package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +0 -20
  954. package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +0 -14
  955. package/ts/types/Interface/api/statistic/QueryGetDirection.ts +0 -14
  956. package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +0 -14
  957. package/ts/types/Interface/api/terminationList/DestroyTerminationList.ts +0 -74
  958. package/ts/types/Interface/api/terminationList/QueryTerminationList.ts +0 -76
  959. package/ts/types/Interface/api/wallet/UpdateAttribution.ts +0 -23
  960. package/ts/types/Interface/models/IPrestationHistory.ts +0 -16
  961. package/ts/types/Interface/models/ISlowDetection.ts +0 -11
  962. package/ts/types/Interface/models/IStatistic.ts +0 -13
  963. package/ts/utils/prestation.ts +0 -71
@@ -1 +1 @@
1
- {"version":3,"file":"brands.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAaA,MAAMA,qBAAqB,GAAIC,OAAD,IAA+E;;;EAC3G,MAAMC,GAAG,GAAG,aAAO,SAAP,WAAO,WAAP,aAAWC,OAAO,CAACD,GAAR,CAAYE,QAAvB,MAA+B,IAA/B,IAA+BC,aAA/B,GAA+BA,EAA/B,GAAmCF,OAAO,CAACD,GAAR,CAAYI,QAA3D;;EACA,IAAIJ,GAAJ,EAAS;IACP,IAAIA,GAAG,CAACK,OAAJ,CAAY,YAAZ,IAA4B,CAAC,CAA7B,IAAkCL,GAAG,CAACK,OAAJ,CAAY,YAAZ,IAA4B,CAAC,CAAnE,EAAsE;MACpE,OAAO,YAAP;IACD;;IACD,IAAIL,GAAG,CAACK,OAAJ,CAAY,WAAZ,IAA2B,CAAC,CAA5B,IAAiCL,GAAG,CAACK,OAAJ,CAAY,WAAZ,IAA2B,CAAC,CAAjE,EAAoE;MAClE,OAAO,WAAP;IACD;;IACD,IAAIL,GAAG,CAACK,OAAJ,CAAY,aAAZ,IAA6B,CAAC,CAA9B,IAAmCL,GAAG,CAACK,OAAJ,CAAY,aAAZ,IAA6B,CAAC,CAArE,EAAwE;MACtE,OAAO,aAAP;IACD;EACF;;EACD,OAAO,YAAP;AACD,CAdD;;AAgBA,MAAMC,oBAAoB,GAAIP,OAAD,IAAmC;EAC9D,MAAMQ,WAAW,GAAGR,OAAO,SAAP,WAAO,WAAP,aAAWE,OAAO,CAACD,GAAR,CAAYE,QAA3C;EACA,MAAMM,cAAc,GAAGV,qBAAqB,CAACS,WAAD,CAA5C;EACA,MAAME,WAAW,GAAG;IAClBC,eAAe,EAAfA,gCADkB;IACDC,eAAe,EAA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MC,YAAY,GAAGX,iBAAiB,CAACM,IAAlB,CAAwBC,CAAD,IAAcA,CAAC,CAACK,IAAF,KAAWlB,cAAhD,CAArB;MACAgB,cAAc,GAAG,iBAAUC,YAAV,EAAwBN,YAAxB,CAAjB;IACD;;IACD,OAAOK,cAAP;EACD;;EAED,OAAOT,KAAP;AACD,CArCD;;AAuCA,MAAMY,eAAe,GAAIC,KAAD,IAA2G;EACjI,IAAIA,KAAK,CAACvB,OAAN,CAAc,eAAd,IAAiC,CAAC,CAAtC,EAAyC,OAAO,YAAP;EACzC,IAAIuB,KAAK,CAACvB,OAAN,CAAc,eAAd,IAAiC,CAAC,CAAtC,EAAyC,OAAO,WAAP;EACzC,IAAIuB,KAAK,CAACvB,OAAN,CAAc,gBAAd,IAAkC,CAAC,CAAvC,EAA0C,OAAO,aAAP;EAC1C,IAAIuB,KAAK,CAACvB,OAAN,CAAc,sBAAd,IAAwC,CAAC,CAA7C,EAAgD,OAAO,YAAP;EAChD,IAAIuB,KAAK,CAACvB,OAAN,CAAc,wBAAd,IAA0C,CAAC,CAA/C,EAAkD,OAAO,qBAAP;EAClD,OAAO,IAAP;AACD,CAPD;;QAUEW,c,GAAAA,c;QAAgBV,oB,GAAAA,oB;QAAsBR,qB,GAAAA,qB;QAAuB6B,e,GAAAA,e","names":["getBrandNameByNodeEnv","nodeEnv","env","process","NODE_ENV","_a","API_HOST","indexOf","getAllBrandByNodeEnv","nodeEnvUsed","currentEnvName","listEnvEnum","BrandClementine","BrandLegalstart","BrandComptalib","BrandPourcentage","currentConfigFile","brand","getBrandConfig","params","idTypeBrand","objectWaited","find","b","sort","a","objectToReturn","brandDefault","name","getBrandByEmail","email"],"sourceRoot":"","sources":["../../ts/utils/brands.ts"],"sourcesContent":["import { get as getLodash } from 'lodash';\nimport { BrandClementine } from '../types/Enum/BrandClementine';\nimport { BrandLegalstart } from '../types/Enum/BrandLegalstart';\nimport { BrandComptalib } from '../types/Enum/BrandComptalib';\nimport { BrandPourcentage } from '../types/Enum/BrandPourcentage';\n\ntype brand = {\n idTypeBrand: number,\n name: string\n};\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' => {\n const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;\n if (env) {\n if (env.indexOf('legalstart') > -1 || env.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (env.indexOf('comptalib') > -1 || env.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (env.indexOf('pourcentage') > -1 || env.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n }\n return 'Clementine';\n};\n\nconst getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n const brand = currentConfigFile;\n\n return brand;\n};\n\nconst getBrandConfig = (params: getBrandConfigParams): brand => {\n const {\n idTypeBrand = null, objectWaited = null, nodeEnv,\n } = params;\n let brand;\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n if (idTypeBrand) {\n // Récupération de la brand via idTypeBrand\n brand = currentConfigFile.find((b: brand) => b.idTypeBrand === idTypeBrand);\n }\n // else if (idSociety) {\n // Récupération de la brand via l'idSociety -> impossible directement depuis le core (pas d'accès au resources, ni au token pour l'appel via fetch)\n\n if (!brand) {\n // Si aucune brand trouvée, on passe par défaut la première brand de la liste\n [brand] = currentConfigFile.sort((a: brand, b: brand) => a.idTypeBrand - b.idTypeBrand);\n }\n\n if (objectWaited) {\n // Si on attend un attribut particulier de la brand, on le parcourt\n let objectToReturn = getLodash(brand, objectWaited);\n // Si aucun attribut trouvé, on renvoit celui de Clementine par défaut\n if (!objectToReturn) {\n const brandDefault = currentConfigFile.find((b: brand) => b.name === currentEnvName);\n objectToReturn = getLodash(brandDefault, objectWaited);\n }\n return objectToReturn;\n }\n\n return brand;\n};\n\nconst getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | 'Lecomptablefrancais' | null => {\n if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';\n if (email.indexOf('comptalib.com') > -1) return 'Comptalib';\n if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';\n if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';\n if (email.indexOf('lecomptablefrancais.fr') > -1) return 'Lecomptablefrancais';\n return null;\n};\n\nexport {\n getBrandConfig, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail,\n};"]}
1
+ {"version":3,"file":"brands.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAaA,MAAMA,qBAAqB,GAAIC,OAAD,IAA+E;EAC3G,IAAIA,OAAJ,EAAa;IACX,IAAIA,OAAO,CAACC,OAAR,CAAgB,YAAhB,IAAgC,CAAC,CAAjC,IAAsCD,OAAO,CAACC,OAAR,CAAgB,YAAhB,IAAgC,CAAC,CAA3E,EAA8E;MAC5E,OAAO,YAAP;IACD;;IACD,IAAID,OAAO,CAACC,OAAR,CAAgB,WAAhB,IAA+B,CAAC,CAAhC,IAAqCD,OAAO,CAACC,OAAR,CAAgB,WAAhB,IAA+B,CAAC,CAAzE,EAA4E;MAC1E,OAAO,WAAP;IACD;;IACD,IAAID,OAAO,CAACC,OAAR,CAAgB,aAAhB,IAAiC,CAAC,CAAlC,IAAuCD,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,oB,GAAAA,oB;QAAsBP,qB,GAAAA,qB;QAAuB4B,e,GAAAA,e","names":["getBrandNameByNodeEnv","nodeEnv","indexOf","process","env","NODE_ENV","API_HOST","getAllBrandByNodeEnv","nodeEnvUsed","currentEnvName","listEnvEnum","BrandClementine","BrandLegalstart","BrandComptalib","BrandPourcentage","currentConfigFile","brand","getBrandConfig","params","idTypeBrand","objectWaited","find","b","sort","a","objectToReturn","brandDefault","name","getBrandByEmail","email"],"sourceRoot":"","sources":["../../ts/utils/brands.ts"],"sourcesContent":["import { get as getLodash } from 'lodash';\nimport { BrandClementine } from '../types/Enum/BrandClementine';\nimport { BrandLegalstart } from '../types/Enum/BrandLegalstart';\nimport { BrandComptalib } from '../types/Enum/BrandComptalib';\nimport { BrandPourcentage } from '../types/Enum/BrandPourcentage';\n\ntype brand = {\n idTypeBrand: number,\n name: string\n};\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' => {\n if (nodeEnv) {\n if (nodeEnv.indexOf('legalstart') > -1 || nodeEnv.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (nodeEnv.indexOf('comptalib') > -1 || nodeEnv.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (nodeEnv.indexOf('pourcentage') > -1 || nodeEnv.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n } else if (process.env.NODE_ENV) {\n if (process.env.NODE_ENV.indexOf('legalstart') > -1 || process.env.NODE_ENV.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (process.env.NODE_ENV.indexOf('comptalib') > -1 || process.env.NODE_ENV.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (process.env.NODE_ENV.indexOf('pourcentage') > -1 || process.env.NODE_ENV.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n } else if (process.env.API_HOST) {\n if (process.env.API_HOST.indexOf('legalstart') > -1 || process.env.API_HOST.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (process.env.API_HOST.indexOf('comptalib') > -1 || process.env.API_HOST.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (process.env.API_HOST.indexOf('pourcentage') > -1 || process.env.API_HOST.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n }\n return 'Clementine';\n};\n\nconst getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n const brand = currentConfigFile;\n\n return brand;\n};\n\nconst getBrandConfig = (params: getBrandConfigParams): brand => {\n const {\n idTypeBrand = null, objectWaited = null, nodeEnv,\n } = params;\n let brand;\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n if (idTypeBrand) {\n // Récupération de la brand via idTypeBrand\n brand = currentConfigFile.find((b: brand) => b.idTypeBrand === idTypeBrand);\n }\n // else if (idSociety) {\n // Récupération de la brand via l'idSociety -> impossible directement depuis le core (pas d'accès au resources, ni au token pour l'appel via fetch)\n\n if (!brand) {\n // Si aucune brand trouvée, on passe par défaut la première brand de la liste\n [brand] = currentConfigFile.sort((a: brand, b: brand) => a.idTypeBrand - b.idTypeBrand);\n }\n\n if (objectWaited) {\n // Si on attend un attribut particulier de la brand, on le parcourt\n let objectToReturn = getLodash(brand, objectWaited);\n // Si aucun attribut trouvé, on renvoit celui de Clementine par défaut\n if (!objectToReturn) {\n const brandDefault = currentConfigFile.find((b: brand) => b.name === currentEnvName);\n objectToReturn = getLodash(brandDefault, objectWaited);\n }\n return objectToReturn;\n }\n\n return brand;\n};\n\nconst getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | null => {\n if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';\n if (email.indexOf('comptalib.com') > -1) return 'Comptalib';\n if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';\n if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';\n return null;\n};\n\nexport {\n getBrandConfig, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail,\n};"]}
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.generateCommercialDocument = generateCommercialDocument;
7
+ exports.generateAdvanceDocument = generateAdvanceDocument;
8
+
9
+ var _ejs = require("ejs");
10
+
11
+ var ejs = _interopRequireWildcard(_ejs);
12
+
13
+ var _lodash = require("lodash");
14
+
15
+ var _dayjs = require("dayjs");
16
+
17
+ var dayjs = _interopRequireWildcard(_dayjs);
18
+
19
+ var _CommercialManagement = require("../../types/Enum/CommercialManagement");
20
+
21
+ var _EstimateInvoice = require("../../types/Enum/EstimateInvoice");
22
+
23
+ var _amount = require("../amount");
24
+
25
+ var _common = require("./templates/common");
26
+
27
+ var _body = require("./templates/body");
28
+
29
+ var _product = require("./product");
30
+
31
+ var _vat = require("./vat");
32
+
33
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
34
+
35
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
36
+
37
+ function generateCommercialDocument(idEstimateInvoiceType, payload) {
38
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
39
+
40
+ const products = (0, _lodash.orderBy)(payload.products.map(product => (0, _product.productToReadProductEditing)(product), 'reorder')); // FIXME: Par quoi regrouper ceux qui ont un nom ""
41
+
42
+ const vats = (0, _lodash.orderBy)(Object.values((0, _lodash.groupBy)(products, 'vatFormatted')).map(v => (0, _vat.vatToReadVatEditing)(v), 'value'));
43
+ const data = Object.assign(Object.assign({}, payload), {
44
+ paymentLink: (_a = payload.paymentLink) !== null && _a !== void 0 ? _a : '#',
45
+ idEstimateInvoiceType,
46
+ phoneContact: (_c = (_b = payload.settings) === null || _b === void 0 ? void 0 : _b.phoneContact) !== null && _c !== void 0 ? _c : null,
47
+ products,
48
+ vats,
49
+ totalTaxExcluded: (0, _lodash.sumBy)(products, 'totalTaxExcluded'),
50
+ totalTaxIncluded: (0, _lodash.sumBy)(products, 'totalTaxExcluded') + (0, _lodash.sumBy)(vats, 'amount'),
51
+ totalTaxAndDiscountIncluded: (0, _lodash.sumBy)(products, 'totalTaxExcluded') + (0, _lodash.sumBy)(vats, 'amount') - ((_d = payload.generalDiscount2) !== null && _d !== void 0 ? _d : 0),
52
+ generalDiscountFormatted: payload.generalDiscount2 ? (0, _amount.integerToFormattedAmountString)(payload.generalDiscount2) : null,
53
+ depositFormatted: payload.deposit ? (0, _amount.integerToFormattedAmountString)(payload.deposit) : null,
54
+ totalTaxExcludedFormatted: (0, _amount.integerToFormattedAmountString)((0, _lodash.sumBy)(products, 'totalTaxExcluded')),
55
+ totalTaxIncludedFormatted: (0, _amount.integerToFormattedAmountString)((0, _lodash.sumBy)(products, 'totalTaxExcluded') + (0, _lodash.sumBy)(vats, 'amount') - ((_e = payload.deposit) !== null && _e !== void 0 ? _e : 0)),
56
+ totalTaxAndDiscountIncludedFormatted: (0, _amount.integerToFormattedAmountString)((0, _lodash.sumBy)(products, 'totalTaxExcluded') + (0, _lodash.sumBy)(vats, 'amount') - ((_f = payload.generalDiscount2) !== null && _f !== void 0 ? _f : 0) - ((_g = payload.deposit) !== null && _g !== void 0 ? _g : 0)),
57
+ totalVatAmountFormatted: (0, _amount.integerToFormattedAmountString)((0, _lodash.sumBy)(vats, 'amount')),
58
+ font: {
59
+ name: (_j = (_h = _CommercialManagement.fontList.find(f => {
60
+ var _a;
61
+
62
+ return f.id === ((_a = payload.settings) === null || _a === void 0 ? void 0 : _a.idFont);
63
+ })) === null || _h === void 0 ? void 0 : _h.name) !== null && _j !== void 0 ? _j : _CommercialManagement.fontList[0].name,
64
+ url: (_l = (_k = _CommercialManagement.fontList.find(f => {
65
+ var _a;
66
+
67
+ return f.id === ((_a = payload.settings) === null || _a === void 0 ? void 0 : _a.idFont);
68
+ })) === null || _k === void 0 ? void 0 : _k.link) !== null && _l !== void 0 ? _l : _CommercialManagement.fontList[0].link
69
+ },
70
+ capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, {
71
+ length
72
+ }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,
73
+ dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,
74
+ expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,
75
+ emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,
76
+ shouldDisplayDiscountColumn: !!products.find(p => p.discount2 && p.discount2 > 0)
77
+ });
78
+ const commonTemplate = new _common.CommercialDocumentCommonHTML();
79
+ let documentFreeText; // A GERER EN FONCTION DU DOCUMENT
80
+
81
+ if ([_EstimateInvoice.EstimateInvoiceType.DEVIS, _EstimateInvoice.EstimateInvoiceType.BON].includes(idEstimateInvoiceType)) {
82
+ documentFreeText = (_m = payload === null || payload === void 0 ? void 0 : payload.settings) === null || _m === void 0 ? void 0 : _m.freeEstimateText;
83
+ } else {
84
+ documentFreeText = (_o = payload === null || payload === void 0 ? void 0 : payload.settings) === null || _o === void 0 ? void 0 : _o.freeInvoiceText;
85
+ } //
86
+
87
+
88
+ return {
89
+ header: ejs.render(commonTemplate.header, data),
90
+ body: ejs.render(_body.bodyTemplate, data),
91
+ footer: ejs.render(commonTemplate.footer, Object.assign(Object.assign({}, data), {
92
+ freeText: documentFreeText !== null && documentFreeText !== void 0 ? documentFreeText : null
93
+ })),
94
+ data
95
+ };
96
+ }
97
+
98
+ function generateAdvanceDocument(payload) {
99
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
100
+
101
+ if (!payload.deposit) throw new Error('Aucun acompte défini');
102
+ const data = Object.assign(Object.assign({}, payload), {
103
+ paymentLink: (_a = payload.paymentLink) !== null && _a !== void 0 ? _a : '#',
104
+ idEstimateInvoiceType: _EstimateInvoice.EstimateInvoiceType.ACOMPTE,
105
+ phoneContact: (_c = (_b = payload.settings) === null || _b === void 0 ? void 0 : _b.phoneContact) !== null && _c !== void 0 ? _c : null,
106
+ products: [],
107
+ vats: [],
108
+ totalTaxExcluded: payload.deposit,
109
+ totalTaxIncluded: payload.deposit,
110
+ totalTaxAndDiscountIncluded: payload.deposit,
111
+ generalDiscountFormatted: null,
112
+ depositFormatted: (0, _amount.integerToFormattedAmountString)(payload.deposit),
113
+ totalTaxExcludedFormatted: (0, _amount.integerToFormattedAmountString)(payload.deposit),
114
+ totalTaxIncludedFormatted: (0, _amount.integerToFormattedAmountString)(payload.deposit),
115
+ totalTaxAndDiscountIncludedFormatted: (0, _amount.integerToFormattedAmountString)(payload.deposit),
116
+ totalVatAmountFormatted: (0, _amount.integerToFormattedAmountString)(0),
117
+ font: {
118
+ name: (_e = (_d = _CommercialManagement.fontList.find(f => {
119
+ var _a;
120
+
121
+ return f.id === ((_a = payload.settings) === null || _a === void 0 ? void 0 : _a.idFont);
122
+ })) === null || _d === void 0 ? void 0 : _d.name) !== null && _e !== void 0 ? _e : _CommercialManagement.fontList[0].name,
123
+ url: (_g = (_f = _CommercialManagement.fontList.find(f => {
124
+ var _a;
125
+
126
+ return f.id === ((_a = payload.settings) === null || _a === void 0 ? void 0 : _a.idFont);
127
+ })) === null || _f === void 0 ? void 0 : _f.link) !== null && _g !== void 0 ? _g : _CommercialManagement.fontList[0].link
128
+ },
129
+ capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, {
130
+ length
131
+ }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,
132
+ dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,
133
+ expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,
134
+ emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,
135
+ shouldDisplayDiscountColumn: false,
136
+ disableVat: true
137
+ });
138
+ const commonTemplate = new _common.CommercialDocumentCommonHTML();
139
+ return {
140
+ header: ejs.render(commonTemplate.header, data),
141
+ body: ejs.render(_body.bodyTemplate, data),
142
+ footer: ejs.render(commonTemplate.footer, Object.assign(Object.assign({}, data), {
143
+ freeText: (_j = (_h = payload === null || payload === void 0 ? void 0 : payload.settings) === null || _h === void 0 ? void 0 : _h.freeInvoiceText) !== null && _j !== void 0 ? _j : null
144
+ })),
145
+ data
146
+ };
147
+ }
148
+ //# sourceMappingURL=document.js.map
@@ -0,0 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WZ,cAAc,CAACW,MAA1B,EAAkCjE,IAAlC,CADH;IAELmE,IAAI,EAAE9E,GAAG,CAAC6E,MAAJ,CAAWE,kBAAX,EAAyBpE,IAAzB,CAFD;IAGLqE,MAAM,EAAEhF,GAAG,CAAC6E,MAAJ,CAAWZ,cAAc,CAACe,MAA1B,EAAgCxE,gCAAOG,IAAP,GAAW;MAAEsE,QAAQ,EAAE,mBAAO,SAAP,WAAO,WAAP,GAAO,MAAP,UAAO,CAAElE,QAAT,MAAiB,IAAjB,IAAiBwB,aAAjB,GAAiB,MAAjB,GAAiBA,GAAEoC,eAAnB,MAAkC,IAAlC,IAAkCnC,aAAlC,GAAkCA,EAAlC,GAAsC;IAAlD,CAAX,CAAhC,CAHH;IAIL7B;EAJK,CAAP;AAMD","names":["generateCommercialDocument","generateAdvanceDocument","ejs","dayjs","idEstimateInvoiceType","payload","products","map","product","vats","Object","values","v","data","paymentLink","_a","phoneContact","settings","_b","_c","totalTaxExcluded","totalTaxIncluded","totalTaxAndDiscountIncluded","generalDiscount2","_d","generalDiscountFormatted","depositFormatted","deposit","totalTaxExcludedFormatted","totalTaxIncludedFormatted","_e","totalTaxAndDiscountIncludedFormatted","_f","_g","totalVatAmountFormatted","font","name","find","f","id","idFont","_h","_j","fontList","url","_k","link","_l","capitalFormatted","capital","split","reduceRight","acc","char","i","length","trim","dueDateFormatted","dueDate","format","expirationDateFormatted","expirationDate","emissionDateFormatted","emissionDate","shouldDisplayDiscountColumn","p","discount2","commonTemplate","CommercialDocumentCommonHTML","documentFreeText","EstimateInvoiceType","DEVIS","BON","includes","_m","freeEstimateText","_o","freeInvoiceText","header","render","body","bodyTemplate","footer","freeText","Error","ACOMPTE","disableVat"],"sourceRoot":"","sources":["../../../ts/utils/commercialManagement/document.ts"],"sourcesContent":["import * as ejs from 'ejs';\nimport { orderBy as _orderBy, groupBy as _groupBy, sumBy as _sumBy } from 'lodash';\nimport * as dayjs from 'dayjs';\nimport { ReadCommercialDocumentTemplate, ReadDocumentEditing } from '../../types/Interface/api/commercialManagement/Read';\nimport { fontList } from '../../types/Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';\nimport { integerToFormattedAmountString } from '../amount';\nimport { CommercialDocumentCommonHTML } from './templates/common';\nimport { bodyTemplate } from './templates/body';\nimport { productToReadProductEditing } from './product';\nimport { vatToReadVatEditing } from './vat';\nimport { CreateInvoiceDocument, CreatePreSaleDocument } from '../../types';\n\nexport function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument): ReadCommercialDocumentTemplate {\n const products = _orderBy(payload.products.map((product) => productToReadProductEditing(product), 'reorder'));\n // FIXME: Par quoi regrouper ceux qui ont un nom \"\"\n const vats = _orderBy(Object.values(_groupBy(products, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value'));\n\n const data: ReadDocumentEditing = {\n ...payload,\n paymentLink: payload.paymentLink ?? '#',\n idEstimateInvoiceType,\n phoneContact: payload.settings?.phoneContact ?? null,\n products,\n vats,\n totalTaxExcluded: _sumBy(products, 'totalTaxExcluded'),\n totalTaxIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount'),\n totalTaxAndDiscountIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.generalDiscount2 ?? 0),\n generalDiscountFormatted: payload.generalDiscount2 ? integerToFormattedAmountString(payload.generalDiscount2) : null,\n depositFormatted: payload.deposit ? integerToFormattedAmountString(payload.deposit) : null,\n totalTaxExcludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded')),\n totalTaxIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.deposit ?? 0)),\n totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.generalDiscount2 ?? 0) - (payload.deposit ?? 0)),\n totalVatAmountFormatted: integerToFormattedAmountString(_sumBy(vats, 'amount')),\n font: {\n name: fontList.find((f) => f.id === payload.settings?.idFont)?.name ?? fontList[0].name,\n url: fontList.find((f) => f.id === payload.settings?.idFont)?.link ?? fontList[0].link,\n },\n capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,\n dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,\n expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,\n emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,\n shouldDisplayDiscountColumn: !!products.find((p) => p.discount2 && p.discount2 > 0),\n };\n\n const commonTemplate = new CommercialDocumentCommonHTML();\n\n let documentFreeText: string | null | undefined;\n\n // A GERER EN FONCTION DU DOCUMENT\n if ([EstimateInvoiceType.DEVIS, EstimateInvoiceType.BON].includes(idEstimateInvoiceType)) {\n documentFreeText = payload?.settings?.freeEstimateText;\n } else {\n documentFreeText = payload?.settings?.freeInvoiceText;\n }\n //\n\n return {\n header: ejs.render(commonTemplate.header, data),\n body: ejs.render(bodyTemplate, data),\n footer: ejs.render(commonTemplate.footer, { ...data, freeText: documentFreeText ?? null }),\n data,\n };\n}\n\nexport function generateAdvanceDocument(payload: CreateInvoiceDocument): ReadCommercialDocumentTemplate {\n if (!payload.deposit) throw new Error('Aucun acompte défini');\n\n const data: ReadDocumentEditing = {\n ...payload,\n paymentLink: payload.paymentLink ?? '#',\n idEstimateInvoiceType: EstimateInvoiceType.ACOMPTE,\n phoneContact: payload.settings?.phoneContact ?? null,\n products: [],\n vats: [],\n totalTaxExcluded: payload.deposit,\n totalTaxIncluded: payload.deposit,\n totalTaxAndDiscountIncluded: payload.deposit,\n generalDiscountFormatted: null,\n depositFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxExcludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxIncludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalVatAmountFormatted: integerToFormattedAmountString(0),\n font: {\n name: fontList.find((f) => f.id === payload.settings?.idFont)?.name ?? fontList[0].name,\n url: fontList.find((f) => f.id === payload.settings?.idFont)?.link ?? fontList[0].link,\n },\n capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,\n dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,\n expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,\n emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,\n shouldDisplayDiscountColumn: false,\n disableVat: true,\n };\n\n const commonTemplate = new CommercialDocumentCommonHTML();\n\n return {\n header: ejs.render(commonTemplate.header, data),\n body: ejs.render(bodyTemplate, data),\n footer: ejs.render(commonTemplate.footer, { ...data, freeText: payload?.settings?.freeInvoiceText ?? null }),\n data,\n };\n}"]}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDiscount = getDiscount;
7
+ exports.getTotalTaxExcluded = getTotalTaxExcluded;
8
+ exports.productToReadProductEditing = productToReadProductEditing;
9
+
10
+ var _classValidator = require("class-validator");
11
+
12
+ var _Unit = require("../../types/Enum/Unit");
13
+
14
+ var _CommercialManagement = require("../../types/Enum/CommercialManagement");
15
+
16
+ var _vat = require("./vat");
17
+
18
+ var _amount = require("../amount");
19
+
20
+ function getDiscount(product) {
21
+ var _a, _b, _c;
22
+
23
+ if (product.discount2 === null || product.discount2 === undefined || product.discount2 <= 0) return 0;
24
+
25
+ if (product.discountType === _CommercialManagement.DiscountType.PERCENT) {
26
+ return ((_a = product.priceTaxExcluded) !== null && _a !== void 0 ? _a : 0) * (((_b = product.discount2) !== null && _b !== void 0 ? _b : 0) / 100) / 100;
27
+ }
28
+
29
+ if (product.discountType === _CommercialManagement.DiscountType.AMOUNT) {
30
+ return (_c = product.discount2) !== null && _c !== void 0 ? _c : 0;
31
+ }
32
+
33
+ return 0;
34
+ }
35
+
36
+ function getTotalTaxExcluded(product) {
37
+ var _a, _b, _c;
38
+
39
+ const discount = product.discount2 && product.discount2 > 0 ? getDiscount(product) : 0;
40
+ return ((_a = product.priceTaxExcluded) !== null && _a !== void 0 ? _a : 0) * ((_b = product.quantity) !== null && _b !== void 0 ? _b : 1) - discount * ((_c = product.quantity) !== null && _c !== void 0 ? _c : 1);
41
+ }
42
+
43
+ function productToReadProductEditing(payload) {
44
+ var _a, _b, _c, _d;
45
+
46
+ return Object.assign(Object.assign({}, payload), {
47
+ totalTaxExcluded: getTotalTaxExcluded(payload),
48
+ unitFormatted: (_b = (_a = Object.values(_Unit.Unit).find(unit => unit.id === payload.unit)) === null || _a === void 0 ? void 0 : _a.shortName) !== null && _b !== void 0 ? _b : '',
49
+ vatFormatted: (_d = (_c = (0, _vat.getById)(payload.idVat)) === null || _c === void 0 ? void 0 : _c.saleName) !== null && _d !== void 0 ? _d : '',
50
+ priceTaxExcludedFormatted: (0, _classValidator.isDefined)(payload.priceTaxExcluded) ? (0, _amount.integerToFormattedAmountString)(payload.priceTaxExcluded) : null,
51
+ totalTaxExcludedFormatted: (0, _classValidator.isDefined)(payload.priceTaxExcluded) ? (0, _amount.integerToFormattedAmountString)(getTotalTaxExcluded(payload)) : null,
52
+ discountFormatted: payload.discount2 && payload.discount2 > 0 ? (0, _amount.integerToFormattedAmountString)(getDiscount(payload)) : null,
53
+ discountTypeFormatted: payload.discount2 && payload.discount2 > 0 ? payload.discountType === _CommercialManagement.DiscountType.PERCENT ? `${(payload.discount2 / 100).toFixed(2)}%` : `${(0, _amount.integerToFormattedAmountString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AAoB,GAArB,EAA0B6B,OAA1B,CAAkC,CAAlC,CAAoC,GAAvF,GAA6F,GAAG,4CAA+BjB,OAAO,CAACZ,SAAvC,CAAiD,GAA9L,GAAoM;EAPjN,CADZ;AAUD","names":["getDiscount","getTotalTaxExcluded","productToReadProductEditing","product","discount2","undefined","discountType","DiscountType","PERCENT","priceTaxExcluded","_a","_b","AMOUNT","_c","discount","quantity","payload","totalTaxExcluded","unitFormatted","values","Unit","find","unit","id","shortName","vatFormatted","idVat","saleName","_d","priceTaxExcludedFormatted","totalTaxExcludedFormatted","discountFormatted","discountTypeFormatted","toFixed"],"sourceRoot":"","sources":["../../../ts/utils/commercialManagement/product.ts"],"sourcesContent":["import { isDefined } from 'class-validator';\nimport { IProductInvoice, ReadProductEditing } from '../../types';\nimport { Unit } from '../../types/Enum/Unit';\nimport { DiscountType } from '../../types/Enum/CommercialManagement';\nimport { getById } from './vat';\nimport { integerToFormattedAmountString } from '../amount';\n\nexport function getDiscount(product: IProductInvoice): number {\n if (product.discount2 === null || product.discount2 === undefined || product.discount2 <= 0) return 0;\n\n if (product.discountType === DiscountType.PERCENT) {\n return ((product.priceTaxExcluded ?? 0) * ((product.discount2 ?? 0) / 100)) / 100;\n } if (product.discountType === DiscountType.AMOUNT) {\n return (product.discount2 ?? 0);\n }\n\n return 0;\n}\n\nexport function getTotalTaxExcluded(product: IProductInvoice): number {\n const discount = product.discount2 && product.discount2 > 0 ? getDiscount(product) : 0;\n return (product.priceTaxExcluded ?? 0) * (product.quantity ?? 1) - (discount * (product.quantity ?? 1));\n}\n\nexport function productToReadProductEditing(payload: IProductInvoice): ReadProductEditing {\n return {\n ...payload,\n totalTaxExcluded: getTotalTaxExcluded(payload),\n unitFormatted: Object.values(Unit).find((unit) => unit.id === payload.unit)?.shortName ?? '',\n vatFormatted: getById(payload.idVat)?.saleName ?? '',\n priceTaxExcludedFormatted: isDefined(payload.priceTaxExcluded) ? integerToFormattedAmountString(payload.priceTaxExcluded) : null,\n totalTaxExcludedFormatted: isDefined(payload.priceTaxExcluded) ? integerToFormattedAmountString(getTotalTaxExcluded(payload)) : null,\n discountFormatted: payload.discount2 && payload.discount2 > 0 ? integerToFormattedAmountString(getDiscount(payload)) : null,\n discountTypeFormatted: payload.discount2 && payload.discount2 > 0 ? payload.discountType === DiscountType.PERCENT ? `${(payload.discount2 / 100).toFixed(2)}%` : `${integerToFormattedAmountString(payload.discount2)}€` : null,\n };\n}"]}
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.bodyTemplate = undefined;
7
+
8
+ var _EstimateInvoice = require("../../../types/Enum/EstimateInvoice");
9
+
10
+ var _common = require("./common");
11
+
12
+ const commonTemplate = new _common.CommercialDocumentCommonHTML();
13
+ const headOfDocument = `<div class="row space-between">
14
+ <% if (settings && settings.logoAlignment === 'left') { %>
15
+ <div class="society-informations">
16
+ ${commonTemplate.logo}
17
+ ${commonTemplate.company}
18
+ </div>
19
+ <% } else { %>
20
+ <div class="society-informations">${commonTemplate.company}</div>
21
+ ${commonTemplate.logo}
22
+ <% } %>
23
+ </div>
24
+
25
+ <div class="row space-between items-end" style="margin-top: 10px">
26
+ <div style="width: 45%; margin-top: auto;">
27
+ <span class="document-reference">
28
+ <% if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.BON}) { %>
29
+ Bon de commande
30
+ <% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.DEVIS}) { %>
31
+ Devis
32
+ <% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.FACTURE}) { %>
33
+ Facture
34
+ <% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.AVOIR}) { %>
35
+ Avoir
36
+ <% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.RESTE}) { %>
37
+ Facture de solde
38
+ <% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) { %>
39
+ Facture d'acompte
40
+ <% } %>
41
+ <%= reference %></span><br/>
42
+ <% if(emissionDate) {%><span class="document-emission-date">Date d’émission : <%= emissionDateFormatted %></span><br/><% } %>
43
+ <% if(dueDate && idEstimateInvoiceType !== ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) {%>
44
+ <span class="document-due-date">
45
+ <% if ([${_EstimateInvoice.EstimateInvoiceType.BON}, ${_EstimateInvoice.EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>
46
+ Valide jusqu'au :
47
+ <% } else { %>
48
+ Date d'échéance :
49
+ <% } %>
50
+ <%= dueDateFormatted %></span>
51
+ <% } %>
52
+ <% if (expirationDate && idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) {%>
53
+ <span class="document-due-date">Date d'expiration : <%= expirationDateFormatted %></span>
54
+ <% } %>
55
+ <% if(termsOfPayment) { %>
56
+ <br/><p style="margin-bottom: 0px;"><%= [${_EstimateInvoice.EstimateInvoiceType.BON}, ${_EstimateInvoice.EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? 'Conditions de règlement' : 'Date limite de règlement' %> : <%= termsOfPayment %></p>
57
+ <% } %>
58
+ </div>
59
+ <div style="width: 40%; margin-top: auto;">
60
+ <p>Client</p>
61
+ <div class="<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>">
62
+ <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>
63
+ <% if(thirdParty.company) {%><%= thirdParty.company %><br/><% } %>
64
+ <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>
65
+ <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %>
66
+ </div>
67
+ </div>
68
+ </div>`;
69
+ const bodyTemplate = exports.bodyTemplate = `<html>
70
+
71
+ <body>
72
+
73
+ ${headOfDocument}
74
+
75
+ <div class="row mt-25">
76
+ <% if (title) { %>Titre : <%= title %><% } %>
77
+ </div>
78
+
79
+ <div class="row mt-10">${commonTemplate.products}</div>
80
+
81
+ <div class="row space-between mt-20">
82
+ <div style="max-width: 55%;">
83
+ <% if (disableVat !== true && vats.length) { %>
84
+ ${commonTemplate.vatRecapitulation}
85
+ <% } %>
86
+ <% if (vatMention) { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
87
+ <% if (comment) { %>
88
+ <p class="mt-20">Commentaire :<br/>
89
+ <%= comment %>
90
+ <% } %>
91
+ </div>
92
+
93
+ ${commonTemplate.amountRecapitulation}
94
+
95
+ </div>
96
+
97
+ <% if ((settings && (settings.iban || settings.bic)) || isStripeAllowed) { %>
98
+ <div class="row mt-30 space-between">
99
+ <div>
100
+ <% if (settings && (settings.iban || settings.bic)) { %>
101
+ <% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>
102
+ <% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>
103
+ <% } %>
104
+ </div>
105
+ <% if (isStripeAllowed) { %>
106
+ <div style="text-align: right">${commonTemplate.paymentButton}</div>
107
+ <% } %>
108
+ </div>
109
+ <% } %>
110
+
111
+ <% if (cgv) { %>
112
+ <%- cgv %>
113
+ <% } %>
114
+ </body>
115
+
116
+ <style>
117
+ ${commonTemplate.style}
118
+ </style>
119
+ </html>`;
120
+ //# sourceMappingURL=body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.js","mappings":";;;;;;;AAAA;;AACA;;AAEA,MAAMA,cAAc,GAAG,IAAIC,oCAAJ,EAAvB;AAEA,MAAMC,cAAc,GAAG;;;YAGXF,cAAc,CAACG,IAAI;YACnBH,cAAc,CAACI,OAAO;;;4CAGUJ,cAAc,CAACI,OAAO;UACxDJ,cAAc,CAACG,IAAI;;;;;;;yCAOYE,qCAAoBC,GAAG;;gDAEhBD,qCAAoBE,KAAK;;gDAEzBF,qCAAoBG,OAAO;;gDAE3BH,qCAAoBI,KAAK;;gDAEzBJ,qCAAoBK,KAAK;;gDAEzBL,qCAAoBM,OAAO;;;;;mDAKxBN,qCAAoBM,OAAO;;oBAE1DN,qCAAoBC,GAAG,KAAKD,qCAAoBE,KAAK;;;;;;;2DAOdF,qCAAoBM,OAAO;;;;mDAInCN,qCAAoBC,GAAG,KAAKD,qCAAoBE,KAAK;;;;;;;;;;;;SA3CxG;AAyDO,MAAMK,YAAY,WAAZA,YAAY,GAAG;;;;IAIxBV,cAAc;;;;;;6BAMWF,cAAc,CAACa,QAAQ;;;;;YAKxCb,cAAc,CAACc,iBAAiB;;;;;;;;;QASpCd,cAAc,CAACe,oBAAoB;;;;;;;;;;;;;2CAaAf,cAAc,CAACgB,aAAa;;;;;;;;;;;QAW/DhB,cAAc,CAACiB,KAAK;;QAhDrB","names":["commonTemplate","CommercialDocumentCommonHTML","headOfDocument","logo","company","EstimateInvoiceType","BON","DEVIS","FACTURE","AVOIR","RESTE","ACOMPTE","bodyTemplate","products","vatRecapitulation","amountRecapitulation","paymentButton","style"],"sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/templates/body.ts"],"sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport { CommercialDocumentCommonHTML } from './common';\n\nconst commonTemplate = new CommercialDocumentCommonHTML();\n\nconst headOfDocument = `<div class=\"row space-between\">\n <% if (settings && settings.logoAlignment === 'left') { %>\n <div class=\"society-informations\">\n ${commonTemplate.logo}\n ${commonTemplate.company}\n </div>\n <% } else { %>\n <div class=\"society-informations\">${commonTemplate.company}</div>\n ${commonTemplate.logo}\n <% } %>\n </div>\n\n <div class=\"row space-between items-end\" style=\"margin-top: 10px\">\n <div style=\"width: 45%; margin-top: auto;\">\n <span class=\"document-reference\">\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n Bon de commande\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n Devis\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>\n Facture\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n Avoir\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>\n Facture de solde\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n Facture d'acompte\n <% } %>\n <%= reference %></span><br/>\n <% if(emissionDate) {%><span class=\"document-emission-date\">Date d’émission : <%= emissionDateFormatted %></span><br/><% } %>\n <% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">\n <% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>\n Valide jusqu'au :\n <% } else { %>\n Date d'échéance :\n <% } %>\n <%= dueDateFormatted %></span>\n <% } %>\n <% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">Date d'expiration : <%= expirationDateFormatted %></span>\n <% } %>\n <% if(termsOfPayment) { %>\n <br/><p style=\"margin-bottom: 0px;\"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? 'Conditions de règlement' : 'Date limite de règlement' %> : <%= termsOfPayment %></p>\n <% } %>\n </div>\n <div style=\"width: 40%; margin-top: auto;\">\n <p>Client</p>\n <div class=\"<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>\">\n <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>\n <% if(thirdParty.company) {%><%= thirdParty.company %><br/><% } %>\n <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>\n <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %>\n </div>\n </div>\n </div>`;\n\nexport const bodyTemplate = `<html>\n\n <body>\n\n ${headOfDocument}\n\n <div class=\"row mt-25\">\n <% if (title) { %>Titre : <%= title %><% } %>\n </div>\n\n <div class=\"row mt-10\">${commonTemplate.products}</div>\n\n <div class=\"row space-between mt-20\">\n <div style=\"max-width: 55%;\">\n <% if (disableVat !== true && vats.length) { %>\n ${commonTemplate.vatRecapitulation}\n <% } %>\n <% if (vatMention) { %><div class=\"vat-mention <%= disableVat !== true ? 'mt-20' : ''%>\"><%= vatMention %></div><% } %>\n <% if (comment) { %>\n <p class=\"mt-20\">Commentaire :<br/>\n <%= comment %>\n <% } %>\n </div>\n\n ${commonTemplate.amountRecapitulation}\n \n </div>\n\n <% if ((settings && (settings.iban || settings.bic)) || isStripeAllowed) { %>\n <div class=\"row mt-30 space-between\">\n <div>\n <% if (settings && (settings.iban || settings.bic)) { %>\n <% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>\n <% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>\n <% } %>\n </div>\n <% if (isStripeAllowed) { %>\n <div style=\"text-align: right\">${commonTemplate.paymentButton}</div>\n <% } %>\n </div>\n <% } %>\n\n <% if (cgv) { %>\n <%- cgv %>\n <% } %>\n </body>\n\n <style>\n ${commonTemplate.style}\n </style>\n</html>`;"]}