@silexpert/core 0.4.290 → 1.0.6

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 (945) 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 +42 -0
  96. package/es/types/Enum/CommercialManagement.d.ts.map +1 -0
  97. package/es/types/Enum/CommercialManagement.js +64 -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 +109 -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 +63 -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/mail/QueryCountUnprocessedByUserMail.d.ts +1 -2
  180. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
  181. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +2 -8
  182. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  183. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -2
  184. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  185. package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -7
  186. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  187. package/es/types/Interface/api/product/CreateProduct.d.ts +3 -1
  188. package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
  189. package/es/types/Interface/api/product/CreateProduct.js +16 -7
  190. package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
  191. package/es/types/Interface/api/product/QueryProduct.d.ts +2 -0
  192. package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
  193. package/es/types/Interface/api/product/QueryProduct.js +15 -1
  194. package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
  195. package/es/types/Interface/api/report/QueryReports.d.ts +0 -1
  196. package/es/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  197. package/es/types/Interface/api/report/QueryReports.js +0 -4
  198. package/es/types/Interface/api/report/QueryReports.js.map +1 -1
  199. package/es/types/Interface/api/revision/QueryRevision.d.ts +0 -2
  200. package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -1
  201. package/es/types/Interface/api/revision/QueryRevision.js +2 -16
  202. package/es/types/Interface/api/revision/QueryRevision.js.map +1 -1
  203. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +1 -1
  204. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -1
  205. package/es/types/Interface/api/revision/QueryRevisionAccount.js +5 -11
  206. package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  207. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +0 -2
  208. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +1 -1
  209. package/es/types/Interface/api/revision/QueryRevisionPaginate.js +2 -16
  210. package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  211. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +1 -1
  212. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
  213. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  214. package/es/types/Interface/api/revision/ReadRevision.d.ts +1 -2
  215. package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -1
  216. package/es/types/Interface/api/revision/ReadRevision.js.map +1 -1
  217. package/es/types/Interface/api/simulation/CreateSimulation.d.ts +0 -2
  218. package/es/types/Interface/api/simulation/CreateSimulation.d.ts.map +1 -1
  219. package/es/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  220. package/es/types/Interface/api/task/QueryCountTask.d.ts +1 -1
  221. package/es/types/Interface/api/task/QueryCountTask.d.ts.map +1 -1
  222. package/es/types/Interface/api/task/QueryCountTask.js +1 -1
  223. package/es/types/Interface/api/task/QueryCountTask.js.map +1 -1
  224. package/es/types/Interface/api/task/QueryPaginatedTask.d.ts +0 -2
  225. package/es/types/Interface/api/task/QueryPaginatedTask.d.ts.map +1 -1
  226. package/es/types/Interface/api/task/QueryPaginatedTask.js +0 -11
  227. package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  228. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +0 -1
  229. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
  230. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +1 -10
  231. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  232. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +0 -1
  233. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
  234. package/es/types/Interface/api/user/QueryGetAllCollaborators.js +1 -11
  235. package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  236. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +0 -1
  237. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +1 -1
  238. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +1 -8
  239. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
  240. package/es/types/Interface/models/IAccount.d.ts +0 -2
  241. package/es/types/Interface/models/IAccount.d.ts.map +1 -1
  242. package/es/types/Interface/models/IAccount.js.map +1 -1
  243. package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -1
  244. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  245. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  246. package/es/types/Interface/models/IApiError.d.ts +5 -2
  247. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  248. package/es/types/Interface/models/IApiError.js +5 -2
  249. package/es/types/Interface/models/IApiError.js.map +1 -1
  250. package/es/types/Interface/models/IAttributionHistory.d.ts +4 -4
  251. package/es/types/Interface/models/IAttributionHistory.d.ts.map +1 -1
  252. package/es/types/Interface/models/IAttributionHistory.js.map +1 -1
  253. package/es/types/Interface/models/ICommercialMail.d.ts +14 -0
  254. package/es/types/Interface/models/ICommercialMail.d.ts.map +1 -0
  255. package/es/types/Interface/models/ICommercialMail.js +2 -0
  256. package/es/types/Interface/models/ICommercialMail.js.map +1 -0
  257. package/es/types/Interface/models/IEngagementBankTransaction.d.ts +2 -0
  258. package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -1
  259. package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -1
  260. package/es/types/Interface/models/IEstimateInvoice.d.ts +24 -28
  261. package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  262. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  263. package/es/types/Interface/models/IExercice.d.ts +0 -1
  264. package/es/types/Interface/models/IExercice.d.ts.map +1 -1
  265. package/es/types/Interface/models/IExercice.js.map +1 -1
  266. package/es/types/Interface/models/{ISocietyRelance.d.ts → IInvoiceReminder.d.ts} +8 -8
  267. package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -0
  268. package/es/types/Interface/models/IInvoiceReminder.js +2 -0
  269. package/es/types/Interface/models/IInvoiceReminder.js.map +1 -0
  270. package/es/types/Interface/models/ILegalNotice.d.ts +0 -1
  271. package/es/types/Interface/models/ILegalNotice.d.ts.map +1 -1
  272. package/es/types/Interface/models/ILegalNotice.js.map +1 -1
  273. package/es/types/Interface/models/IPartnerTransaction.d.ts +1 -0
  274. package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
  275. package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
  276. package/es/types/Interface/models/IPaymentExpectation.d.ts +0 -1
  277. package/es/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  278. package/es/types/Interface/models/IPaymentExpectation.js.map +1 -1
  279. package/es/types/Interface/models/IPrestation.d.ts +0 -3
  280. package/es/types/Interface/models/IPrestation.d.ts.map +1 -1
  281. package/es/types/Interface/models/IPrestation.js.map +1 -1
  282. package/es/types/Interface/models/IPrestationComplementary.d.ts +1 -1
  283. package/es/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
  284. package/es/types/Interface/models/IPrestationComplementary.js.map +1 -1
  285. package/es/types/Interface/models/IProduct.d.ts +4 -1
  286. package/es/types/Interface/models/IProduct.d.ts.map +1 -1
  287. package/es/types/Interface/models/IProduct.js.map +1 -1
  288. package/es/types/Interface/models/IProductInvoice.d.ts +7 -3
  289. package/es/types/Interface/models/IProductInvoice.d.ts.map +1 -1
  290. package/es/types/Interface/models/IProductInvoice.js.map +1 -1
  291. package/es/types/Interface/models/ISociety.d.ts +2 -5
  292. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  293. package/es/types/Interface/models/ISociety.js.map +1 -1
  294. package/es/types/Interface/models/ISocietyGescom.d.ts +13 -1
  295. package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  296. package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
  297. package/es/types/Interface/models/ISocietyPartner.d.ts +1 -2
  298. package/es/types/Interface/models/ISocietyPartner.d.ts.map +1 -1
  299. package/es/types/Interface/models/ISocietyPartner.js.map +1 -1
  300. package/es/types/Interface/models/ITask.d.ts +2 -2
  301. package/es/types/Interface/models/ITask.d.ts.map +1 -1
  302. package/es/types/Interface/models/ITask.js.map +1 -1
  303. package/es/types/index.d.ts +11 -42
  304. package/es/types/index.d.ts.map +1 -1
  305. package/es/types/index.js +11 -42
  306. package/es/types/index.js.map +1 -1
  307. package/es/utils/amount.d.ts +2 -0
  308. package/es/utils/amount.d.ts.map +1 -0
  309. package/es/utils/amount.js +12 -0
  310. package/es/utils/amount.js.map +1 -0
  311. package/es/utils/brands.d.ts +1 -1
  312. package/es/utils/brands.d.ts.map +1 -1
  313. package/es/utils/brands.js +26 -8
  314. package/es/utils/brands.js.map +1 -1
  315. package/es/utils/commercialManagement/document.d.ts +6 -0
  316. package/es/utils/commercialManagement/document.d.ts.map +1 -0
  317. package/es/utils/commercialManagement/document.js +58 -0
  318. package/es/utils/commercialManagement/document.js.map +1 -0
  319. package/es/utils/commercialManagement/product.d.ts +5 -0
  320. package/es/utils/commercialManagement/product.d.ts.map +1 -0
  321. package/es/utils/commercialManagement/product.js +27 -0
  322. package/es/utils/commercialManagement/product.js.map +1 -0
  323. package/es/utils/commercialManagement/templates/body.d.ts +2 -0
  324. package/es/utils/commercialManagement/templates/body.d.ts.map +1 -0
  325. package/es/utils/commercialManagement/templates/body.js +111 -0
  326. package/es/utils/commercialManagement/templates/body.js.map +1 -0
  327. package/es/utils/commercialManagement/templates/common.d.ts +12 -0
  328. package/es/utils/commercialManagement/templates/common.d.ts.map +1 -0
  329. package/es/utils/commercialManagement/templates/common.js +199 -0
  330. package/es/utils/commercialManagement/templates/common.js.map +1 -0
  331. package/es/utils/commercialManagement/vat.d.ts +6 -0
  332. package/es/utils/commercialManagement/vat.d.ts.map +1 -0
  333. package/es/utils/commercialManagement/vat.js +23 -0
  334. package/es/utils/commercialManagement/vat.js.map +1 -0
  335. package/es/utils/index.d.ts +2 -1
  336. package/es/utils/index.d.ts.map +1 -1
  337. package/es/utils/index.js +2 -1
  338. package/es/utils/index.js.map +1 -1
  339. package/es/utils/task.d.ts +2 -3
  340. package/es/utils/task.d.ts.map +1 -1
  341. package/es/utils/task.js +19 -23
  342. package/es/utils/task.js.map +1 -1
  343. package/es/utils/webmail.d.ts.map +1 -1
  344. package/es/utils/webmail.js +4 -1
  345. package/es/utils/webmail.js.map +1 -1
  346. package/importInterfaces.ts +1 -1
  347. package/js/api/resources/BudgetInsight.js +10 -0
  348. package/js/api/resources/BudgetInsight.js.map +1 -1
  349. package/js/api/resources/CalendarEvent.js +3 -5
  350. package/js/api/resources/CalendarEvent.js.map +1 -1
  351. package/js/api/resources/CommercialSetting.js +22 -0
  352. package/js/api/resources/CommercialSetting.js.map +1 -0
  353. package/js/api/resources/Connector.js +14 -0
  354. package/js/api/resources/Connector.js.map +1 -1
  355. package/js/api/resources/Dashboard.js +0 -6
  356. package/js/api/resources/Dashboard.js.map +1 -1
  357. package/js/api/resources/Exercice.js +0 -4
  358. package/js/api/resources/Exercice.js.map +1 -1
  359. package/js/api/resources/FecFile.js +6 -34
  360. package/js/api/resources/FecFile.js.map +1 -1
  361. package/js/api/resources/GeneralLedger.js +2 -2
  362. package/js/api/resources/GeneralLedger.js.map +1 -1
  363. package/js/api/resources/Invoice.js +42 -0
  364. package/js/api/resources/Invoice.js.map +1 -0
  365. package/js/api/resources/Loan.js +1 -1
  366. package/js/api/resources/Loan.js.map +1 -1
  367. package/js/api/resources/Mail.js +3 -4
  368. package/js/api/resources/Mail.js.map +1 -1
  369. package/js/api/resources/Partner.js +0 -4
  370. package/js/api/resources/Partner.js.map +1 -1
  371. package/js/api/resources/Qonto.js +1 -23
  372. package/js/api/resources/Qonto.js.map +1 -1
  373. package/js/api/resources/User.js +8 -31
  374. package/js/api/resources/User.js.map +1 -1
  375. package/js/api/resources/commercialDocument.js +74 -0
  376. package/js/api/resources/commercialDocument.js.map +1 -0
  377. package/js/api/resources/reminder.js +26 -0
  378. package/js/api/resources/reminder.js.map +1 -0
  379. package/js/api/resources.js +9 -24
  380. package/js/api/resources.js.map +1 -1
  381. package/js/index.js +12 -0
  382. package/js/index.js.map +1 -1
  383. package/js/types/Enum/Account.js +8 -0
  384. package/js/types/Enum/Account.js.map +1 -1
  385. package/js/types/Enum/BalanceSheet.js +1 -1
  386. package/js/types/Enum/BalanceSheet.js.map +1 -1
  387. package/js/types/Enum/BrandClementine.js +1 -10
  388. package/js/types/Enum/BrandClementine.js.map +1 -1
  389. package/js/types/Enum/BrandComptalib.js +5 -14
  390. package/js/types/Enum/BrandComptalib.js.map +1 -1
  391. package/js/types/Enum/BrandLegalstart.js +0 -3
  392. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  393. package/js/types/Enum/BrandPourcentage.js +3 -7
  394. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  395. package/js/types/Enum/BudgetInsight.js.map +1 -1
  396. package/js/types/Enum/CommercialManagement.js +90 -0
  397. package/js/types/Enum/CommercialManagement.js.map +1 -0
  398. package/js/types/Enum/EstimateInvoice.js +1 -1
  399. package/js/types/Enum/EstimateInvoice.js.map +1 -1
  400. package/js/types/Enum/Ged.js +17 -104
  401. package/js/types/Enum/Ged.js.map +1 -1
  402. package/js/types/Enum/Log.js +0 -1
  403. package/js/types/Enum/Log.js.map +1 -1
  404. package/js/types/Enum/Prestation.js +22 -0
  405. package/js/types/Enum/Prestation.js.map +1 -0
  406. package/js/types/Enum/Role.js +13 -18
  407. package/js/types/Enum/Role.js.map +1 -1
  408. package/js/types/Enum/RoleDetail.js +86 -149
  409. package/js/types/Enum/RoleDetail.js.map +1 -1
  410. package/js/types/Enum/SheetMonthScheduleDetailType.js +1 -1
  411. package/js/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
  412. package/js/types/Enum/TaskResponseType.js +3 -56
  413. package/js/types/Enum/TaskResponseType.js.map +1 -1
  414. package/js/types/Enum/TimeCounterType.js +40 -68
  415. package/js/types/Enum/TimeCounterType.js.map +1 -1
  416. package/js/types/Enum/Vat.js +46 -45
  417. package/js/types/Enum/Vat.js.map +1 -1
  418. package/js/types/Enum/VatDeclarationType.js +0 -5
  419. package/js/types/Enum/VatDeclarationType.js.map +1 -1
  420. package/js/types/Interface/api/3cx/Query3cxSearch.js +0 -2
  421. package/js/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
  422. package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
  423. package/js/types/Interface/api/commercialManagement/Create.js +235 -0
  424. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -0
  425. package/js/types/Interface/api/commercialManagement/Query.js +79 -0
  426. package/js/types/Interface/api/commercialManagement/Query.js.map +1 -0
  427. package/js/types/Interface/api/{qonto/Query.js → commercialManagement/Read.js} +1 -1
  428. package/js/types/Interface/api/commercialManagement/Read.js.map +1 -0
  429. package/js/types/Interface/api/commercialManagement/Update.js +55 -0
  430. package/js/types/Interface/api/commercialManagement/Update.js.map +1 -0
  431. package/js/types/Interface/api/connector/CreateConnector.js +47 -0
  432. package/js/types/Interface/api/connector/CreateConnector.js.map +1 -0
  433. package/js/types/Interface/api/{qonto/ProcessBankAccount.js → connector/QueryConnector.js} +10 -6
  434. package/js/types/Interface/api/connector/QueryConnector.js.map +1 -0
  435. package/js/types/Interface/api/dashboard/ReadGescom.js.map +1 -1
  436. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +0 -2
  437. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  438. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -5
  439. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  440. package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -3
  441. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  442. package/js/types/Interface/api/product/CreateProduct.js +8 -6
  443. package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
  444. package/js/types/Interface/api/product/QueryProduct.js +6 -0
  445. package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
  446. package/js/types/Interface/api/report/QueryReports.js +0 -2
  447. package/js/types/Interface/api/report/QueryReports.js.map +1 -1
  448. package/js/types/Interface/api/revision/QueryRevision.js +0 -6
  449. package/js/types/Interface/api/revision/QueryRevision.js.map +1 -1
  450. package/js/types/Interface/api/revision/QueryRevisionAccount.js +5 -7
  451. package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  452. package/js/types/Interface/api/revision/QueryRevisionPaginate.js +0 -6
  453. package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  454. package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  455. package/js/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  456. package/js/types/Interface/api/task/QueryCountTask.js +1 -1
  457. package/js/types/Interface/api/task/QueryCountTask.js.map +1 -1
  458. package/js/types/Interface/api/task/QueryPaginatedTask.js +0 -6
  459. package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  460. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +0 -6
  461. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  462. package/js/types/Interface/api/user/QueryGetAllCollaborators.js +0 -8
  463. package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  464. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +0 -4
  465. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
  466. package/js/types/Interface/models/IApiError.js +6 -3
  467. package/js/types/Interface/models/IApiError.js.map +1 -1
  468. package/js/types/Interface/models/{ISocietyRelance.js → ICommercialMail.js} +1 -1
  469. package/js/types/Interface/models/ICommercialMail.js.map +1 -0
  470. package/js/types/Interface/{api/dashboard/ReadVatDisbursed.js → models/IInvoiceReminder.js} +1 -1
  471. package/js/types/Interface/models/IInvoiceReminder.js.map +1 -0
  472. package/js/types/index.js +64 -436
  473. package/js/types/index.js.map +1 -1
  474. package/js/utils/amount.js +23 -0
  475. package/js/utils/amount.js.map +1 -0
  476. package/js/utils/brands.js +26 -7
  477. package/js/utils/brands.js.map +1 -1
  478. package/js/utils/commercialManagement/document.js +157 -0
  479. package/js/utils/commercialManagement/document.js.map +1 -0
  480. package/js/utils/commercialManagement/product.js +57 -0
  481. package/js/utils/commercialManagement/product.js.map +1 -0
  482. package/js/utils/commercialManagement/templates/body.js +120 -0
  483. package/js/utils/commercialManagement/templates/body.js.map +1 -0
  484. package/js/utils/commercialManagement/templates/common.js +211 -0
  485. package/js/utils/commercialManagement/templates/common.js.map +1 -0
  486. package/js/utils/commercialManagement/vat.js +45 -0
  487. package/js/utils/commercialManagement/vat.js.map +1 -0
  488. package/js/utils/index.js +21 -9
  489. package/js/utils/index.js.map +1 -1
  490. package/js/utils/task.js +20 -29
  491. package/js/utils/task.js.map +1 -1
  492. package/js/utils/webmail.js +3 -1
  493. package/js/utils/webmail.js.map +1 -1
  494. package/package.json +3 -1
  495. package/ts/api/resources/BudgetInsight.ts +13 -0
  496. package/ts/api/resources/CalendarEvent.ts +2 -3
  497. package/ts/api/resources/CommercialSetting.ts +12 -0
  498. package/ts/api/resources/Connector.ts +16 -1
  499. package/ts/api/resources/Dashboard.ts +0 -6
  500. package/ts/api/resources/Exercice.ts +0 -4
  501. package/ts/api/resources/FecFile.ts +6 -32
  502. package/ts/api/resources/GeneralLedger.ts +2 -2
  503. package/ts/api/resources/Invoice.ts +39 -0
  504. package/ts/api/resources/Loan.ts +1 -1
  505. package/ts/api/resources/Mail.ts +3 -4
  506. package/ts/api/resources/Partner.ts +0 -4
  507. package/ts/api/resources/Qonto.ts +5 -27
  508. package/ts/api/resources/User.ts +29 -30
  509. package/ts/api/resources/commercialDocument.ts +66 -0
  510. package/ts/api/resources/reminder.ts +20 -0
  511. package/ts/api/resources.ts +8 -18
  512. package/ts/index.ts +1 -0
  513. package/ts/types/Enum/Account.ts +8 -0
  514. package/ts/types/Enum/BalanceSheet.ts +1 -1
  515. package/ts/types/Enum/BrandClementine.ts +1 -10
  516. package/ts/types/Enum/BrandComptalib.ts +4 -13
  517. package/ts/types/Enum/BrandLegalstart.ts +0 -3
  518. package/ts/types/Enum/BrandPourcentage.ts +3 -7
  519. package/ts/types/Enum/BudgetInsight.ts +1 -1
  520. package/ts/types/Enum/CommercialManagement.ts +64 -0
  521. package/ts/types/Enum/EstimateInvoice.ts +1 -1
  522. package/ts/types/Enum/Ged.ts +15 -102
  523. package/ts/types/Enum/Log.ts +0 -1
  524. package/ts/types/Enum/Prestation.ts +14 -0
  525. package/ts/types/Enum/Role.ts +10 -15
  526. package/ts/types/Enum/RoleDetail.ts +64 -127
  527. package/ts/types/Enum/SheetMonthScheduleDetailType.ts +1 -1
  528. package/ts/types/Enum/TaskResponseType.ts +2 -57
  529. package/ts/types/Enum/TimeCounterType.ts +19 -47
  530. package/ts/types/Enum/Vat.ts +28 -25
  531. package/ts/types/Enum/VatDeclarationType.ts +0 -6
  532. package/ts/types/Interface/api/3cx/Query3cxSearch.ts +0 -5
  533. package/ts/types/Interface/api/calendarEvent/getAllCalendarEvent.ts +1 -1
  534. package/ts/types/Interface/api/calendarEvent/readAllCalendarEvent.ts +0 -1
  535. package/ts/types/Interface/api/commercialManagement/Create.ts +425 -0
  536. package/ts/types/Interface/api/commercialManagement/Query.ts +115 -0
  537. package/ts/types/Interface/api/commercialManagement/Read.ts +67 -0
  538. package/ts/types/Interface/api/commercialManagement/Update.ts +72 -0
  539. package/ts/types/Interface/api/connector/CreateConnector.ts +51 -0
  540. package/ts/types/Interface/api/connector/QueryConnector.ts +16 -0
  541. package/ts/types/Interface/api/dashboard/ReadGescom.ts +2 -3
  542. package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +0 -6
  543. package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -7
  544. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -6
  545. package/ts/types/Interface/api/product/CreateProduct.ts +14 -6
  546. package/ts/types/Interface/api/product/QueryProduct.ts +13 -0
  547. package/ts/types/Interface/api/report/QueryReports.ts +0 -3
  548. package/ts/types/Interface/api/revision/QueryRevision.ts +2 -15
  549. package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +4 -11
  550. package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +2 -15
  551. package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +1 -1
  552. package/ts/types/Interface/api/revision/ReadRevision.ts +1 -2
  553. package/ts/types/Interface/api/simulation/CreateSimulation.ts +0 -2
  554. package/ts/types/Interface/api/task/QueryCountTask.ts +1 -1
  555. package/ts/types/Interface/api/task/QueryPaginatedTask.ts +0 -9
  556. package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +0 -9
  557. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +1 -12
  558. package/ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts +1 -7
  559. package/ts/types/Interface/models/IAccount.ts +0 -2
  560. package/ts/types/Interface/models/IAccountingTransaction.ts +1 -1
  561. package/ts/types/Interface/models/IApiError.ts +6 -3
  562. package/ts/types/Interface/models/IAttributionHistory.ts +4 -4
  563. package/ts/types/Interface/models/ICommercialMail.ts +15 -0
  564. package/ts/types/Interface/models/IEngagementBankTransaction.ts +2 -0
  565. package/ts/types/Interface/models/IEstimateInvoice.ts +24 -28
  566. package/ts/types/Interface/models/IExercice.ts +0 -1
  567. package/ts/types/Interface/models/{ISocietyRelance.ts → IInvoiceReminder.ts} +7 -7
  568. package/ts/types/Interface/models/ILegalNotice.ts +0 -1
  569. package/ts/types/Interface/models/IPartnerTransaction.ts +1 -0
  570. package/ts/types/Interface/models/IPaymentExpectation.ts +0 -1
  571. package/ts/types/Interface/models/IPrestation.ts +0 -3
  572. package/ts/types/Interface/models/IPrestationComplementary.ts +1 -1
  573. package/ts/types/Interface/models/IProduct.ts +4 -1
  574. package/ts/types/Interface/models/IProductInvoice.ts +7 -3
  575. package/ts/types/Interface/models/ISociety.ts +2 -5
  576. package/ts/types/Interface/models/ISocietyGescom.ts +14 -1
  577. package/ts/types/Interface/models/ISocietyPartner.ts +1 -2
  578. package/ts/types/Interface/models/ITask.ts +2 -2
  579. package/ts/types/index.ts +11 -42
  580. package/ts/utils/amount.ts +13 -0
  581. package/ts/utils/brands.ts +25 -7
  582. package/ts/utils/commercialManagement/document.ts +111 -0
  583. package/ts/utils/commercialManagement/product.ts +37 -0
  584. package/ts/utils/commercialManagement/templates/body.ts +113 -0
  585. package/ts/utils/commercialManagement/templates/common.ts +205 -0
  586. package/ts/utils/commercialManagement/vat.ts +25 -0
  587. package/ts/utils/index.ts +2 -1
  588. package/ts/utils/task.ts +16 -24
  589. package/ts/utils/webmail.ts +3 -1
  590. package/es/api/resources/LegalNotice.d.ts +0 -6
  591. package/es/api/resources/LegalNotice.d.ts.map +0 -1
  592. package/es/api/resources/LegalNotice.js +0 -7
  593. package/es/api/resources/LegalNotice.js.map +0 -1
  594. package/es/api/resources/PaymentExpectation.d.ts +0 -6
  595. package/es/api/resources/PaymentExpectation.d.ts.map +0 -1
  596. package/es/api/resources/PaymentExpectation.js +0 -7
  597. package/es/api/resources/PaymentExpectation.js.map +0 -1
  598. package/es/api/resources/SlowDetection.d.ts +0 -11
  599. package/es/api/resources/SlowDetection.d.ts.map +0 -1
  600. package/es/api/resources/SlowDetection.js +0 -12
  601. package/es/api/resources/SlowDetection.js.map +0 -1
  602. package/es/api/resources/SocietyConfig.d.ts +0 -7
  603. package/es/api/resources/SocietyConfig.d.ts.map +0 -1
  604. package/es/api/resources/SocietyConfig.js +0 -10
  605. package/es/api/resources/SocietyConfig.js.map +0 -1
  606. package/es/api/resources/Source.d.ts +0 -6
  607. package/es/api/resources/Source.d.ts.map +0 -1
  608. package/es/api/resources/Source.js +0 -7
  609. package/es/api/resources/Source.js.map +0 -1
  610. package/es/api/resources/TerminationList.d.ts +0 -7
  611. package/es/api/resources/TerminationList.d.ts.map +0 -1
  612. package/es/api/resources/TerminationList.js +0 -10
  613. package/es/api/resources/TerminationList.js.map +0 -1
  614. package/es/api/resources/Wallet.d.ts +0 -8
  615. package/es/api/resources/Wallet.d.ts.map +0 -1
  616. package/es/api/resources/Wallet.js +0 -7
  617. package/es/api/resources/Wallet.js.map +0 -1
  618. package/es/api/resources/statistic/Accountant.d.ts +0 -59
  619. package/es/api/resources/statistic/Accountant.d.ts.map +0 -1
  620. package/es/api/resources/statistic/Accountant.js +0 -86
  621. package/es/api/resources/statistic/Accountant.js.map +0 -1
  622. package/es/api/resources/statistic/Direction.d.ts +0 -11
  623. package/es/api/resources/statistic/Direction.d.ts.map +0 -1
  624. package/es/api/resources/statistic/Direction.js +0 -14
  625. package/es/api/resources/statistic/Direction.js.map +0 -1
  626. package/es/api/resources/statistic/ExpertAccountant.d.ts +0 -29
  627. package/es/api/resources/statistic/ExpertAccountant.d.ts.map +0 -1
  628. package/es/api/resources/statistic/ExpertAccountant.js +0 -41
  629. package/es/api/resources/statistic/ExpertAccountant.js.map +0 -1
  630. package/es/types/Enum/AdditionnalSells.d.ts +0 -7
  631. package/es/types/Enum/AdditionnalSells.d.ts.map +0 -1
  632. package/es/types/Enum/AdditionnalSells.js +0 -8
  633. package/es/types/Enum/AdditionnalSells.js.map +0 -1
  634. package/es/types/Enum/CustomerVat.d.ts +0 -24
  635. package/es/types/Enum/CustomerVat.d.ts.map +0 -1
  636. package/es/types/Enum/CustomerVat.js +0 -26
  637. package/es/types/Enum/CustomerVat.js.map +0 -1
  638. package/es/types/Enum/Lab.d.ts +0 -25
  639. package/es/types/Enum/Lab.d.ts.map +0 -1
  640. package/es/types/Enum/Lab.js +0 -26
  641. package/es/types/Enum/Lab.js.map +0 -1
  642. package/es/types/Enum/OperationLegalNotice.d.ts +0 -4
  643. package/es/types/Enum/OperationLegalNotice.d.ts.map +0 -1
  644. package/es/types/Enum/OperationLegalNotice.js +0 -5
  645. package/es/types/Enum/OperationLegalNotice.js.map +0 -1
  646. package/es/types/Enum/OrderStatus.d.ts +0 -6
  647. package/es/types/Enum/OrderStatus.d.ts.map +0 -1
  648. package/es/types/Enum/OrderStatus.js +0 -7
  649. package/es/types/Enum/OrderStatus.js.map +0 -1
  650. package/es/types/Enum/PrestationType.d.ts +0 -2776
  651. package/es/types/Enum/PrestationType.d.ts.map +0 -1
  652. package/es/types/Enum/PrestationType.js +0 -2778
  653. package/es/types/Enum/PrestationType.js.map +0 -1
  654. package/es/types/Enum/Reason.d.ts +0 -4
  655. package/es/types/Enum/Reason.d.ts.map +0 -1
  656. package/es/types/Enum/Reason.js +0 -5
  657. package/es/types/Enum/Reason.js.map +0 -1
  658. package/es/types/Enum/RegistrationSourceDetail.d.ts +0 -195
  659. package/es/types/Enum/RegistrationSourceDetail.d.ts.map +0 -1
  660. package/es/types/Enum/RegistrationSourceDetail.js +0 -99
  661. package/es/types/Enum/RegistrationSourceDetail.js.map +0 -1
  662. package/es/types/Enum/ReportService.d.ts +0 -10
  663. package/es/types/Enum/ReportService.d.ts.map +0 -1
  664. package/es/types/Enum/ReportService.js +0 -31
  665. package/es/types/Enum/ReportService.js.map +0 -1
  666. package/es/types/Enum/Rules.d.ts +0 -2
  667. package/es/types/Enum/Rules.d.ts.map +0 -1
  668. package/es/types/Enum/Rules.js +0 -19
  669. package/es/types/Enum/Rules.js.map +0 -1
  670. package/es/types/Enum/StatisticType.d.ts +0 -16
  671. package/es/types/Enum/StatisticType.d.ts.map +0 -1
  672. package/es/types/Enum/StatisticType.js +0 -17
  673. package/es/types/Enum/StatisticType.js.map +0 -1
  674. package/es/types/Enum/StatsCaStateDetail.d.ts +0 -28
  675. package/es/types/Enum/StatsCaStateDetail.d.ts.map +0 -1
  676. package/es/types/Enum/StatsCaStateDetail.js +0 -28
  677. package/es/types/Enum/StatsCaStateDetail.js.map +0 -1
  678. package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts +0 -5
  679. package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts.map +0 -1
  680. package/es/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -24
  681. package/es/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
  682. package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts +0 -13
  683. package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts.map +0 -1
  684. package/es/types/Interface/api/dashboard/ReadVatDisbursed.js +0 -2
  685. package/es/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
  686. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts +0 -5
  687. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts.map +0 -1
  688. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -25
  689. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
  690. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +0 -4
  691. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +0 -1
  692. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -17
  693. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
  694. package/es/types/Interface/api/prestation/CreatePrestation.d.ts +0 -6
  695. package/es/types/Interface/api/prestation/CreatePrestation.d.ts.map +0 -1
  696. package/es/types/Interface/api/prestation/CreatePrestation.js +0 -28
  697. package/es/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
  698. package/es/types/Interface/api/qonto/CreateImportation.d.ts +0 -5
  699. package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +0 -1
  700. package/es/types/Interface/api/qonto/CreateImportation.js +0 -26
  701. package/es/types/Interface/api/qonto/CreateImportation.js.map +0 -1
  702. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +0 -5
  703. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +0 -1
  704. package/es/types/Interface/api/qonto/CreateQontoConnection.js +0 -24
  705. package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
  706. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +0 -4
  707. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +0 -1
  708. package/es/types/Interface/api/qonto/GetConnectionInformation.js +0 -19
  709. package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
  710. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +0 -5
  711. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +0 -1
  712. package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
  713. package/es/types/Interface/api/qonto/Query.d.ts +0 -77
  714. package/es/types/Interface/api/qonto/Query.d.ts.map +0 -1
  715. package/es/types/Interface/api/qonto/Query.js +0 -2
  716. package/es/types/Interface/api/qonto/Query.js.map +0 -1
  717. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts +0 -6
  718. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +0 -1
  719. package/es/types/Interface/api/qonto/ReadCreateConnection.js +0 -2
  720. package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
  721. package/es/types/Interface/api/qonto/UpdateConnection.d.ts +0 -4
  722. package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +0 -1
  723. package/es/types/Interface/api/qonto/UpdateConnection.js +0 -19
  724. package/es/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
  725. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts +0 -13
  726. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts.map +0 -1
  727. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +0 -74
  728. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +0 -1
  729. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts +0 -11
  730. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts.map +0 -1
  731. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js +0 -2
  732. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js.map +0 -1
  733. package/es/types/Interface/api/societyConfig/update.d.ts +0 -21
  734. package/es/types/Interface/api/societyConfig/update.d.ts.map +0 -1
  735. package/es/types/Interface/api/societyConfig/update.js.map +0 -1
  736. package/es/types/Interface/api/statistic/ExitRequest.d.ts +0 -108
  737. package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +0 -1
  738. package/es/types/Interface/api/statistic/ExitRequest.js +0 -2
  739. package/es/types/Interface/api/statistic/ExitRequest.js.map +0 -1
  740. package/es/types/Interface/api/statistic/QueryAccountant.d.ts +0 -6
  741. package/es/types/Interface/api/statistic/QueryAccountant.d.ts.map +0 -1
  742. package/es/types/Interface/api/statistic/QueryAccountant.js +0 -31
  743. package/es/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
  744. package/es/types/Interface/api/statistic/QueryDirection.d.ts +0 -6
  745. package/es/types/Interface/api/statistic/QueryDirection.d.ts.map +0 -1
  746. package/es/types/Interface/api/statistic/QueryDirection.js +0 -31
  747. package/es/types/Interface/api/statistic/QueryDirection.js.map +0 -1
  748. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts +0 -6
  749. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts.map +0 -1
  750. package/es/types/Interface/api/statistic/QueryExpertAccountant.js +0 -31
  751. package/es/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
  752. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts +0 -5
  753. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts.map +0 -1
  754. package/es/types/Interface/api/statistic/QueryGetAccountant.js +0 -24
  755. package/es/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
  756. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts +0 -5
  757. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts.map +0 -1
  758. package/es/types/Interface/api/statistic/QueryGetDirection.js +0 -24
  759. package/es/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
  760. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts +0 -5
  761. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts.map +0 -1
  762. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -24
  763. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
  764. package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts +0 -17
  765. package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts.map +0 -1
  766. package/es/types/Interface/api/terminationList/DestroyTerminationList.js +0 -96
  767. package/es/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
  768. package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts +0 -17
  769. package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts.map +0 -1
  770. package/es/types/Interface/api/terminationList/QueryTerminationList.js +0 -98
  771. package/es/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
  772. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts +0 -6
  773. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts.map +0 -1
  774. package/es/types/Interface/api/wallet/UpdateAttribution.js +0 -34
  775. package/es/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
  776. package/es/types/Interface/models/IPrestationHistory.d.ts +0 -13
  777. package/es/types/Interface/models/IPrestationHistory.d.ts.map +0 -1
  778. package/es/types/Interface/models/IPrestationHistory.js +0 -2
  779. package/es/types/Interface/models/IPrestationHistory.js.map +0 -1
  780. package/es/types/Interface/models/ISlowDetection.d.ts +0 -9
  781. package/es/types/Interface/models/ISlowDetection.d.ts.map +0 -1
  782. package/es/types/Interface/models/ISlowDetection.js +0 -2
  783. package/es/types/Interface/models/ISlowDetection.js.map +0 -1
  784. package/es/types/Interface/models/ISocietyRelance.d.ts.map +0 -1
  785. package/es/types/Interface/models/ISocietyRelance.js +0 -2
  786. package/es/types/Interface/models/ISocietyRelance.js.map +0 -1
  787. package/es/types/Interface/models/IStatistic.d.ts +0 -11
  788. package/es/types/Interface/models/IStatistic.d.ts.map +0 -1
  789. package/es/types/Interface/models/IStatistic.js +0 -2
  790. package/es/types/Interface/models/IStatistic.js.map +0 -1
  791. package/es/utils/prestation.d.ts +0 -11
  792. package/es/utils/prestation.d.ts.map +0 -1
  793. package/es/utils/prestation.js +0 -62
  794. package/es/utils/prestation.js.map +0 -1
  795. package/js/api/resources/LegalNotice.js +0 -18
  796. package/js/api/resources/LegalNotice.js.map +0 -1
  797. package/js/api/resources/PaymentExpectation.js +0 -20
  798. package/js/api/resources/PaymentExpectation.js.map +0 -1
  799. package/js/api/resources/SlowDetection.js +0 -23
  800. package/js/api/resources/SlowDetection.js.map +0 -1
  801. package/js/api/resources/SocietyConfig.js +0 -22
  802. package/js/api/resources/SocietyConfig.js.map +0 -1
  803. package/js/api/resources/Source.js +0 -18
  804. package/js/api/resources/Source.js.map +0 -1
  805. package/js/api/resources/TerminationList.js +0 -26
  806. package/js/api/resources/TerminationList.js.map +0 -1
  807. package/js/api/resources/Wallet.js +0 -18
  808. package/js/api/resources/Wallet.js.map +0 -1
  809. package/js/api/resources/statistic/Accountant.js +0 -150
  810. package/js/api/resources/statistic/Accountant.js.map +0 -1
  811. package/js/api/resources/statistic/Direction.js +0 -30
  812. package/js/api/resources/statistic/Direction.js.map +0 -1
  813. package/js/api/resources/statistic/ExpertAccountant.js +0 -75
  814. package/js/api/resources/statistic/ExpertAccountant.js.map +0 -1
  815. package/js/types/Enum/AdditionnalSells.js +0 -14
  816. package/js/types/Enum/AdditionnalSells.js.map +0 -1
  817. package/js/types/Enum/CustomerVat.js +0 -34
  818. package/js/types/Enum/CustomerVat.js.map +0 -1
  819. package/js/types/Enum/Lab.js +0 -33
  820. package/js/types/Enum/Lab.js.map +0 -1
  821. package/js/types/Enum/OperationLegalNotice.js +0 -11
  822. package/js/types/Enum/OperationLegalNotice.js.map +0 -1
  823. package/js/types/Enum/OrderStatus.js +0 -13
  824. package/js/types/Enum/OrderStatus.js.map +0 -1
  825. package/js/types/Enum/PrestationType.js +0 -2785
  826. package/js/types/Enum/PrestationType.js.map +0 -1
  827. package/js/types/Enum/Reason.js +0 -11
  828. package/js/types/Enum/Reason.js.map +0 -1
  829. package/js/types/Enum/RegistrationSourceDetail.js +0 -200
  830. package/js/types/Enum/RegistrationSourceDetail.js.map +0 -1
  831. package/js/types/Enum/ReportService.js +0 -32
  832. package/js/types/Enum/ReportService.js.map +0 -1
  833. package/js/types/Enum/Rules.js +0 -7
  834. package/js/types/Enum/Rules.js.map +0 -1
  835. package/js/types/Enum/StatisticType.js +0 -23
  836. package/js/types/Enum/StatisticType.js.map +0 -1
  837. package/js/types/Enum/StatsCaStateDetail.js +0 -33
  838. package/js/types/Enum/StatsCaStateDetail.js.map +0 -1
  839. package/js/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -31
  840. package/js/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
  841. package/js/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
  842. package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -31
  843. package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
  844. package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -27
  845. package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
  846. package/js/types/Interface/api/prestation/CreatePrestation.js +0 -33
  847. package/js/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
  848. package/js/types/Interface/api/qonto/CreateImportation.js +0 -31
  849. package/js/types/Interface/api/qonto/CreateImportation.js.map +0 -1
  850. package/js/types/Interface/api/qonto/CreateQontoConnection.js +0 -31
  851. package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
  852. package/js/types/Interface/api/qonto/GetConnectionInformation.js +0 -29
  853. package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
  854. package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
  855. package/js/types/Interface/api/qonto/Query.js.map +0 -1
  856. package/js/types/Interface/api/qonto/ReadCreateConnection.js +0 -6
  857. package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
  858. package/js/types/Interface/api/qonto/UpdateConnection.js +0 -29
  859. package/js/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
  860. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +0 -53
  861. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +0 -1
  862. package/js/types/Interface/api/society/SocietyWithStatsCaParams.js +0 -6
  863. package/js/types/Interface/api/society/SocietyWithStatsCaParams.js.map +0 -1
  864. package/js/types/Interface/api/societyConfig/update.js +0 -65
  865. package/js/types/Interface/api/societyConfig/update.js.map +0 -1
  866. package/js/types/Interface/api/statistic/ExitRequest.js +0 -6
  867. package/js/types/Interface/api/statistic/ExitRequest.js.map +0 -1
  868. package/js/types/Interface/api/statistic/QueryAccountant.js +0 -35
  869. package/js/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
  870. package/js/types/Interface/api/statistic/QueryDirection.js +0 -35
  871. package/js/types/Interface/api/statistic/QueryDirection.js.map +0 -1
  872. package/js/types/Interface/api/statistic/QueryExpertAccountant.js +0 -35
  873. package/js/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
  874. package/js/types/Interface/api/statistic/QueryGetAccountant.js +0 -31
  875. package/js/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
  876. package/js/types/Interface/api/statistic/QueryGetDirection.js +0 -31
  877. package/js/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
  878. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -31
  879. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
  880. package/js/types/Interface/api/terminationList/DestroyTerminationList.js +0 -55
  881. package/js/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
  882. package/js/types/Interface/api/terminationList/QueryTerminationList.js +0 -55
  883. package/js/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
  884. package/js/types/Interface/api/wallet/UpdateAttribution.js +0 -35
  885. package/js/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
  886. package/js/types/Interface/models/IPrestationHistory.js +0 -6
  887. package/js/types/Interface/models/IPrestationHistory.js.map +0 -1
  888. package/js/types/Interface/models/ISlowDetection.js +0 -6
  889. package/js/types/Interface/models/ISlowDetection.js.map +0 -1
  890. package/js/types/Interface/models/ISocietyRelance.js.map +0 -1
  891. package/js/types/Interface/models/IStatistic.js +0 -6
  892. package/js/types/Interface/models/IStatistic.js.map +0 -1
  893. package/js/utils/prestation.js +0 -41
  894. package/js/utils/prestation.js.map +0 -1
  895. package/ts/api/resources/LegalNotice.ts +0 -8
  896. package/ts/api/resources/PaymentExpectation.ts +0 -8
  897. package/ts/api/resources/SlowDetection.ts +0 -13
  898. package/ts/api/resources/SocietyConfig.ts +0 -12
  899. package/ts/api/resources/Source.ts +0 -8
  900. package/ts/api/resources/TerminationList.ts +0 -12
  901. package/ts/api/resources/Wallet.ts +0 -8
  902. package/ts/api/resources/statistic/Accountant.ts +0 -121
  903. package/ts/api/resources/statistic/Direction.ts +0 -17
  904. package/ts/api/resources/statistic/ExpertAccountant.ts +0 -56
  905. package/ts/types/Enum/AdditionnalSells.ts +0 -6
  906. package/ts/types/Enum/CustomerVat.ts +0 -24
  907. package/ts/types/Enum/Lab.ts +0 -25
  908. package/ts/types/Enum/OperationLegalNotice.ts +0 -3
  909. package/ts/types/Enum/OrderStatus.ts +0 -5
  910. package/ts/types/Enum/PrestationType.ts +0 -2777
  911. package/ts/types/Enum/Reason.ts +0 -3
  912. package/ts/types/Enum/RegistrationSourceDetail.ts +0 -98
  913. package/ts/types/Enum/ReportService.ts +0 -32
  914. package/ts/types/Enum/Rules.ts +0 -18
  915. package/ts/types/Enum/StatisticType.ts +0 -15
  916. package/ts/types/Enum/StatsCaStateDetail.ts +0 -27
  917. package/ts/types/Interface/api/dashboard/QueryVatDisbursed.ts +0 -12
  918. package/ts/types/Interface/api/dashboard/ReadVatDisbursed.ts +0 -14
  919. package/ts/types/Interface/api/legalNotice/UpdateLegalNotice.ts +0 -13
  920. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +0 -6
  921. package/ts/types/Interface/api/prestation/CreatePrestation.ts +0 -15
  922. package/ts/types/Interface/api/qonto/CreateImportation.ts +0 -14
  923. package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +0 -12
  924. package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +0 -8
  925. package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +0 -12
  926. package/ts/types/Interface/api/qonto/Query.ts +0 -80
  927. package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +0 -6
  928. package/ts/types/Interface/api/qonto/UpdateConnection.ts +0 -8
  929. package/ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts +0 -56
  930. package/ts/types/Interface/api/society/SocietyWithStatsCaParams.ts +0 -11
  931. package/ts/types/Interface/api/societyConfig/update.ts +0 -103
  932. package/ts/types/Interface/api/statistic/ExitRequest.ts +0 -120
  933. package/ts/types/Interface/api/statistic/QueryAccountant.ts +0 -20
  934. package/ts/types/Interface/api/statistic/QueryDirection.ts +0 -20
  935. package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +0 -20
  936. package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +0 -14
  937. package/ts/types/Interface/api/statistic/QueryGetDirection.ts +0 -14
  938. package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +0 -14
  939. package/ts/types/Interface/api/terminationList/DestroyTerminationList.ts +0 -74
  940. package/ts/types/Interface/api/terminationList/QueryTerminationList.ts +0 -76
  941. package/ts/types/Interface/api/wallet/UpdateAttribution.ts +0 -23
  942. package/ts/types/Interface/models/IPrestationHistory.ts +0 -16
  943. package/ts/types/Interface/models/ISlowDetection.ts +0 -11
  944. package/ts/types/Interface/models/IStatistic.ts +0 -13
  945. package/ts/utils/prestation.ts +0 -71
