@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
@@ -6,6 +6,7 @@ export interface IProduct {
6
6
  id?: number;
7
7
  name: string;
8
8
  comment: string | null;
9
+ isFree: boolean;
9
10
  codeProduct: string | null;
10
11
  priceTaxExcluded: number;
11
12
  idVAT: number;
@@ -1,19 +1,21 @@
1
1
  import { IVat } from './IVat';
2
2
  import { IProduct } from './IProduct';
3
+ import { DiscountType } from '../../Enum/CommercialManagement';
3
4
 
4
5
  // itemsEstimates
5
6
  export interface IProductInvoice {
6
7
  id?: number;
7
8
  idEstimateInvoice: number;
8
9
  idProduct: number | null;
9
- idVAT: number;
10
+ idVat: number;
10
11
  unit: number;
11
12
  type: number;
12
13
  itemSaleName: string | null;
13
14
  itemCodeProduct: string | null;
14
15
  priceTaxExcluded: number;
15
16
  quantity: number;
16
- discount: number | null;
17
+ discount2: number | null;
18
+ discountType: DiscountType | null;
17
19
  comment: string | null;
18
20
  reorder: number | null;
19
21
  createdAt?: Date | null;
@@ -21,5 +23,5 @@ export interface IProductInvoice {
21
23
 
22
24
  // Associations
23
25
  vat?: IVat;
24
- product: IProduct;
26
+ product?: IProduct;
25
27
  }
@@ -48,7 +48,7 @@ import { ISms } from './ISms';
48
48
  import { IUser } from './IUser';
49
49
  import { ISocietyEvent } from './ISocietyEvent';
50
50
  import {
51
- ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile,
51
+ ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction,
52
52
  } from '../..';
53
53
  import { IBrandType } from './IBrandType';
54
54
 
@@ -204,5 +204,4 @@ export interface ISociety {
204
204
  events: ISocietyEvent[];
205
205
  mails: IMail[];
206
206
  transactions: IAccountingTransaction[];
207
- fecFile: IFecFile | null
208
207
  }
@@ -1,3 +1,5 @@
1
+ import { FontIds, LogoAlignment } from '../../Enum/CommercialManagement';
2
+
1
3
  // societyGescom
2
4
  export interface ISocietyGescom {
3
5
  id?: number;
@@ -19,15 +21,26 @@ export interface ISocietyGescom {
19
21
  bonPour?: boolean | null;
20
22
  acceptCheque?: boolean | null;
21
23
  mentionAutoent?: boolean | null;
22
- freeText?: string | null;
23
24
  startInvoice?: number | null;
24
25
  startEstimate?: number | null;
25
26
  paymentsAccepted?: boolean | null;
26
27
  stripePaymentByDefault?: boolean;
27
28
  displayLogo?: boolean | null;
29
+ cgv?: string | null;
28
30
  invoiceCgv?: boolean | null;
29
31
  template?: number | null;
30
32
  color?: string | null;
33
+ commercialName?: string | null;
34
+ freeInvoiceText?: string | null;
35
+ freeEstimateText?: string | null;
36
+ logoAlignment?: LogoAlignment | null;
37
+ isEdgingDisplayed?: boolean;
38
+ edgingColor?: string;
39
+ isCoordinatesFrameDisplayed?: boolean;
40
+ areLinesSeparationHidden?: boolean;
41
+ areColumnsSeparationHidden?: boolean;
42
+ areExternalBordersHidden?: boolean;
43
+ idFont?: FontIds | null;
31
44
  idSociety?: number | null;
32
45
  idTvaMargin?: number | null;
33
46
  createdAt?: Date | null;
@@ -1,5 +1,5 @@
1
1
  import { IAccount } from './IAccount';
2
- import { ISociety, PartnerType } from '../..';
2
+ import { PartnerType } from '../..';
3
3
 
4
4
  // societyPartner
5
5
  export interface ISocietyPartner {
@@ -18,5 +18,4 @@ export interface ISocietyPartner {
18
18
 
19
19
  // Associations
20
20
  account: IAccount;
21
- society?: ISociety
22
21
  }
@@ -16,7 +16,7 @@ export interface ITask {
16
16
  idSociety: number,
17
17
  description?: string | null,
18
18
  idRole?: number,
19
- idService?: number,
19
+ idUser?: number,
20
20
  idMail?: number,
21
21
  deadlineAt: Date,
22
22
  idUserWhoProcessed?: number,
@@ -29,7 +29,7 @@ export interface ITask {
29
29
  userWhoCreated?: IUser;
30
30
  society?: ISociety;
31
31
  role?: IRole;
32
- service?: IRole;
32
+ user?: IUser;
33
33
  userWhoProcessed?: IUser;
34
34
  userWhoRefused?: IUser;
35
35
  calendarEvent?: ICalendarEvent;
package/ts/types/index.ts CHANGED
@@ -142,7 +142,6 @@ export * from './Interface/models/IPermission';
142
142
  export * from './Interface/models/IPhoneNumber';
143
143
  export * from './Interface/models/IPhonePrefix';
144
144
  export * from './Interface/models/IPhonePrefixChild';
145
- export * from './Interface/models/IPrestationHistory';
146
145
  export * from './Interface/models/IPrestation';
147
146
  export * from './Interface/models/IPrestationComplementary';
148
147
  export * from './Interface/models/IPrestationList';
@@ -194,7 +193,7 @@ export * from './Interface/models/ISocietyJuridical';
194
193
  export * from './Interface/models/ISocietyNote';
195
194
  export * from './Interface/models/ISocietyPartner';
196
195
  export * from './Interface/models/ISocietyProceding';
197
- export * from './Interface/models/ISocietyRelance';
196
+ export * from './Interface/models/IInvoiceReminder';
198
197
  export * from './Interface/models/ISocietySocial';
199
198
  export * from './Interface/models/ISocietySoftware';
200
199
  export * from './Interface/models/ISocietyStat';
@@ -293,7 +292,6 @@ export * from './Interface/models/IAccountingTransaction_new';
293
292
  export * from './Interface/models/IExerciceNote';
294
293
  export * from './Interface/models/IRevisionGuide';
295
294
  export * from './Interface/models/ISponsorshipWithSponsorInfo';
296
- export * from './Interface/models/IStatistic';
297
295
  export * from './Interface/models/ILastUpdateConnection';
298
296
  export * from './Interface/models/IAccountsSectors';
299
297
  export * from './Interface/models/IAnswerType';
@@ -314,12 +312,15 @@ export * from './Interface/models/IMobileNotificationLog';
314
312
  export * from './Interface/models/IMobileNotificationSetting';
315
313
  export * from './Interface/models/ITimeRecorder';
316
314
  export * from './Interface/models/ILoanFile';
315
+ export * from './Interface/models/ICommercialMail';
317
316
 
318
317
  // Forms
319
318
  export * from './Form/FormAuthenticate';
320
319
  export * from './Form/FormConnector';
321
320
 
322
321
  // Enums
322
+ export * from './Enum/FolderFile';
323
+ export * from './Enum/CommercialManagement';
323
324
  export * from './Enum/Civility';
324
325
  export * from './Enum/Registration';
325
326
  export * from './Enum/Aspone';
@@ -373,9 +374,7 @@ export * from './Enum/GlobalRegime';
373
374
  export * from './Enum/TaxSystem';
374
375
  export * from './Enum/FiscalRegime';
375
376
  export * from './Enum/Activity';
376
- export * from './Enum/AdditionnalSells';
377
377
  export * from './Enum/CerfaType';
378
- export * from './Enum/StatisticType';
379
378
  export * from './Enum/StockType';
380
379
  export * from './Enum/SaleType';
381
380
  export * from './Enum/TypePayment';
@@ -390,7 +389,7 @@ export * from './Enum/RevisionGuide';
390
389
  export * from './Enum/Util';
391
390
  export * from './Enum/RegisterCategory';
392
391
  export * from './Enum/FieldSocietyStat';
393
- export * from './Enum/PrestationType';
392
+ export * from './Enum/Prestation';
394
393
  export * from './Enum/Supervision';
395
394
  export * from './Enum/Notification';
396
395
  export * from './Enum/Comment';
@@ -435,12 +434,6 @@ export * from './Enum/InternalService';
435
434
  export * from './Enum/SocietyTypeEvent';
436
435
  export * from './Enum/Call';
437
436
  export * from './Enum/ConnectionError';
438
- export * from './Enum/FolderFile';
439
- export * from './Enum/Rules';
440
- export * from './Enum/CustomerVat';
441
- export * from './Enum/Reason';
442
- export * from './Enum/OperationLegalNotice';
443
- export * from './Enum/OrderStatus';
444
437
 
445
438
  // Interfaces API
446
439
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
@@ -526,8 +519,6 @@ export * from './Interface/api/pdf/BillingDocumentData';
526
519
  export * from './Interface/api/dashboard/QueryBalanceBankAccount';
527
520
  export * from './Interface/api/dashboard/QueryTopBuys';
528
521
  export * from './Interface/api/dashboard/QueryTopProviders';
529
- export * from './Interface/api/dashboard/QueryVatDisbursed';
530
- export * from './Interface/api/dashboard/ReadVatDisbursed';
531
522
  export * from './Interface/api/dashboard/ReadBalanceBankAccount';
532
523
  export * from './Interface/api/dashboard/QueryGescom';
533
524
  export * from './Interface/api/dashboard/QueryDeadline';
@@ -624,13 +615,6 @@ export * from './Interface/api/pappers/ReadPappers';
624
615
  export * from './Interface/api/sponsorship/SendSponsorshipLink';
625
616
  export * from './Interface/api/sponsorship/CreateSponsorship';
626
617
  export * from './Interface/api/sponsorship/QuerySponsorship';
627
- export * from './Interface/api/statistic/ExitRequest';
628
- export * from './Interface/api/statistic/QueryExpertAccountant';
629
- export * from './Interface/api/statistic/QueryGetExpertAccountant';
630
- export * from './Interface/api/statistic/QueryAccountant';
631
- export * from './Interface/api/statistic/QueryGetAccountant';
632
- export * from './Interface/api/statistic/QueryDirection';
633
- export * from './Interface/api/statistic/QueryGetDirection';
634
618
  export * from './Interface/api/pappers/CreatePappers';
635
619
  export * from './Interface/api/bankAccount/DeleteTransaction';
636
620
  export * from './Interface/api/stripe/QueryStripe';
@@ -780,22 +764,14 @@ export * from './Interface/api/3cx/Create3cxLog';
780
764
  export * from './Interface/api/amount/FormattedAmount';
781
765
  export * from './Interface/api/customerActivity/CreateCustomerActivityReport';
782
766
  export * from './Interface/api/alert/CreateAlert';
767
+ export * from './Interface/api/commercialManagement/Create';
768
+ export * from './Interface/api/commercialManagement/Read';
769
+ export * from './Interface/api/commercialManagement/Query';
770
+ export * from './Interface/api/commercialManagement/Update';
771
+ export * from './Interface/api/connector/CreateConnector';
772
+ export * from './Interface/api/connector/QueryConnector';
783
773
  export * from './Interface/api/connection/QueryConnectionState';
784
774
  export * from './Interface/api/connection/ReadConnectionState';
785
- export * from './Interface/api/qonto/Query';
786
- export * from './Interface/api/qonto/CreateImportation';
787
- export * from './Interface/api/qonto/UpdateConnection';
788
- export * from './Interface/api/qonto/CreateQontoConnection';
789
- export * from './Interface/api/qonto/GetConnectionInformation';
790
- export * from './Interface/api/qonto/ProcessBankAccount';
791
- export * from './Interface/api/qonto/ReadCreateConnection';
792
- export * from './Interface/api/societyConfig/update';
793
- export * from './Interface/api/wallet/UpdateAttribution';
794
- export * from './Interface/api/prestation/CreatePrestation';
795
- export * from './Interface/api/paymentExpectation/QueryPaymentExpectation';
796
- export * from './Interface/api/legalNotice/UpdateLegalNotice';
797
- export * from './Interface/api/terminationList/QueryTerminationList';
798
- export * from './Interface/api/terminationList/DestroyTerminationList';
799
775
 
800
776
  // Enums types
801
777
  export * from './Interface/enum/Util';
@@ -0,0 +1,13 @@
1
+ export function integerToFormattedAmountString(value: number): string {
2
+ const abs = Math.abs(value / 100);
3
+ let integer = Math.trunc(abs);
4
+ let cents = Math.round(abs * 100 - integer * 100);
5
+
6
+ while (cents >= 100) {
7
+ cents = Math.max(0, cents - 100);
8
+ integer += 1;
9
+ }
10
+
11
+ const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();
12
+ return `${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;
13
+ }
@@ -16,15 +16,34 @@ type getBrandConfigParams = {
16
16
  };
17
17
 
18
18
  const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' => {
19
- const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;
20
- if (env) {
21
- if (env.indexOf('legalstart') > -1 || env.indexOf('Legalstart') > -1) {
19
+ if (nodeEnv) {
20
+ if (nodeEnv.indexOf('legalstart') > -1 || nodeEnv.indexOf('Legalstart') > -1) {
22
21
  return 'Legalstart';
23
22
  }
24
- if (env.indexOf('comptalib') > -1 || env.indexOf('Comptalib') > -1) {
23
+ if (nodeEnv.indexOf('comptalib') > -1 || nodeEnv.indexOf('Comptalib') > -1) {
25
24
  return 'Comptalib';
26
25
  }
27
- if (env.indexOf('pourcentage') > -1 || env.indexOf('Pourcentage') > -1) {
26
+ if (nodeEnv.indexOf('pourcentage') > -1 || nodeEnv.indexOf('Pourcentage') > -1) {
27
+ return 'Pourcentage';
28
+ }
29
+ } else if (process.env.NODE_ENV) {
30
+ if (process.env.NODE_ENV.indexOf('legalstart') > -1 || process.env.NODE_ENV.indexOf('Legalstart') > -1) {
31
+ return 'Legalstart';
32
+ }
33
+ if (process.env.NODE_ENV.indexOf('comptalib') > -1 || process.env.NODE_ENV.indexOf('Comptalib') > -1) {
34
+ return 'Comptalib';
35
+ }
36
+ if (process.env.NODE_ENV.indexOf('pourcentage') > -1 || process.env.NODE_ENV.indexOf('Pourcentage') > -1) {
37
+ return 'Pourcentage';
38
+ }
39
+ } else if (process.env.API_HOST) {
40
+ if (process.env.API_HOST.indexOf('legalstart') > -1 || process.env.API_HOST.indexOf('Legalstart') > -1) {
41
+ return 'Legalstart';
42
+ }
43
+ if (process.env.API_HOST.indexOf('comptalib') > -1 || process.env.API_HOST.indexOf('Comptalib') > -1) {
44
+ return 'Comptalib';
45
+ }
46
+ if (process.env.API_HOST.indexOf('pourcentage') > -1 || process.env.API_HOST.indexOf('Pourcentage') > -1) {
28
47
  return 'Pourcentage';
29
48
  }
30
49
  }
@@ -84,12 +103,11 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
84
103
  return brand;
85
104
  };
86
105
 
87
- const getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | 'Lecomptablefrancais' | null => {
106
+ const getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | null => {
88
107
  if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';
89
108
  if (email.indexOf('comptalib.com') > -1) return 'Comptalib';
90
109
  if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';
91
110
  if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';
92
- if (email.indexOf('lecomptablefrancais.fr') > -1) return 'Lecomptablefrancais';
93
111
  return null;
94
112
  };
95
113
 
@@ -0,0 +1,105 @@
1
+ import * as ejs from 'ejs';
2
+ import { orderBy as _orderBy, groupBy as _groupBy, sumBy as _sumBy } from 'lodash';
3
+ import * as dayjs from 'dayjs';
4
+ import { ReadCommercialDocumentTemplate, ReadDocumentEditing } from '../../types/Interface/api/commercialManagement/Read';
5
+ import { fontList } from '../../types/Enum/CommercialManagement';
6
+ import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';
7
+ import { integerToFormattedAmountString } from '../amount';
8
+ import { CommercialDocumentCommonHTML } from './templates/common';
9
+ import { bodyTemplate } from './templates/body';
10
+ import { productToReadProductEditing } from './product';
11
+ import { vatToReadVatEditing } from './vat';
12
+ import { CreateInvoiceDocument, CreatePreSaleDocument } from '../../types';
13
+
14
+ export function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument): ReadCommercialDocumentTemplate {
15
+ const products = _orderBy(payload.products.map((product) => productToReadProductEditing(product), 'reorder'));
16
+ // FIXME: Par quoi regrouper ceux qui ont un nom ""
17
+ const vats = _orderBy(Object.values(_groupBy(products, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value'));
18
+
19
+ const data: ReadDocumentEditing = {
20
+ ...payload,
21
+ paymentLink: payload.paymentLink ?? '#',
22
+ idEstimateInvoiceType,
23
+ phoneContact: payload.settings?.phoneContact ?? null,
24
+ products,
25
+ vats,
26
+ totalTaxExcluded: _sumBy(products, 'totalTaxExcluded'),
27
+ totalTaxIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount'),
28
+ totalTaxAndDiscountIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.generalDiscount2 ?? 0),
29
+ generalDiscountFormatted: payload.generalDiscount2 ? integerToFormattedAmountString(payload.generalDiscount2) : null,
30
+ depositFormatted: payload.deposit ? integerToFormattedAmountString(payload.deposit) : null,
31
+ totalTaxExcludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded')),
32
+ totalTaxIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.deposit ?? 0)),
33
+ totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.generalDiscount2 ?? 0) - (payload.deposit ?? 0)),
34
+ totalVatAmountFormatted: integerToFormattedAmountString(_sumBy(vats, 'amount')),
35
+ font: {
36
+ name: fontList.find((f) => f.id === payload.settings?.idFont)?.name ?? fontList[0].name,
37
+ url: fontList.find((f) => f.id === payload.settings?.idFont)?.link ?? fontList[0].link,
38
+ },
39
+ capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,
40
+ dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,
41
+ expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,
42
+ emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,
43
+ shouldDisplayDiscountColumn: !!products.find((p) => p.discount2 && p.discount2 > 0),
44
+ };
45
+
46
+ const commonTemplate = new CommercialDocumentCommonHTML();
47
+
48
+ let documentFreeText: string | null | undefined;
49
+
50
+ // A GERER EN FONCTION DU DOCUMENT
51
+ if ([EstimateInvoiceType.DEVIS, EstimateInvoiceType.BON].includes(idEstimateInvoiceType)) {
52
+ documentFreeText = payload?.settings?.freeEstimateText;
53
+ } else {
54
+ documentFreeText = payload?.settings?.freeInvoiceText;
55
+ }
56
+ //
57
+
58
+ return {
59
+ header: ejs.render(commonTemplate.header, data),
60
+ body: ejs.render(bodyTemplate, data),
61
+ footer: ejs.render(commonTemplate.footer, { ...data, freeText: documentFreeText ?? null }),
62
+ data,
63
+ };
64
+ }
65
+
66
+ export function generateAdvanceDocument(payload: CreateInvoiceDocument): ReadCommercialDocumentTemplate {
67
+ if (!payload.deposit) throw new Error('Aucun acompte défini');
68
+
69
+ const data: ReadDocumentEditing = {
70
+ ...payload,
71
+ paymentLink: payload.paymentLink ?? '#',
72
+ idEstimateInvoiceType: EstimateInvoiceType.ACOMPTE,
73
+ phoneContact: payload.settings?.phoneContact ?? null,
74
+ products: [],
75
+ vats: [],
76
+ totalTaxExcluded: payload.deposit,
77
+ totalTaxIncluded: payload.deposit,
78
+ totalTaxAndDiscountIncluded: payload.deposit,
79
+ generalDiscountFormatted: null,
80
+ depositFormatted: integerToFormattedAmountString(payload.deposit),
81
+ totalTaxExcludedFormatted: integerToFormattedAmountString(payload.deposit),
82
+ totalTaxIncludedFormatted: integerToFormattedAmountString(payload.deposit),
83
+ totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(payload.deposit),
84
+ totalVatAmountFormatted: integerToFormattedAmountString(0),
85
+ font: {
86
+ name: fontList.find((f) => f.id === payload.settings?.idFont)?.name ?? fontList[0].name,
87
+ url: fontList.find((f) => f.id === payload.settings?.idFont)?.link ?? fontList[0].link,
88
+ },
89
+ capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,
90
+ dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,
91
+ expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,
92
+ emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,
93
+ shouldDisplayDiscountColumn: false,
94
+ disableVat: true,
95
+ };
96
+
97
+ const commonTemplate = new CommercialDocumentCommonHTML();
98
+
99
+ return {
100
+ header: ejs.render(commonTemplate.header, data),
101
+ body: ejs.render(bodyTemplate, data),
102
+ footer: ejs.render(commonTemplate.footer, { ...data, freeText: payload?.settings?.freeInvoiceText ?? null }),
103
+ data,
104
+ };
105
+ }
@@ -0,0 +1,36 @@
1
+ import { isDefined } from 'class-validator';
2
+ import { IProductInvoice, ReadProductEditing } from '../../types';
3
+ import { Unit } from '../../types/Enum/Unit';
4
+ import { DiscountType } from '../../types/Enum/CommercialManagement';
5
+ import { getById } from './vat';
6
+ import { integerToFormattedAmountString } from '../amount';
7
+
8
+ export function getDiscount(product: IProductInvoice): number {
9
+ if (product.discount2 === null || product.discount2 === undefined || product.discount2 <= 0) return 0;
10
+
11
+ if (product.discountType === DiscountType.PERCENT) {
12
+ return ((product.priceTaxExcluded ?? 0) * ((product.discount2 ?? 0) / 100)) / 100;
13
+ } if (product.discountType === DiscountType.AMOUNT) {
14
+ return (product.discount2 ?? 0);
15
+ }
16
+
17
+ return 0;
18
+ }
19
+
20
+ export function getTotalTaxExcluded(product: IProductInvoice): number {
21
+ const discount = product.discount2 && product.discount2 > 0 ? getDiscount(product) : 0;
22
+ return (product.priceTaxExcluded ?? 0) * (product.quantity ?? 1) - (discount * (product.quantity ?? 1));
23
+ }
24
+
25
+ export function productToReadProductEditing(payload: IProductInvoice): ReadProductEditing {
26
+ return {
27
+ ...payload,
28
+ totalTaxExcluded: getTotalTaxExcluded(payload),
29
+ unitFormatted: Object.values(Unit).find((unit) => unit.id === payload.unit)?.shortName ?? '',
30
+ vatFormatted: getById(payload.idVat)?.saleName ?? '',
31
+ priceTaxExcludedFormatted: isDefined(payload.priceTaxExcluded) ? integerToFormattedAmountString(payload.priceTaxExcluded) : null,
32
+ totalTaxExcludedFormatted: isDefined(payload.priceTaxExcluded) ? integerToFormattedAmountString(getTotalTaxExcluded(payload)) : null,
33
+ discountFormatted: payload.discount2 && payload.discount2 > 0 ? integerToFormattedAmountString(getDiscount(payload)) : null,
34
+ discountTypeFormatted: payload.discount2 && payload.discount2 > 0 ? payload.discountType === DiscountType.PERCENT ? `${(payload.discount2 / 100).toFixed(2)}%` : `${integerToFormattedAmountString(payload.discount2)}€` : null,
35
+ };
36
+ }
@@ -0,0 +1,113 @@
1
+ import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';
2
+ import { CommercialDocumentCommonHTML } from './common';
3
+
4
+ const commonTemplate = new CommercialDocumentCommonHTML();
5
+
6
+ const headOfDocument = `<div class="row space-between">
7
+ <% if (settings && settings.logoAlignment === 'left') { %>
8
+ <div class="society-informations">
9
+ ${commonTemplate.logo}
10
+ ${commonTemplate.company}
11
+ </div>
12
+ <% } else { %>
13
+ <div class="society-informations">${commonTemplate.company}</div>
14
+ ${commonTemplate.logo}
15
+ <% } %>
16
+ </div>
17
+
18
+ <div class="row space-between items-end" style="margin-top: 10px">
19
+ <div style="width: 45%; margin-top: auto;">
20
+ <span class="document-reference">
21
+ <% if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>
22
+ Bon de commande
23
+ <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>
24
+ Devis
25
+ <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>
26
+ Facture
27
+ <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>
28
+ Avoir
29
+ <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>
30
+ Facture de solde
31
+ <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>
32
+ Facture d'acompte
33
+ <% } %>
34
+ <%= reference %></span><br/>
35
+ <% if(emissionDate) {%><span class="document-emission-date">Date d’émission : <%= emissionDateFormatted %></span><br/><% } %>
36
+ <% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>
37
+ <span class="document-due-date">
38
+ <% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>
39
+ Valide jusqu'au :
40
+ <% } else { %>
41
+ Date d'échéance :
42
+ <% } %>
43
+ <%= dueDateFormatted %></span>
44
+ <% } %>
45
+ <% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>
46
+ <span class="document-due-date">Date d'expiration : <%= expirationDateFormatted %></span>
47
+ <% } %>
48
+ <% if(termsOfPayment) { %>
49
+ <br/><p style="margin-bottom: 0px;"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? 'Conditions de règlement' : 'Date limite de règlement' %> : <%= termsOfPayment %></p>
50
+ <% } %>
51
+ </div>
52
+ <div style="width: 40%; margin-top: auto;">
53
+ <p>Client</p>
54
+ <div class="<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>">
55
+ <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>
56
+ <% if(thirdParty.company) {%><%= thirdParty.company %><br/><% } %>
57
+ <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>
58
+ <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %>
59
+ </div>
60
+ </div>
61
+ </div>`;
62
+
63
+ export const bodyTemplate = `<html>
64
+
65
+ <body>
66
+
67
+ ${headOfDocument}
68
+
69
+ <div class="row mt-25">
70
+ <% if (title) { %>Titre : <%= title %><% } %>
71
+ </div>
72
+
73
+ <div class="row mt-10">${commonTemplate.products}</div>
74
+
75
+ <div class="row space-between mt-20">
76
+ <div style="max-width: 55%;">
77
+ <% if (disableVat !== true && vats.length) { %>
78
+ ${commonTemplate.vatRecapitulation}
79
+ <% } %>
80
+ <% if (vatMention) { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
81
+ <% if (comment) { %>
82
+ <p class="mt-20">Commentaire :<br/>
83
+ <%= comment %>
84
+ <% } %>
85
+ </div>
86
+
87
+ ${commonTemplate.amountRecapitulation}
88
+
89
+ </div>
90
+
91
+ <% if ((settings && (settings.iban || settings.bic)) || isStripeAllowed) { %>
92
+ <div class="row mt-30 space-between">
93
+ <div>
94
+ <% if (settings && (settings.iban || settings.bic)) { %>
95
+ <% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>
96
+ <% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>
97
+ <% } %>
98
+ </div>
99
+ <% if (isStripeAllowed) { %>
100
+ <div style="text-align: right">${commonTemplate.paymentButton}</div>
101
+ <% } %>
102
+ </div>
103
+ <% } %>
104
+
105
+ <% if (cgv) { %>
106
+ <%- cgv %>
107
+ <% } %>
108
+ </body>
109
+
110
+ <style>
111
+ ${commonTemplate.style}
112
+ </style>
113
+ </html>`;