@silexpert/core 0.4.286 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (855) 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 +2 -2
  53. package/es/api/resources/User.d.ts.map +1 -1
  54. package/es/api/resources/User.js +11 -2
  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 -16
  65. package/es/api/resources.d.ts.map +1 -1
  66. package/es/api/resources.js +8 -16
  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/BrandClementine.d.ts +1 -12
  77. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  78. package/es/types/Enum/BrandClementine.js +1 -10
  79. package/es/types/Enum/BrandClementine.js.map +1 -1
  80. package/es/types/Enum/BrandComptalib.d.ts +0 -87
  81. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  82. package/es/types/Enum/BrandComptalib.js +4 -13
  83. package/es/types/Enum/BrandComptalib.js.map +1 -1
  84. package/es/types/Enum/BrandLegalstart.d.ts +0 -3
  85. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  86. package/es/types/Enum/BrandLegalstart.js +0 -3
  87. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  88. package/es/types/Enum/BrandPourcentage.d.ts +0 -4
  89. package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
  90. package/es/types/Enum/BrandPourcentage.js +3 -7
  91. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  92. package/es/types/Enum/BudgetInsight.js.map +1 -1
  93. package/es/types/Enum/CommercialManagement.d.ts +32 -0
  94. package/es/types/Enum/CommercialManagement.d.ts.map +1 -0
  95. package/es/types/Enum/CommercialManagement.js +39 -0
  96. package/es/types/Enum/CommercialManagement.js.map +1 -0
  97. package/es/types/Enum/EstimateInvoice.d.ts +1 -1
  98. package/es/types/Enum/EstimateInvoice.d.ts.map +1 -1
  99. package/es/types/Enum/EstimateInvoice.js +1 -1
  100. package/es/types/Enum/EstimateInvoice.js.map +1 -1
  101. package/es/types/Enum/Log.d.ts +1 -2
  102. package/es/types/Enum/Log.d.ts.map +1 -1
  103. package/es/types/Enum/Log.js +0 -1
  104. package/es/types/Enum/Log.js.map +1 -1
  105. package/es/types/Enum/{PrestationType.d.ts → Prestation.d.ts} +3 -4
  106. package/es/types/Enum/Prestation.d.ts.map +1 -0
  107. package/es/types/Enum/Prestation.js +16 -0
  108. package/es/types/Enum/Prestation.js.map +1 -0
  109. package/es/types/Enum/Role.d.ts +11 -6
  110. package/es/types/Enum/Role.d.ts.map +1 -1
  111. package/es/types/Enum/Role.js +10 -15
  112. package/es/types/Enum/Role.js.map +1 -1
  113. package/es/types/Enum/RoleDetail.d.ts +51 -42
  114. package/es/types/Enum/RoleDetail.d.ts.map +1 -1
  115. package/es/types/Enum/RoleDetail.js +64 -127
  116. package/es/types/Enum/RoleDetail.js.map +1 -1
  117. package/es/types/Enum/SheetMonthScheduleDetailType.js +1 -1
  118. package/es/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
  119. package/es/types/Enum/TaskResponseType.d.ts +0 -9
  120. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  121. package/es/types/Enum/TaskResponseType.js +2 -57
  122. package/es/types/Enum/TaskResponseType.js.map +1 -1
  123. package/es/types/Enum/TimeCounterType.d.ts +12 -40
  124. package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
  125. package/es/types/Enum/TimeCounterType.js +19 -47
  126. package/es/types/Enum/TimeCounterType.js.map +1 -1
  127. package/es/types/Enum/Vat.d.ts +1 -17
  128. package/es/types/Enum/Vat.d.ts.map +1 -1
  129. package/es/types/Enum/Vat.js +26 -24
  130. package/es/types/Enum/Vat.js.map +1 -1
  131. package/es/types/Interface/api/3cx/Query3cxSearch.d.ts +0 -1
  132. package/es/types/Interface/api/3cx/Query3cxSearch.d.ts.map +1 -1
  133. package/es/types/Interface/api/3cx/Query3cxSearch.js +0 -6
  134. package/es/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
  135. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
  136. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts +0 -1
  137. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts.map +1 -1
  138. package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.js.map +1 -1
  139. package/es/types/Interface/api/commercialManagement/Create.d.ts +107 -0
  140. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -0
  141. package/es/types/Interface/api/commercialManagement/Create.js +496 -0
  142. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -0
  143. package/es/types/Interface/api/commercialManagement/Query.d.ts +45 -0
  144. package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -0
  145. package/es/types/Interface/api/commercialManagement/Query.js +121 -0
  146. package/es/types/Interface/api/commercialManagement/Query.js.map +1 -0
  147. package/es/types/Interface/api/commercialManagement/Read.d.ts +60 -0
  148. package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -0
  149. package/es/types/Interface/api/commercialManagement/Read.js +2 -0
  150. package/es/types/Interface/api/commercialManagement/Read.js.map +1 -0
  151. package/es/types/Interface/api/commercialManagement/Update.d.ts +16 -0
  152. package/es/types/Interface/api/commercialManagement/Update.d.ts.map +1 -0
  153. package/es/types/Interface/api/{societyConfig/update.js → commercialManagement/Update.js} +21 -61
  154. package/es/types/Interface/api/commercialManagement/Update.js.map +1 -0
  155. package/es/types/Interface/api/connector/CreateConnector.d.ts +13 -0
  156. package/es/types/Interface/api/connector/CreateConnector.d.ts.map +1 -0
  157. package/es/types/Interface/api/connector/CreateConnector.js +68 -0
  158. package/es/types/Interface/api/connector/CreateConnector.js.map +1 -0
  159. package/es/types/Interface/api/connector/QueryConnector.d.ts +7 -0
  160. package/es/types/Interface/api/connector/QueryConnector.d.ts.map +1 -0
  161. package/es/types/Interface/api/{qonto/ProcessBankAccount.js → connector/QueryConnector.js} +10 -7
  162. package/es/types/Interface/api/connector/QueryConnector.js.map +1 -0
  163. package/es/types/Interface/api/dashboard/ReadGescom.d.ts +2 -3
  164. package/es/types/Interface/api/dashboard/ReadGescom.d.ts.map +1 -1
  165. package/es/types/Interface/api/dashboard/ReadGescom.js.map +1 -1
  166. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +0 -1
  167. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
  168. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +1 -7
  169. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  170. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +0 -1
  171. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  172. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -7
  173. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  174. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -2
  175. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
  176. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +2 -8
  177. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  178. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -2
  179. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  180. package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -7
  181. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  182. package/es/types/Interface/api/product/CreateProduct.d.ts +1 -0
  183. package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
  184. package/es/types/Interface/api/product/CreateProduct.js +9 -6
  185. package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
  186. package/es/types/Interface/api/product/QueryProduct.d.ts +2 -0
  187. package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
  188. package/es/types/Interface/api/product/QueryProduct.js +15 -1
  189. package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
  190. package/es/types/Interface/api/revision/QueryRevision.d.ts +0 -2
  191. package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -1
  192. package/es/types/Interface/api/revision/QueryRevision.js +2 -16
  193. package/es/types/Interface/api/revision/QueryRevision.js.map +1 -1
  194. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +1 -1
  195. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -1
  196. package/es/types/Interface/api/revision/QueryRevisionAccount.js +5 -11
  197. package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  198. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +0 -2
  199. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +1 -1
  200. package/es/types/Interface/api/revision/QueryRevisionPaginate.js +2 -16
  201. package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  202. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +1 -1
  203. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
  204. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  205. package/es/types/Interface/api/revision/ReadRevision.d.ts +1 -2
  206. package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -1
  207. package/es/types/Interface/api/revision/ReadRevision.js.map +1 -1
  208. package/es/types/Interface/api/simulation/CreateSimulation.d.ts +0 -2
  209. package/es/types/Interface/api/simulation/CreateSimulation.d.ts.map +1 -1
  210. package/es/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  211. package/es/types/Interface/api/task/QueryCountTask.d.ts +1 -1
  212. package/es/types/Interface/api/task/QueryCountTask.d.ts.map +1 -1
  213. package/es/types/Interface/api/task/QueryCountTask.js +1 -1
  214. package/es/types/Interface/api/task/QueryCountTask.js.map +1 -1
  215. package/es/types/Interface/api/task/QueryPaginatedTask.d.ts +0 -2
  216. package/es/types/Interface/api/task/QueryPaginatedTask.d.ts.map +1 -1
  217. package/es/types/Interface/api/task/QueryPaginatedTask.js +0 -11
  218. package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  219. package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts +0 -1
  220. package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts.map +1 -1
  221. package/es/types/Interface/api/thirdParty/QueryThirdParty.js +1 -7
  222. package/es/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
  223. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +0 -1
  224. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
  225. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +1 -10
  226. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  227. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +0 -1
  228. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
  229. package/es/types/Interface/api/user/QueryGetAllCollaborators.js +1 -11
  230. package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  231. package/es/types/Interface/models/IAccount.d.ts +0 -2
  232. package/es/types/Interface/models/IAccount.d.ts.map +1 -1
  233. package/es/types/Interface/models/IAccount.js.map +1 -1
  234. package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -1
  235. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  236. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  237. package/es/types/Interface/models/IApiError.d.ts +4 -2
  238. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  239. package/es/types/Interface/models/IApiError.js +4 -2
  240. package/es/types/Interface/models/IApiError.js.map +1 -1
  241. package/es/types/Interface/models/IAttributionHistory.d.ts +4 -4
  242. package/es/types/Interface/models/IAttributionHistory.d.ts.map +1 -1
  243. package/es/types/Interface/models/IAttributionHistory.js.map +1 -1
  244. package/es/types/Interface/models/ICommercialMail.d.ts +14 -0
  245. package/es/types/Interface/models/ICommercialMail.d.ts.map +1 -0
  246. package/es/types/Interface/models/ICommercialMail.js +2 -0
  247. package/es/types/Interface/models/ICommercialMail.js.map +1 -0
  248. package/es/types/Interface/models/IEngagementBankTransaction.d.ts +2 -0
  249. package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -1
  250. package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -1
  251. package/es/types/Interface/models/IEstimateInvoice.d.ts +24 -28
  252. package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  253. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  254. package/es/types/Interface/models/IExercice.d.ts +0 -1
  255. package/es/types/Interface/models/IExercice.d.ts.map +1 -1
  256. package/es/types/Interface/models/IExercice.js.map +1 -1
  257. package/es/types/Interface/models/{ISocietyRelance.d.ts → IInvoiceReminder.d.ts} +8 -8
  258. package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -0
  259. package/es/types/Interface/models/IInvoiceReminder.js +2 -0
  260. package/es/types/Interface/models/IInvoiceReminder.js.map +1 -0
  261. package/es/types/Interface/models/ILegalNotice.d.ts +0 -1
  262. package/es/types/Interface/models/ILegalNotice.d.ts.map +1 -1
  263. package/es/types/Interface/models/ILegalNotice.js.map +1 -1
  264. package/es/types/Interface/models/ILoan.d.ts +0 -2
  265. package/es/types/Interface/models/ILoan.d.ts.map +1 -1
  266. package/es/types/Interface/models/ILoan.js.map +1 -1
  267. package/es/types/Interface/models/IPartnerTransaction.d.ts +1 -0
  268. package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
  269. package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
  270. package/es/types/Interface/models/IPaymentExpectation.d.ts +0 -1
  271. package/es/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  272. package/es/types/Interface/models/IPaymentExpectation.js.map +1 -1
  273. package/es/types/Interface/models/IPrestationComplementary.d.ts +1 -1
  274. package/es/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
  275. package/es/types/Interface/models/IPrestationComplementary.js.map +1 -1
  276. package/es/types/Interface/models/IProduct.d.ts +1 -0
  277. package/es/types/Interface/models/IProduct.d.ts.map +1 -1
  278. package/es/types/Interface/models/IProduct.js.map +1 -1
  279. package/es/types/Interface/models/IProductInvoice.d.ts +5 -3
  280. package/es/types/Interface/models/IProductInvoice.d.ts.map +1 -1
  281. package/es/types/Interface/models/IProductInvoice.js.map +1 -1
  282. package/es/types/Interface/models/ISociety.d.ts +1 -2
  283. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  284. package/es/types/Interface/models/ISociety.js.map +1 -1
  285. package/es/types/Interface/models/ISocietyGescom.d.ts +13 -1
  286. package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  287. package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
  288. package/es/types/Interface/models/ISocietyPartner.d.ts +1 -2
  289. package/es/types/Interface/models/ISocietyPartner.d.ts.map +1 -1
  290. package/es/types/Interface/models/ISocietyPartner.js.map +1 -1
  291. package/es/types/Interface/models/ITask.d.ts +2 -2
  292. package/es/types/Interface/models/ITask.d.ts.map +1 -1
  293. package/es/types/Interface/models/ITask.js.map +1 -1
  294. package/es/types/index.d.ts +11 -35
  295. package/es/types/index.d.ts.map +1 -1
  296. package/es/types/index.js +11 -35
  297. package/es/types/index.js.map +1 -1
  298. package/es/utils/amount.d.ts +2 -0
  299. package/es/utils/amount.d.ts.map +1 -0
  300. package/es/utils/amount.js +12 -0
  301. package/es/utils/amount.js.map +1 -0
  302. package/es/utils/brands.d.ts +1 -1
  303. package/es/utils/brands.d.ts.map +1 -1
  304. package/es/utils/brands.js +26 -8
  305. package/es/utils/brands.js.map +1 -1
  306. package/es/utils/commercialManagement/document.d.ts +6 -0
  307. package/es/utils/commercialManagement/document.d.ts.map +1 -0
  308. package/es/utils/commercialManagement/document.js +54 -0
  309. package/es/utils/commercialManagement/document.js.map +1 -0
  310. package/es/utils/commercialManagement/product.d.ts +5 -0
  311. package/es/utils/commercialManagement/product.d.ts.map +1 -0
  312. package/es/utils/commercialManagement/product.js +27 -0
  313. package/es/utils/commercialManagement/product.js.map +1 -0
  314. package/es/utils/commercialManagement/templates/body.d.ts +2 -0
  315. package/es/utils/commercialManagement/templates/body.d.ts.map +1 -0
  316. package/es/utils/commercialManagement/templates/body.js +111 -0
  317. package/es/utils/commercialManagement/templates/body.js.map +1 -0
  318. package/es/utils/commercialManagement/templates/common.d.ts +12 -0
  319. package/es/utils/commercialManagement/templates/common.d.ts.map +1 -0
  320. package/es/utils/commercialManagement/templates/common.js +199 -0
  321. package/es/utils/commercialManagement/templates/common.js.map +1 -0
  322. package/es/utils/commercialManagement/vat.d.ts +6 -0
  323. package/es/utils/commercialManagement/vat.d.ts.map +1 -0
  324. package/es/utils/commercialManagement/vat.js +22 -0
  325. package/es/utils/commercialManagement/vat.js.map +1 -0
  326. package/es/utils/index.d.ts +2 -0
  327. package/es/utils/index.d.ts.map +1 -1
  328. package/es/utils/index.js +2 -0
  329. package/es/utils/index.js.map +1 -1
  330. package/es/utils/task.d.ts +2 -3
  331. package/es/utils/task.d.ts.map +1 -1
  332. package/es/utils/task.js +19 -23
  333. package/es/utils/task.js.map +1 -1
  334. package/es/utils/webmail.d.ts.map +1 -1
  335. package/es/utils/webmail.js +4 -1
  336. package/es/utils/webmail.js.map +1 -1
  337. package/importInterfaces.ts +1 -1
  338. package/js/api/resources/BudgetInsight.js +10 -0
  339. package/js/api/resources/BudgetInsight.js.map +1 -1
  340. package/js/api/resources/CalendarEvent.js +3 -5
  341. package/js/api/resources/CalendarEvent.js.map +1 -1
  342. package/js/api/resources/CommercialSetting.js +22 -0
  343. package/js/api/resources/CommercialSetting.js.map +1 -0
  344. package/js/api/resources/Connector.js +14 -0
  345. package/js/api/resources/Connector.js.map +1 -1
  346. package/js/api/resources/Dashboard.js +0 -6
  347. package/js/api/resources/Dashboard.js.map +1 -1
  348. package/js/api/resources/Exercice.js +0 -4
  349. package/js/api/resources/Exercice.js.map +1 -1
  350. package/js/api/resources/FecFile.js +6 -34
  351. package/js/api/resources/FecFile.js.map +1 -1
  352. package/js/api/resources/GeneralLedger.js +2 -2
  353. package/js/api/resources/GeneralLedger.js.map +1 -1
  354. package/js/api/resources/Invoice.js +42 -0
  355. package/js/api/resources/Invoice.js.map +1 -0
  356. package/js/api/resources/Loan.js +1 -1
  357. package/js/api/resources/Loan.js.map +1 -1
  358. package/js/api/resources/Mail.js +3 -4
  359. package/js/api/resources/Mail.js.map +1 -1
  360. package/js/api/resources/Partner.js +0 -4
  361. package/js/api/resources/Partner.js.map +1 -1
  362. package/js/api/resources/Qonto.js +1 -23
  363. package/js/api/resources/Qonto.js.map +1 -1
  364. package/js/api/resources/User.js +3 -5
  365. package/js/api/resources/User.js.map +1 -1
  366. package/js/api/resources/commercialDocument.js +74 -0
  367. package/js/api/resources/commercialDocument.js.map +1 -0
  368. package/js/api/resources/reminder.js +26 -0
  369. package/js/api/resources/reminder.js.map +1 -0
  370. package/js/api/resources.js +9 -21
  371. package/js/api/resources.js.map +1 -1
  372. package/js/index.js +12 -0
  373. package/js/index.js.map +1 -1
  374. package/js/types/Enum/Account.js +8 -0
  375. package/js/types/Enum/Account.js.map +1 -1
  376. package/js/types/Enum/BrandClementine.js +1 -10
  377. package/js/types/Enum/BrandClementine.js.map +1 -1
  378. package/js/types/Enum/BrandComptalib.js +5 -14
  379. package/js/types/Enum/BrandComptalib.js.map +1 -1
  380. package/js/types/Enum/BrandLegalstart.js +0 -3
  381. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  382. package/js/types/Enum/BrandPourcentage.js +3 -7
  383. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  384. package/js/types/Enum/BudgetInsight.js.map +1 -1
  385. package/js/types/Enum/CommercialManagement.js +67 -0
  386. package/js/types/Enum/CommercialManagement.js.map +1 -0
  387. package/js/types/Enum/EstimateInvoice.js +1 -1
  388. package/js/types/Enum/EstimateInvoice.js.map +1 -1
  389. package/js/types/Enum/Log.js +0 -1
  390. package/js/types/Enum/Log.js.map +1 -1
  391. package/js/types/Enum/Prestation.js +22 -0
  392. package/js/types/Enum/Prestation.js.map +1 -0
  393. package/js/types/Enum/Role.js +13 -18
  394. package/js/types/Enum/Role.js.map +1 -1
  395. package/js/types/Enum/RoleDetail.js +86 -149
  396. package/js/types/Enum/RoleDetail.js.map +1 -1
  397. package/js/types/Enum/SheetMonthScheduleDetailType.js +1 -1
  398. package/js/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
  399. package/js/types/Enum/TaskResponseType.js +3 -56
  400. package/js/types/Enum/TaskResponseType.js.map +1 -1
  401. package/js/types/Enum/TimeCounterType.js +40 -68
  402. package/js/types/Enum/TimeCounterType.js.map +1 -1
  403. package/js/types/Enum/Vat.js +46 -45
  404. package/js/types/Enum/Vat.js.map +1 -1
  405. package/js/types/Interface/api/3cx/Query3cxSearch.js +0 -2
  406. package/js/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
  407. package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
  408. package/js/types/Interface/api/commercialManagement/Create.js +235 -0
  409. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -0
  410. package/js/types/Interface/api/commercialManagement/Query.js +79 -0
  411. package/js/types/Interface/api/commercialManagement/Query.js.map +1 -0
  412. package/js/types/Interface/api/{qonto/Query.js → commercialManagement/Read.js} +1 -1
  413. package/js/types/Interface/api/commercialManagement/Read.js.map +1 -0
  414. package/js/types/Interface/api/commercialManagement/Update.js +55 -0
  415. package/js/types/Interface/api/commercialManagement/Update.js.map +1 -0
  416. package/js/types/Interface/api/connector/CreateConnector.js +47 -0
  417. package/js/types/Interface/api/connector/CreateConnector.js.map +1 -0
  418. package/js/types/Interface/api/{qonto/ProcessBankAccount.js → connector/QueryConnector.js} +10 -6
  419. package/js/types/Interface/api/connector/QueryConnector.js.map +1 -0
  420. package/js/types/Interface/api/dashboard/ReadGescom.js.map +1 -1
  421. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +0 -2
  422. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  423. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +0 -2
  424. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  425. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -5
  426. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  427. package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -3
  428. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  429. package/js/types/Interface/api/product/CreateProduct.js +5 -5
  430. package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
  431. package/js/types/Interface/api/product/QueryProduct.js +6 -0
  432. package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
  433. package/js/types/Interface/api/revision/QueryRevision.js +0 -6
  434. package/js/types/Interface/api/revision/QueryRevision.js.map +1 -1
  435. package/js/types/Interface/api/revision/QueryRevisionAccount.js +5 -7
  436. package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  437. package/js/types/Interface/api/revision/QueryRevisionPaginate.js +0 -6
  438. package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  439. package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  440. package/js/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  441. package/js/types/Interface/api/task/QueryCountTask.js +1 -1
  442. package/js/types/Interface/api/task/QueryCountTask.js.map +1 -1
  443. package/js/types/Interface/api/task/QueryPaginatedTask.js +0 -6
  444. package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  445. package/js/types/Interface/api/thirdParty/QueryThirdParty.js +0 -2
  446. package/js/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
  447. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +0 -6
  448. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  449. package/js/types/Interface/api/user/QueryGetAllCollaborators.js +0 -8
  450. package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  451. package/js/types/Interface/models/IApiError.js +5 -3
  452. package/js/types/Interface/models/IApiError.js.map +1 -1
  453. package/js/types/Interface/models/{IStatistic.js → ICommercialMail.js} +1 -1
  454. package/js/types/Interface/models/ICommercialMail.js.map +1 -0
  455. package/js/types/Interface/{api/dashboard/ReadVatDisbursed.js → models/IInvoiceReminder.js} +1 -1
  456. package/js/types/Interface/models/IInvoiceReminder.js.map +1 -0
  457. package/js/types/index.js +64 -352
  458. package/js/types/index.js.map +1 -1
  459. package/js/utils/amount.js +23 -0
  460. package/js/utils/amount.js.map +1 -0
  461. package/js/utils/brands.js +26 -7
  462. package/js/utils/brands.js.map +1 -1
  463. package/js/utils/commercialManagement/document.js +148 -0
  464. package/js/utils/commercialManagement/document.js.map +1 -0
  465. package/js/utils/commercialManagement/product.js +56 -0
  466. package/js/utils/commercialManagement/product.js.map +1 -0
  467. package/js/utils/commercialManagement/templates/body.js +120 -0
  468. package/js/utils/commercialManagement/templates/body.js.map +1 -0
  469. package/js/utils/commercialManagement/templates/common.js +211 -0
  470. package/js/utils/commercialManagement/templates/common.js.map +1 -0
  471. package/js/utils/commercialManagement/vat.js +44 -0
  472. package/js/utils/commercialManagement/vat.js.map +1 -0
  473. package/js/utils/index.js +24 -0
  474. package/js/utils/index.js.map +1 -1
  475. package/js/utils/task.js +20 -29
  476. package/js/utils/task.js.map +1 -1
  477. package/js/utils/webmail.js +3 -1
  478. package/js/utils/webmail.js.map +1 -1
  479. package/package.json +3 -1
  480. package/ts/api/resources/BudgetInsight.ts +13 -0
  481. package/ts/api/resources/CalendarEvent.ts +2 -3
  482. package/ts/api/resources/CommercialSetting.ts +12 -0
  483. package/ts/api/resources/Connector.ts +16 -1
  484. package/ts/api/resources/Dashboard.ts +0 -6
  485. package/ts/api/resources/Exercice.ts +0 -4
  486. package/ts/api/resources/FecFile.ts +6 -32
  487. package/ts/api/resources/GeneralLedger.ts +2 -2
  488. package/ts/api/resources/Invoice.ts +39 -0
  489. package/ts/api/resources/Loan.ts +1 -1
  490. package/ts/api/resources/Mail.ts +3 -4
  491. package/ts/api/resources/Partner.ts +0 -4
  492. package/ts/api/resources/Qonto.ts +5 -27
  493. package/ts/api/resources/User.ts +12 -3
  494. package/ts/api/resources/commercialDocument.ts +66 -0
  495. package/ts/api/resources/reminder.ts +20 -0
  496. package/ts/api/resources.ts +8 -16
  497. package/ts/index.ts +1 -0
  498. package/ts/types/Enum/Account.ts +8 -0
  499. package/ts/types/Enum/BrandClementine.ts +1 -10
  500. package/ts/types/Enum/BrandComptalib.ts +4 -13
  501. package/ts/types/Enum/BrandLegalstart.ts +0 -3
  502. package/ts/types/Enum/BrandPourcentage.ts +3 -7
  503. package/ts/types/Enum/BudgetInsight.ts +1 -1
  504. package/ts/types/Enum/CommercialManagement.ts +38 -0
  505. package/ts/types/Enum/EstimateInvoice.ts +1 -1
  506. package/ts/types/Enum/Log.ts +0 -1
  507. package/ts/types/Enum/{PrestationType.ts → Prestation.ts} +1 -2
  508. package/ts/types/Enum/Role.ts +10 -15
  509. package/ts/types/Enum/RoleDetail.ts +64 -127
  510. package/ts/types/Enum/SheetMonthScheduleDetailType.ts +1 -1
  511. package/ts/types/Enum/TaskResponseType.ts +2 -57
  512. package/ts/types/Enum/TimeCounterType.ts +19 -47
  513. package/ts/types/Enum/Vat.ts +28 -25
  514. package/ts/types/Interface/api/3cx/Query3cxSearch.ts +0 -5
  515. package/ts/types/Interface/api/calendarEvent/getAllCalendarEvent.ts +1 -1
  516. package/ts/types/Interface/api/calendarEvent/readAllCalendarEvent.ts +0 -1
  517. package/ts/types/Interface/api/commercialManagement/Create.ts +423 -0
  518. package/ts/types/Interface/api/commercialManagement/Query.ts +115 -0
  519. package/ts/types/Interface/api/commercialManagement/Read.ts +64 -0
  520. package/ts/types/Interface/api/commercialManagement/Update.ts +72 -0
  521. package/ts/types/Interface/api/connector/CreateConnector.ts +51 -0
  522. package/ts/types/Interface/api/connector/QueryConnector.ts +16 -0
  523. package/ts/types/Interface/api/dashboard/ReadGescom.ts +2 -3
  524. package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +0 -6
  525. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +1 -6
  526. package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -7
  527. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -6
  528. package/ts/types/Interface/api/product/CreateProduct.ts +8 -5
  529. package/ts/types/Interface/api/product/QueryProduct.ts +13 -0
  530. package/ts/types/Interface/api/revision/QueryRevision.ts +2 -15
  531. package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +4 -11
  532. package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +2 -15
  533. package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +1 -1
  534. package/ts/types/Interface/api/revision/ReadRevision.ts +1 -2
  535. package/ts/types/Interface/api/simulation/CreateSimulation.ts +0 -2
  536. package/ts/types/Interface/api/task/QueryCountTask.ts +1 -1
  537. package/ts/types/Interface/api/task/QueryPaginatedTask.ts +0 -9
  538. package/ts/types/Interface/api/thirdParty/QueryThirdParty.ts +1 -8
  539. package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +0 -9
  540. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +1 -10
  541. package/ts/types/Interface/models/IAccount.ts +0 -2
  542. package/ts/types/Interface/models/IAccountingTransaction.ts +1 -1
  543. package/ts/types/Interface/models/IApiError.ts +5 -3
  544. package/ts/types/Interface/models/IAttributionHistory.ts +4 -4
  545. package/ts/types/Interface/models/ICommercialMail.ts +15 -0
  546. package/ts/types/Interface/models/IEngagementBankTransaction.ts +2 -0
  547. package/ts/types/Interface/models/IEstimateInvoice.ts +24 -28
  548. package/ts/types/Interface/models/IExercice.ts +0 -1
  549. package/ts/types/Interface/models/{ISocietyRelance.ts → IInvoiceReminder.ts} +7 -7
  550. package/ts/types/Interface/models/ILegalNotice.ts +0 -1
  551. package/ts/types/Interface/models/ILoan.ts +0 -2
  552. package/ts/types/Interface/models/IPartnerTransaction.ts +1 -0
  553. package/ts/types/Interface/models/IPaymentExpectation.ts +0 -1
  554. package/ts/types/Interface/models/IPrestationComplementary.ts +1 -1
  555. package/ts/types/Interface/models/IProduct.ts +1 -0
  556. package/ts/types/Interface/models/IProductInvoice.ts +5 -3
  557. package/ts/types/Interface/models/ISociety.ts +1 -2
  558. package/ts/types/Interface/models/ISocietyGescom.ts +14 -1
  559. package/ts/types/Interface/models/ISocietyPartner.ts +1 -2
  560. package/ts/types/Interface/models/ITask.ts +2 -2
  561. package/ts/types/index.ts +11 -35
  562. package/ts/utils/amount.ts +13 -0
  563. package/ts/utils/brands.ts +25 -7
  564. package/ts/utils/commercialManagement/document.ts +105 -0
  565. package/ts/utils/commercialManagement/product.ts +36 -0
  566. package/ts/utils/commercialManagement/templates/body.ts +113 -0
  567. package/ts/utils/commercialManagement/templates/common.ts +205 -0
  568. package/ts/utils/commercialManagement/vat.ts +24 -0
  569. package/ts/utils/index.ts +2 -0
  570. package/ts/utils/task.ts +16 -24
  571. package/ts/utils/webmail.ts +3 -1
  572. package/es/api/resources/LegalNotice.d.ts +0 -6
  573. package/es/api/resources/LegalNotice.d.ts.map +0 -1
  574. package/es/api/resources/LegalNotice.js +0 -7
  575. package/es/api/resources/LegalNotice.js.map +0 -1
  576. package/es/api/resources/PaymentExpectation.d.ts +0 -6
  577. package/es/api/resources/PaymentExpectation.d.ts.map +0 -1
  578. package/es/api/resources/PaymentExpectation.js +0 -7
  579. package/es/api/resources/PaymentExpectation.js.map +0 -1
  580. package/es/api/resources/SocietyConfig.d.ts +0 -7
  581. package/es/api/resources/SocietyConfig.d.ts.map +0 -1
  582. package/es/api/resources/SocietyConfig.js +0 -10
  583. package/es/api/resources/SocietyConfig.js.map +0 -1
  584. package/es/api/resources/TerminationList.d.ts +0 -7
  585. package/es/api/resources/TerminationList.d.ts.map +0 -1
  586. package/es/api/resources/TerminationList.js +0 -10
  587. package/es/api/resources/TerminationList.js.map +0 -1
  588. package/es/api/resources/Wallet.d.ts +0 -8
  589. package/es/api/resources/Wallet.d.ts.map +0 -1
  590. package/es/api/resources/Wallet.js +0 -7
  591. package/es/api/resources/Wallet.js.map +0 -1
  592. package/es/api/resources/statistic/Accountant.d.ts +0 -59
  593. package/es/api/resources/statistic/Accountant.d.ts.map +0 -1
  594. package/es/api/resources/statistic/Accountant.js +0 -86
  595. package/es/api/resources/statistic/Accountant.js.map +0 -1
  596. package/es/api/resources/statistic/Direction.d.ts +0 -11
  597. package/es/api/resources/statistic/Direction.d.ts.map +0 -1
  598. package/es/api/resources/statistic/Direction.js +0 -14
  599. package/es/api/resources/statistic/Direction.js.map +0 -1
  600. package/es/api/resources/statistic/ExpertAccountant.d.ts +0 -29
  601. package/es/api/resources/statistic/ExpertAccountant.d.ts.map +0 -1
  602. package/es/api/resources/statistic/ExpertAccountant.js +0 -41
  603. package/es/api/resources/statistic/ExpertAccountant.js.map +0 -1
  604. package/es/types/Enum/AdditionnalSells.d.ts +0 -7
  605. package/es/types/Enum/AdditionnalSells.d.ts.map +0 -1
  606. package/es/types/Enum/AdditionnalSells.js +0 -8
  607. package/es/types/Enum/AdditionnalSells.js.map +0 -1
  608. package/es/types/Enum/CustomerVat.d.ts +0 -24
  609. package/es/types/Enum/CustomerVat.d.ts.map +0 -1
  610. package/es/types/Enum/CustomerVat.js +0 -26
  611. package/es/types/Enum/CustomerVat.js.map +0 -1
  612. package/es/types/Enum/OperationLegalNotice.d.ts +0 -4
  613. package/es/types/Enum/OperationLegalNotice.d.ts.map +0 -1
  614. package/es/types/Enum/OperationLegalNotice.js +0 -5
  615. package/es/types/Enum/OperationLegalNotice.js.map +0 -1
  616. package/es/types/Enum/OrderStatus.d.ts +0 -6
  617. package/es/types/Enum/OrderStatus.d.ts.map +0 -1
  618. package/es/types/Enum/OrderStatus.js +0 -7
  619. package/es/types/Enum/OrderStatus.js.map +0 -1
  620. package/es/types/Enum/PrestationType.d.ts.map +0 -1
  621. package/es/types/Enum/PrestationType.js +0 -17
  622. package/es/types/Enum/PrestationType.js.map +0 -1
  623. package/es/types/Enum/Reason.d.ts +0 -4
  624. package/es/types/Enum/Reason.d.ts.map +0 -1
  625. package/es/types/Enum/Reason.js +0 -5
  626. package/es/types/Enum/Reason.js.map +0 -1
  627. package/es/types/Enum/Rules.d.ts +0 -2
  628. package/es/types/Enum/Rules.d.ts.map +0 -1
  629. package/es/types/Enum/Rules.js +0 -19
  630. package/es/types/Enum/Rules.js.map +0 -1
  631. package/es/types/Enum/StatisticType.d.ts +0 -16
  632. package/es/types/Enum/StatisticType.d.ts.map +0 -1
  633. package/es/types/Enum/StatisticType.js +0 -17
  634. package/es/types/Enum/StatisticType.js.map +0 -1
  635. package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts +0 -5
  636. package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts.map +0 -1
  637. package/es/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -24
  638. package/es/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
  639. package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts +0 -13
  640. package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts.map +0 -1
  641. package/es/types/Interface/api/dashboard/ReadVatDisbursed.js +0 -2
  642. package/es/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
  643. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts +0 -5
  644. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts.map +0 -1
  645. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -25
  646. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
  647. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +0 -4
  648. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +0 -1
  649. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -17
  650. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
  651. package/es/types/Interface/api/prestation/CreatePrestation.d.ts +0 -6
  652. package/es/types/Interface/api/prestation/CreatePrestation.d.ts.map +0 -1
  653. package/es/types/Interface/api/prestation/CreatePrestation.js +0 -28
  654. package/es/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
  655. package/es/types/Interface/api/qonto/CreateImportation.d.ts +0 -5
  656. package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +0 -1
  657. package/es/types/Interface/api/qonto/CreateImportation.js +0 -26
  658. package/es/types/Interface/api/qonto/CreateImportation.js.map +0 -1
  659. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +0 -5
  660. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +0 -1
  661. package/es/types/Interface/api/qonto/CreateQontoConnection.js +0 -24
  662. package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
  663. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +0 -4
  664. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +0 -1
  665. package/es/types/Interface/api/qonto/GetConnectionInformation.js +0 -19
  666. package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
  667. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +0 -5
  668. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +0 -1
  669. package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
  670. package/es/types/Interface/api/qonto/Query.d.ts +0 -77
  671. package/es/types/Interface/api/qonto/Query.d.ts.map +0 -1
  672. package/es/types/Interface/api/qonto/Query.js +0 -2
  673. package/es/types/Interface/api/qonto/Query.js.map +0 -1
  674. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts +0 -6
  675. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +0 -1
  676. package/es/types/Interface/api/qonto/ReadCreateConnection.js +0 -2
  677. package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
  678. package/es/types/Interface/api/qonto/UpdateConnection.d.ts +0 -4
  679. package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +0 -1
  680. package/es/types/Interface/api/qonto/UpdateConnection.js +0 -19
  681. package/es/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
  682. package/es/types/Interface/api/societyConfig/update.d.ts +0 -21
  683. package/es/types/Interface/api/societyConfig/update.d.ts.map +0 -1
  684. package/es/types/Interface/api/societyConfig/update.js.map +0 -1
  685. package/es/types/Interface/api/statistic/ExitRequest.d.ts +0 -108
  686. package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +0 -1
  687. package/es/types/Interface/api/statistic/ExitRequest.js +0 -2
  688. package/es/types/Interface/api/statistic/ExitRequest.js.map +0 -1
  689. package/es/types/Interface/api/statistic/QueryAccountant.d.ts +0 -6
  690. package/es/types/Interface/api/statistic/QueryAccountant.d.ts.map +0 -1
  691. package/es/types/Interface/api/statistic/QueryAccountant.js +0 -31
  692. package/es/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
  693. package/es/types/Interface/api/statistic/QueryDirection.d.ts +0 -6
  694. package/es/types/Interface/api/statistic/QueryDirection.d.ts.map +0 -1
  695. package/es/types/Interface/api/statistic/QueryDirection.js +0 -31
  696. package/es/types/Interface/api/statistic/QueryDirection.js.map +0 -1
  697. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts +0 -6
  698. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts.map +0 -1
  699. package/es/types/Interface/api/statistic/QueryExpertAccountant.js +0 -31
  700. package/es/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
  701. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts +0 -5
  702. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts.map +0 -1
  703. package/es/types/Interface/api/statistic/QueryGetAccountant.js +0 -24
  704. package/es/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
  705. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts +0 -5
  706. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts.map +0 -1
  707. package/es/types/Interface/api/statistic/QueryGetDirection.js +0 -24
  708. package/es/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
  709. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts +0 -5
  710. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts.map +0 -1
  711. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -24
  712. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
  713. package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts +0 -17
  714. package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts.map +0 -1
  715. package/es/types/Interface/api/terminationList/DestroyTerminationList.js +0 -96
  716. package/es/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
  717. package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts +0 -17
  718. package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts.map +0 -1
  719. package/es/types/Interface/api/terminationList/QueryTerminationList.js +0 -98
  720. package/es/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
  721. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts +0 -6
  722. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts.map +0 -1
  723. package/es/types/Interface/api/wallet/UpdateAttribution.js +0 -34
  724. package/es/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
  725. package/es/types/Interface/models/IPrestationHistory.d.ts +0 -13
  726. package/es/types/Interface/models/IPrestationHistory.d.ts.map +0 -1
  727. package/es/types/Interface/models/IPrestationHistory.js +0 -2
  728. package/es/types/Interface/models/IPrestationHistory.js.map +0 -1
  729. package/es/types/Interface/models/ISocietyRelance.d.ts.map +0 -1
  730. package/es/types/Interface/models/ISocietyRelance.js +0 -2
  731. package/es/types/Interface/models/ISocietyRelance.js.map +0 -1
  732. package/es/types/Interface/models/IStatistic.d.ts +0 -11
  733. package/es/types/Interface/models/IStatistic.d.ts.map +0 -1
  734. package/es/types/Interface/models/IStatistic.js +0 -2
  735. package/es/types/Interface/models/IStatistic.js.map +0 -1
  736. package/js/api/resources/LegalNotice.js +0 -18
  737. package/js/api/resources/LegalNotice.js.map +0 -1
  738. package/js/api/resources/PaymentExpectation.js +0 -20
  739. package/js/api/resources/PaymentExpectation.js.map +0 -1
  740. package/js/api/resources/SocietyConfig.js +0 -22
  741. package/js/api/resources/SocietyConfig.js.map +0 -1
  742. package/js/api/resources/TerminationList.js +0 -26
  743. package/js/api/resources/TerminationList.js.map +0 -1
  744. package/js/api/resources/Wallet.js +0 -18
  745. package/js/api/resources/Wallet.js.map +0 -1
  746. package/js/api/resources/statistic/Accountant.js +0 -150
  747. package/js/api/resources/statistic/Accountant.js.map +0 -1
  748. package/js/api/resources/statistic/Direction.js +0 -30
  749. package/js/api/resources/statistic/Direction.js.map +0 -1
  750. package/js/api/resources/statistic/ExpertAccountant.js +0 -75
  751. package/js/api/resources/statistic/ExpertAccountant.js.map +0 -1
  752. package/js/types/Enum/AdditionnalSells.js +0 -14
  753. package/js/types/Enum/AdditionnalSells.js.map +0 -1
  754. package/js/types/Enum/CustomerVat.js +0 -34
  755. package/js/types/Enum/CustomerVat.js.map +0 -1
  756. package/js/types/Enum/OperationLegalNotice.js +0 -11
  757. package/js/types/Enum/OperationLegalNotice.js.map +0 -1
  758. package/js/types/Enum/OrderStatus.js +0 -13
  759. package/js/types/Enum/OrderStatus.js.map +0 -1
  760. package/js/types/Enum/PrestationType.js +0 -23
  761. package/js/types/Enum/PrestationType.js.map +0 -1
  762. package/js/types/Enum/Reason.js +0 -11
  763. package/js/types/Enum/Reason.js.map +0 -1
  764. package/js/types/Enum/Rules.js +0 -7
  765. package/js/types/Enum/Rules.js.map +0 -1
  766. package/js/types/Enum/StatisticType.js +0 -23
  767. package/js/types/Enum/StatisticType.js.map +0 -1
  768. package/js/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -31
  769. package/js/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
  770. package/js/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
  771. package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -31
  772. package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
  773. package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -27
  774. package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
  775. package/js/types/Interface/api/prestation/CreatePrestation.js +0 -33
  776. package/js/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
  777. package/js/types/Interface/api/qonto/CreateImportation.js +0 -31
  778. package/js/types/Interface/api/qonto/CreateImportation.js.map +0 -1
  779. package/js/types/Interface/api/qonto/CreateQontoConnection.js +0 -31
  780. package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
  781. package/js/types/Interface/api/qonto/GetConnectionInformation.js +0 -29
  782. package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
  783. package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
  784. package/js/types/Interface/api/qonto/Query.js.map +0 -1
  785. package/js/types/Interface/api/qonto/ReadCreateConnection.js +0 -6
  786. package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
  787. package/js/types/Interface/api/qonto/UpdateConnection.js +0 -29
  788. package/js/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
  789. package/js/types/Interface/api/societyConfig/update.js +0 -65
  790. package/js/types/Interface/api/societyConfig/update.js.map +0 -1
  791. package/js/types/Interface/api/statistic/ExitRequest.js +0 -6
  792. package/js/types/Interface/api/statistic/ExitRequest.js.map +0 -1
  793. package/js/types/Interface/api/statistic/QueryAccountant.js +0 -35
  794. package/js/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
  795. package/js/types/Interface/api/statistic/QueryDirection.js +0 -35
  796. package/js/types/Interface/api/statistic/QueryDirection.js.map +0 -1
  797. package/js/types/Interface/api/statistic/QueryExpertAccountant.js +0 -35
  798. package/js/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
  799. package/js/types/Interface/api/statistic/QueryGetAccountant.js +0 -31
  800. package/js/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
  801. package/js/types/Interface/api/statistic/QueryGetDirection.js +0 -31
  802. package/js/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
  803. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -31
  804. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
  805. package/js/types/Interface/api/terminationList/DestroyTerminationList.js +0 -55
  806. package/js/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
  807. package/js/types/Interface/api/terminationList/QueryTerminationList.js +0 -55
  808. package/js/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
  809. package/js/types/Interface/api/wallet/UpdateAttribution.js +0 -35
  810. package/js/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
  811. package/js/types/Interface/models/IPrestationHistory.js +0 -6
  812. package/js/types/Interface/models/IPrestationHistory.js.map +0 -1
  813. package/js/types/Interface/models/ISocietyRelance.js +0 -6
  814. package/js/types/Interface/models/ISocietyRelance.js.map +0 -1
  815. package/js/types/Interface/models/IStatistic.js.map +0 -1
  816. package/ts/api/resources/LegalNotice.ts +0 -8
  817. package/ts/api/resources/PaymentExpectation.ts +0 -8
  818. package/ts/api/resources/SocietyConfig.ts +0 -12
  819. package/ts/api/resources/TerminationList.ts +0 -12
  820. package/ts/api/resources/Wallet.ts +0 -8
  821. package/ts/api/resources/statistic/Accountant.ts +0 -121
  822. package/ts/api/resources/statistic/Direction.ts +0 -17
  823. package/ts/api/resources/statistic/ExpertAccountant.ts +0 -56
  824. package/ts/types/Enum/AdditionnalSells.ts +0 -6
  825. package/ts/types/Enum/CustomerVat.ts +0 -24
  826. package/ts/types/Enum/OperationLegalNotice.ts +0 -3
  827. package/ts/types/Enum/OrderStatus.ts +0 -5
  828. package/ts/types/Enum/Reason.ts +0 -3
  829. package/ts/types/Enum/Rules.ts +0 -18
  830. package/ts/types/Enum/StatisticType.ts +0 -15
  831. package/ts/types/Interface/api/dashboard/QueryVatDisbursed.ts +0 -12
  832. package/ts/types/Interface/api/dashboard/ReadVatDisbursed.ts +0 -14
  833. package/ts/types/Interface/api/legalNotice/UpdateLegalNotice.ts +0 -13
  834. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +0 -6
  835. package/ts/types/Interface/api/prestation/CreatePrestation.ts +0 -15
  836. package/ts/types/Interface/api/qonto/CreateImportation.ts +0 -14
  837. package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +0 -12
  838. package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +0 -8
  839. package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +0 -12
  840. package/ts/types/Interface/api/qonto/Query.ts +0 -80
  841. package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +0 -6
  842. package/ts/types/Interface/api/qonto/UpdateConnection.ts +0 -8
  843. package/ts/types/Interface/api/societyConfig/update.ts +0 -103
  844. package/ts/types/Interface/api/statistic/ExitRequest.ts +0 -120
  845. package/ts/types/Interface/api/statistic/QueryAccountant.ts +0 -20
  846. package/ts/types/Interface/api/statistic/QueryDirection.ts +0 -20
  847. package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +0 -20
  848. package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +0 -14
  849. package/ts/types/Interface/api/statistic/QueryGetDirection.ts +0 -14
  850. package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +0 -14
  851. package/ts/types/Interface/api/terminationList/DestroyTerminationList.ts +0 -74
  852. package/ts/types/Interface/api/terminationList/QueryTerminationList.ts +0 -76
  853. package/ts/types/Interface/api/wallet/UpdateAttribution.ts +0 -23
  854. package/ts/types/Interface/models/IPrestationHistory.ts +0 -16
  855. package/ts/types/Interface/models/IStatistic.ts +0 -13