@@ -0,0 +1,211 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CommercialDocumentCommonHTML = undefined;
7
+
8
+ var _EstimateInvoice = require("../../../types/Enum/EstimateInvoice");
9
+
10
+ var _CommercialManagement = require("../../../types/Enum/CommercialManagement");
11
+
12
+ class CommercialDocumentCommonHTML {
13
+ constructor() {
14
+ this.header = `<style>html {
15
+ -webkit-print-color-adjust: exact;
16
+ }</style><% if (settings && settings.isEdgingDisplayed) { %>
17
+ <span style="position: absolute; top: 0; left: 0; width: 100vw; font-size: 10px; height: 15px; background-color: <%= settings && settings.edgingColor ? settings.edgingColor : '#333333' %>; margin-bottom: 20px;"></span>
18
+ <% } %>`;
19
+ this.footer = `<div style="font-size: 8px; color: #DADCDF; text-align: center; margin-left: 40px; margin-right: 40px; display: block; width: 100%">
20
+ <% if (freeText) { %><%- freeText %><br/><br/><% } %>
21
+ <% if(marginVats.length > 0) {%>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) } %> ART 297-A du CGI ou directive 2006-212 CE | <% if(penalties || compensation || discount) {%><%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%><%= penalties && compensation ? '|' : ''%><%= compensation ? 'Indemnité forfaitaire en cas de retard :' + compensation : '' %><%= (compensation || penalties) && discount ? '| ' : '' %><%= discount %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% }%>
22
+ <%= name %><%= name && (legalForm || capital || siren || rcs) ? ',' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? 'RCS ' + rcs + vatCode || nafCode ? '|' : '' : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? 'N° TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
23
+ </div>`;
24
+ this.logo = `<div class="logo-placeholder">
25
+ <% if (logoUrl) { %><img src="<%= logoUrl %>" alt="logo" /><% } %>
26
+ </div>`;
27
+ this.company = `<div>
28
+ <% if (name) { %><p><%= name %><p><% } %>
29
+ <% if (number || street) {%><p><%}%><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) { %><% } %><% if (number || street) {%></p><%}%>
30
+ <% if (zipCode || city) {%><p><%}%><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>
31
+ </div>
32
+ <% if (phoneContact) { %><p><%= phoneContact %><p><% } %>
33
+ <% if (settings && settings.mailContact) { %><p><%= settings.mailContact %></p><% } %>`;
34
+ this.products = `<table class="full-width">
35
+ <thead>
36
+ <tr>
37
+ <td>Article</td>
38
+ <td>Quantité</td>
39
+ <td>P.U <%= disableVat !== true ? 'HT' : ''%></td>
40
+ <% if (shouldDisplayDiscountColumn) { %><td>Remise</td><% } %>
41
+ <% if (disableVat !== true) { %><td>TVA</td><% } %>
42
+ <td>Montant <%= disableVat !== true ? 'HT' : ''%></td>
43
+ </tr>
44
+ </thead>
45
+ <% if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) { %>
46
+ <tr>
47
+ <td class="product-title">
48
+ <%= title %>
49
+ </td>
50
+ <td class="product-quantity">1</td>
51
+ <td class="product-price-without-vat"><%= depositFormatted %>€</td>
52
+ <td class="product-total-price-without-vat"><%= depositFormatted %>€</td>
53
+ </tr>
54
+ <% } %>
55
+ <% if (products) { %>
56
+ <% products.forEach(function (product) { %>
57
+ <tr>
58
+ <td class="product-title">
59
+ <% if(product.itemSaleName) { %><p class="product-name"><%= product.itemSaleName %></p><% } %>
60
+ <% if(product.comment) { %><p class="product-description"><%= product.comment %></p><% } %>
61
+ </td>
62
+ <td class="product-quantity"><%= product.quantity ? product.quantity : '' %><%= product.unitFormatted ? product.unitFormatted : '' %></td>
63
+ <td class="product-price-without-vat"><% if(product.priceTaxExcludedFormatted) { %><%= product.priceTaxExcludedFormatted + '€' %><% } %></td>
64
+ <% if (shouldDisplayDiscountColumn) { %>
65
+ <td class="product-discount">
66
+ <% if (product.discountFormatted) { %>
67
+ <p style="margin-bottom: 0px;"><%= product.discountFormatted %>€</p>
68
+ <% if(product.discountType === ${_CommercialManagement.DiscountType.PERCENT}) { %><span class="discount-percent">(<%= product.discountTypeFormatted %>)</span><% } %>
69
+ <% } %>
70
+ </td>
71
+ <% } %>
72
+ <% if(disableVat !== true) { %><td class="product-vat"><% if(product.vatFormatted) { %><%= product.vatFormatted %><% } %></td><% } %>
73
+ <td class="product-total-price-without-vat"><% if(product.totalTaxExcludedFormatted) { %><%= product.totalTaxExcludedFormatted + '€' %><% } %></td>
74
+ </tr>
75
+ <% }) %>
76
+ <% } %>
77
+ </table>`;
78
+ this.vatRecapitulation = `<table style="width: 80%;">
79
+ <thead>
80
+ <tr>
81
+ <td>Base</td>
82
+ <td>Taux</td>
83
+ <td>Montant TVA</td>
84
+ </tr>
85
+ </thead>
86
+ <% vats.forEach(function (vat) { %>
87
+ <tr class="vat-detail-row">
88
+ <td><%= vat.baseFormatted %>€</td>
89
+ <td><%= vat.name %></td>
90
+ <td><%= vat.amountFormatted %>€</td>
91
+ </tr>
92
+ <% }) %>
93
+ </table>`;
94
+ this.amountRecapitulation = `<table class="summary-prices" style="width: 40%">
95
+ <thead>
96
+ <tr>
97
+ <td colspan="2">Récapitulatif</td>
98
+ </tr>
99
+ </thead>
100
+ <% if (idEstimateInvoiceType !== ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) { %>
101
+ <% if (disableVat !== true) { %>
102
+ <tr>
103
+ <td>Total HT</td>
104
+ <td><%= totalTaxExcludedFormatted %>€</td>
105
+ </tr>
106
+ <% } %>
107
+ <% if (generalDiscountFormatted) { %>
108
+ <tr>
109
+ <td>Remise</td>
110
+ <td><%= generalDiscountFormatted %>€</td>
111
+ </tr>
112
+ <% } %>
113
+ <% if (disableVat !== true) { %>
114
+ <tr>
115
+ <td>TVA</td>
116
+ <td><%= totalVatAmountFormatted %>€</td>
117
+ </tr>
118
+ <% } %>
119
+ <% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>
120
+ <tr>
121
+ <td>Total <%= disableVat !== true ? 'TTC' : ''%></td>
122
+ <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
123
+ </tr>
124
+ <% } %>
125
+ <% if (depositFormatted) { %>
126
+ <tr>
127
+ <td>Acompte</td>
128
+ <td><%= depositFormatted %>€</td>
129
+ </tr>
130
+ <% } %>
131
+ <% } %>
132
+ <% if ([${_EstimateInvoice.EstimateInvoiceType.FACTURE}, ${_EstimateInvoice.EstimateInvoiceType.RESTE}, ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
133
+ <tr>
134
+ <td><b>Net à payer</b></td>
135
+ <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
136
+ </tr>
137
+ <% } %>
138
+ </table>`;
139
+ this.paymentButton = `<a class="payment-button" href="<% if (paymentLink) {%><%= paymentLink %><% } else {%>#<%}%>">Payer en ligne <svg width="81" height="17" viewBox="0 0 81 17" fill="none" xmlns="http://www.w3.org/2000/svg">
140
+ <path d="M23.6521 1H2.21213C1.5052 1 0.932129 1.57308 0.932129 2.28V14.792C0.932129 15.4989 1.5052 16.072 2.21213 16.072H23.6521C24.3591 16.072 24.9321 15.4989 24.9321 14.792V2.28C24.9321 1.57308 24.3591 1 23.6521 1Z" fill="black"/>
141
+ <path d="M14.9716 5.02051H10.3726V12.5219H14.9716V5.02051Z" fill="#FF5F00"/>
142
+ <path d="M10.8366 8.77127C10.8369 7.30928 11.5058 5.92768 12.6523 5.02055C10.6962 3.48259 7.88661 3.70615 6.19833 5.53409C4.51006 7.36203 4.51006 10.1805 6.19833 12.0085C7.88661 13.8364 10.6962 14.06 12.6523 12.522C11.5058 11.6149 10.8369 10.2333 10.8366 8.77127Z" fill="#EB001B"/>
143
+ <path d="M20.3795 8.77136C20.3808 10.5969 19.3394 12.2628 17.6977 13.0612C16.0561 13.8596 14.1027 13.6502 12.6675 12.5221C13.8143 11.6152 14.4832 10.2334 14.4832 8.77136C14.4832 7.30928 13.8143 5.92754 12.6675 5.02064C14.1027 3.8925 16.0561 3.68315 17.6977 4.48156C19.3394 5.27997 20.3808 6.94586 20.3795 8.77136Z" fill="#F79E1B"/>
144
+ <path d="M30.1321 1.25H51.1321C51.6568 1.25 52.0821 1.67534 52.0821 2.2V14.8C52.0821 15.3247 51.6568 15.75 51.1321 15.75H30.1321C29.6075 15.75 29.1821 15.3247 29.1821 14.8V2.2C29.1821 1.67534 29.6075 1.25 30.1321 1.25Z" fill="white" stroke="#EDEDED" stroke-width="0.5"/>
145
+ <path d="M37.7276 11.4621L38.7284 5.5893H40.3292L39.3277 11.4621H37.7276ZM45.1109 5.7159C44.7938 5.59692 44.2968 5.46924 43.6762 5.46924C42.0945 5.46924 40.9803 6.26574 40.9708 7.40733C40.9618 8.25123 41.7662 8.72199 42.3734 9.00291C42.9965 9.29076 43.2059 9.47433 43.203 9.7314C43.1991 10.125 42.7054 10.3049 42.2453 10.3049C41.6046 10.3049 41.2642 10.2159 40.7385 9.9966L40.5322 9.9033L40.3076 11.218C40.6815 11.3819 41.3729 11.5239 42.0907 11.5313C43.7734 11.5313 44.8657 10.7439 44.8782 9.52482C44.8842 8.85675 44.4577 8.34834 43.5342 7.92918C42.9747 7.65753 42.632 7.47621 42.6356 7.20114C42.6356 6.95703 42.9257 6.69597 43.5523 6.69597C44.0758 6.68787 44.455 6.80202 44.7505 6.92097L44.8939 6.98877L45.1109 5.7159M49.2302 5.58921H47.9932C47.61 5.58921 47.3233 5.69382 47.155 6.07623L44.7777 11.4582H46.4586C46.4586 11.4582 46.7334 10.7345 46.7955 10.5757C46.9793 10.5757 48.6122 10.5782 48.8457 10.5782C48.8936 10.7838 49.0404 11.4582 49.0404 11.4582H50.5258L49.2302 5.58903V5.58921ZM47.2676 9.38151C47.4 9.04314 47.9054 7.73982 47.9054 7.73982C47.8959 7.75548 48.0368 7.3998 48.1176 7.1793L48.2258 7.68567C48.2258 7.68567 48.5324 9.08754 48.5964 9.38151H47.2676ZM36.3686 5.58921L34.8014 9.59421L34.6344 8.78031C34.3427 7.84212 33.4337 6.82566 32.4175 6.31677L33.8505 11.4528L35.5441 11.4508L38.0643 5.58915H36.3686" fill="#171E6C"/>
146
+ <path d="M33.3395 5.58874H30.7582L30.7378 5.71093C32.7459 6.19705 34.0747 7.37182 34.6264 8.78323L34.0651 6.08443C33.9682 5.71258 33.6872 5.60161 33.3395 5.58862" fill="#171E6C"/>
147
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M78.6129 1C77.4206 1 64.7971 1 57.7475 1C57.1513 1 56.5552 1.6 56.5552 2.2V14.2C56.5552 15.4 57.1513 16 58.3436 16C64.9942 16 77.4206 16 78.6129 16C79.8052 16 80.4013 15.4 80.4013 14.2V2.8C80.4013 1.6 79.8052 1 78.6129 1Z" fill="#306FC5"/>
148
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M58.496 7.17857L58.0342 6.04592L57.575 7.17857H58.496ZM68.6703 6.72755C68.5775 6.7842 68.4679 6.78608 68.3365 6.78608H67.5168V6.15502H68.3476C68.4652 6.15502 68.5879 6.16033 68.6676 6.20626C68.7552 6.24765 68.8093 6.33575 68.8093 6.45744C68.8093 6.58161 68.7578 6.68153 68.6703 6.72755C68.7578 6.68153 68.6703 6.72755 68.6703 6.72755ZM74.518 7.17857L74.0511 6.04592L73.5867 7.17857H74.518ZM63.6175 8.40455H62.9257L62.9232 6.17935L61.9448 8.40455H61.3523L60.3713 6.17738V8.40455H58.9989L58.7396 7.77082H57.3347L57.0728 8.40455H56.3399L57.5483 5.56337H58.5508L59.6984 8.25338V5.56337H60.7997L61.6828 7.49077L62.494 5.56337H63.6174V8.40455H63.6175ZM66.3744 8.40455H64.1203V5.56337H66.3744V6.15502H64.7951V6.66714H66.3366V7.24953H64.7951V7.81693H66.3744V8.40455ZM69.5526 6.32855C69.5526 6.78154 69.2522 7.01558 69.0772 7.08585C69.2248 7.14241 69.3509 7.24233 69.411 7.32512C69.5062 7.46643 69.5227 7.59266 69.5227 7.84641V8.40455H68.8421L68.8395 8.04625C68.8395 7.87529 68.8558 7.62942 68.733 7.49274C68.6344 7.39282 68.4841 7.37113 68.2412 7.37113H67.5169V8.40455H66.8422V5.56337H68.3941C68.739 5.56337 68.9931 5.57254 69.2112 5.69945C69.4247 5.82637 69.5526 6.01165 69.5526 6.32855C69.5526 6.01165 69.5526 6.32855 69.5526 6.32855ZM70.6325 8.40455H69.944V5.56337H70.6325V8.40455ZM78.62 8.40455H77.6638L76.3848 6.27208V8.40455H75.0106L74.748 7.77082H73.3463L73.0915 8.40455H72.302C71.974 8.40455 71.5587 8.33153 71.3235 8.0903C71.0864 7.84906 70.963 7.5223 70.963 7.00564C70.963 6.58427 71.0368 6.19906 71.3268 5.89467C71.5449 5.66792 71.8865 5.56337 72.3515 5.56337H73.0048V6.17216H72.3652C72.119 6.17216 71.9799 6.209 71.846 6.34046C71.731 6.4601 71.652 6.68625 71.652 6.98404C71.652 7.28844 71.7121 7.50791 71.8376 7.65128C71.9414 7.76371 72.1302 7.79782 72.3078 7.79782H72.6109L73.5619 5.56345H74.5729L75.7153 8.25081V5.56345H76.7427L77.9288 7.54218V5.56345H78.62V8.40455ZM56.3321 8.9626H57.485L57.745 8.33153H58.3269L58.5862 8.9626H60.8546V8.48013L61.0571 8.96466H62.2347L62.4372 8.47293V8.9626H68.0746L68.0719 7.9267H68.181C68.2574 7.92936 68.2797 7.93647 68.2797 8.06339V8.9626H71.1954V8.72145C71.4306 8.84828 71.7964 8.9626 72.2777 8.9626H73.5043L73.7668 8.33153H74.3488L74.6055 8.9626H76.9693V8.36316L77.3273 8.9626H79.2214V5H77.3468V5.46799L77.0843 5H75.1608V5.46799L74.9197 5H72.3215C71.8865 5 71.5042 5.0611 71.1954 5.23138V5H69.4024V5.23138C69.2058 5.05587 68.9381 5 68.6403 5H62.0897L61.6501 6.02347L61.1988 5H59.1355V5.46799L58.9088 5H57.1492L56.332 6.88404V8.9626H56.3321ZM80.3331 11.0548H79.1033C78.9806 11.0548 78.899 11.0594 78.8303 11.1061C78.7591 11.1521 78.7317 11.2204 78.7317 11.3106C78.7317 11.4178 78.7918 11.4907 78.8792 11.5223C78.9504 11.5472 79.0269 11.5545 79.1393 11.5545L79.505 11.5643C79.874 11.5735 80.1203 11.6374 80.2705 11.7931C80.2979 11.8148 80.3143 11.8391 80.3331 11.8634V11.0548ZM80.3331 12.9284C80.1692 13.1696 79.8498 13.2919 79.4174 13.2919H78.1144V12.6825H79.4122C79.5409 12.6825 79.631 12.6655 79.6852 12.6122C79.7322 12.5682 79.765 12.5043 79.765 12.4268C79.765 12.344 79.7322 12.2783 79.6826 12.2389C79.6336 12.1955 79.5624 12.1758 79.4449 12.1758C78.8113 12.1541 78.0209 12.1955 78.0209 11.2962C78.0209 10.884 78.2809 10.4501 78.989 10.4501H80.333V9.8847H79.0843C78.7074 9.8847 78.4337 9.97553 78.2398 10.1168V9.8847H76.3927C76.0973 9.8847 75.7506 9.95839 75.5866 10.1168V9.8847H72.2882V10.1168C72.0257 9.92617 71.5827 9.8847 71.3783 9.8847H69.2026V10.1168C68.9949 9.91435 68.5331 9.8847 68.2516 9.8847H65.8166L65.2594 10.4916L64.7376 9.8847H61.1003V13.85H64.6691L65.2433 13.2335L65.7841 13.85L67.984 13.852V12.9192H68.2003C68.4921 12.9237 68.8364 12.9119 69.1401 12.7798V13.85H70.9546V12.8165H71.0421C71.1538 12.8165 71.1648 12.8211 71.1648 12.9334V13.8499H76.6769C77.0269 13.8499 77.3926 13.7597 77.5952 13.5961V13.8499H79.3436C79.7075 13.8499 80.0628 13.7985 80.3331 13.6671V12.9284ZM77.6415 11.7931C77.7729 11.9299 77.8433 12.1027 77.8433 12.3952C77.8433 13.0065 77.4638 13.2919 76.7833 13.2919H75.4691V12.6825H76.7781C76.906 12.6825 76.9968 12.6655 77.0537 12.6122C77.1001 12.5682 77.1334 12.5043 77.1334 12.4268C77.1334 12.344 77.0974 12.2783 77.051 12.2389C76.9994 12.1955 76.9283 12.1758 76.8108 12.1758C76.1797 12.1541 75.3895 12.1955 75.3895 11.2962C75.3895 10.884 75.6468 10.4501 76.3542 10.4501H77.7069V11.055H76.4691C76.3464 11.055 76.2667 11.0596 76.1988 11.1063C76.1249 11.1523 76.0975 11.2206 76.0975 11.3108C76.0975 11.418 76.1602 11.4909 76.2451 11.5224C76.3163 11.5474 76.3928 11.5547 76.5077 11.5547L76.871 11.5645C77.2373 11.5735 77.4887 11.6373 77.6415 11.7931C77.4887 11.6373 77.6415 11.7931 77.6415 11.7931ZM71.5528 11.6176C71.4626 11.6715 71.351 11.6761 71.2197 11.6761H70.3999V11.0378H71.2308C71.351 11.0378 71.4712 11.0404 71.5528 11.0892C71.6403 11.1352 71.6926 11.2232 71.6926 11.3448C71.6926 11.4664 71.6403 11.5643 71.5528 11.6176C71.6403 11.5643 71.5528 11.6176 71.5528 11.6176ZM71.9604 11.9712C72.1106 12.027 72.2333 12.127 72.2909 12.2098C72.3862 12.3486 72.4 12.478 72.4027 12.7285V13.2919H71.7253V12.9363C71.7253 12.7654 71.7416 12.5122 71.6162 12.3801C71.5176 12.2783 71.3673 12.2539 71.1211 12.2539H70.4V13.2919H69.722V10.45H71.2799C71.6215 10.45 71.8703 10.4652 72.0917 10.5841C72.3047 10.7136 72.4386 10.891 72.4386 11.2152C72.4385 11.6688 72.138 11.9003 71.9604 11.9712C72.138 11.9003 71.9604 11.9712 71.9604 11.9712ZM72.8128 10.45H75.0648V11.0377H73.4847V11.5544H75.0262V12.1342H73.4847V12.6997L75.0648 12.7022V13.2919H72.8128V10.45ZM68.2602 11.7615H67.3882V11.0378H68.268C68.5116 11.0378 68.6807 11.1377 68.6807 11.3863C68.6807 11.632 68.5195 11.7615 68.2602 11.7615ZM66.7161 13.0334L65.6802 11.8759L66.7161 10.755V13.0334ZM64.0407 12.6997H62.3817V12.1342H63.8631V11.5544H62.3817V11.0377H64.0734L64.8115 11.8659L64.0407 12.6997ZM69.4052 11.3863C69.4052 12.1757 68.82 12.3387 68.2301 12.3387H67.3882V13.2919H66.0767L65.2458 12.3511L64.3823 13.2919H61.7096V10.45H64.4235L65.2537 11.3816L66.1119 10.45H68.268C68.8035 10.45 69.4052 10.5992 69.4052 11.3863C69.4052 10.5992 69.4052 11.3863 69.4052 11.3863Z" fill="white"/>
149
+ </svg></a>`;
150
+ this.style = `@import url("<%= font.url %>");
151
+
152
+ html { padding: 0; margin: 0px; }
153
+ body { width: 100%; margin: 0px; font-family: "<%= font.name %>"; font-size: 14px; font-weight: normal; }
154
+ .row { display: flex; }
155
+ .items-end { align-items: end; }
156
+ .space-between { justify-content: space-between; }
157
+ .full-width { width: 100% }
158
+ .mt-30 { margin-top: 30px }
159
+ .mt-25 { margin-top: 25px }
160
+ .mt-20 { margin-top: 20px }
161
+ .mt-10 { margin-top: 10px }
162
+ .align-center { text-align: center; }
163
+ .margin-auto { margin: auto; }
164
+ .justify-center { justify-content: center; }
165
+ table { font-size: 14px; font-style: normal; }
166
+
167
+ /* Header */
168
+ .society-informations p { margin: 0px; }
169
+ .society-informations > div p { font-weight: bold; }
170
+ .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}
171
+ .logo-placeholder > svg, .logo-placeholder > img { max-width: 100%; max-height: 150px; }
172
+ .document-reference { font-size: 20px; }
173
+ .customer-border { border: 2px solid #EAEAEA; border-radius: 6px; padding: 7px; }
174
+
175
+ /* Body */
176
+ table { border-spacing: 1px; border-collapse: collapse; }
177
+ table, th, td { border: 1px solid #DADCDF; }
178
+ table tr td p { margin: 0px; }
179
+ table tbody tr td { padding: 10px; background-color: white; vertical-align: baseline;}
180
+ table thead tr td { background-color: <%= settings && settings.color ? settings.color : '#EAEAEA' %>; padding: 10px; }
181
+ table thead tr td:not(:first-child) { text-align: right; }
182
+ table .product-description { color: #838384 }
183
+ table .product-quantity, table .product-price-without-vat, table .product-vat, table .product-total-price-without-vat, table .product-discount { text-align: right; }
184
+ table td.product-quantity, table td.product-vat { width: 10% }
185
+ td.product-discount { width: 12.5% }
186
+ table td.product-total-price-without-vat, table td.product-price-without-vat { width: 15% }
187
+ table tr.vat-detail-row td:not(:first-child) { text-align: right; }
188
+ table.summary-prices tr td:not(:first-child) {text-align: right;}
189
+ table.summary-prices tr td:first-child {border-right: none;}
190
+ table .discount-percent { color: #838384; font-size: smaller }
191
+ a.payment-button { display: flex; align-items: center; background-color: #EBF1FF; border-radius: 10px; font-weight: 450; font-size: 14px; color: #1656FF; border: none; padding: 10px 16px; text-decoration: none; }
192
+ a.payment-button svg { margin-left: 15px; }
193
+ <% if (settings && settings.areLinesSeparationHidden) { %>
194
+ td { border-top: none !important; border-bottom: none !important; }
195
+ <% } %>
196
+ <% if (settings && settings.areColumnsSeparationHidden) { %>
197
+ td { border-left: none !important; border-right: none !important; }
198
+ <% } %>
199
+ <% if (settings && settings.areExternalBordersHidden) { %>
200
+ table { border: none !important }
201
+ table tr:last-child td { border-bottom: none !important }
202
+ table thead td { border-top: none !important }
203
+ table td:first-child { border-left: none !important }
204
+ table td:last-child { border-right: none !important }
205
+ <% } %>`;
206
+ }
207
+
208
+ }
209
+
210
+ exports.CommercialDocumentCommonHTML = CommercialDocumentCommonHTML;
211
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","mappings":";;;;;;;AAAA;;AACA;;AAEM,MAAOA,4BAAP,CAAmC;EAAzCC;IACE,cAAS;;;;UAAT;IAMA,cAAS;;;;WAAT;IAMA,YAAO;;SAAP;IAIA,eAAU;;;;;;yFAAV;IAQA,gBAAW;;;;;;;;;;;qCAWwBC,qCAAoBC,OAAO;;;;;;;;;;;;;;;;;;;;;;;+CAuBjBC,mCAAaC,OAAO;;;;;;;;;SAlCjE;IA6CA,yBAAoB;;;;;;;;;;;;;;;WAApB;IAiBA,4BAAuB;;;;;;qCAMYH,qCAAoBC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgCpDD,qCAAoBI,OAAO,KAAKJ,qCAAoBK,KAAK,KAAKL,qCAAoBC,OAAO;;;;;;SAtCnG;IA8CA,qBAAgB;;;;;;;;;;aAAhB;IAYA,aAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAR;EAwDD;;AAzMwC;;QAA5BH,4B,GAAAA,4B","names":["CommercialDocumentCommonHTML","constructor","EstimateInvoiceType","ACOMPTE","DiscountType","PERCENT","FACTURE","RESTE"],"sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/templates/common.ts"],"sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport { DiscountType } from '../../../types/Enum/CommercialManagement';\n\nexport class CommercialDocumentCommonHTML {\n header = `<style>html {\n -webkit-print-color-adjust: exact;\n }</style><% if (settings && settings.isEdgingDisplayed) { %>\n <span style=\"position: absolute; top: 0; left: 0; width: 100vw; font-size: 10px; height: 15px; background-color: <%= settings && settings.edgingColor ? settings.edgingColor : '#333333' %>; margin-bottom: 20px;\"></span>\n <% } %>`;\n\n footer = `<div style=\"font-size: 8px; color: #DADCDF; text-align: center; margin-left: 40px; margin-right: 40px; display: block; width: 100%\">\n <% if (freeText) { %><%- freeText %><br/><br/><% } %>\n <% if(marginVats.length > 0) {%>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) } %> ART 297-A du CGI ou directive 2006-212 CE | <% if(penalties || compensation || discount) {%><%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%><%= penalties && compensation ? '|' : ''%><%= compensation ? 'Indemnité forfaitaire en cas de retard :' + compensation : '' %><%= (compensation || penalties) && discount ? '| ' : '' %><%= discount %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% }%>\n <%= name %><%= name && (legalForm || capital || siren || rcs) ? ',' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? 'RCS ' + rcs + vatCode || nafCode ? '|' : '' : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? 'N° TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>\n </div>`;\n\n logo = `<div class=\"logo-placeholder\">\n <% if (logoUrl) { %><img src=\"<%= logoUrl %>\" alt=\"logo\" /><% } %>\n </div>`;\n\n company = `<div>\n <% if (name) { %><p><%= name %><p><% } %>\n <% if (number || street) {%><p><%}%><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) { %><% } %><% if (number || street) {%></p><%}%>\n <% if (zipCode || city) {%><p><%}%><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>\n </div>\n <% if (phoneContact) { %><p><%= phoneContact %><p><% } %>\n <% if (settings && settings.mailContact) { %><p><%= settings.mailContact %></p><% } %>`;\n\n products = `<table class=\"full-width\">\n <thead>\n <tr>\n <td>Article</td>\n <td>Quantité</td>\n <td>P.U <%= disableVat !== true ? 'HT' : ''%></td>\n <% if (shouldDisplayDiscountColumn) { %><td>Remise</td><% } %>\n <% if (disableVat !== true) { %><td>TVA</td><% } %>\n <td>Montant <%= disableVat !== true ? 'HT' : ''%></td>\n </tr>\n </thead>\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n <tr>\n <td class=\"product-title\">\n <%= title %>\n </td>\n <td class=\"product-quantity\">1</td>\n <td class=\"product-price-without-vat\"><%= depositFormatted %>€</td>\n <td class=\"product-total-price-without-vat\"><%= depositFormatted %>€</td>\n </tr>\n <% } %>\n <% if (products) { %>\n <% products.forEach(function (product) { %>\n <tr>\n <td class=\"product-title\">\n <% if(product.itemSaleName) { %><p class=\"product-name\"><%= product.itemSaleName %></p><% } %>\n <% if(product.comment) { %><p class=\"product-description\"><%= product.comment %></p><% } %>\n </td>\n <td class=\"product-quantity\"><%= product.quantity ? product.quantity : '' %><%= product.unitFormatted ? product.unitFormatted : '' %></td>\n <td class=\"product-price-without-vat\"><% if(product.priceTaxExcludedFormatted) { %><%= product.priceTaxExcludedFormatted + '€' %><% } %></td>\n <% if (shouldDisplayDiscountColumn) { %>\n <td class=\"product-discount\">\n <% if (product.discountFormatted) { %> \n <p style=\"margin-bottom: 0px;\"><%= product.discountFormatted %>€</p>\n <% if(product.discountType === ${DiscountType.PERCENT}) { %><span class=\"discount-percent\">(<%= product.discountTypeFormatted %>)</span><% } %>\n <% } %>\n </td>\n <% } %>\n <% if(disableVat !== true) { %><td class=\"product-vat\"><% if(product.vatFormatted) { %><%= product.vatFormatted %><% } %></td><% } %>\n <td class=\"product-total-price-without-vat\"><% if(product.totalTaxExcludedFormatted) { %><%= product.totalTaxExcludedFormatted + '€' %><% } %></td>\n </tr>\n <% }) %>\n <% } %>\n</table>`;\n\n vatRecapitulation = `<table style=\"width: 80%;\">\n <thead>\n <tr>\n <td>Base</td>\n <td>Taux</td>\n <td>Montant TVA</td>\n </tr>\n </thead>\n <% vats.forEach(function (vat) { %>\n <tr class=\"vat-detail-row\">\n <td><%= vat.baseFormatted %>€</td>\n <td><%= vat.name %></td>\n <td><%= vat.amountFormatted %>€</td>\n </tr>\n <% }) %>\n </table>`;\n\n amountRecapitulation = `<table class=\"summary-prices\" style=\"width: 40%\">\n <thead>\n <tr>\n <td colspan=\"2\">Récapitulatif</td>\n </tr>\n </thead>\n <% if (idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) { %>\n <% if (disableVat !== true) { %>\n <tr>\n <td>Total HT</td>\n <td><%= totalTaxExcludedFormatted %>€</td>\n </tr>\n <% } %>\n <% if (generalDiscountFormatted) { %>\n <tr>\n <td>Remise</td>\n <td><%= generalDiscountFormatted %>€</td>\n </tr>\n <% } %>\n <% if (disableVat !== true) { %>\n <tr>\n <td>TVA</td>\n <td><%= totalVatAmountFormatted %>€</td>\n </tr>\n <% } %>\n <% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>\n <tr>\n <td>Total <%= disableVat !== true ? 'TTC' : ''%></td>\n <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>\n </tr>\n <% } %>\n <% if (depositFormatted) { %>\n <tr>\n <td>Acompte</td>\n <td><%= depositFormatted %>€</td>\n </tr>\n <% } %>\n <% } %>\n <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>\n <tr>\n <td><b>Net à payer</b></td>\n <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>\n </tr>\n <% } %>\n</table>`;\n\n paymentButton = `<a class=\"payment-button\" href=\"<% if (paymentLink) {%><%= paymentLink %><% } else {%>#<%}%>\">Payer en ligne <svg width=\"81\" height=\"17\" viewBox=\"0 0 81 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M23.6521 1H2.21213C1.5052 1 0.932129 1.57308 0.932129 2.28V14.792C0.932129 15.4989 1.5052 16.072 2.21213 16.072H23.6521C24.3591 16.072 24.9321 15.4989 24.9321 14.792V2.28C24.9321 1.57308 24.3591 1 23.6521 1Z\" fill=\"black\"/>\n <path d=\"M14.9716 5.02051H10.3726V12.5219H14.9716V5.02051Z\" fill=\"#FF5F00\"/>\n <path d=\"M10.8366 8.77127C10.8369 7.30928 11.5058 5.92768 12.6523 5.02055C10.6962 3.48259 7.88661 3.70615 6.19833 5.53409C4.51006 7.36203 4.51006 10.1805 6.19833 12.0085C7.88661 13.8364 10.6962 14.06 12.6523 12.522C11.5058 11.6149 10.8369 10.2333 10.8366 8.77127Z\" fill=\"#EB001B\"/>\n <path d=\"M20.3795 8.77136C20.3808 10.5969 19.3394 12.2628 17.6977 13.0612C16.0561 13.8596 14.1027 13.6502 12.6675 12.5221C13.8143 11.6152 14.4832 10.2334 14.4832 8.77136C14.4832 7.30928 13.8143 5.92754 12.6675 5.02064C14.1027 3.8925 16.0561 3.68315 17.6977 4.48156C19.3394 5.27997 20.3808 6.94586 20.3795 8.77136Z\" fill=\"#F79E1B\"/>\n <path d=\"M30.1321 1.25H51.1321C51.6568 1.25 52.0821 1.67534 52.0821 2.2V14.8C52.0821 15.3247 51.6568 15.75 51.1321 15.75H30.1321C29.6075 15.75 29.1821 15.3247 29.1821 14.8V2.2C29.1821 1.67534 29.6075 1.25 30.1321 1.25Z\" fill=\"white\" stroke=\"#EDEDED\" stroke-width=\"0.5\"/>\n <path d=\"M37.7276 11.4621L38.7284 5.5893H40.3292L39.3277 11.4621H37.7276ZM45.1109 5.7159C44.7938 5.59692 44.2968 5.46924 43.6762 5.46924C42.0945 5.46924 40.9803 6.26574 40.9708 7.40733C40.9618 8.25123 41.7662 8.72199 42.3734 9.00291C42.9965 9.29076 43.2059 9.47433 43.203 9.7314C43.1991 10.125 42.7054 10.3049 42.2453 10.3049C41.6046 10.3049 41.2642 10.2159 40.7385 9.9966L40.5322 9.9033L40.3076 11.218C40.6815 11.3819 41.3729 11.5239 42.0907 11.5313C43.7734 11.5313 44.8657 10.7439 44.8782 9.52482C44.8842 8.85675 44.4577 8.34834 43.5342 7.92918C42.9747 7.65753 42.632 7.47621 42.6356 7.20114C42.6356 6.95703 42.9257 6.69597 43.5523 6.69597C44.0758 6.68787 44.455 6.80202 44.7505 6.92097L44.8939 6.98877L45.1109 5.7159M49.2302 5.58921H47.9932C47.61 5.58921 47.3233 5.69382 47.155 6.07623L44.7777 11.4582H46.4586C46.4586 11.4582 46.7334 10.7345 46.7955 10.5757C46.9793 10.5757 48.6122 10.5782 48.8457 10.5782C48.8936 10.7838 49.0404 11.4582 49.0404 11.4582H50.5258L49.2302 5.58903V5.58921ZM47.2676 9.38151C47.4 9.04314 47.9054 7.73982 47.9054 7.73982C47.8959 7.75548 48.0368 7.3998 48.1176 7.1793L48.2258 7.68567C48.2258 7.68567 48.5324 9.08754 48.5964 9.38151H47.2676ZM36.3686 5.58921L34.8014 9.59421L34.6344 8.78031C34.3427 7.84212 33.4337 6.82566 32.4175 6.31677L33.8505 11.4528L35.5441 11.4508L38.0643 5.58915H36.3686\" fill=\"#171E6C\"/>\n <path d=\"M33.3395 5.58874H30.7582L30.7378 5.71093C32.7459 6.19705 34.0747 7.37182 34.6264 8.78323L34.0651 6.08443C33.9682 5.71258 33.6872 5.60161 33.3395 5.58862\" fill=\"#171E6C\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M78.6129 1C77.4206 1 64.7971 1 57.7475 1C57.1513 1 56.5552 1.6 56.5552 2.2V14.2C56.5552 15.4 57.1513 16 58.3436 16C64.9942 16 77.4206 16 78.6129 16C79.8052 16 80.4013 15.4 80.4013 14.2V2.8C80.4013 1.6 79.8052 1 78.6129 1Z\" fill=\"#306FC5\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M58.496 7.17857L58.0342 6.04592L57.575 7.17857H58.496ZM68.6703 6.72755C68.5775 6.7842 68.4679 6.78608 68.3365 6.78608H67.5168V6.15502H68.3476C68.4652 6.15502 68.5879 6.16033 68.6676 6.20626C68.7552 6.24765 68.8093 6.33575 68.8093 6.45744C68.8093 6.58161 68.7578 6.68153 68.6703 6.72755C68.7578 6.68153 68.6703 6.72755 68.6703 6.72755ZM74.518 7.17857L74.0511 6.04592L73.5867 7.17857H74.518ZM63.6175 8.40455H62.9257L62.9232 6.17935L61.9448 8.40455H61.3523L60.3713 6.17738V8.40455H58.9989L58.7396 7.77082H57.3347L57.0728 8.40455H56.3399L57.5483 5.56337H58.5508L59.6984 8.25338V5.56337H60.7997L61.6828 7.49077L62.494 5.56337H63.6174V8.40455H63.6175ZM66.3744 8.40455H64.1203V5.56337H66.3744V6.15502H64.7951V6.66714H66.3366V7.24953H64.7951V7.81693H66.3744V8.40455ZM69.5526 6.32855C69.5526 6.78154 69.2522 7.01558 69.0772 7.08585C69.2248 7.14241 69.3509 7.24233 69.411 7.32512C69.5062 7.46643 69.5227 7.59266 69.5227 7.84641V8.40455H68.8421L68.8395 8.04625C68.8395 7.87529 68.8558 7.62942 68.733 7.49274C68.6344 7.39282 68.4841 7.37113 68.2412 7.37113H67.5169V8.40455H66.8422V5.56337H68.3941C68.739 5.56337 68.9931 5.57254 69.2112 5.69945C69.4247 5.82637 69.5526 6.01165 69.5526 6.32855C69.5526 6.01165 69.5526 6.32855 69.5526 6.32855ZM70.6325 8.40455H69.944V5.56337H70.6325V8.40455ZM78.62 8.40455H77.6638L76.3848 6.27208V8.40455H75.0106L74.748 7.77082H73.3463L73.0915 8.40455H72.302C71.974 8.40455 71.5587 8.33153 71.3235 8.0903C71.0864 7.84906 70.963 7.5223 70.963 7.00564C70.963 6.58427 71.0368 6.19906 71.3268 5.89467C71.5449 5.66792 71.8865 5.56337 72.3515 5.56337H73.0048V6.17216H72.3652C72.119 6.17216 71.9799 6.209 71.846 6.34046C71.731 6.4601 71.652 6.68625 71.652 6.98404C71.652 7.28844 71.7121 7.50791 71.8376 7.65128C71.9414 7.76371 72.1302 7.79782 72.3078 7.79782H72.6109L73.5619 5.56345H74.5729L75.7153 8.25081V5.56345H76.7427L77.9288 7.54218V5.56345H78.62V8.40455ZM56.3321 8.9626H57.485L57.745 8.33153H58.3269L58.5862 8.9626H60.8546V8.48013L61.0571 8.96466H62.2347L62.4372 8.47293V8.9626H68.0746L68.0719 7.9267H68.181C68.2574 7.92936 68.2797 7.93647 68.2797 8.06339V8.9626H71.1954V8.72145C71.4306 8.84828 71.7964 8.9626 72.2777 8.9626H73.5043L73.7668 8.33153H74.3488L74.6055 8.9626H76.9693V8.36316L77.3273 8.9626H79.2214V5H77.3468V5.46799L77.0843 5H75.1608V5.46799L74.9197 5H72.3215C71.8865 5 71.5042 5.0611 71.1954 5.23138V5H69.4024V5.23138C69.2058 5.05587 68.9381 5 68.6403 5H62.0897L61.6501 6.02347L61.1988 5H59.1355V5.46799L58.9088 5H57.1492L56.332 6.88404V8.9626H56.3321ZM80.3331 11.0548H79.1033C78.9806 11.0548 78.899 11.0594 78.8303 11.1061C78.7591 11.1521 78.7317 11.2204 78.7317 11.3106C78.7317 11.4178 78.7918 11.4907 78.8792 11.5223C78.9504 11.5472 79.0269 11.5545 79.1393 11.5545L79.505 11.5643C79.874 11.5735 80.1203 11.6374 80.2705 11.7931C80.2979 11.8148 80.3143 11.8391 80.3331 11.8634V11.0548ZM80.3331 12.9284C80.1692 13.1696 79.8498 13.2919 79.4174 13.2919H78.1144V12.6825H79.4122C79.5409 12.6825 79.631 12.6655 79.6852 12.6122C79.7322 12.5682 79.765 12.5043 79.765 12.4268C79.765 12.344 79.7322 12.2783 79.6826 12.2389C79.6336 12.1955 79.5624 12.1758 79.4449 12.1758C78.8113 12.1541 78.0209 12.1955 78.0209 11.2962C78.0209 10.884 78.2809 10.4501 78.989 10.4501H80.333V9.8847H79.0843C78.7074 9.8847 78.4337 9.97553 78.2398 10.1168V9.8847H76.3927C76.0973 9.8847 75.7506 9.95839 75.5866 10.1168V9.8847H72.2882V10.1168C72.0257 9.92617 71.5827 9.8847 71.3783 9.8847H69.2026V10.1168C68.9949 9.91435 68.5331 9.8847 68.2516 9.8847H65.8166L65.2594 10.4916L64.7376 9.8847H61.1003V13.85H64.6691L65.2433 13.2335L65.7841 13.85L67.984 13.852V12.9192H68.2003C68.4921 12.9237 68.8364 12.9119 69.1401 12.7798V13.85H70.9546V12.8165H71.0421C71.1538 12.8165 71.1648 12.8211 71.1648 12.9334V13.8499H76.6769C77.0269 13.8499 77.3926 13.7597 77.5952 13.5961V13.8499H79.3436C79.7075 13.8499 80.0628 13.7985 80.3331 13.6671V12.9284ZM77.6415 11.7931C77.7729 11.9299 77.8433 12.1027 77.8433 12.3952C77.8433 13.0065 77.4638 13.2919 76.7833 13.2919H75.4691V12.6825H76.7781C76.906 12.6825 76.9968 12.6655 77.0537 12.6122C77.1001 12.5682 77.1334 12.5043 77.1334 12.4268C77.1334 12.344 77.0974 12.2783 77.051 12.2389C76.9994 12.1955 76.9283 12.1758 76.8108 12.1758C76.1797 12.1541 75.3895 12.1955 75.3895 11.2962C75.3895 10.884 75.6468 10.4501 76.3542 10.4501H77.7069V11.055H76.4691C76.3464 11.055 76.2667 11.0596 76.1988 11.1063C76.1249 11.1523 76.0975 11.2206 76.0975 11.3108C76.0975 11.418 76.1602 11.4909 76.2451 11.5224C76.3163 11.5474 76.3928 11.5547 76.5077 11.5547L76.871 11.5645C77.2373 11.5735 77.4887 11.6373 77.6415 11.7931C77.4887 11.6373 77.6415 11.7931 77.6415 11.7931ZM71.5528 11.6176C71.4626 11.6715 71.351 11.6761 71.2197 11.6761H70.3999V11.0378H71.2308C71.351 11.0378 71.4712 11.0404 71.5528 11.0892C71.6403 11.1352 71.6926 11.2232 71.6926 11.3448C71.6926 11.4664 71.6403 11.5643 71.5528 11.6176C71.6403 11.5643 71.5528 11.6176 71.5528 11.6176ZM71.9604 11.9712C72.1106 12.027 72.2333 12.127 72.2909 12.2098C72.3862 12.3486 72.4 12.478 72.4027 12.7285V13.2919H71.7253V12.9363C71.7253 12.7654 71.7416 12.5122 71.6162 12.3801C71.5176 12.2783 71.3673 12.2539 71.1211 12.2539H70.4V13.2919H69.722V10.45H71.2799C71.6215 10.45 71.8703 10.4652 72.0917 10.5841C72.3047 10.7136 72.4386 10.891 72.4386 11.2152C72.4385 11.6688 72.138 11.9003 71.9604 11.9712C72.138 11.9003 71.9604 11.9712 71.9604 11.9712ZM72.8128 10.45H75.0648V11.0377H73.4847V11.5544H75.0262V12.1342H73.4847V12.6997L75.0648 12.7022V13.2919H72.8128V10.45ZM68.2602 11.7615H67.3882V11.0378H68.268C68.5116 11.0378 68.6807 11.1377 68.6807 11.3863C68.6807 11.632 68.5195 11.7615 68.2602 11.7615ZM66.7161 13.0334L65.6802 11.8759L66.7161 10.755V13.0334ZM64.0407 12.6997H62.3817V12.1342H63.8631V11.5544H62.3817V11.0377H64.0734L64.8115 11.8659L64.0407 12.6997ZM69.4052 11.3863C69.4052 12.1757 68.82 12.3387 68.2301 12.3387H67.3882V13.2919H66.0767L65.2458 12.3511L64.3823 13.2919H61.7096V10.45H64.4235L65.2537 11.3816L66.1119 10.45H68.268C68.8035 10.45 69.4052 10.5992 69.4052 11.3863C69.4052 10.5992 69.4052 11.3863 69.4052 11.3863Z\" fill=\"white\"/>\n </svg></a>`;\n\n style = `@import url(\"<%= font.url %>\");\n\n html { padding: 0; margin: 0px; }\n body { width: 100%; margin: 0px; font-family: \"<%= font.name %>\"; font-size: 14px; font-weight: normal; }\n .row { display: flex; }\n .items-end { align-items: end; }\n .space-between { justify-content: space-between; }\n .full-width { width: 100% }\n .mt-30 { margin-top: 30px }\n .mt-25 { margin-top: 25px }\n .mt-20 { margin-top: 20px }\n .mt-10 { margin-top: 10px }\n .align-center { text-align: center; }\n .margin-auto { margin: auto; }\n .justify-center { justify-content: center; }\n table { font-size: 14px; font-style: normal; }\n\n /* Header */\n .society-informations p { margin: 0px; }\n .society-informations > div p { font-weight: bold; }\n .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}\n .logo-placeholder > svg, .logo-placeholder > img { max-width: 100%; max-height: 150px; }\n .document-reference { font-size: 20px; }\n .customer-border { border: 2px solid #EAEAEA; border-radius: 6px; padding: 7px; }\n\n /* Body */\n table { border-spacing: 1px; border-collapse: collapse; }\n table, th, td { border: 1px solid #DADCDF; }\n table tr td p { margin: 0px; }\n table tbody tr td { padding: 10px; background-color: white; vertical-align: baseline;}\n table thead tr td { background-color: <%= settings && settings.color ? settings.color : '#EAEAEA' %>; padding: 10px; }\n table thead tr td:not(:first-child) { text-align: right; }\n table .product-description { color: #838384 }\n table .product-quantity, table .product-price-without-vat, table .product-vat, table .product-total-price-without-vat, table .product-discount { text-align: right; }\n table td.product-quantity, table td.product-vat { width: 10% }\n td.product-discount { width: 12.5% }\n table td.product-total-price-without-vat, table td.product-price-without-vat { width: 15% }\n table tr.vat-detail-row td:not(:first-child) { text-align: right; }\n table.summary-prices tr td:not(:first-child) {text-align: right;}\n table.summary-prices tr td:first-child {border-right: none;}\n table .discount-percent { color: #838384; font-size: smaller }\n a.payment-button { display: flex; align-items: center; background-color: #EBF1FF; border-radius: 10px; font-weight: 450; font-size: 14px; color: #1656FF; border: none; padding: 10px 16px; text-decoration: none; }\n a.payment-button svg { margin-left: 15px; }\n <% if (settings && settings.areLinesSeparationHidden) { %>\n td { border-top: none !important; border-bottom: none !important; }\n <% } %>\n <% if (settings && settings.areColumnsSeparationHidden) { %>\n td { border-left: none !important; border-right: none !important; }\n <% } %>\n <% if (settings && settings.areExternalBordersHidden) { %>\n table { border: none !important }\n table tr:last-child td { border-bottom: none !important }\n table thead td { border-top: none !important }\n table td:first-child { border-left: none !important }\n table td:last-child { border-right: none !important }\n <% } %>`;\n}\n"]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getAmount = getAmount;
7
+ exports.getById = getById;
8
+ exports.vatToReadVatEditing = vatToReadVatEditing;
9
+
10
+ var _lodash = require("lodash");
11
+
12
+ var _Vat = require("../../types/Enum/Vat");
13
+
14
+ var _amount2 = require("../amount");
15
+
16
+ function getAmount(amount, vatValue) {
17
+ const _amount = amount !== null && amount !== void 0 ? amount : 0;
18
+
19
+ return _amount * (vatValue / 100);
20
+ }
21
+
22
+ function getById(id) {
23
+ return Object.values(_Vat.Vat).find(vat => vat.id === id);
24
+ }
25
+
26
+ function vatToReadVatEditing(products) {
27
+ var _a, _b, _c, _d, _e, _f;
28
+
29
+ const {
30
+ idVat
31
+ } = products[0];
32
+ return {
33
+ id: idVat,
34
+ name: (_b = (_a = getById(idVat)) === null || _a === void 0 ? void 0 : _a.saleName) !== null && _b !== void 0 ? _b : '',
35
+ amount: (0, _lodash.sumBy)(products, p => {
36
+ var _a, _b;
37
+
38
+ return getAmount(p.totalTaxExcluded, (_b = (_a = getById(idVat)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0);
39
+ }),
40
+ value: (_d = (_c = getById(idVat)) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : 0,
41
+ baseFormatted: (0, _amount2.integerToFormattedAmountString)((0, _lodash.sumBy)(products, p => p.totalTaxExcluded ? +p.totalTaxExcluded : 0)),
42
+ amountFormatted: (0, _amount2.integerToFormattedAmountString)((0, _lodash.sumBy)(products, p => p.totalTaxExcluded ? +p.totalTaxExcluded : 0) * ((_f = (_e = getById(idVat)) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : 0) / 100)
43
+ };
44
+ }
45
+ //# sourceMappingURL=vat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vat.js","mappings":";;;;;QAKgBA,S,GAAAA,S;QAKAC,O,GAAAA,O;QAIAC,mB,GAAAA,mB;;AAdhB;;AACA;;AACA;;AAGM,SAAUF,SAAV,CAAoBG,MAApB,EAA2CC,QAA3C,EAA2D;EAC/D,MAAMC,OAAO,GAAGF,MAAM,SAAN,UAAM,WAAN,YAAU,CAA1B;;EACA,OAAOE,OAAO,IAAID,QAAQ,GAAG,GAAf,CAAd;AACD;;AAEK,SAAUH,OAAV,CAAkBK,EAAlB,EAA4B;EAChC,OAAOC,MAAM,CAACC,MAAP,CAAcC,QAAd,EAAmBC,IAAnB,CAAyBC,GAAD,IAASA,GAAG,CAACL,EAAJ,KAAWA,EAA5C,CAAP;AACD;;AAEK,SAAUJ,mBAAV,CAA8BU,QAA9B,EAA4D;;;EAChE,MAAM;IAAEC;EAAF,IAAYD,QAAQ,CAAC,CAAD,CAA1B;EACA,OAAO;IACLN,EAAE,EAAEO,KADC;IAELC,IAAI,EAAE,mBAAO,CAACD,KAAD,CAAP,MAAc,IAAd,IAAcE,aAAd,GAAc,MAAd,GAAcA,GAAEC,QAAhB,MAAwB,IAAxB,IAAwBC,aAAxB,GAAwBA,EAAxB,GAA4B,EAF7B;IAGLd,MAAM,EAAE,mBAAOS,QAAP,EAAkBM,CAAD,IAAM;MAAA;;MAAC,gBAAS,CAACA,CAAC,CAACC,gBAAH,EAAqB,mBAAO,CAACN,KAAD,CAAP,MAAc,IAAd,IAAcE,aAAd,GAAc,MAAd,GAAcA,GAAEK,KAAhB,MAAqB,IAArB,IAAqBH,aAArB,GAAqBA,EAArB,GAAyB,CAA9C,CAAT;IAAyD,CAAjF,CAHH;IAILG,KAAK,EAAE,mBAAO,CAACP,KAAD,CAAP,MAAc,IAAd,IAAcQ,aAAd,GAAc,MAAd,GAAcA,GAAED,KAAhB,MAAqB,IAArB,IAAqBE,aAArB,GAAqBA,EAArB,GAAyB,CAJ3B;IAKLC,aAAa,EAAE,6CAA+B,mBAAOX,QAAP,EAAkBM,CAAD,IAAQA,CAAC,CAACC,gBAAF,GAAqB,CAACD,CAAC,CAACC,gBAAxB,GAA2C,CAApE,CAA/B,CALV;IAMLK,eAAe,EAAE,6CAAgC,mBAAOZ,QAAP,EAAkBM,CAAD,IAAQA,CAAC,CAACC,gBAAF,GAAqB,CAACD,CAAC,CAACC,gBAAxB,GAA2C,CAApE,KAA4E,mBAAO,CAACN,KAAD,CAAP,MAAc,IAAd,IAAcY,aAAd,GAAc,MAAd,GAAcA,GAAEL,KAAhB,MAAqB,IAArB,IAAqBM,aAArB,GAAqBA,EAArB,GAAyB,CAArG,CAAD,GAA6G,GAA5I;EANZ,CAAP;AAQD","names":["getAmount","getById","vatToReadVatEditing","amount","vatValue","_amount","id","Object","values","Vat","find","vat","products","idVat","name","_a","saleName","_b","p","totalTaxExcluded","value","_c","_d","baseFormatted","amountFormatted","_e","_f"],"sourceRoot":"","sources":["../../../ts/utils/commercialManagement/vat.ts"],"sourcesContent":["import { sumBy as _sumBy } from 'lodash';\nimport { Vat, VatType } from '../../types/Enum/Vat';\nimport { integerToFormattedAmountString } from '../amount';\nimport { ReadProductEditing, ReadVatEditing } from '../../types';\n\nexport function getAmount(amount: number | null, vatValue: number): number {\n const _amount = amount ?? 0;\n return _amount * (vatValue / 100);\n}\n\nexport function getById(id: number): VatType | undefined {\n return Object.values(Vat).find((vat) => vat.id === id);\n}\n\nexport function vatToReadVatEditing(products: ReadProductEditing[]): ReadVatEditing {\n const { idVat } = products[0];\n return {\n id: idVat,\n name: getById(idVat)?.saleName ?? '',\n amount: _sumBy(products, (p) => getAmount(p.totalTaxExcluded, getById(idVat)?.value ?? 0)),\n value: getById(idVat)?.value ?? 0,\n baseFormatted: integerToFormattedAmountString(_sumBy(products, (p) => (p.totalTaxExcluded ? +p.totalTaxExcluded : 0))),\n amountFormatted: integerToFormattedAmountString((_sumBy(products, (p) => (p.totalTaxExcluded ? +p.totalTaxExcluded : 0)) * ((getById(idVat)?.value ?? 0))) / 100),\n };\n}"]}
package/js/utils/index.js CHANGED
@@ -88,38 +88,50 @@ Object.keys(_siretValidation).forEach(function (key) {
88
88
  });
89
89
  });
90
90
 
91
- var _prestation = require("./prestation");
91
+ var _task = require("./task");
92
92
 
93
- Object.keys(_prestation).forEach(function (key) {
93
+ Object.keys(_task).forEach(function (key) {
94
94
  if (key === "default" || key === "__esModule") return;
95
95
  Object.defineProperty(exports, key, {
96
96
  enumerable: true,
97
97
  get: function () {
98
- return _prestation[key];
98
+ return _task[key];
99
99
  }
100
100
  });
101
101
  });
102
102
 
103
- var _task = require("./task");
103
+ var _social = require("./social");
104
104
 
105
- Object.keys(_task).forEach(function (key) {
105
+ Object.keys(_social).forEach(function (key) {
106
106
  if (key === "default" || key === "__esModule") return;
107
107
  Object.defineProperty(exports, key, {
108
108
  enumerable: true,
109
109
  get: function () {
110
- return _task[key];
110
+ return _social[key];
111
111
  }
112
112
  });
113
113
  });
114
114
 
115
- var _social = require("./social");
115
+ var _document = require("./commercialManagement/document");
116
116
 
117
- Object.keys(_social).forEach(function (key) {
117
+ Object.keys(_document).forEach(function (key) {
118
118
  if (key === "default" || key === "__esModule") return;
119
119
  Object.defineProperty(exports, key, {
120
120
  enumerable: true,
121
121
  get: function () {
122
- return _social[key];
122
+ return _document[key];
123
+ }
124
+ });
125
+ });
126
+
127
+ var _amount = require("./amount");
128
+
129
+ Object.keys(_amount).forEach(function (key) {
130
+ if (key === "default" || key === "__esModule") return;
131
+ Object.defineProperty(exports, key, {
132
+ enumerable: true,
133
+ get: function () {
134
+ return _amount[key];
123
135
  }
124
136
  });
125
137
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":";;;;;;;;AAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA","names":[],"sourceRoot":"","sources":["../../ts/utils/index.ts"],"sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './prestation';\nexport * from './task';\nexport * from './social';\n"]}
1
+ {"version":3,"file":"index.js","mappings":";;;;;;;;AAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA","names":[],"sourceRoot":"","sources":["../../ts/utils/index.ts"],"sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './amount';"]}
package/js/utils/task.js CHANGED
@@ -3,16 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getIdRoleUsedForGetTaskOfUser = exports.getIdRoleUsedForAttribution = exports.getIdRoleUsedForTask = undefined;
6
+ exports.getIdRoleUsedForManagerTask = exports.getIdRoleUsedForTask = undefined;
7
7
 
8
8
  var _Role = require("../types/Enum/Role");
9
9
 
10
- var _TaskResponseType = require("../types/Enum/TaskResponseType");
11
-
12
10
  const getIdRoleUsedForTask = listRoles => {
13
11
  let idRole = 0;
14
12
 
15
- if (listRoles.includes(_Role.Role.COMMERCIAL)) {
13
+ if (listRoles.includes(_Role.Role.COMMERCIAL) || listRoles.includes(_Role.Role.COMMERCIAL_MANAGER)) {
16
14
  idRole = _Role.Role.COMMERCIAL;
17
15
  } else if (listRoles.includes(_Role.Role.JURIDIC)) {
18
16
  idRole = _Role.Role.JURIDIC;
@@ -20,38 +18,31 @@ const getIdRoleUsedForTask = listRoles => {
20
18
  idRole = _Role.Role.SOCIAL;
21
19
  } else if (listRoles.includes(_Role.Role.FACTURATION)) {
22
20
  idRole = _Role.Role.FACTURATION;
23
- } else if (listRoles.includes(_Role.Role.CUSTOMER_SUCCESS)) {
21
+ } else if (listRoles.includes(_Role.Role.CUSTOMER_SUCCESS) || listRoles.includes(_Role.Role.CUSTOMER_SUCCESS_MANAGER)) {
24
22
  idRole = _Role.Role.CUSTOMER_SUCCESS;
25
- } else if (listRoles.includes(_Role.Role.FRONT_OFFICE)) {
23
+ } else if (listRoles.includes(_Role.Role.FRONT_OFFICE) || listRoles.includes(_Role.Role.FRONT_MANAGER)) {
26
24
  idRole = _Role.Role.FRONT_OFFICE;
27
25
  }
28
26
 
29
27
  return idRole;
30
- }; // const getIdRoleUsedForManagerTask = (listRoles: number[]): number => {
31
- // let idRole = 0;
32
- // if (listRoles.includes(Role.COMMERCIAL)) {
33
- // idRole = Role.MANAGER;
34
- // } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {
35
- // idRole = Role.MANAGER;
36
- // } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
37
- // idRole = Role.MANAGER;
38
- // } else if (listRoles.includes(Role.FRONT_OFFICE)) {
39
- // idRole = Role.MANAGER;
40
- // }
41
- // return idRole;
42
- // };
43
-
44
-
45
- const getIdRoleUsedForAttribution = (isIntern, idTaskType) => {
46
- var _a;
47
-
48
- const taskTypeList = isIntern ? _TaskResponseType.TaskResponseType.INTERN.types : _TaskResponseType.TaskResponseType.EXTERN.types;
49
- return (_a = taskTypeList.find(taskType => taskType.id === idTaskType)) === null || _a === void 0 ? void 0 : _a.role;
50
28
  };
51
29
 
52
- const getIdRoleUsedForGetTaskOfUser = idRole => !!Object.values(_TaskResponseType.RoleAvailableForTask).find(role => role === idRole);
30
+ const getIdRoleUsedForManagerTask = listRoles => {
31
+ let idRole = 0;
32
+
33
+ if (listRoles.includes(_Role.Role.COMMERCIAL)) {
34
+ idRole = _Role.Role.COMMERCIAL_MANAGER;
35
+ } else if (listRoles.includes(_Role.Role.JURIDIC) || listRoles.includes(_Role.Role.SOCIAL) || listRoles.includes(_Role.Role.FACTURATION)) {
36
+ idRole = _Role.Role.MANAGER;
37
+ } else if (listRoles.includes(_Role.Role.CUSTOMER_SUCCESS)) {
38
+ idRole = _Role.Role.CUSTOMER_SUCCESS_MANAGER;
39
+ } else if (listRoles.includes(_Role.Role.FRONT_OFFICE)) {
40
+ idRole = _Role.Role.FRONT_MANAGER;
41
+ }
42
+
43
+ return idRole;
44
+ };
53
45
 
54
46
  exports.getIdRoleUsedForTask = getIdRoleUsedForTask;
55
- exports.getIdRoleUsedForAttribution = getIdRoleUsedForAttribution;
56
- exports.getIdRoleUsedForGetTaskOfUser = getIdRoleUsedForGetTaskOfUser;
47
+ exports.getIdRoleUsedForManagerTask = getIdRoleUsedForManagerTask;
57
48
  //# sourceMappingURL=task.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"task.js","mappings":";;;;;;;AAAA;;AACA;;AAEA,MAAMA,oBAAoB,GAAIC,SAAD,IAAgC;EAC3D,IAAIC,MAAM,GAAG,CAAb;;EACA,IAAID,SAAS,CAACE,QAAV,CAAmBC,WAAKC,UAAxB,CAAJ,EAAyC;IACvCH,MAAM,GAAGE,WAAKC,UAAd;EACD,CAFD,MAEO,IAAIJ,SAAS,CAACE,QAAV,CAAmBC,WAAKE,OAAxB,CAAJ,EAAsC;IAC3CJ,MAAM,GAAGE,WAAKE,OAAd;EACD,CAFM,MAEA,IAAIL,SAAS,CAACE,QAAV,CAAmBC,WAAKG,MAAxB,CAAJ,EAAqC;IAC1CL,MAAM,GAAGE,WAAKG,MAAd;EACD,CAFM,MAEA,IAAIN,SAAS,CAACE,QAAV,CAAmBC,WAAKI,WAAxB,CAAJ,EAA0C;IAC/CN,MAAM,GAAGE,WAAKI,WAAd;EACD,CAFM,MAEA,IAAIP,SAAS,CAACE,QAAV,CAAmBC,WAAKK,gBAAxB,CAAJ,EAA+C;IACpDP,MAAM,GAAGE,WAAKK,gBAAd;EACD,CAFM,MAEA,IAAIR,SAAS,CAACE,QAAV,CAAmBC,WAAKM,YAAxB,CAAJ,EAA2C;IAChDR,MAAM,GAAGE,WAAKM,YAAd;EACD;;EACD,OAAOR,MAAP;AACD,CAhBD,C,CAkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,MAAMS,2BAA2B,GAAG,CAACC,QAAD,EAAoBC,UAApB,KAA8D;;;EAChG,MAAMC,YAAY,GAAGF,QAAQ,GAAGG,mCAAiBC,MAAjB,CAAwBC,KAA3B,GAAmCF,mCAAiBG,MAAjB,CAAwBD,KAAxF;EACA,OAAO,kBAAY,CAACE,IAAb,CAAmBC,QAAD,IAAcA,QAAQ,CAACC,EAAT,KAAgBR,UAAhD,OAA2D,IAA3D,IAA2DS,aAA3D,GAA2D,MAA3D,GAA2DA,GAAEC,IAApE;AACD,CAHD;;AAKA,MAAMC,6BAA6B,GAAItB,MAAD,IAA6B,CAAC,CAACuB,MAAM,CAACC,MAAP,CAAcC,sCAAd,EAAoCR,IAApC,CAA0CI,IAAD,IAAUA,IAAI,KAAKrB,MAA5D,CAArE;;QAGEF,oB,GAAAA,oB;QAAsBW,2B,GAAAA,2B;QAA6Ba,6B,GAAAA,6B","names":["getIdRoleUsedForTask","listRoles","idRole","includes","Role","COMMERCIAL","JURIDIC","SOCIAL","FACTURATION","CUSTOMER_SUCCESS","FRONT_OFFICE","getIdRoleUsedForAttribution","isIntern","idTaskType","taskTypeList","TaskResponseType","INTERN","types","EXTERN","find","taskType","id","_a","role","getIdRoleUsedForGetTaskOfUser","Object","values","RoleAvailableForTask"],"sourceRoot":"","sources":["../../ts/utils/task.ts"],"sourcesContent":["import { Role } from '../types/Enum/Role';\nimport { TaskResponseType, RoleAvailableForTask } from '../types/Enum/TaskResponseType';\n\nconst getIdRoleUsedForTask = (listRoles: number[]): number => {\n let idRole = 0;\n if (listRoles.includes(Role.COMMERCIAL)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n } else if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {\n idRole = Role.CUSTOMER_SUCCESS;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n idRole = Role.FRONT_OFFICE;\n }\n return idRole;\n};\n\n// const getIdRoleUsedForManagerTask = (listRoles: number[]): number => {\n// let idRole = 0;\n// if (listRoles.includes(Role.COMMERCIAL)) {\n// idRole = Role.MANAGER;\n// } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {\n// idRole = Role.MANAGER;\n// } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {\n// idRole = Role.MANAGER;\n// } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n// idRole = Role.MANAGER;\n// }\n// return idRole;\n// };\n\nconst getIdRoleUsedForAttribution = (isIntern: boolean, idTaskType: number): number | undefined => {\n const taskTypeList = isIntern ? TaskResponseType.INTERN.types : TaskResponseType.EXTERN.types;\n return taskTypeList.find((taskType) => taskType.id === idTaskType)?.role;\n};\n\nconst getIdRoleUsedForGetTaskOfUser = (idRole: number): boolean => !!Object.values(RoleAvailableForTask).find((role) => role === idRole);\n\nexport {\n getIdRoleUsedForTask, getIdRoleUsedForAttribution, getIdRoleUsedForGetTaskOfUser,\n};"]}
1
+ {"version":3,"file":"task.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,oBAAoB,GAAIC,SAAD,IAAgC;EAC3D,IAAIC,MAAM,GAAG,CAAb;;EACA,IAAID,SAAS,CAACE,QAAV,CAAmBC,WAAKC,UAAxB,KAAuCJ,SAAS,CAACE,QAAV,CAAmBC,WAAKE,kBAAxB,CAA3C,EAAwF;IACtFJ,MAAM,GAAGE,WAAKC,UAAd;EACD,CAFD,MAEO,IAAIJ,SAAS,CAACE,QAAV,CAAmBC,WAAKG,OAAxB,CAAJ,EAAsC;IAC3CL,MAAM,GAAGE,WAAKG,OAAd;EACD,CAFM,MAEA,IAAIN,SAAS,CAACE,QAAV,CAAmBC,WAAKI,MAAxB,CAAJ,EAAqC;IAC1CN,MAAM,GAAGE,WAAKI,MAAd;EACD,CAFM,MAEA,IAAIP,SAAS,CAACE,QAAV,CAAmBC,WAAKK,WAAxB,CAAJ,EAA0C;IAC/CP,MAAM,GAAGE,WAAKK,WAAd;EACD,CAFM,MAEA,IAAIR,SAAS,CAACE,QAAV,CAAmBC,WAAKM,gBAAxB,KAA6CT,SAAS,CAACE,QAAV,CAAmBC,WAAKO,wBAAxB,CAAjD,EAAoG;IACzGT,MAAM,GAAGE,WAAKM,gBAAd;EACD,CAFM,MAEA,IAAIT,SAAS,CAACE,QAAV,CAAmBC,WAAKQ,YAAxB,KAAyCX,SAAS,CAACE,QAAV,CAAmBC,WAAKS,aAAxB,CAA7C,EAAqF;IAC1FX,MAAM,GAAGE,WAAKQ,YAAd;EACD;;EACD,OAAOV,MAAP;AACD,CAhBD;;AAkBA,MAAMY,2BAA2B,GAAIb,SAAD,IAAgC;EAClE,IAAIC,MAAM,GAAG,CAAb;;EACA,IAAID,SAAS,CAACE,QAAV,CAAmBC,WAAKC,UAAxB,CAAJ,EAAyC;IACvCH,MAAM,GAAGE,WAAKE,kBAAd;EACD,CAFD,MAEO,IAAIL,SAAS,CAACE,QAAV,CAAmBC,WAAKG,OAAxB,KAAoCN,SAAS,CAACE,QAAV,CAAmBC,WAAKI,MAAxB,CAApC,IAAuEP,SAAS,CAACE,QAAV,CAAmBC,WAAKK,WAAxB,CAA3E,EAAiH;IACtHP,MAAM,GAAGE,WAAKW,OAAd;EACD,CAFM,MAEA,IAAId,SAAS,CAACE,QAAV,CAAmBC,WAAKM,gBAAxB,CAAJ,EAA+C;IACpDR,MAAM,GAAGE,WAAKO,wBAAd;EACD,CAFM,MAEA,IAAIV,SAAS,CAACE,QAAV,CAAmBC,WAAKQ,YAAxB,CAAJ,EAA2C;IAChDV,MAAM,GAAGE,WAAKS,aAAd;EACD;;EACD,OAAOX,MAAP;AACD,CAZD;;QAeEF,oB,GAAAA,oB;QAAsBc,2B,GAAAA,2B","names":["getIdRoleUsedForTask","listRoles","idRole","includes","Role","COMMERCIAL","COMMERCIAL_MANAGER","JURIDIC","SOCIAL","FACTURATION","CUSTOMER_SUCCESS","CUSTOMER_SUCCESS_MANAGER","FRONT_OFFICE","FRONT_MANAGER","getIdRoleUsedForManagerTask","MANAGER"],"sourceRoot":"","sources":["../../ts/utils/task.ts"],"sourcesContent":["import { Role } from '../types/Enum/Role';\n\nconst getIdRoleUsedForTask = (listRoles: number[]): number => {\n let idRole = 0;\n if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n } else if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.CUSTOMER_SUCCESS) || listRoles.includes(Role.CUSTOMER_SUCCESS_MANAGER)) {\n idRole = Role.CUSTOMER_SUCCESS;\n } else if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_MANAGER)) {\n idRole = Role.FRONT_OFFICE;\n }\n return idRole;\n};\n\nconst getIdRoleUsedForManagerTask = (listRoles: number[]): number => {\n let idRole = 0;\n if (listRoles.includes(Role.COMMERCIAL)) {\n idRole = Role.COMMERCIAL_MANAGER;\n } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {\n idRole = Role.MANAGER;\n } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {\n idRole = Role.CUSTOMER_SUCCESS_MANAGER;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n idRole = Role.FRONT_MANAGER;\n }\n return idRole;\n};\n\nexport {\n getIdRoleUsedForTask, getIdRoleUsedForManagerTask,\n};"]}
@@ -12,11 +12,13 @@ const getIdRoleUsedForEmail = listRoles => {
12
12
 
13
13
  if (listRoles.includes(_Role.Role.FACTURATION)) {
14
14
  idRole = _Role.Role.FACTURATION;
15
+ } else if (listRoles.includes(_Role.Role.BACK_MANAGER)) {
16
+ idRole = _Role.Role.BACK_MANAGER;
15
17
  } else if (listRoles.includes(_Role.Role.FRONT_OFFICE)) {
16
18
  idRole = _Role.Role.FRONT_OFFICE;
17
19
  } else if (listRoles.includes(_Role.Role.FRONT_OFFICE_EXPRESS)) {
18
20
  idRole = _Role.Role.FRONT_OFFICE_EXPRESS;
19
- } else if (listRoles.includes(_Role.Role.COMMERCIAL)) {
21
+ } else if (listRoles.includes(_Role.Role.COMMERCIAL) || listRoles.includes(_Role.Role.COMMERCIAL_MANAGER)) {
20
22
  idRole = _Role.Role.COMMERCIAL;
21
23
  } else if (listRoles.includes(_Role.Role.EXPERT_ACCOUNTANT)) {
22
24
  idRole = _Role.Role.EXPERT_ACCOUNTANT;
@@ -1 +1 @@
1
- {"version":3,"file":"webmail.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,qBAAqB,GAAIC,SAAD,IAAgC;EAC5D,IAAIC,MAAM,GAAGC,WAAKC,gBAAlB;;EACA,IAAIH,SAAS,CAACI,QAAV,CAAmBF,WAAKG,WAAxB,CAAJ,EAA0C;IACxCJ,MAAM,GAAGC,WAAKG,WAAd;EACD,CAFD,MAEO,IAAIL,SAAS,CAACI,QAAV,CAAmBF,WAAKI,YAAxB,CAAJ,EAA2C;IAChDL,MAAM,GAAGC,WAAKI,YAAd;EACD,CAFM,MAEA,IAAIN,SAAS,CAACI,QAAV,CAAmBF,WAAKK,oBAAxB,CAAJ,EAAmD;IACxDN,MAAM,GAAGC,WAAKK,oBAAd;EACD,CAFM,MAEA,IAAIP,SAAS,CAACI,QAAV,CAAmBF,WAAKM,UAAxB,CAAJ,EAAyC;IAC9CP,MAAM,GAAGC,WAAKM,UAAd;EACD,CAFM,MAEA,IAAIR,SAAS,CAACI,QAAV,CAAmBF,WAAKO,iBAAxB,CAAJ,EAAgD;IACrDR,MAAM,GAAGC,WAAKO,iBAAd;EACD,CAFM,MAEA,IAAIT,SAAS,CAACI,QAAV,CAAmBF,WAAKQ,iBAAxB,CAAJ,EAAgD;IACrDT,MAAM,GAAGC,WAAKQ,iBAAd;EACD,CAFM,MAEA,IAAIV,SAAS,CAACI,QAAV,CAAmBF,WAAKS,OAAxB,CAAJ,EAAsC;IAC3CV,MAAM,GAAGC,WAAKS,OAAd;EACD,CAFM,MAEA,IAAIX,SAAS,CAACI,QAAV,CAAmBF,WAAKU,MAAxB,CAAJ,EAAqC;IAC1CX,MAAM,GAAGC,WAAKU,MAAd;EACD;;EACD,OAAOX,MAAP;AACD,CApBD;;QAuBEF,qB,GAAAA,qB","names":["getIdRoleUsedForEmail","listRoles","idRole","Role","CUSTOMER_SUCCESS","includes","FACTURATION","FRONT_OFFICE","FRONT_OFFICE_EXPRESS","COMMERCIAL","EXPERT_ACCOUNTANT","JURIDICAL_SUPPORT","JURIDIC","SOCIAL"],"sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"sourcesContent":["import { Role } from '../types/Enum/Role';\n\nconst getIdRoleUsedForEmail = (listRoles: number[]): number => {\n let idRole = Role.CUSTOMER_SUCCESS;\n if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n idRole = Role.FRONT_OFFICE;\n } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {\n idRole = Role.FRONT_OFFICE_EXPRESS;\n } else if (listRoles.includes(Role.COMMERCIAL)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {\n idRole = Role.EXPERT_ACCOUNTANT;\n } else if (listRoles.includes(Role.JURIDICAL_SUPPORT)) {\n idRole = Role.JURIDICAL_SUPPORT;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n }\n return idRole;\n};\n\nexport {\n getIdRoleUsedForEmail,\n};"]}
1
+ {"version":3,"file":"webmail.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,qBAAqB,GAAIC,SAAD,IAAgC;EAC5D,IAAIC,MAAM,GAAGC,WAAKC,gBAAlB;;EACA,IAAIH,SAAS,CAACI,QAAV,CAAmBF,WAAKG,WAAxB,CAAJ,EAA0C;IACxCJ,MAAM,GAAGC,WAAKG,WAAd;EACD,CAFD,MAEO,IAAIL,SAAS,CAACI,QAAV,CAAmBF,WAAKI,YAAxB,CAAJ,EAA2C;IAChDL,MAAM,GAAGC,WAAKI,YAAd;EACD,CAFM,MAEA,IAAIN,SAAS,CAACI,QAAV,CAAmBF,WAAKK,YAAxB,CAAJ,EAA2C;IAChDN,MAAM,GAAGC,WAAKK,YAAd;EACD,CAFM,MAEA,IAAIP,SAAS,CAACI,QAAV,CAAmBF,WAAKM,oBAAxB,CAAJ,EAAmD;IACxDP,MAAM,GAAGC,WAAKM,oBAAd;EACD,CAFM,MAEA,IAAIR,SAAS,CAACI,QAAV,CAAmBF,WAAKO,UAAxB,KAAuCT,SAAS,CAACI,QAAV,CAAmBF,WAAKQ,kBAAxB,CAA3C,EAAwF;IAC7FT,MAAM,GAAGC,WAAKO,UAAd;EACD,CAFM,MAEA,IAAIT,SAAS,CAACI,QAAV,CAAmBF,WAAKS,iBAAxB,CAAJ,EAAgD;IACrDV,MAAM,GAAGC,WAAKS,iBAAd;EACD,CAFM,MAEA,IAAIX,SAAS,CAACI,QAAV,CAAmBF,WAAKU,iBAAxB,CAAJ,EAAgD;IACrDX,MAAM,GAAGC,WAAKU,iBAAd;EACD,CAFM,MAEA,IAAIZ,SAAS,CAACI,QAAV,CAAmBF,WAAKW,OAAxB,CAAJ,EAAsC;IAC3CZ,MAAM,GAAGC,WAAKW,OAAd;EACD,CAFM,MAEA,IAAIb,SAAS,CAACI,QAAV,CAAmBF,WAAKY,MAAxB,CAAJ,EAAqC;IAC1Cb,MAAM,GAAGC,WAAKY,MAAd;EACD;;EACD,OAAOb,MAAP;AACD,CAtBD;;QAyBEF,qB,GAAAA,qB","names":["getIdRoleUsedForEmail","listRoles","idRole","Role","CUSTOMER_SUCCESS","includes","FACTURATION","BACK_MANAGER","FRONT_OFFICE","FRONT_OFFICE_EXPRESS","COMMERCIAL","COMMERCIAL_MANAGER","EXPERT_ACCOUNTANT","JURIDICAL_SUPPORT","JURIDIC","SOCIAL"],"sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"sourcesContent":["import { Role } from '../types/Enum/Role';\n\nconst getIdRoleUsedForEmail = (listRoles: number[]): number => {\n let idRole = Role.CUSTOMER_SUCCESS;\n if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.BACK_MANAGER)) {\n idRole = Role.BACK_MANAGER;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n idRole = Role.FRONT_OFFICE;\n } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {\n idRole = Role.FRONT_OFFICE_EXPRESS;\n } else if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {\n idRole = Role.EXPERT_ACCOUNTANT;\n } else if (listRoles.includes(Role.JURIDICAL_SUPPORT)) {\n idRole = Role.JURIDICAL_SUPPORT;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n }\n return idRole;\n};\n\nexport {\n getIdRoleUsedForEmail,\n};"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "0.4.290",
3
+ "version": "1.0.6",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "js/index.js",
@@ -76,7 +76,9 @@
76
76
  "browser-or-node": "^1.3.0",
77
77
  "class-transformer": "^0.4.0",
78
78
  "class-validator": "^0.13.1",
79
+ "dayjs": "^1.10.4",
79
80
  "eslint-config-airbnb": "^18.2.1",
81
+ "fs-extra": "^10.0.0",
80
82
  "mailparser": "^3.4.0",
81
83
  "readme-md-generator": "^1.0.0",
82
84
  "rxjs": "^7.0.1",
@@ -1,7 +1,20 @@
1
1
  import { Resource } from '../Resource';
2
+ import { UpdateBudgetPermanentToken } from '../../types/Interface/api/budgetInsight/UpdateBudgetPermanentToken';
3
+ import { IAccountingTransaction } from '../../types/Interface/models/IAccountingTransaction';
2
4
  import { CreateOrUpdateAccessToken, IAccessToken } from '../../types';
3
5
 
4
6
  export class BudgetInsight extends Resource {
7
+ // FIXME: Deprecated
8
+ updateUserWithNewPermanentToken(data: UpdateBudgetPermanentToken): Promise<string> {
9
+ return this.axios.$put('/budget/updatePermanentToken', data);
10
+ }
11
+
12
+ // FIXME: Deprecated
13
+ fetchAllUserConnection(): Promise<{ idConnection: number,
14
+ accountingTransactions: IAccountingTransaction[] }[]> {
15
+ return this.axios.$get('/budget/fetchAllUserConnection');
16
+ }
17
+
5
18
  getTokens(): Promise<IAccessToken | null> {
6
19
  return this.axios.$get('/connectors/budget-insight/tokens');
7
20
  }
@@ -1,4 +1,3 @@
1
- import { CancelToken } from 'axios';
2
1
  import {
3
2
  CreateCalendarEventForUsers, GetAllCalendarEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent, VerifyCalendarEvent,
4
3
  } from '../../types';
@@ -17,8 +16,8 @@ export class CalendarEvent extends Resource {
17
16
  return this.axios.get(`/calendar-events/${id}`, { params });
18
17
  }
19
18
 
20
- getAll(params: GetAllCalendarEvent, cancelToken?: CancelToken): Promise<ReadAllCalendarEvent> {
21
- return this.axios.get('/calendar-events/all', { ...(cancelToken ? { cancelToken } : {}), params });
19
+ getAll(params: GetAllCalendarEvent): Promise<ReadAllCalendarEvent> {
20
+ return this.axios.get('/calendar-events/all', { params });
22
21
  }
23
22
 
24
23
  update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {
@@ -0,0 +1,12 @@
1
+ import { CreateCommercialSetting, ISocietyGescom } from '../../types';
2
+ import { Resource } from '../Resource';
3
+
4
+ export class CommercialSetting extends Resource {
5
+ get(): Promise<ISocietyGescom> {
6
+ return this.axios.$get('/commercial-management/settings');
7
+ }
8
+
9
+ updateOrCreate(payload: CreateCommercialSetting): Promise<ISocietyGescom> {
10
+ return this.axios.$post('/commercial-management/settings', payload);
11
+ }
12
+ }