@@ -0,0 +1,205 @@
1
+ import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';
2
+ import { DiscountType } from '../../../types/Enum/CommercialManagement';
3
+
4
+ export class CommercialDocumentCommonHTML {
5
+ header = `<style>html {
6
+ -webkit-print-color-adjust: exact;
7
+ }</style><% if (settings && settings.isEdgingDisplayed) { %>
8
+ <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>
9
+ <% } %>`;
10
+
11
+ footer = `<div style="font-size: 8px; color: #DADCDF; text-align: center; margin-left: 40px; margin-right: 40px; display: block; width: 100%">
12
+ <% if (freeText) { %><%- freeText %><br/><br/><% } %>
13
+ <% 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/><% } %><% }%>
14
+ <%= 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 : '' %>
15
+ </div>`;
16
+
17
+ logo = `<div class="logo-placeholder">
18
+ <% if (logoUrl) { %><img src="<%= logoUrl %>" alt="logo" /><% } %>
19
+ </div>`;
20
+
21
+ company = `<div>
22
+ <% if (name) { %><p><%= name %><p><% } %>
23
+ <% if (number || street) {%><p><%}%><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) { %><% } %><% if (number || street) {%></p><%}%>
24
+ <% if (zipCode || city) {%><p><%}%><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>
25
+ </div>
26
+ <% if (phoneContact) { %><p><%= phoneContact %><p><% } %>
27
+ <% if (settings && settings.mailContact) { %><p><%= settings.mailContact %></p><% } %>`;
28
+
29
+ products = `<table class="full-width">
30
+ <thead>
31
+ <tr>
32
+ <td>Article</td>
33
+ <td>Quantité</td>
34
+ <td>P.U <%= disableVat !== true ? 'HT' : ''%></td>
35
+ <% if (shouldDisplayDiscountColumn) { %><td>Remise</td><% } %>
36
+ <% if (disableVat !== true) { %><td>TVA</td><% } %>
37
+ <td>Montant <%= disableVat !== true ? 'HT' : ''%></td>
38
+ </tr>
39
+ </thead>
40
+ <% if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>
41
+ <tr>
42
+ <td class="product-title">
43
+ <%= title %>
44
+ </td>
45
+ <td class="product-quantity">1</td>
46
+ <td class="product-price-without-vat"><%= depositFormatted %>€</td>
47
+ <td class="product-total-price-without-vat"><%= depositFormatted %>€</td>
48
+ </tr>
49
+ <% } %>
50
+ <% if (products) { %>
51
+ <% products.forEach(function (product) { %>
52
+ <tr>
53
+ <td class="product-title">
54
+ <% if(product.itemSaleName) { %><p class="product-name"><%= product.itemSaleName %></p><% } %>
55
+ <% if(product.comment) { %><p class="product-description"><%= product.comment %></p><% } %>
56
+ </td>
57
+ <td class="product-quantity"><%= product.quantity ? product.quantity : '' %><%= product.unitFormatted ? product.unitFormatted : '' %></td>
58
+ <td class="product-price-without-vat"><% if(product.priceTaxExcludedFormatted) { %><%= product.priceTaxExcludedFormatted + '€' %><% } %></td>
59
+ <% if (shouldDisplayDiscountColumn) { %>
60
+ <td class="product-discount">
61
+ <% if (product.discountFormatted) { %>
62
+ <p style="margin-bottom: 0px;"><%= product.discountFormatted %>€</p>
63
+ <% if(product.discountType === ${DiscountType.PERCENT}) { %><span class="discount-percent">(<%= product.discountTypeFormatted %>)</span><% } %>
64
+ <% } %>
65
+ </td>
66
+ <% } %>
67
+ <% if(disableVat !== true) { %><td class="product-vat"><% if(product.vatFormatted) { %><%= product.vatFormatted %><% } %></td><% } %>
68
+ <td class="product-total-price-without-vat"><% if(product.totalTaxExcludedFormatted) { %><%= product.totalTaxExcludedFormatted + '€' %><% } %></td>
69
+ </tr>
70
+ <% }) %>
71
+ <% } %>
72
+ </table>`;
73
+
74
+ vatRecapitulation = `<table style="width: 80%;">
75
+ <thead>
76
+ <tr>
77
+ <td>Base</td>
78
+ <td>Taux</td>
79
+ <td>Montant TVA</td>
80
+ </tr>
81
+ </thead>
82
+ <% vats.forEach(function (vat) { %>
83
+ <tr class="vat-detail-row">
84
+ <td><%= vat.baseFormatted %>€</td>
85
+ <td><%= vat.name %></td>
86
+ <td><%= vat.amountFormatted %>€</td>
87
+ </tr>
88
+ <% }) %>
89
+ </table>`;
90
+
91
+ amountRecapitulation = `<table class="summary-prices" style="width: 40%">
92
+ <thead>
93
+ <tr>
94
+ <td colspan="2">Récapitulatif</td>
95
+ </tr>
96
+ </thead>
97
+ <% if (idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) { %>
98
+ <% if (disableVat !== true) { %>
99
+ <tr>
100
+ <td>Total HT</td>
101
+ <td><%= totalTaxExcludedFormatted %>€</td>
102
+ </tr>
103
+ <% } %>
104
+ <% if (generalDiscountFormatted) { %>
105
+ <tr>
106
+ <td>Remise</td>
107
+ <td><%= generalDiscountFormatted %>€</td>
108
+ </tr>
109
+ <% } %>
110
+ <% if (disableVat !== true) { %>
111
+ <tr>
112
+ <td>TVA</td>
113
+ <td><%= totalVatAmountFormatted %>€</td>
114
+ </tr>
115
+ <% } %>
116
+ <% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>
117
+ <tr>
118
+ <td>Total <%= disableVat !== true ? 'TTC' : ''%></td>
119
+ <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
120
+ </tr>
121
+ <% } %>
122
+ <% if (depositFormatted) { %>
123
+ <tr>
124
+ <td>Acompte</td>
125
+ <td><%= depositFormatted %>€</td>
126
+ </tr>
127
+ <% } %>
128
+ <% } %>
129
+ <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
130
+ <tr>
131
+ <td><b>Net à payer</b></td>
132
+ <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
133
+ </tr>
134
+ <% } %>
135
+ </table>`;
136
+
137
+ 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">
138
+ <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"/>
139
+ <path d="M14.9716 5.02051H10.3726V12.5219H14.9716V5.02051Z" fill="#FF5F00"/>
140
+ <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"/>
141
+ <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"/>
142
+ <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"/>
143
+ <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"/>
144
+ <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"/>
145
+ <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"/>
146
+ <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"/>
147
+ </svg></a>`;
148
+
149
+ style = `@import url("<%= font.url %>");
150
+
151
+ html { padding: 0; margin: 0px; }
152
+ body { width: 100%; margin: 0px; font-family: "<%= font.name %>"; font-size: 14px; font-weight: normal; }
153
+ .row { display: flex; }
154
+ .items-end { align-items: end; }
155
+ .space-between { justify-content: space-between; }
156
+ .full-width { width: 100% }
157
+ .mt-30 { margin-top: 30px }
158
+ .mt-25 { margin-top: 25px }
159
+ .mt-20 { margin-top: 20px }
160
+ .mt-10 { margin-top: 10px }
161
+ .align-center { text-align: center; }
162
+ .margin-auto { margin: auto; }
163
+ .justify-center { justify-content: center; }
164
+ table { font-size: 14px; font-style: normal; }
165
+
166
+ /* Header */
167
+ .society-informations p { margin: 0px; }
168
+ .society-informations > div p { font-weight: bold; }
169
+ .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}
170
+ .logo-placeholder > svg, .logo-placeholder > img { max-width: 100%; max-height: 150px; }
171
+ .document-reference { font-size: 20px; }
172
+ .customer-border { border: 2px solid #EAEAEA; border-radius: 6px; padding: 7px; }
173
+
174
+ /* Body */
175
+ table { border-spacing: 1px; border-collapse: collapse; }
176
+ table, th, td { border: 1px solid #DADCDF; }
177
+ table tr td p { margin: 0px; }
178
+ table tbody tr td { padding: 10px; background-color: white; vertical-align: baseline;}
179
+ table thead tr td { background-color: <%= settings && settings.color ? settings.color : '#EAEAEA' %>; padding: 10px; }
180
+ table thead tr td:not(:first-child) { text-align: right; }
181
+ table .product-description { color: #838384 }
182
+ table .product-quantity, table .product-price-without-vat, table .product-vat, table .product-total-price-without-vat, table .product-discount { text-align: right; }
183
+ table td.product-quantity, table td.product-vat { width: 10% }
184
+ td.product-discount { width: 12.5% }
185
+ table td.product-total-price-without-vat, table td.product-price-without-vat { width: 15% }
186
+ table tr.vat-detail-row td:not(:first-child) { text-align: right; }
187
+ table.summary-prices tr td:not(:first-child) {text-align: right;}
188
+ table.summary-prices tr td:first-child {border-right: none;}
189
+ table .discount-percent { color: #838384; font-size: smaller }
190
+ 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; }
191
+ a.payment-button svg { margin-left: 15px; }
192
+ <% if (settings && settings.areLinesSeparationHidden) { %>
193
+ td { border-top: none !important; border-bottom: none !important; }
194
+ <% } %>
195
+ <% if (settings && settings.areColumnsSeparationHidden) { %>
196
+ td { border-left: none !important; border-right: none !important; }
197
+ <% } %>
198
+ <% if (settings && settings.areExternalBordersHidden) { %>
199
+ table { border: none !important }
200
+ table tr:last-child td { border-bottom: none !important }
201
+ table thead td { border-top: none !important }
202
+ table td:first-child { border-left: none !important }
203
+ table td:last-child { border-right: none !important }
204
+ <% } %>`;
205
+ }
@@ -0,0 +1,24 @@
1
+ import { sumBy as _sumBy } from 'lodash';
2
+ import { Vat, VatType } from '../../types/Enum/Vat';
3
+ import { integerToFormattedAmountString } from '../amount';
4
+ import { ReadProductEditing, ReadVatEditing } from '../../types';
5
+
6
+ export function getAmount(amount: number | null, vatValue: number): number {
7
+ const _amount = amount ?? 0;
8
+ return _amount * (vatValue / 100);
9
+ }
10
+
11
+ export function getById(id: number): VatType | undefined {
12
+ return Object.values(Vat).find((vat) => vat.id === id);
13
+ }
14
+
15
+ export function vatToReadVatEditing(products: ReadProductEditing[]): ReadVatEditing {
16
+ const { idVat } = products[0];
17
+ return {
18
+ name: getById(idVat)?.saleName ?? '',
19
+ amount: _sumBy(products, (p) => getAmount(p.totalTaxExcluded, getById(idVat)?.value ?? 0)),
20
+ value: getById(idVat)?.value ?? 0,
21
+ baseFormatted: integerToFormattedAmountString(_sumBy(products, (p) => (p.totalTaxExcluded ? +p.totalTaxExcluded : 0))),
22
+ amountFormatted: integerToFormattedAmountString((_sumBy(products, (p) => (p.totalTaxExcluded ? +p.totalTaxExcluded : 0)) * ((getById(idVat)?.value ?? 0))) / 100),
23
+ };
24
+ }
package/ts/utils/index.ts CHANGED
@@ -7,3 +7,5 @@ export * from './balanceSheetModule';
7
7
  export * from './siretValidation';
8
8
  export * from './task';
9
9
  export * from './social';
10
+ export * from './commercialManagement/document';
11
+ export * from './amount';
package/ts/utils/task.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import { Role } from '../types/Enum/Role';
2
- import { TaskResponseType, RoleAvailableForTask } from '../types/Enum/TaskResponseType';
3
2
 
4
3
  const getIdRoleUsedForTask = (listRoles: number[]): number => {
5
4
  let idRole = 0;
6
- if (listRoles.includes(Role.COMMERCIAL)) {
5
+ if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {
7
6
  idRole = Role.COMMERCIAL;
8
7
  } else if (listRoles.includes(Role.JURIDIC)) {
9
8
  idRole = Role.JURIDIC;
@@ -11,35 +10,28 @@ const getIdRoleUsedForTask = (listRoles: number[]): number => {
11
10
  idRole = Role.SOCIAL;
12
11
  } else if (listRoles.includes(Role.FACTURATION)) {
13
12
  idRole = Role.FACTURATION;
14
- } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
13
+ } else if (listRoles.includes(Role.CUSTOMER_SUCCESS) || listRoles.includes(Role.CUSTOMER_SUCCESS_MANAGER)) {
15
14
  idRole = Role.CUSTOMER_SUCCESS;
16
- } else if (listRoles.includes(Role.FRONT_OFFICE)) {
15
+ } else if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_MANAGER)) {
17
16
  idRole = Role.FRONT_OFFICE;
18
17
  }
19
18
  return idRole;
20
19
  };
21
20
 
22
- // const getIdRoleUsedForManagerTask = (listRoles: number[]): number => {
23
- // let idRole = 0;
24
- // if (listRoles.includes(Role.COMMERCIAL)) {
25
- // idRole = Role.MANAGER;
26
- // } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {
27
- // idRole = Role.MANAGER;
28
- // } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
29
- // idRole = Role.MANAGER;
30
- // } else if (listRoles.includes(Role.FRONT_OFFICE)) {
31
- // idRole = Role.MANAGER;
32
- // }
33
- // return idRole;
34
- // };
35
-
36
- const getIdRoleUsedForAttribution = (isIntern: boolean, idTaskType: number): number | undefined => {
37
- const taskTypeList = isIntern ? TaskResponseType.INTERN.types : TaskResponseType.EXTERN.types;
38
- return taskTypeList.find((taskType) => taskType.id === idTaskType)?.role;
21
+ const getIdRoleUsedForManagerTask = (listRoles: number[]): number => {
22
+ let idRole = 0;
23
+ if (listRoles.includes(Role.COMMERCIAL)) {
24
+ idRole = Role.COMMERCIAL_MANAGER;
25
+ } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {
26
+ idRole = Role.MANAGER;
27
+ } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
28
+ idRole = Role.CUSTOMER_SUCCESS_MANAGER;
29
+ } else if (listRoles.includes(Role.FRONT_OFFICE)) {
30
+ idRole = Role.FRONT_MANAGER;
31
+ }
32
+ return idRole;
39
33
  };
40
34
 
41
- const getIdRoleUsedForGetTaskOfUser = (idRole: number): boolean => !!Object.values(RoleAvailableForTask).find((role) => role === idRole);
42
-
43
35
  export {
44
- getIdRoleUsedForTask, getIdRoleUsedForAttribution, getIdRoleUsedForGetTaskOfUser,
36
+ getIdRoleUsedForTask, getIdRoleUsedForManagerTask,
45
37
  };
@@ -4,11 +4,13 @@ const getIdRoleUsedForEmail = (listRoles: number[]): number => {
4
4
  let idRole = Role.CUSTOMER_SUCCESS;
5
5
  if (listRoles.includes(Role.FACTURATION)) {
6
6
  idRole = Role.FACTURATION;
7
+ } else if (listRoles.includes(Role.BACK_MANAGER)) {
8
+ idRole = Role.BACK_MANAGER;
7
9
  } else if (listRoles.includes(Role.FRONT_OFFICE)) {
8
10
  idRole = Role.FRONT_OFFICE;
9
11
  } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
10
12
  idRole = Role.FRONT_OFFICE_EXPRESS;
11
- } else if (listRoles.includes(Role.COMMERCIAL)) {
13
+ } else if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {
12
14
  idRole = Role.COMMERCIAL;
13
15
  } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {
14
16
  idRole = Role.EXPERT_ACCOUNTANT;
@@ -1,6 +0,0 @@
1
- import { CreatePrestation, UpdateLegalNotice } from '../../types';
2
- import { Resource } from '../Resource';
3
- export declare class LegalNotice extends Resource {
4
- update(idLegalNotice: string, params: CreatePrestation): Promise<UpdateLegalNotice>;
5
- }
6
- //# sourceMappingURL=LegalNotice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegalNotice.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/LegalNotice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,WAAY,SAAQ,QAAQ;IACvC,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAGpF"}
@@ -1,7 +0,0 @@
1
- import { Resource } from '../Resource';
2
- export class LegalNotice extends Resource {
3
- update(idLegalNotice, params) {
4
- return this.axios.$post(`/legal-notices/${idLegalNotice}/prestations`, params);
5
- }
6
- }
7
- //# sourceMappingURL=LegalNotice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegalNotice.js","sourceRoot":"","sources":["../../../ts/api/resources/LegalNotice.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,WAAY,SAAQ,QAAQ;IACvC,MAAM,CAAC,aAAqB,EAAE,MAAwB;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,aAAa,cAAc,EAAE,MAAM,CAAC,CAAC;IACjF,CAAC;CACF","sourcesContent":["import { CreatePrestation, UpdateLegalNotice } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class LegalNotice extends Resource {\n update(idLegalNotice: string, params: CreatePrestation): Promise<UpdateLegalNotice> {\n return this.axios.$post(`/legal-notices/${idLegalNotice}/prestations`, params);\n }\n}\n"]}
@@ -1,6 +0,0 @@
1
- import { QueryGetPaymentExpectation } from '../../types';
2
- import { Resource } from '../Resource';
3
- export declare class PaymentExpectation extends Resource {
4
- get(params: QueryGetPaymentExpectation): Promise<PaymentExpectation>;
5
- }
6
- //# sourceMappingURL=PaymentExpectation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentExpectation.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/PaymentExpectation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,kBAAmB,SAAQ,QAAQ;IAC9C,GAAG,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAGrE"}
@@ -1,7 +0,0 @@
1
- import { Resource } from '../Resource';
2
- export class PaymentExpectation extends Resource {
3
- get(params) {
4
- return this.axios.$get('/payment-expectations', { params });
5
- }
6
- }
7
- //# sourceMappingURL=PaymentExpectation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentExpectation.js","sourceRoot":"","sources":["../../../ts/api/resources/PaymentExpectation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IAC9C,GAAG,CAAC,MAAkC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF","sourcesContent":["import { QueryGetPaymentExpectation } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class PaymentExpectation extends Resource {\n get(params: QueryGetPaymentExpectation): Promise<PaymentExpectation> {\n return this.axios.$get('/payment-expectations', { params });\n }\n}"]}
@@ -1,7 +0,0 @@
1
- import { ISocietyConfig, UpdateSocietyConfig } from '../../types';
2
- import { Resource } from '../Resource';
3
- export declare class SocietyConfig extends Resource {
4
- update(idSociety: number, id: number, params: UpdateSocietyConfig): Promise<ISocietyConfig>;
5
- get(idSociety: number): Promise<ISocietyConfig>;
6
- }
7
- //# sourceMappingURL=SocietyConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SocietyConfig.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/SocietyConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,aAAc,SAAQ,QAAQ;IACzC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,CAAC;IAI3F,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAGhD"}
@@ -1,10 +0,0 @@
1
- import { Resource } from '../Resource';
2
- export class SocietyConfig extends Resource {
3
- update(idSociety, id, params) {
4
- return this.axios.$put(`/societies/${idSociety}/config/${id}`, params);
5
- }
6
- get(idSociety) {
7
- return this.axios.$get(`/societies/${idSociety}/config`);
8
- }
9
- }
10
- //# sourceMappingURL=SocietyConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SocietyConfig.js","sourceRoot":"","sources":["../../../ts/api/resources/SocietyConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,MAAM,CAAC,SAAiB,EAAE,EAAU,EAAE,MAA2B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,WAAW,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACzE,CAAC;IAED,GAAG,CAAC,SAAiB;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,SAAS,CAAC,CAAC;IAC3D,CAAC;CACF","sourcesContent":["import { ISocietyConfig, UpdateSocietyConfig } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class SocietyConfig extends Resource {\n update(idSociety: number, id: number, params: UpdateSocietyConfig): Promise<ISocietyConfig> {\n return this.axios.$put(`/societies/${idSociety}/config/${id}`, params);\n }\n\n get(idSociety: number): Promise<ISocietyConfig> {\n return this.axios.$get(`/societies/${idSociety}/config`);\n }\n}"]}
@@ -1,7 +0,0 @@
1
- import { DestroyTerminationList, QueryTerminationList } from '../../types';
2
- import { Resource } from '../Resource';
3
- export declare class TerminationList extends Resource {
4
- get(params: QueryTerminationList): Promise<TerminationList>;
5
- delete(params: DestroyTerminationList): Promise<number>;
6
- }
7
- //# sourceMappingURL=TerminationList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TerminationList.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/TerminationList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,eAAgB,SAAQ,QAAQ;IACpC,GAAG,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;IAI3D,MAAM,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC;CAG/D"}
@@ -1,10 +0,0 @@
1
- import { Resource } from '../Resource';
2
- export class TerminationList extends Resource {
3
- get(params) {
4
- return this.axios.$get('/termination-lists', { params });
5
- }
6
- delete(params) {
7
- return this.axios.$delete('/termination-lists', { params });
8
- }
9
- }
10
- //# sourceMappingURL=TerminationList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TerminationList.js","sourceRoot":"","sources":["../../../ts/api/resources/TerminationList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IACpC,GAAG,CAAC,MAA4B;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3D,CAAC;IAEM,MAAM,CAAC,MAA8B;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF","sourcesContent":["import { DestroyTerminationList, QueryTerminationList } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class TerminationList extends Resource {\n public get(params: QueryTerminationList): Promise<TerminationList> {\n return this.axios.$get('/termination-lists', { params });\n }\n\n public delete(params: DestroyTerminationList): Promise<number> {\n return this.axios.$delete('/termination-lists', { params });\n }\n}"]}
@@ -1,8 +0,0 @@
1
- import { Resource } from '../Resource';
2
- import { UpdateAttribution } from '../../types/Interface/api/wallet/UpdateAttribution';
3
- export declare class Wallet extends Resource {
4
- update(idUser: number, payload: UpdateAttribution): Promise<{
5
- message: string;
6
- }>;
7
- }
8
- //# sourceMappingURL=Wallet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEvF,qBAAa,MAAO,SAAQ,QAAQ;IAClC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAGjF"}
@@ -1,7 +0,0 @@
1
- import { Resource } from '../Resource';
2
- export class Wallet extends Resource {
3
- update(idUser, payload) {
4
- return this.axios.$put(`/users/${idUser}/wallets`, payload);
5
- }
6
- }
7
- //# sourceMappingURL=Wallet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Wallet.js","sourceRoot":"","sources":["../../../ts/api/resources/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,MAAO,SAAQ,QAAQ;IAClC,MAAM,CAAC,MAAc,EAAE,OAA0B;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { UpdateAttribution } from '../../types/Interface/api/wallet/UpdateAttribution';\n\nexport class Wallet extends Resource {\n update(idUser: number, payload: UpdateAttribution): Promise<{ message: string }> {\n return this.axios.$put(`/users/${idUser}/wallets`, payload);\n }\n}"]}
@@ -1,59 +0,0 @@
1
- import { Resource } from '../../Resource';
2
- import { QueryGetAccountant } from '../../../types';
3
- export declare class StatisticAccountant extends Resource {
4
- /**
5
- * Retourne les statistiques de demande de congé pour un manager comptable
6
- * @param { QueryGetAccountant } payload
7
- * @returns { JSON }
8
- */
9
- getAbsenceRequest(payload: QueryGetAccountant): Promise<JSON>;
10
- /**
11
- * Retourne les statistiques de relation client pour un comptable
12
- * @param { QueryGetAccountant } payload
13
- * @returns { JSON }
14
- */
15
- getCustomerRelation(payload: QueryGetAccountant): Promise<JSON>;
16
- /**
17
- * Retourne les statistiques de portefeuille pour un comptable
18
- * @param {QueryGetAccountant} payload
19
- * @returns {JSON}
20
- */
21
- getWallet(payload: QueryGetAccountant): Promise<JSON>;
22
- /**
23
- * Retourne les statistiques d'application pour un comptable
24
- * @param { QueryGetAccountant} payload
25
- * @returns {JSON}
26
- */
27
- getApplication(payload: QueryGetAccountant): Promise<JSON>;
28
- /**
29
- * Retourne les statistiques de production pour un comptable
30
- * @param {QueryGetAccountant} payload
31
- * @returns {JSON}
32
- */
33
- getProduction(payload: QueryGetAccountant): Promise<JSON>;
34
- /**
35
- * Retourne les statistiques d'IS / IR pour un comptable
36
- * @param {QueryGetAccountant} payload
37
- * @returns {JSON}
38
- */
39
- getIsIr(payload: QueryGetAccountant): Promise<JSON>;
40
- /**
41
- * Retourne les statistiques d'IS / IR pour un comptable
42
- * @param {QueryGetAccountant} payload
43
- * @returns {JSON}
44
- */
45
- getTaxes(payload: QueryGetAccountant): Promise<JSON>;
46
- /**
47
- * Retourne les statistiques de bilan pour un comptable
48
- * @param {QueryGetAccountant} payload
49
- * @returns {JSON}
50
- */
51
- getBalanceSheet(payload: QueryGetAccountant): Promise<JSON>;
52
- /**
53
- * Retourne les statistiques de vente additionnel pour un comptable
54
- * @param {QueryGetAccountant} payload
55
- * @returns {JSON}
56
- */
57
- getAdditionnalSell(payload: QueryGetAccountant): Promise<JSON>;
58
- }
59
- //# sourceMappingURL=Accountant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accountant.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/statistic/Accountant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAiB,MAAM,gBAAgB,CAAC;AAEnE,qBAAa,mBAAoB,SAAQ,QAAQ;IAC/C;;;;OAIG;IACI,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQpE;;;;OAIG;IACI,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQtE;;;;OAIG;IACI,SAAS,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ5D;;;;OAIG;IACI,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQjE;;;;OAIG;IACI,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQhE;;;;OAIG;IACI,OAAO,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ1D;;;;OAIG;IACI,QAAQ,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ3D;;;;OAIG;IACI,eAAe,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQlE;;;;OAIG;IACI,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CAOtE"}
@@ -1,86 +0,0 @@
1
- import { Resource } from '../../Resource';
2
- import { StatisticType } from '../../../types';
3
- export class StatisticAccountant extends Resource {
4
- /**
5
- * Retourne les statistiques de demande de congé pour un manager comptable
6
- * @param { QueryGetAccountant } payload
7
- * @returns { JSON }
8
- */
9
- getAbsenceRequest(payload) {
10
- const params = Object.assign(Object.assign({}, payload), { type: StatisticType.DIRECTION });
11
- return this.axios.$get('/statistic-accountant/absence-request', { params });
12
- }
13
- /**
14
- * Retourne les statistiques de relation client pour un comptable
15
- * @param { QueryGetAccountant } payload
16
- * @returns { JSON }
17
- */
18
- getCustomerRelation(payload) {
19
- const params = Object.assign(Object.assign({}, payload), { type: StatisticType.ACCOUNTANT_CUSTOMER_RELATION });
20
- return this.axios.$get('/statistic-accountant', { params });
21
- }
22
- /**
23
- * Retourne les statistiques de portefeuille pour un comptable
24
- * @param {QueryGetAccountant} payload
25
- * @returns {JSON}
26
- */
27
- getWallet(payload) {
28
- const params = Object.assign(Object.assign({}, payload), { type: StatisticType.ACCOUNTANT_WALLET });
29
- return this.axios.$get('/statistic-accountant', { params });
30
- }
31
- /**
32
- * Retourne les statistiques d'application pour un comptable
33
- * @param { QueryGetAccountant} payload
34
- * @returns {JSON}
35
- */
36
- getApplication(payload) {
37
- const params = Object.assign(Object.assign({}, payload), { type: StatisticType.ACCOUNTANT_APPLICATION });
38
- return this.axios.$get('/statistic-accountant', { params });
39
- }
40
- /**
41
- * Retourne les statistiques de production pour un comptable
42
- * @param {QueryGetAccountant} payload
43
- * @returns {JSON}
44
- */
45
- getProduction(payload) {
46
- const params = Object.assign(Object.assign({}, payload), { type: StatisticType.ACCOUNTANT_PRODUCTION });
47
- return this.axios.$get('/statistic-accountant', { params });
48
- }
49
- /**
50
- * Retourne les statistiques d'IS / IR pour un comptable
51
- * @param {QueryGetAccountant} payload
52
- * @returns {JSON}
53
- */
54
- getIsIr(payload) {
55
- const params = Object.assign(Object.assign({}, payload), { type: StatisticType.ACCOUNTANT_IS_IR });
56
- return this.axios.$get('/statistic-accountant', { params });
57
- }
58
- /**
59
- * Retourne les statistiques d'IS / IR pour un comptable
60
- * @param {QueryGetAccountant} payload
61
- * @returns {JSON}
62
- */
63
- getTaxes(payload) {
64
- const params = Object.assign(Object.assign({}, payload), { type: StatisticType.ACCOUNTANT_VAT });
65
- return this.axios.$get('/statistic-accountant', { params });
66
- }
67
- /**
68
- * Retourne les statistiques de bilan pour un comptable
69
- * @param {QueryGetAccountant} payload
70
- * @returns {JSON}
71
- */
72
- getBalanceSheet(payload) {
73
- const params = Object.assign(Object.assign({}, payload), { type: StatisticType.ACCOUNTANT_BALANCE_SHEET });
74
- return this.axios.$get('/statistic-accountant', { params });
75
- }
76
- /**
77
- * Retourne les statistiques de vente additionnel pour un comptable
78
- * @param {QueryGetAccountant} payload
79
- * @returns {JSON}
80
- */
81
- getAdditionnalSell(payload) {
82
- const params = Object.assign(Object.assign({}, payload), { type: StatisticType.ACCOUNTANT_ADDITIONNAL_SELL });
83
- return this.axios.$get('/statistic-accountant', { params });
84
- }
85
- }
86
- //# sourceMappingURL=Accountant.js.map