@silexpert/core 2.0.125 → 2.0.126-beta.0

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 (639) hide show
  1. package/dist/{index-CL2xcnsB.d.mts → index-CvxgpFhm.d.mts} +9763 -9655
  2. package/dist/index-CvxgpFhm.d.mts.map +1 -0
  3. package/dist/index.d.mts +2 -2
  4. package/dist/index.mjs +5 -5
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/product-BzXeycUV.mjs +2 -0
  7. package/dist/product-BzXeycUV.mjs.map +1 -0
  8. package/dist/server/index.d.mts +1 -1
  9. package/dist/server/index.mjs +1 -1
  10. package/dist/server/index.mjs.map +1 -1
  11. package/package.json +2 -2
  12. package/ts/api/index.ts +0 -1
  13. package/ts/api/resources/Acceptance.ts +1 -1
  14. package/ts/api/resources/Account.ts +1 -1
  15. package/ts/api/resources/AccountType.ts +1 -1
  16. package/ts/api/resources/AccountingFiles.ts +1 -1
  17. package/ts/api/resources/BalanceSheet.ts +1 -1
  18. package/ts/api/resources/BalanceSheetCompletion.ts +1 -1
  19. package/ts/api/resources/BalanceSheetModule.ts +1 -1
  20. package/ts/api/resources/BankStatement.ts +2 -2
  21. package/ts/api/resources/BudgetInsight.ts +1 -1
  22. package/ts/api/resources/BusinessPartner.ts +1 -1
  23. package/ts/api/resources/Card.ts +1 -1
  24. package/ts/api/resources/Comment.ts +1 -1
  25. package/ts/api/resources/Commercial.ts +1 -1
  26. package/ts/api/resources/CommercialConditionOfSale.ts +1 -1
  27. package/ts/api/resources/CommercialDocument.ts +1 -1
  28. package/ts/api/resources/CommercialDocumentTemplate.ts +1 -1
  29. package/ts/api/resources/CommercialEmail.ts +1 -1
  30. package/ts/api/resources/ConstitutionHistory.ts +1 -1
  31. package/ts/api/resources/CustomerProviderOperation.ts +1 -1
  32. package/ts/api/resources/Dashboard.ts +1 -1
  33. package/ts/api/resources/DocumentRequest.ts +1 -1
  34. package/ts/api/resources/DocumentSection.ts +1 -1
  35. package/ts/api/resources/ExercicePrestation.ts +1 -1
  36. package/ts/api/resources/FIle.ts +1 -1
  37. package/ts/api/resources/Facturation.ts +1 -1
  38. package/ts/api/resources/FecFile.ts +1 -1
  39. package/ts/api/resources/FinancialProjection.ts +1 -1
  40. package/ts/api/resources/FirstStep.ts +1 -1
  41. package/ts/api/resources/Follow.ts +1 -1
  42. package/ts/api/resources/Formalism.ts +1 -1
  43. package/ts/api/resources/HumanResourceLibrary.ts +1 -1
  44. package/ts/api/resources/Immobilization.ts +1 -1
  45. package/ts/api/resources/IncomeAllocation.ts +1 -1
  46. package/ts/api/resources/IncomeStatement.ts +1 -1
  47. package/ts/api/resources/InformationRequest.ts +1 -1
  48. package/ts/api/resources/Inpi.ts +1 -1
  49. package/ts/api/resources/Invoice.ts +1 -1
  50. package/ts/api/resources/Journal.ts +1 -1
  51. package/ts/api/resources/JuridicalMission.ts +1 -1
  52. package/ts/api/resources/KilometricAllowance.ts +1 -1
  53. package/ts/api/resources/Library.ts +1 -1
  54. package/ts/api/resources/Loan.ts +1 -1
  55. package/ts/api/resources/Log.ts +1 -1
  56. package/ts/api/resources/Mail.ts +1 -1
  57. package/ts/api/resources/Mandat.ts +1 -1
  58. package/ts/api/resources/OldExpertInfos.ts +1 -1
  59. package/ts/api/resources/OnBoarding.ts +1 -1
  60. package/ts/api/resources/Partner.ts +1 -1
  61. package/ts/api/resources/Payment.ts +2 -2
  62. package/ts/api/resources/PaymentExpectation.ts +1 -1
  63. package/ts/api/resources/PaymentExpectationCustomer.ts +2 -2
  64. package/ts/api/resources/PrestationComplementary.ts +1 -1
  65. package/ts/api/resources/Product.ts +1 -1
  66. package/ts/api/resources/Provision.ts +1 -1
  67. package/ts/api/resources/QuotesAccount.ts +1 -1
  68. package/ts/api/resources/Rating.ts +1 -1
  69. package/ts/api/resources/Recurrence.ts +2 -2
  70. package/ts/api/resources/Refund.ts +1 -1
  71. package/ts/api/resources/Registration.ts +1 -1
  72. package/ts/api/resources/Reminder.ts +1 -1
  73. package/ts/api/resources/Revenue.ts +1 -1
  74. package/ts/api/resources/Revision.ts +1 -1
  75. package/ts/api/resources/RevisionGuide.ts +1 -1
  76. package/ts/api/resources/SalariesFile.ts +1 -1
  77. package/ts/api/resources/SalesContract.ts +1 -1
  78. package/ts/api/resources/Sellsy.ts +1 -1
  79. package/ts/api/resources/Shine.ts +1 -1
  80. package/ts/api/resources/SlowDetection.ts +1 -1
  81. package/ts/api/resources/Society.ts +2 -2
  82. package/ts/api/resources/SocietyApproval.ts +1 -1
  83. package/ts/api/resources/SocietyConfigBalanceSheet.ts +1 -1
  84. package/ts/api/resources/Source.ts +1 -1
  85. package/ts/api/resources/Sources.ts +1 -1
  86. package/ts/api/resources/StatutsGeneration.ts +1 -1
  87. package/ts/api/resources/Stocks.ts +1 -1
  88. package/ts/api/resources/Stripe.ts +1 -1
  89. package/ts/api/resources/StripePurchase.ts +1 -1
  90. package/ts/api/resources/Subscription.ts +2 -2
  91. package/ts/api/resources/Survey.ts +1 -1
  92. package/ts/api/resources/Synchronisation.ts +1 -1
  93. package/ts/api/resources/Task.ts +1 -1
  94. package/ts/api/resources/Tax.ts +1 -1
  95. package/ts/api/resources/TaxDeadline.ts +1 -1
  96. package/ts/api/resources/Team.ts +1 -1
  97. package/ts/api/resources/TextMessage.ts +1 -1
  98. package/ts/api/resources/ThirdParty.ts +1 -1
  99. package/ts/api/resources/TimeRecorder.ts +1 -1
  100. package/ts/api/resources/ToDoBalanceSheet.ts +1 -1
  101. package/ts/api/resources/Transaction.ts +1 -1
  102. package/ts/api/resources/UpToDate.ts +1 -1
  103. package/ts/api/resources/User.ts +1 -1
  104. package/ts/api/resources/UserSocietyPermission.ts +1 -1
  105. package/ts/api/resources/UsersHistory.ts +1 -1
  106. package/ts/api/resources/VatRegimeHistory.ts +1 -1
  107. package/ts/api/resources/Vialink.ts +1 -1
  108. package/ts/api/resources/Wallet.ts +2 -2
  109. package/ts/api/resources/WorkingSchedule.ts +1 -1
  110. package/ts/api/resources/ZTicket.ts +1 -1
  111. package/ts/api/resources/prestation.ts +1 -1
  112. package/ts/api/resources/shareCapital.ts +2 -2
  113. package/ts/api/resources/statistic/Accountant.ts +1 -1
  114. package/ts/api/resources/statistic/CustomerSuccess.ts +1 -1
  115. package/ts/api/resources/statistic/DataOfficer.ts +1 -1
  116. package/ts/api/resources/statistic/Direction.ts +1 -1
  117. package/ts/api/resources/statistic/ExpertAccountant.ts +1 -1
  118. package/ts/api/resources/statistic/Legal.ts +1 -1
  119. package/ts/api/resources/statistic/Marketing.ts +1 -1
  120. package/ts/api/resources.ts +175 -177
  121. package/ts/types/Enum/PrestationType.ts +13 -12
  122. package/ts/types/Enum/PriceGridClementine.ts +2 -2
  123. package/ts/types/Enum/PriceGridLegalstart.ts +1 -1
  124. package/ts/types/Enum/PriceGridPourcentage.ts +1 -1
  125. package/ts/types/Enum/PriceGridStatutsExpress.ts +1 -1
  126. package/ts/types/Enum/Quality.ts +15 -1
  127. package/ts/types/Enum/SalesContractBrandClementine.ts +2 -2
  128. package/ts/types/Enum/SalesContractConfig.ts +1 -1
  129. package/ts/types/Form/FormAuthenticate.ts +1 -1
  130. package/ts/types/Form/FormConnector.ts +2 -2
  131. package/ts/types/Interface/api/3cx/Create3cxLog.ts +1 -1
  132. package/ts/types/Interface/api/3cx/Query3cxMeeting.ts +1 -1
  133. package/ts/types/Interface/api/3cx/Query3cxSearch.ts +1 -1
  134. package/ts/types/Interface/api/3cx/Update3cxMeeting.ts +1 -1
  135. package/ts/types/Interface/api/BasePaginate.ts +1 -1
  136. package/ts/types/Interface/api/IntermediateManagementRebate.ts +1 -1
  137. package/ts/types/Interface/api/OnBoarding.ts +1 -1
  138. package/ts/types/Interface/api/PaymentRecovery/Create.ts +1 -1
  139. package/ts/types/Interface/api/PaymentRecovery/Query.ts +2 -2
  140. package/ts/types/Interface/api/SocietyApproval.ts +3 -3
  141. package/ts/types/Interface/api/SocietyTransaction/Query.ts +1 -1
  142. package/ts/types/Interface/api/SocietyTransaction/QuerySocietyTransactionCount.ts +1 -1
  143. package/ts/types/Interface/api/absenceRequest/CreateAbsenceRequest.ts +1 -1
  144. package/ts/types/Interface/api/absenceRequest/QueryAbsenceRequest.ts +1 -1
  145. package/ts/types/Interface/api/absenceRequest/QueryCalendarAbsenceRequest.ts +1 -1
  146. package/ts/types/Interface/api/acceptance/CreateAcceptance.ts +2 -2
  147. package/ts/types/Interface/api/account/Create.ts +1 -1
  148. package/ts/types/Interface/api/account/Delete.ts +1 -1
  149. package/ts/types/Interface/api/account/Query.ts +1 -1
  150. package/ts/types/Interface/api/account/Update.ts +1 -1
  151. package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +2 -2
  152. package/ts/types/Interface/api/accountingEntry/Create.ts +2 -2
  153. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +1 -1
  154. package/ts/types/Interface/api/accountingTransaction/Create.ts +1 -1
  155. package/ts/types/Interface/api/accountingTransaction/DeleteInvoices.ts +2 -2
  156. package/ts/types/Interface/api/accountingTransaction/QueryBankAccountSum.ts +1 -1
  157. package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +2 -2
  158. package/ts/types/Interface/api/accountsSectors/Create.ts +1 -1
  159. package/ts/types/Interface/api/accountsSectors/Query.ts +1 -1
  160. package/ts/types/Interface/api/adjustment/Create.ts +2 -2
  161. package/ts/types/Interface/api/adjustment/Query.ts +1 -1
  162. package/ts/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.ts +1 -1
  163. package/ts/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.ts +1 -1
  164. package/ts/types/Interface/api/ai/AskQuestionCollaborator.ts +1 -1
  165. package/ts/types/Interface/api/appNotification/Update.ts +1 -1
  166. package/ts/types/Interface/api/appointment/Appointment.ts +2 -2
  167. package/ts/types/Interface/api/archive/ImportSocietyArchive.ts +1 -1
  168. package/ts/types/Interface/api/authentification/ConnectFromSSO.ts +1 -1
  169. package/ts/types/Interface/api/authentification/ForgotPassword.ts +1 -1
  170. package/ts/types/Interface/api/authentification/ResetPassword.ts +1 -1
  171. package/ts/types/Interface/api/automaticRegistration/Query.ts +1 -1
  172. package/ts/types/Interface/api/balanceSheet/Query.ts +1 -1
  173. package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +2 -2
  174. package/ts/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.ts +1 -1
  175. package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +1 -1
  176. package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +1 -1
  177. package/ts/types/Interface/api/balanceSheetReport/Query.ts +1 -1
  178. package/ts/types/Interface/api/bankAccount/Create.ts +2 -2
  179. package/ts/types/Interface/api/bankAccount/Delete.ts +1 -1
  180. package/ts/types/Interface/api/bankAccount/Query.ts +3 -3
  181. package/ts/types/Interface/api/bankAccount/Update.ts +1 -1
  182. package/ts/types/Interface/api/bankDedup/BankDedup.ts +1 -1
  183. package/ts/types/Interface/api/bankStatement/QueryBankStatement.ts +1 -1
  184. package/ts/types/Interface/api/bankStatement/QueryTransactionBankStatement.ts +1 -1
  185. package/ts/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.ts +1 -1
  186. package/ts/types/Interface/api/brevo/BrevoElement.ts +1 -1
  187. package/ts/types/Interface/api/budgetInsight/Create.ts +1 -1
  188. package/ts/types/Interface/api/budgetInsight/Delete.ts +1 -1
  189. package/ts/types/Interface/api/budgetInsight/Query.ts +1 -1
  190. package/ts/types/Interface/api/businessPartner/CreateBusinessPartnerParams.ts +1 -1
  191. package/ts/types/Interface/api/businessPartner/QueryBusinessPartnerAll.ts +1 -1
  192. package/ts/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.ts +1 -1
  193. package/ts/types/Interface/api/calendarEvent/calendarEvent.ts +1 -1
  194. package/ts/types/Interface/api/calendarEvent/countCalendarEvent.ts +1 -1
  195. package/ts/types/Interface/api/calendarEvent/createCalendarEventForUsers.ts +1 -1
  196. package/ts/types/Interface/api/calendarEvent/interval.ts +1 -1
  197. package/ts/types/Interface/api/calendarEvent/query.ts +1 -1
  198. package/ts/types/Interface/api/card/Cron.ts +1 -1
  199. package/ts/types/Interface/api/card/QueryUserCards.ts +2 -2
  200. package/ts/types/Interface/api/card/QueryUserCardsStats.ts +1 -1
  201. package/ts/types/Interface/api/card/UpdateCard.ts +2 -2
  202. package/ts/types/Interface/api/cashAndExpense/Create.ts +4 -4
  203. package/ts/types/Interface/api/cashAndExpense/Query.ts +1 -1
  204. package/ts/types/Interface/api/cerfa/2035.ts +6 -6
  205. package/ts/types/Interface/api/cerfa/2050.ts +1 -1
  206. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +4 -4
  207. package/ts/types/Interface/api/cerfa/das2.ts +2 -2
  208. package/ts/types/Interface/api/changelog/Create.ts +1 -1
  209. package/ts/types/Interface/api/checklist/Query.ts +1 -1
  210. package/ts/types/Interface/api/checklist/Update.ts +3 -3
  211. package/ts/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.ts +4 -4
  212. package/ts/types/Interface/api/commercial/Query.ts +1 -1
  213. package/ts/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.ts +1 -1
  214. package/ts/types/Interface/api/commercial/QueryGetStats.ts +30 -1
  215. package/ts/types/Interface/api/commercial/QueryGetStatsHistory.ts +1 -1
  216. package/ts/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.ts +1 -1
  217. package/ts/types/Interface/api/commercial/QueryPaginatedFollowProspect.ts +1 -1
  218. package/ts/types/Interface/api/commercial/QueryPaginatedNewProspect.ts +1 -1
  219. package/ts/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.ts +1 -1
  220. package/ts/types/Interface/api/commercialImport/Create.ts +1 -1
  221. package/ts/types/Interface/api/commercialManagement/Create.ts +6 -6
  222. package/ts/types/Interface/api/commercialManagement/CreateProductInvoice.ts +2 -2
  223. package/ts/types/Interface/api/commercialManagement/Query.ts +2 -2
  224. package/ts/types/Interface/api/commercialManagement/Read.ts +9 -9
  225. package/ts/types/Interface/api/commercialManagement/Update.ts +1 -1
  226. package/ts/types/Interface/api/commercialOffer/Query.ts +1 -1
  227. package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +5 -5
  228. package/ts/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.ts +2 -2
  229. package/ts/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.ts +1 -1
  230. package/ts/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.ts +2 -2
  231. package/ts/types/Interface/api/connection/Query.ts +1 -1
  232. package/ts/types/Interface/api/connector/CreateConnector.ts +2 -2
  233. package/ts/types/Interface/api/connector/QueryConnector.ts +2 -2
  234. package/ts/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.ts +1 -1
  235. package/ts/types/Interface/api/customerActivity/Create.ts +1 -1
  236. package/ts/types/Interface/api/customerActivity/CreateCustomerActivityReport.ts +1 -1
  237. package/ts/types/Interface/api/customerActivity/Query.ts +1 -1
  238. package/ts/types/Interface/api/customerProviderOperation/CreateCustomerProviderOperation.ts +1 -1
  239. package/ts/types/Interface/api/customerSignature/Query.ts +1 -1
  240. package/ts/types/Interface/api/dashboard/QueryTopProviders.ts +1 -1
  241. package/ts/types/Interface/api/dashboard/QueryVatDisbursed.ts +1 -1
  242. package/ts/types/Interface/api/docoon/Create.ts +2 -2
  243. package/ts/types/Interface/api/docoon/Query.ts +1 -1
  244. package/ts/types/Interface/api/documentRequest/Create.ts +3 -3
  245. package/ts/types/Interface/api/documentRequest/Query.ts +3 -3
  246. package/ts/types/Interface/api/documentRequest/Update.ts +3 -3
  247. package/ts/types/Interface/api/documentSection/Update.ts +1 -1
  248. package/ts/types/Interface/api/dubiousCustomer/Create.ts +1 -1
  249. package/ts/types/Interface/api/dubiousCustomer/Update.ts +1 -1
  250. package/ts/types/Interface/api/employee/QueryEmployeeSearch.ts +1 -1
  251. package/ts/types/Interface/api/equipment/Query.ts +1 -1
  252. package/ts/types/Interface/api/exercice/Create.ts +2 -2
  253. package/ts/types/Interface/api/exercice/QueryExercice.ts +1 -1
  254. package/ts/types/Interface/api/exercice/UpdateExercice.ts +1 -1
  255. package/ts/types/Interface/api/exercicePrestation/Query.ts +1 -1
  256. package/ts/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.ts +1 -1
  257. package/ts/types/Interface/api/exerciceQuestion/QueryQuestion.ts +1 -1
  258. package/ts/types/Interface/api/expertAnnuary/Query.ts +1 -1
  259. package/ts/types/Interface/api/facturation/CreateRebilling.ts +1 -1
  260. package/ts/types/Interface/api/facturation/Query.ts +1 -1
  261. package/ts/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturation.ts +1 -1
  262. package/ts/types/Interface/api/fecFile/CreateFecFile.ts +2 -2
  263. package/ts/types/Interface/api/file/Create.ts +2 -2
  264. package/ts/types/Interface/api/file/Query.ts +1 -1
  265. package/ts/types/Interface/api/financialCharge/CreateNonDeductibleInterests.ts +1 -1
  266. package/ts/types/Interface/api/firstStep/Create.ts +1 -1
  267. package/ts/types/Interface/api/formalism/Create.ts +1 -1
  268. package/ts/types/Interface/api/fusion/FusionSocieties.ts +1 -1
  269. package/ts/types/Interface/api/gedFile/createFileAndGed.ts +2 -2
  270. package/ts/types/Interface/api/gedFile/updateGedFile.ts +1 -1
  271. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +3 -3
  272. package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +1 -1
  273. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +1 -1
  274. package/ts/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.ts +2 -2
  275. package/ts/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.ts +1 -1
  276. package/ts/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.ts +1 -1
  277. package/ts/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.ts +2 -2
  278. package/ts/types/Interface/api/iDocus/CreateExport.ts +1 -1
  279. package/ts/types/Interface/api/immobilization/CreateImmobilization.ts +2 -2
  280. package/ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts +1 -1
  281. package/ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts +1 -1
  282. package/ts/types/Interface/api/informationRequest/Create.ts +3 -3
  283. package/ts/types/Interface/api/informationRequest/Query.ts +2 -2
  284. package/ts/types/Interface/api/informationRequest/Update.ts +4 -4
  285. package/ts/types/Interface/api/inpiPayment/Query.ts +1 -1
  286. package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +1 -1
  287. package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing2in.ts +1 -1
  288. package/ts/types/Interface/api/internalInvoicing/GenerateCutOff.ts +1 -1
  289. package/ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts +1 -1
  290. package/ts/types/Interface/api/jeDeclare/CreateDocumentsParams.ts +1 -1
  291. package/ts/types/Interface/api/juridicalMission/Query.ts +1 -1
  292. package/ts/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.ts +1 -1
  293. package/ts/types/Interface/api/kyc/Create.ts +1 -1
  294. package/ts/types/Interface/api/kyc/Query.ts +1 -1
  295. package/ts/types/Interface/api/legalNotice/QueryLegalNotice.ts +1 -1
  296. package/ts/types/Interface/api/legalNotice/UpdateLegalNotice.ts +1 -1
  297. package/ts/types/Interface/api/letter/CreateLetter.ts +2 -2
  298. package/ts/types/Interface/api/letter/Query.ts +1 -1
  299. package/ts/types/Interface/api/lettering/QueryRegroupLettering.ts +1 -1
  300. package/ts/types/Interface/api/library/MergeContentPayload.ts +1 -1
  301. package/ts/types/Interface/api/library/QueryLibrary.ts +3 -3
  302. package/ts/types/Interface/api/loan/CreateLoan.ts +1 -1
  303. package/ts/types/Interface/api/loan/UpdateLoan.ts +1 -1
  304. package/ts/types/Interface/api/log/QueryLogPagination.ts +1 -1
  305. package/ts/types/Interface/api/machineLearning/CreateMachineLearningAnnotation.ts +1 -1
  306. package/ts/types/Interface/api/mail/QueryCountMail.ts +1 -1
  307. package/ts/types/Interface/api/mail/QueryCountProcessedByUser.ts +1 -1
  308. package/ts/types/Interface/api/mail/QueryGetAnsweringTimeByUser.ts +1 -1
  309. package/ts/types/Interface/api/mail/QueryGetSignature.ts +1 -1
  310. package/ts/types/Interface/api/mail/QueryMail.ts +1 -1
  311. package/ts/types/Interface/api/mail/QueryMailBySociety.ts +1 -1
  312. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -1
  313. package/ts/types/Interface/api/mail/UpdateMail.ts +1 -1
  314. package/ts/types/Interface/api/mailSociety/QueryMailSociety.ts +1 -1
  315. package/ts/types/Interface/api/mealExpense/CreateMealExpense.ts +1 -1
  316. package/ts/types/Interface/api/mobile/QueryMobileMigration.ts +1 -1
  317. package/ts/types/Interface/api/mobile/UpdateMobile.ts +1 -1
  318. package/ts/types/Interface/api/notification/CreateNotification.ts +2 -2
  319. package/ts/types/Interface/api/notification/Update.ts +1 -1
  320. package/ts/types/Interface/api/notificationSetting/CreateNotificationSetting.ts +1 -1
  321. package/ts/types/Interface/api/notificationSetting/UpdateNotificationSetting.ts +1 -1
  322. package/ts/types/Interface/api/ocr/OcrTransactions.ts +1 -1
  323. package/ts/types/Interface/api/oldExportInfo/OldExpertInfos.ts +1 -1
  324. package/ts/types/Interface/api/partner/CreatePartner.ts +2 -2
  325. package/ts/types/Interface/api/partner/Query.ts +1 -1
  326. package/ts/types/Interface/api/partner/UpdatePartner.ts +2 -2
  327. package/ts/types/Interface/api/partners/CreatePartner.ts +1 -1
  328. package/ts/types/Interface/api/payment/CreateNotifyCustomer.ts +1 -1
  329. package/ts/types/Interface/api/payment/CreateNotifyCustomerInvoice.ts +1 -1
  330. package/ts/types/Interface/api/payment/Params.ts +1 -1
  331. package/ts/types/Interface/api/payment/Query.ts +1 -1
  332. package/ts/types/Interface/api/payment/QueryMonthlyPayment.ts +1 -1
  333. package/ts/types/Interface/api/payment/QueryPayment.ts +1 -1
  334. package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +2 -2
  335. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +1 -1
  336. package/ts/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.ts +1 -1
  337. package/ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts +2 -2
  338. package/ts/types/Interface/api/paymentExpectationCustomer/UpdatePaymentExpectationCustomer.ts +1 -1
  339. package/ts/types/Interface/api/prestation/BodyCreatePrestationSocieties.ts +1 -1
  340. package/ts/types/Interface/api/prestation/CreatePrestation.ts +1 -1
  341. package/ts/types/Interface/api/prestation/Query.ts +4 -4
  342. package/ts/types/Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation.ts +1 -1
  343. package/ts/types/Interface/api/prestation/QueryPrestation.ts +1 -1
  344. package/ts/types/Interface/api/prestations/QueryCreate.ts +1 -1
  345. package/ts/types/Interface/api/prestations/QueryGetAllPrestations.ts +2 -2
  346. package/ts/types/Interface/api/prestations/QueryUpdate.ts +1 -1
  347. package/ts/types/Interface/api/previsionalForm/CreatePrevisionalForm.ts +4 -4
  348. package/ts/types/Interface/api/product/CreateProduct.ts +1 -1
  349. package/ts/types/Interface/api/product/ProductLineInputs.ts +2 -2
  350. package/ts/types/Interface/api/product/QueryProduct.ts +2 -2
  351. package/ts/types/Interface/api/provision/CreateProvisionForm.ts +1 -1
  352. package/ts/types/Interface/api/provision/QueryGetProvisions.ts +1 -1
  353. package/ts/types/Interface/api/provision/QueryProvisions.ts +1 -1
  354. package/ts/types/Interface/api/provision/UpdateProvisionForm.ts +1 -1
  355. package/ts/types/Interface/api/qonto/Create.ts +1 -1
  356. package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +1 -1
  357. package/ts/types/Interface/api/qonto/UpdateConnection.ts +1 -1
  358. package/ts/types/Interface/api/rating/CreateRating.ts +1 -1
  359. package/ts/types/Interface/api/rating/QueryRatingPaginated.ts +1 -1
  360. package/ts/types/Interface/api/rating/UpdateRating.ts +1 -1
  361. package/ts/types/Interface/api/ratingHistory/CreateRatingHistory.ts +1 -1
  362. package/ts/types/Interface/api/recurrence/Query.ts +1 -1
  363. package/ts/types/Interface/api/refund/QueryRefundPaginated.ts +1 -1
  364. package/ts/types/Interface/api/registration/CreateRegistration.ts +11 -5
  365. package/ts/types/Interface/api/registration/DeclareRegistration.ts +1 -1
  366. package/ts/types/Interface/api/registration/QueryRegistration.ts +2 -2
  367. package/ts/types/Interface/api/registration/ReadRegistration.ts +1 -1
  368. package/ts/types/Interface/api/registration/UpdateRegistration.ts +1 -1
  369. package/ts/types/Interface/api/regulate/DestroyRegulate.ts +1 -1
  370. package/ts/types/Interface/api/regulate/QueryGetAll.ts +1 -1
  371. package/ts/types/Interface/api/regulation/Create.ts +1 -1
  372. package/ts/types/Interface/api/regulation/Query.ts +2 -2
  373. package/ts/types/Interface/api/report/CreateReport.ts +1 -1
  374. package/ts/types/Interface/api/report/DeleteReport.ts +1 -1
  375. package/ts/types/Interface/api/report/ExternalReport.ts +1 -1
  376. package/ts/types/Interface/api/report/QueryReports.ts +1 -1
  377. package/ts/types/Interface/api/report/QueryReportsForLetter.ts +1 -1
  378. package/ts/types/Interface/api/reportMessage/Query.ts +1 -1
  379. package/ts/types/Interface/api/revenue/revenueMovement.ts +2 -2
  380. package/ts/types/Interface/api/revision/Create.ts +1 -1
  381. package/ts/types/Interface/api/revision/Query.ts +2 -2
  382. package/ts/types/Interface/api/revisionGuide/CreateRevisionGuide.ts +1 -1
  383. package/ts/types/Interface/api/rule/Create.ts +1 -1
  384. package/ts/types/Interface/api/rule/Update.ts +1 -1
  385. package/ts/types/Interface/api/salariesFile/CreateSalariesFile.ts +1 -1
  386. package/ts/types/Interface/api/salesContract/GenerateSalesContractParams.ts +1 -1
  387. package/ts/types/Interface/api/salesContract/SendSalesContractParams.ts +1 -1
  388. package/ts/types/Interface/api/sellsy/CreateInvoicesSellsy.ts +1 -1
  389. package/ts/types/Interface/api/sellsy/SellsyOauthCallback.ts +1 -1
  390. package/ts/types/Interface/api/shareCapital/CreateInKindContribution.ts +1 -1
  391. package/ts/types/Interface/api/shareCapital/CreateShareCapital.ts +1 -1
  392. package/ts/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.ts +1 -1
  393. package/ts/types/Interface/api/shine/CreateShineTransactions.ts +1 -1
  394. package/ts/types/Interface/api/shopify/InvoicesShopify.ts +1 -1
  395. package/ts/types/Interface/api/shopify/ShopifyOrder.ts +9 -9
  396. package/ts/types/Interface/api/shopify/line_item.ts +2 -2
  397. package/ts/types/Interface/api/shopify/refund.ts +1 -1
  398. package/ts/types/Interface/api/shopify/shipping_line.ts +1 -1
  399. package/ts/types/Interface/api/signFile/CreateFileToSign.ts +1 -1
  400. package/ts/types/Interface/api/society/CreateTestSociety.ts +6 -6
  401. package/ts/types/Interface/api/society/CreateUserToSocietyWithPermission.ts +1 -1
  402. package/ts/types/Interface/api/society/DataCustomersCsv.ts +1 -1
  403. package/ts/types/Interface/api/society/Export.ts +1 -1
  404. package/ts/types/Interface/api/society/GetSocietyDetail.ts +1 -1
  405. package/ts/types/Interface/api/society/ListUserSociety.ts +1 -1
  406. package/ts/types/Interface/api/society/QueryAdvancedSearchSociety.ts +1 -1
  407. package/ts/types/Interface/api/society/QueryArchived.ts +1 -1
  408. package/ts/types/Interface/api/society/QueryPaginatedSociety.ts +1 -1
  409. package/ts/types/Interface/api/society/QuerySociety.ts +2 -2
  410. package/ts/types/Interface/api/society/QueryToArchived.ts +1 -1
  411. package/ts/types/Interface/api/society/QueryUnpaid.ts +1 -1
  412. package/ts/types/Interface/api/society/UpdateSociety.ts +2 -2
  413. package/ts/types/Interface/api/society/UpdateUserToSocietyWithPermission.ts +1 -1
  414. package/ts/types/Interface/api/societyConfig/update.ts +1 -1
  415. package/ts/types/Interface/api/societyConfigBalanceSheet/QueryGetAllSocietyConfigBalanceSheet.ts +2 -2
  416. package/ts/types/Interface/api/societyConfigBalanceSheet/QueryPaginatedSocietyConfigBalanceSheet.ts +1 -1
  417. package/ts/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.ts +1 -1
  418. package/ts/types/Interface/api/societyFollow/Query.ts +1 -1
  419. package/ts/types/Interface/api/stateBankAccount/Query.ts +1 -1
  420. package/ts/types/Interface/api/statistic/QueryAccountant.ts +1 -1
  421. package/ts/types/Interface/api/statistic/QueryCustomerSuccess.ts +1 -1
  422. package/ts/types/Interface/api/statistic/QueryDataOfficer.ts +1 -1
  423. package/ts/types/Interface/api/statistic/QueryDirection.ts +1 -1
  424. package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +1 -1
  425. package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +1 -1
  426. package/ts/types/Interface/api/statistic/QueryGetDirection.ts +1 -1
  427. package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +1 -1
  428. package/ts/types/Interface/api/statistic/QueryInternal.ts +1 -1
  429. package/ts/types/Interface/api/statistic/QueryLegal.ts +1 -1
  430. package/ts/types/Interface/api/statistic/QueryMarketing.ts +1 -1
  431. package/ts/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.ts +2 -2
  432. package/ts/types/Interface/api/statutsGeneration/IntentToPayPrestationParams.ts +1 -1
  433. package/ts/types/Interface/api/statutsGeneration/SendInviteMailParams.ts +1 -1
  434. package/ts/types/Interface/api/statutsGeneration/UpdateExercice.ts +1 -1
  435. package/ts/types/Interface/api/statutsGeneration/UpdateExerciceParams.ts +1 -1
  436. package/ts/types/Interface/api/stripe/Create.ts +2 -2
  437. package/ts/types/Interface/api/stripe/QueryStripe.ts +1 -1
  438. package/ts/types/Interface/api/stripe/Update.ts +1 -1
  439. package/ts/types/Interface/api/supervision/Query.ts +1 -1
  440. package/ts/types/Interface/api/survey/QuerySurvey.ts +1 -1
  441. package/ts/types/Interface/api/survey/QuerySurveys.ts +1 -1
  442. package/ts/types/Interface/api/survey/UpdateSurvey.ts +1 -1
  443. package/ts/types/Interface/api/synchronisation/Query.ts +1 -1
  444. package/ts/types/Interface/api/task/QueryCountTask.ts +1 -2
  445. package/ts/types/Interface/api/task/QueryCreateTask.ts +1 -1
  446. package/ts/types/Interface/api/task/QueryGetAllTask.ts +1 -1
  447. package/ts/types/Interface/api/task/QueryGetTask.ts +1 -1
  448. package/ts/types/Interface/api/task/QueryPaginatedTask.ts +1 -1
  449. package/ts/types/Interface/api/task/QueryStatsByRolesInCsv.ts +1 -1
  450. package/ts/types/Interface/api/task/QueryStatsByServiceInCsv.ts +1 -1
  451. package/ts/types/Interface/api/task/QueryStatsByTaskTypeInCsv.ts +1 -1
  452. package/ts/types/Interface/api/tax/CreateTax.ts +2 -2
  453. package/ts/types/Interface/api/tax/QueryTax.ts +1 -1
  454. package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +6 -6
  455. package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +7 -7
  456. package/ts/types/Interface/api/team/QueryCreate.ts +1 -1
  457. package/ts/types/Interface/api/team/QueryGetAllWithIncludes.ts +1 -1
  458. package/ts/types/Interface/api/team/QueryUpdate.ts +1 -1
  459. package/ts/types/Interface/api/team/UpdateTeamsForUser.ts +1 -1
  460. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +1 -1
  461. package/ts/types/Interface/api/terminationList/DestroyTerminationList.ts +1 -1
  462. package/ts/types/Interface/api/terminationList/QueryPaginateTerminationList.ts +1 -1
  463. package/ts/types/Interface/api/terminationList/QueryTerminationList.ts +1 -1
  464. package/ts/types/Interface/api/terminationList/TerminationList.ts +1 -1
  465. package/ts/types/Interface/api/textMessage/Create.ts +2 -2
  466. package/ts/types/Interface/api/textMessage/Query.ts +1 -1
  467. package/ts/types/Interface/api/textMessage/Update.ts +1 -1
  468. package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +2 -2
  469. package/ts/types/Interface/api/thirdParty/QueryThirdParty.ts +1 -1
  470. package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +2 -2
  471. package/ts/types/Interface/api/timeRecorder/CreateRecorder.ts +1 -1
  472. package/ts/types/Interface/api/timeRecorder/Query.ts +1 -1
  473. package/ts/types/Interface/api/timeRecorder/QueryAttendance.ts +1 -1
  474. package/ts/types/Interface/api/timeRecorder/QueryPaginatedDelays.ts +1 -1
  475. package/ts/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.ts +1 -1
  476. package/ts/types/Interface/api/timeRecorder/UpdateRecorder.ts +1 -1
  477. package/ts/types/Interface/api/timeTracking/Create.ts +1 -1
  478. package/ts/types/Interface/api/timeTracking/Query.ts +1 -1
  479. package/ts/types/Interface/api/toDoExpress/Query.ts +2 -2
  480. package/ts/types/Interface/api/transactions/Query.ts +2 -2
  481. package/ts/types/Interface/api/user/CreateCoworker.ts +2 -2
  482. package/ts/types/Interface/api/user/CreateUser.ts +1 -1
  483. package/ts/types/Interface/api/user/ParamsGetAll.ts +1 -1
  484. package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +1 -1
  485. package/ts/types/Interface/api/user/ParamsGetAllUserWithRoles.ts +1 -1
  486. package/ts/types/Interface/api/user/Query.ts +4 -4
  487. package/ts/types/Interface/api/user/RegisterProspect.ts +5 -5
  488. package/ts/types/Interface/api/user/RegisterWebhook.ts +1 -1
  489. package/ts/types/Interface/api/user/UpdateCoworker.ts +2 -2
  490. package/ts/types/Interface/api/userRoomEquipment/BulkUpdate.ts +1 -1
  491. package/ts/types/Interface/api/userRoomEquipment/CreateSignature.ts +1 -1
  492. package/ts/types/Interface/api/userRoomEquipment/Query.ts +2 -2
  493. package/ts/types/Interface/api/userSocietyPermission/CreateSocietyPermission.ts +2 -2
  494. package/ts/types/Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser.ts +1 -1
  495. package/ts/types/Interface/api/userSocietyPermission/GetAllSocietyPermission.ts +2 -2
  496. package/ts/types/Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission.ts +1 -1
  497. package/ts/types/Interface/api/userSocietyPermission/QueryDeleteSocietyPermission.ts +1 -1
  498. package/ts/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.ts +2 -2
  499. package/ts/types/Interface/api/userTimeSlot/QueryUserTimeSlot.ts +1 -1
  500. package/ts/types/Interface/api/usersHistory/Create.ts +2 -2
  501. package/ts/types/Interface/api/usersHistory/Update.ts +2 -2
  502. package/ts/types/Interface/api/vatControl/CreateVatControl.ts +1 -1
  503. package/ts/types/Interface/api/vatControl/QueryVatControl.ts +1 -1
  504. package/ts/types/Interface/api/vatDeclaration/CreateVatDeclaration.ts +1 -1
  505. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -2
  506. package/ts/types/Interface/api/vehicle/CreateSocietyVehicle.ts +1 -1
  507. package/ts/types/Interface/api/vehicle/UpdateSocietyVehicle.ts +1 -1
  508. package/ts/types/Interface/api/visualizedInformation/Query.ts +2 -2
  509. package/ts/types/Interface/api/visualizedInformation/Update.ts +2 -2
  510. package/ts/types/Interface/api/wallet/QueryWallet.ts +1 -1
  511. package/ts/types/Interface/api/wallet/UpdateAttribution.ts +1 -1
  512. package/ts/types/Interface/api/webex/GetWebinarsParams.ts +1 -1
  513. package/ts/types/Interface/api/webex/WebexRegistrant.ts +1 -1
  514. package/ts/types/Interface/api/webmail/ExportEmails.ts +1 -1
  515. package/ts/types/Interface/api/webmail/GetPaginatedWhereObjectParams.ts +1 -1
  516. package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +1 -1
  517. package/ts/types/Interface/api/woocommerce/InvoicesWoocommerce.ts +1 -1
  518. package/ts/types/Interface/api/workingSchedule/Query.ts +1 -1
  519. package/ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts +1 -1
  520. package/ts/types/Interface/api/zendesk/QueryTicket.ts +2 -2
  521. package/ts/types/Interface/api/zendesk/ReadTicket.ts +1 -1
  522. package/ts/types/Interface/models/IAbsenceRequest.ts +2 -2
  523. package/ts/types/Interface/models/IAccount.ts +9 -9
  524. package/ts/types/Interface/models/IAccountDetail.ts +2 -2
  525. package/ts/types/Interface/models/IAccountingEntry.ts +2 -2
  526. package/ts/types/Interface/models/IAccountingFile.ts +3 -3
  527. package/ts/types/Interface/models/IAccountingTransaction.ts +9 -9
  528. package/ts/types/Interface/models/IAnnotation.ts +1 -1
  529. package/ts/types/Interface/models/IAttestation.ts +5 -5
  530. package/ts/types/Interface/models/IAttributionHistory.ts +2 -2
  531. package/ts/types/Interface/models/IBalanceSheet.ts +6 -6
  532. package/ts/types/Interface/models/IBankAccount.ts +7 -7
  533. package/ts/types/Interface/models/IBillingHistory.ts +1 -1
  534. package/ts/types/Interface/models/IBusinessPartner.ts +1 -1
  535. package/ts/types/Interface/models/ICalendarEvent.ts +3 -3
  536. package/ts/types/Interface/models/ICard.ts +4 -4
  537. package/ts/types/Interface/models/ICardHistory.ts +1 -1
  538. package/ts/types/Interface/models/IChecklist.ts +3 -3
  539. package/ts/types/Interface/models/IChecklistDetail.ts +1 -1
  540. package/ts/types/Interface/models/IComment.ts +3 -3
  541. package/ts/types/Interface/models/ICustomerIsRegime.ts +1 -1
  542. package/ts/types/Interface/models/ICustomerSignature.ts +4 -4
  543. package/ts/types/Interface/models/ICustomerVat.ts +2 -2
  544. package/ts/types/Interface/models/IDocumentRequest.ts +4 -4
  545. package/ts/types/Interface/models/IEInvoicing.ts +2 -2
  546. package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +1 -1
  547. package/ts/types/Interface/models/IEInvoicingStatus.ts +2 -2
  548. package/ts/types/Interface/models/IEmployee.ts +4 -4
  549. package/ts/types/Interface/models/IEstimateInvoice.ts +7 -7
  550. package/ts/types/Interface/models/IExercice.ts +12 -12
  551. package/ts/types/Interface/models/IExercicePrestation.ts +2 -2
  552. package/ts/types/Interface/models/IFecFile.ts +2 -2
  553. package/ts/types/Interface/models/IFile.ts +2 -2
  554. package/ts/types/Interface/models/IFormalism.ts +3 -3
  555. package/ts/types/Interface/models/IGedFile.ts +8 -8
  556. package/ts/types/Interface/models/IHumanResourceLibrary.ts +2 -2
  557. package/ts/types/Interface/models/IImmobilization.ts +2 -2
  558. package/ts/types/Interface/models/IInformationRequest.ts +4 -4
  559. package/ts/types/Interface/models/IInpiPayment.ts +3 -3
  560. package/ts/types/Interface/models/IInvoiceRecurrence.ts +1 -1
  561. package/ts/types/Interface/models/ILeadsToPartners.ts +1 -1
  562. package/ts/types/Interface/models/ILetter.ts +5 -5
  563. package/ts/types/Interface/models/ILoan.ts +3 -3
  564. package/ts/types/Interface/models/ILog.ts +2 -2
  565. package/ts/types/Interface/models/IMail.ts +6 -6
  566. package/ts/types/Interface/models/IPayment.ts +5 -5
  567. package/ts/types/Interface/models/IPaymentExpectation.ts +2 -2
  568. package/ts/types/Interface/models/IPaymentSchedule.ts +1 -1
  569. package/ts/types/Interface/models/IPrestation.ts +4 -4
  570. package/ts/types/Interface/models/IPrestationComplementary.ts +3 -3
  571. package/ts/types/Interface/models/IProduct.ts +2 -2
  572. package/ts/types/Interface/models/IProductInvoice.ts +2 -2
  573. package/ts/types/Interface/models/IRating.ts +1 -1
  574. package/ts/types/Interface/models/IRefund.ts +1 -1
  575. package/ts/types/Interface/models/IRegistration.ts +5 -5
  576. package/ts/types/Interface/models/IRegulation.ts +2 -2
  577. package/ts/types/Interface/models/IRule.ts +3 -3
  578. package/ts/types/Interface/models/ISalariesFile.ts +2 -2
  579. package/ts/types/Interface/models/ISaleDocumentTemplate.ts +1 -1
  580. package/ts/types/Interface/models/ISms.ts +2 -2
  581. package/ts/types/Interface/models/ISociety.ts +43 -43
  582. package/ts/types/Interface/models/ISocietyConfigBalanceSheet.ts +5 -5
  583. package/ts/types/Interface/models/ISocietyDetail.ts +1 -1
  584. package/ts/types/Interface/models/ISocietyPartner.ts +1 -1
  585. package/ts/types/Interface/models/ISocietyProceding.ts +1 -1
  586. package/ts/types/Interface/models/ISocietyVehicle.ts +2 -2
  587. package/ts/types/Interface/models/ITask.ts +2 -2
  588. package/ts/types/Interface/models/ITerminationList.ts +3 -3
  589. package/ts/types/Interface/models/IThirdParty.ts +3 -3
  590. package/ts/types/Interface/models/ITimeTracking.ts +2 -2
  591. package/ts/types/Interface/models/IUpToDateBankAccount.ts +1 -1
  592. package/ts/types/Interface/models/IUser.ts +15 -15
  593. package/ts/types/Interface/models/IUserFile.ts +1 -1
  594. package/ts/types/Interface/models/IUserHumanResourceLibrary.ts +1 -1
  595. package/ts/types/Interface/models/IUserTeam.ts +1 -1
  596. package/ts/types/Interface/models/IUsersHistory.ts +1 -1
  597. package/ts/types/Interface/models/IVatRegimeHistory.ts +3 -3
  598. package/ts/types/Interface/models/IWorkingSchedule.ts +2 -2
  599. package/ts/types/Interface/models/IZTicket.ts +1 -1
  600. package/ts/types/Interface/schemas/IRegistrationDetail.ts +1 -1
  601. package/ts/utils/acdVat.ts +3 -3
  602. package/ts/utils/bankAccount.ts +2 -2
  603. package/ts/utils/brands.ts +3 -3
  604. package/ts/utils/cerfa.ts +2 -2
  605. package/ts/utils/checkup.ts +1 -1
  606. package/ts/utils/commercialManagement/document.ts +15 -15
  607. package/ts/utils/commercialManagement/internationalization/choices.ts +1 -1
  608. package/ts/utils/commercialManagement/product.ts +3 -3
  609. package/ts/utils/commercialManagement/recurrence.ts +2 -2
  610. package/ts/utils/commercialManagement/saleEmail.ts +1 -1
  611. package/ts/utils/commercialManagement/templates/common.ts +1 -1
  612. package/ts/utils/commercialManagement/thirdParty.ts +1 -1
  613. package/ts/utils/commercialManagement/vat.ts +1 -1
  614. package/ts/utils/commercialOffer.ts +4 -4
  615. package/ts/utils/date.ts +3 -3
  616. package/ts/utils/documents.ts +2 -2
  617. package/ts/utils/email.ts +1 -1
  618. package/ts/utils/exercice.ts +1 -1
  619. package/ts/utils/payment.ts +1 -1
  620. package/ts/utils/prestation.ts +10 -11
  621. package/ts/utils/quotation.ts +3 -3
  622. package/ts/utils/siretValidation.ts +2 -2
  623. package/ts/utils/societyApproval.ts +198 -9
  624. package/ts/utils/tests/document.spec.ts +4 -4
  625. package/ts/utils/tests/payment.spec.ts +2 -2
  626. package/ts/utils/tests/societyApproval.spec.ts +237 -0
  627. package/ts/utils/validators/nestedArray.validator.ts +2 -2
  628. package/ts/utils/vat/3310/century24.ts +6 -6
  629. package/ts/utils/vat/3310/century25.ts +6 -6
  630. package/ts/utils/vat/3310/century26.ts +6 -6
  631. package/ts/utils/vat/3517/century25.ts +3 -3
  632. package/ts/utils/vat/3517/century26.ts +9 -9
  633. package/ts/utils/vat/3519/century17.ts +3 -3
  634. package/ts/utils/vat/centuries.ts +18 -18
  635. package/ts/utils/vat/registration.ts +1 -1
  636. package/ts/utils/vat/utils.ts +1 -1
  637. package/dist/index-CL2xcnsB.d.mts.map +0 -1
  638. package/dist/product-q6BjuQqT.mjs +0 -2
  639. package/dist/product-q6BjuQqT.mjs.map +0 -1
@@ -1,4 +1,8 @@
1
+ import dayjs from 'dayjs';
2
+ import { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe.js';
3
+ import { Civility } from '../types/Enum/Civility.js';
1
4
  import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm.js';
5
+ import { Quality, QualityList } from '../types/Enum/Quality.js';
2
6
  import {
3
7
  AdditionalMentionType,
4
8
  SocietyApprovalDocumentType,
@@ -7,11 +11,8 @@ import {
7
11
  SocietyApprovalDocumentTemplate,
8
12
  } from '../types/Enum/SocietyApproval.js';
9
13
  import { ISocietyApproval } from '../types/Interface/models/ISocietyApproval.js';
10
- import { QualityList } from '../types/Enum/Quality.js';
11
- import { getBrand } from './brands.js';
12
14
  import { convertDayOfMonthToLetter, convertNumberToLetter } from './amount.js';
13
- import dayjs from 'dayjs';
14
- import { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe.js';
15
+ import { getBrand } from './brands.js';
15
16
  import { siretToSiren } from './siretValidation.js';
16
17
 
17
18
  /**
@@ -59,6 +60,158 @@ export function getApprovalDocumentInfos(
59
60
  return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
60
61
  }
61
62
 
63
+ type ApprovalPerson = {
64
+ idCivility?: number | null;
65
+ firstname?: string | null;
66
+ lastname?: string | null;
67
+ };
68
+
69
+ type ApprovalPartner = {
70
+ idQuality?: number | null;
71
+ society?: { name?: string | null } | null;
72
+ user?: ApprovalPerson | null;
73
+ };
74
+
75
+ /**
76
+ * Gets the grammatical gender from a civility (masculine when the civility is unknown)
77
+ * @param idCivility - The civility id
78
+ * @returns Civility.FEMALE for a woman, Civility.MALE otherwise
79
+ */
80
+ export function getGenderFromCivility(idCivility: number | null | undefined): Civility {
81
+ return idCivility === Civility.FEMALE ? Civility.FEMALE : Civility.MALE;
82
+ }
83
+
84
+ /**
85
+ * Gets the grammatical gender of a group of partners: feminine only when all of them are women
86
+ * (natural persons), masculine as soon as a man, a legal entity or an unknown civility is present
87
+ * @param partners - The partners
88
+ * @returns The grammatical gender of the group
89
+ */
90
+ export function getPartnersGender(partners: ApprovalPartner[]): Civility {
91
+ const isOnlyWomen =
92
+ partners.length > 0 &&
93
+ partners.every((partner) => !partner.society && partner.user?.idCivility === Civility.FEMALE);
94
+ return isOnlyWomen ? Civility.FEMALE : Civility.MALE;
95
+ }
96
+
97
+ /**
98
+ * Picks the masculine or feminine form of a text
99
+ * @param gender - The grammatical gender
100
+ * @param masculine - The masculine form
101
+ * @param feminine - The feminine form
102
+ * @returns The inflected form
103
+ */
104
+ export function inflectByGender(gender: Civility, masculine: string, feminine: string): string {
105
+ return gender === Civility.FEMALE ? feminine : masculine;
106
+ }
107
+
108
+ /**
109
+ * Gets the quality label inflected by gender
110
+ * @param idQuality - The quality id
111
+ * @param gender - The grammatical gender
112
+ * @returns The inflected label, or an empty string when the quality is unknown
113
+ */
114
+ export function getQualityLabel(idQuality: Quality | number | null | undefined, gender: Civility): string {
115
+ const quality = QualityList.find((ql) => ql.id === idQuality);
116
+ if (!quality) return '';
117
+ return inflectByGender(gender, quality.label, quality.labelFeminine);
118
+ }
119
+
120
+ /**
121
+ * Picks the masculine or feminine form of a text from a civility (masculine when the civility is unknown)
122
+ * @param idCivility - The civility id
123
+ * @param masculine - The masculine form
124
+ * @param feminine - The feminine form
125
+ * @returns The inflected form
126
+ */
127
+ export function inflectByCivility(idCivility: number | null | undefined, masculine: string, feminine: string): string {
128
+ return inflectByGender(getGenderFromCivility(idCivility), masculine, feminine);
129
+ }
130
+
131
+ type GenderTemplateHelpers = {
132
+ getCivilityTitle: (idCivility: number | null | undefined, isShort?: boolean) => string;
133
+ inflectByCivility: (idCivility: number | null | undefined, masculine: string, feminine: string) => string;
134
+ byOwnerGender: (masculine: string, feminine: string) => string;
135
+ byPartnersGender: (masculine: string, feminine: string) => string;
136
+ };
137
+
138
+ /**
139
+ * Builds the gender agreement functions injected into the EJS templates
140
+ * @param ownerCivility - The owner civility
141
+ * @param partners - The partners (a legal entity has `society` set, a natural person has an empty `society`)
142
+ * @returns The agreement functions
143
+ */
144
+ export function buildGenderTemplateHelpers(
145
+ ownerCivility: number | null | undefined,
146
+ partners: ApprovalPartner[],
147
+ ): GenderTemplateHelpers {
148
+ const ownerGender = getGenderFromCivility(ownerCivility);
149
+ const partnersGender = getPartnersGender(partners);
150
+ return {
151
+ getCivilityTitle,
152
+ inflectByCivility,
153
+ byOwnerGender: (masculine: string, feminine: string): string => inflectByGender(ownerGender, masculine, feminine),
154
+ byPartnersGender: (masculine: string, feminine: string): string =>
155
+ inflectByGender(partnersGender, masculine, feminine),
156
+ };
157
+ }
158
+
159
+ const ELIDED_ARTICLE_REGEXP = /^[aeiouyàâäéèêëîïôöùûü]/i;
160
+
161
+ /**
162
+ * Prefixes a label with its inflected definite article, elided before a vowel (« l'associée », « la présidente »)
163
+ * @param label - The label
164
+ * @param gender - The grammatical gender
165
+ * @returns The label preceded by its article
166
+ */
167
+ export function formatWithDefiniteArticle(label: string, gender: Civility): string {
168
+ if (ELIDED_ARTICLE_REGEXP.test(label)) return `l'${label}`;
169
+ return `${inflectByGender(gender, 'le', 'la')} ${label}`;
170
+ }
171
+
172
+ /**
173
+ * Gets the civility title (empty when the civility is unknown)
174
+ * @param idCivility - The civility id
175
+ * @param isShort - true for the abbreviation (M. / Mme)
176
+ * @returns The civility title
177
+ */
178
+ export function getCivilityTitle(idCivility: number | null | undefined, isShort: boolean = false): string {
179
+ if (idCivility === Civility.MALE) return isShort ? 'M.' : 'Monsieur';
180
+ if (idCivility === Civility.FEMALE) return isShort ? 'Mme' : 'Madame';
181
+ return '';
182
+ }
183
+
184
+ /**
185
+ * Builds a person identity: civility, firstname and lastname, without extra spaces
186
+ * @param person - The person
187
+ * @param isShort - true for the abbreviated civility
188
+ * @returns The formatted identity
189
+ */
190
+ export function formatPersonIdentity(person: ApprovalPerson | null | undefined, isShort: boolean = false): string {
191
+ return [getCivilityTitle(person?.idCivility, isShort), person?.firstname, person?.lastname].filter(Boolean).join(' ');
192
+ }
193
+
194
+ /**
195
+ * Builds a partner identity: company name for a legal entity, person identity otherwise
196
+ * @param partner - The partner
197
+ * @param isShort - true for the abbreviated civility
198
+ * @returns The partner identity
199
+ */
200
+ export function formatPartnerIdentity(partner: ApprovalPartner, isShort: boolean = false): string {
201
+ if (partner.society) return partner.society.name ?? '';
202
+ return formatPersonIdentity(partner.user, isShort);
203
+ }
204
+
205
+ /**
206
+ * Gets the partner quality label inflected by the partner gender
207
+ * @param partner - The partner
208
+ * @returns The inflected label or an empty string
209
+ */
210
+ export function getPartnerQualityLabel(partner: ApprovalPartner): string {
211
+ const gender = partner.society ? Civility.MALE : getGenderFromCivility(partner.user?.idCivility);
212
+ return getQualityLabel(partner.idQuality, gender);
213
+ }
214
+
62
215
  function createApprovalDecisionTitleGenerator(idLegalForm?: LegalFormTypeEnum): () => string {
63
216
  const decisionOrdinals = ['PREMIERE', 'DEUXIEME', 'TROISIEME', 'QUATRIEME', 'CINQUIEME', 'SIXIEME'];
64
217
  const decisionLabel =
@@ -71,6 +224,24 @@ function createApprovalDecisionTitleGenerator(idLegalForm?: LegalFormTypeEnum):
71
224
  };
72
225
  }
73
226
 
227
+ /**
228
+ * Gets the default quality of the company manager, used when no quality is stored for the owner
229
+ * @param idLegalForm - The legal form id
230
+ * @returns The default quality, or null when the legal form has no default
231
+ */
232
+ export function getDefaultOwnerQuality(idLegalForm: LegalFormTypeEnum | null | undefined): Quality | null {
233
+ switch (idLegalForm) {
234
+ case LegalFormTypeEnum.EURL:
235
+ case LegalFormTypeEnum.SARL:
236
+ return Quality.GERANT;
237
+ case LegalFormTypeEnum.SAS:
238
+ case LegalFormTypeEnum.SASU:
239
+ return Quality.PRESIDENT;
240
+ default:
241
+ return null;
242
+ }
243
+ }
244
+
74
245
  /**
75
246
  * Construit les données formatées pour le template d'approbation
76
247
  * @param existingApproval - Les données d'approbation de la société
@@ -91,9 +262,17 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
91
262
  existingApproval?.exercice?.society?.totalSharesHeld ?? 0,
92
263
  ).toLowerCase();
93
264
  const brand = getBrand();
265
+ const owner = existingApproval?.exercice?.society?.users?.[0];
266
+ const ownerGender = getGenderFromCivility(owner?.idCivility);
267
+ const ownerQualityLabel =
268
+ getQualityLabel(owner?.businessPartners?.[0]?.idQuality, ownerGender) ||
269
+ getQualityLabel(getDefaultOwnerQuality(existingApproval?.exercice?.society?.idLegalForm), ownerGender);
270
+ const partners = existingApproval?.exercice?.society?.businessPartners ?? [];
271
+ const partnersGender = getPartnersGender(partners);
94
272
  return {
95
273
  // Variables globales
96
274
  AdditionalMentionType,
275
+ Civility,
97
276
  nextDecisionTitle: createApprovalDecisionTitleGenerator(
98
277
  existingApproval?.exercice?.society?.idLegalForm ?? undefined,
99
278
  ),
@@ -120,12 +299,22 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
120
299
  ECOrderCity: brand?.companyInformation?.ECOrderCity,
121
300
  },
122
301
  owner: {
123
- identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname}`,
124
- quality:
125
- QualityList.find(
126
- (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,
127
- )?.label ?? '',
302
+ idCivility: owner?.idCivility ?? null,
303
+ isFemale: ownerGender === Civility.FEMALE,
304
+ identity: formatPersonIdentity(owner),
305
+ quality: ownerQualityLabel,
306
+ qualityWithArticle: ownerQualityLabel
307
+ ? formatWithDefiniteArticle(ownerQualityLabel.toLowerCase(), ownerGender)
308
+ : '',
309
+ },
310
+ partners: {
311
+ count: partners.length,
312
+ isPlural: partners.length > 1,
313
+ isFemale: partnersGender === Civility.FEMALE,
128
314
  },
315
+ ...buildGenderTemplateHelpers(owner?.idCivility, partners),
316
+ formatPartnerIdentity,
317
+ getPartnerQualityLabel,
129
318
  // Variables stockées en base
130
319
  ...existingApproval,
131
320
  generatingDatas: {
@@ -1,11 +1,11 @@
1
1
  import { describe, expect, test } from 'vitest';
2
- import { generateCommercialDocument } from '../commercialManagement/document.js';
3
- import { isHtmlEmpty } from '../isHtml.js';
4
- import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice.js';
5
- import { CreateInvoiceDocument } from '../../types/Interface/api/commercialManagement/Create.js';
6
2
  import { DiscountType } from '../../types/Enum/CommercialManagement.js';
3
+ import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice.js';
7
4
  import { Unit } from '../../types/Enum/Unit.js';
8
5
  import { Vat } from '../../types/Enum/Vat.js';
6
+ import { CreateInvoiceDocument } from '../../types/Interface/api/commercialManagement/Create.js';
7
+ import { generateCommercialDocument } from '../commercialManagement/document.js';
8
+ import { isHtmlEmpty } from '../isHtml.js';
9
9
 
10
10
  // Payload reproducing a real-world case where the seller address fields (`name`, `street`,
11
11
  // `number`, `zipCode`, `city`) are entirely absent from the object, not just `null`.
@@ -1,8 +1,8 @@
1
1
  import dayjs from 'dayjs';
2
- import { IRegulation, Vat, PaymentMethod } from '../../types/index.js';
3
2
  import MockDate from 'mockdate';
4
- import { calculatePaymentsAuto } from '../payment.js';
3
+ import { IRegulation, Vat, PaymentMethod } from '../../types/index.js';
5
4
  import { PartialExercicePrestationExpress } from '../../types/Interface/api/payment/Util.js';
5
+ import { calculatePaymentsAuto } from '../payment.js';
6
6
  import { getTaxesIncludedAmount } from '../vat/utils.js';
7
7
 
8
8
  // @ts-ignore
@@ -0,0 +1,237 @@
1
+ import { describe, expect, test } from 'vitest';
2
+ import { Civility } from '../../types/Enum/Civility.js';
3
+ import { LegalFormTypeEnum } from '../../types/Enum/LegalForm.js';
4
+ import { Quality } from '../../types/Enum/Quality.js';
5
+ import { ISocietyApproval } from '../../types/Interface/models/ISocietyApproval.js';
6
+ import {
7
+ buildApprovalTemplateData,
8
+ buildGenderTemplateHelpers,
9
+ formatPartnerIdentity,
10
+ formatPersonIdentity,
11
+ formatWithDefiniteArticle,
12
+ getDefaultOwnerQuality,
13
+ getGenderFromCivility,
14
+ getPartnerQualityLabel,
15
+ getPartnersGender,
16
+ getQualityLabel,
17
+ inflectByCivility,
18
+ } from '../societyApproval.js';
19
+
20
+ const WOMAN = { user: { idCivility: Civility.FEMALE, firstname: 'Marie', lastname: 'Curie' } };
21
+ const MAN = { user: { idCivility: Civility.MALE, firstname: 'Pierre', lastname: 'Curie' } };
22
+ const UNKNOWN = { user: { idCivility: null, firstname: 'Camille', lastname: 'Dupont' } };
23
+ const COMPANY = { society: { name: 'Holding' } };
24
+
25
+ const buildApproval = (params: {
26
+ ownerCivility: Civility | null;
27
+ ownerQuality: Quality | null;
28
+ partners: Array<typeof WOMAN | typeof MAN | typeof UNKNOWN | typeof COMPANY>;
29
+ idLegalForm?: LegalFormTypeEnum;
30
+ }): ISocietyApproval =>
31
+ ({
32
+ exercice: {
33
+ society: {
34
+ idLegalForm: params.idLegalForm,
35
+ users: [
36
+ {
37
+ idCivility: params.ownerCivility,
38
+ firstname: 'Ada',
39
+ lastname: 'Lovelace',
40
+ businessPartners: [{ idQuality: params.ownerQuality }],
41
+ },
42
+ ],
43
+ businessPartners: params.partners,
44
+ },
45
+ },
46
+ }) as ISocietyApproval;
47
+
48
+ describe('societyApproval gender utils', () => {
49
+ test.each([
50
+ { idCivility: Civility.FEMALE, expected: Civility.FEMALE },
51
+ { idCivility: Civility.MALE, expected: Civility.MALE },
52
+ { idCivility: null, expected: Civility.MALE },
53
+ { idCivility: undefined, expected: Civility.MALE },
54
+ ])('should get gender $expected from civility $idCivility', ({ idCivility, expected }) => {
55
+ expect(getGenderFromCivility(idCivility)).toBe(expected);
56
+ });
57
+
58
+ test.each([
59
+ { case: 'only women', partners: [WOMAN, WOMAN], expected: Civility.FEMALE },
60
+ { case: 'a single woman', partners: [WOMAN], expected: Civility.FEMALE },
61
+ { case: 'women and men', partners: [WOMAN, MAN], expected: Civility.MALE },
62
+ { case: 'a woman and a company', partners: [WOMAN, COMPANY], expected: Civility.MALE },
63
+ { case: 'a woman and an unknown civility', partners: [WOMAN, UNKNOWN], expected: Civility.MALE },
64
+ { case: 'no partner', partners: [], expected: Civility.MALE },
65
+ ])('should get the partners gender with $case', ({ partners, expected }) => {
66
+ expect(getPartnersGender(partners)).toBe(expected);
67
+ });
68
+
69
+ test.each([
70
+ { idQuality: Quality.GERANT, gender: Civility.FEMALE, expected: 'Gérante' },
71
+ { idQuality: Quality.GERANT, gender: Civility.MALE, expected: 'Gérant' },
72
+ { idQuality: Quality.PRESIDENT, gender: Civility.FEMALE, expected: 'Présidente' },
73
+ { idQuality: Quality.EI, gender: Civility.FEMALE, expected: 'Entrepreneuse individuelle' },
74
+ { idQuality: Quality.AE, gender: Civility.FEMALE, expected: 'Auto-entrepreneuse' },
75
+ { idQuality: Quality.PDG, gender: Civility.FEMALE, expected: 'PDG' },
76
+ { idQuality: null, gender: Civility.FEMALE, expected: '' },
77
+ ])('should get the quality label $expected', ({ idQuality, gender, expected }) => {
78
+ expect(getQualityLabel(idQuality, gender)).toBe(expected);
79
+ });
80
+
81
+ test.each([
82
+ { person: WOMAN.user, isShort: false, expected: 'Madame Marie Curie' },
83
+ { person: MAN.user, isShort: true, expected: 'M. Pierre Curie' },
84
+ { person: WOMAN.user, isShort: true, expected: 'Mme Marie Curie' },
85
+ { person: UNKNOWN.user, isShort: false, expected: 'Camille Dupont' },
86
+ { person: { idCivility: Civility.MALE, firstname: '', lastname: 'Seul' }, isShort: true, expected: 'M. Seul' },
87
+ ])('should format the identity $expected', ({ person, isShort, expected }) => {
88
+ expect(formatPersonIdentity(person, isShort)).toBe(expected);
89
+ });
90
+
91
+ test.each([
92
+ { label: 'présidente', gender: Civility.FEMALE, expected: 'la présidente' },
93
+ { label: 'président', gender: Civility.MALE, expected: 'le président' },
94
+ { label: 'associée', gender: Civility.FEMALE, expected: "l'associée" },
95
+ { label: 'associé', gender: Civility.MALE, expected: "l'associé" },
96
+ { label: 'entrepreneuse individuelle', gender: Civility.FEMALE, expected: "l'entrepreneuse individuelle" },
97
+ { label: 'pdg', gender: Civility.FEMALE, expected: 'la pdg' },
98
+ ])('should prefix $label with its definite article', ({ label, gender, expected }) => {
99
+ expect(formatWithDefiniteArticle(label, gender)).toBe(expected);
100
+ });
101
+
102
+ test.each([
103
+ { idCivility: Civility.FEMALE, expected: 'née' },
104
+ { idCivility: Civility.MALE, expected: 'né' },
105
+ { idCivility: null, expected: 'né' },
106
+ ])('should inflect by civility $idCivility', ({ idCivility, expected }) => {
107
+ expect(inflectByCivility(idCivility, 'né', 'née')).toBe(expected);
108
+ });
109
+
110
+ test('should build the gender template helpers from the owner and the partners', () => {
111
+ const helpers = buildGenderTemplateHelpers(Civility.FEMALE, [WOMAN, MAN]);
112
+
113
+ expect(helpers.byOwnerGender('le soussigné', 'la soussignée')).toBe('la soussignée');
114
+ expect(helpers.byPartnersGender('Les soussignés', 'Les soussignées')).toBe('Les soussignés');
115
+ expect(helpers.inflectByCivility(Civility.FEMALE, 'né', 'née')).toBe('née');
116
+ expect(helpers.getCivilityTitle(Civility.FEMALE, true)).toBe('Mme');
117
+ });
118
+
119
+ test('should format a company partner with its name', () => {
120
+ expect(formatPartnerIdentity(COMPANY)).toBe('Holding');
121
+ });
122
+
123
+ test.each([
124
+ { partner: { ...WOMAN, idQuality: Quality.GERANT }, expected: 'Gérante' },
125
+ { partner: { ...MAN, idQuality: Quality.GERANT }, expected: 'Gérant' },
126
+ { partner: { ...COMPANY, idQuality: Quality.ASSOCIE }, expected: 'Associé' },
127
+ ])('should get the partner quality label $expected', ({ partner, expected }) => {
128
+ expect(getPartnerQualityLabel(partner)).toBe(expected);
129
+ });
130
+ });
131
+
132
+ describe('buildApprovalTemplateData gender data', () => {
133
+ test('should expose a feminine owner and partners', () => {
134
+ const data = buildApprovalTemplateData(
135
+ buildApproval({ ownerCivility: Civility.FEMALE, ownerQuality: Quality.PRESIDENT, partners: [WOMAN, WOMAN] }),
136
+ '',
137
+ );
138
+
139
+ expect(data.owner).toEqual(
140
+ expect.objectContaining({ isFemale: true, identity: 'Madame Ada Lovelace', quality: 'Présidente' }),
141
+ );
142
+ expect(data.partners).toEqual({ count: 2, isPlural: true, isFemale: true });
143
+ expect(data.byOwnerGender('il', 'elle')).toBe('elle');
144
+ expect(data.byPartnersGender('associés', 'associées')).toBe('associées');
145
+ });
146
+
147
+ test('should fall back to the masculine without title when the owner civility is unknown', () => {
148
+ const data = buildApprovalTemplateData(
149
+ buildApproval({ ownerCivility: null, ownerQuality: Quality.GERANT, partners: [WOMAN, COMPANY] }),
150
+ '',
151
+ );
152
+
153
+ expect(data.owner).toEqual(
154
+ expect.objectContaining({ isFemale: false, identity: 'Ada Lovelace', quality: 'Gérant' }),
155
+ );
156
+ expect(data.partners).toEqual({ count: 2, isPlural: true, isFemale: false });
157
+ expect(data.byOwnerGender('il', 'elle')).toBe('il');
158
+ expect(data.byPartnersGender('associés', 'associées')).toBe('associés');
159
+ });
160
+
161
+ test.each([
162
+ { idLegalForm: LegalFormTypeEnum.EURL, civility: Civility.MALE, quality: 'Gérant', withArticle: 'le gérant' },
163
+ { idLegalForm: LegalFormTypeEnum.SARL, civility: Civility.FEMALE, quality: 'Gérante', withArticle: 'la gérante' },
164
+ { idLegalForm: LegalFormTypeEnum.SASU, civility: Civility.MALE, quality: 'Président', withArticle: 'le président' },
165
+ {
166
+ idLegalForm: LegalFormTypeEnum.SAS,
167
+ civility: Civility.FEMALE,
168
+ quality: 'Présidente',
169
+ withArticle: 'la présidente',
170
+ },
171
+ ])(
172
+ 'should fall back to the default quality of a $idLegalForm owner without stored quality',
173
+ ({ idLegalForm, civility, quality, withArticle }) => {
174
+ const data = buildApprovalTemplateData(
175
+ buildApproval({ ownerCivility: civility, ownerQuality: null, partners: [], idLegalForm }),
176
+ '',
177
+ );
178
+
179
+ expect(data.owner).toEqual(expect.objectContaining({ quality, qualityWithArticle: withArticle }));
180
+ },
181
+ );
182
+
183
+ test('should keep the stored quality over the default one of the legal form', () => {
184
+ const data = buildApprovalTemplateData(
185
+ buildApproval({
186
+ ownerCivility: Civility.MALE,
187
+ ownerQuality: Quality.GERANT,
188
+ partners: [],
189
+ idLegalForm: LegalFormTypeEnum.SAS,
190
+ }),
191
+ '',
192
+ );
193
+
194
+ expect(data.owner).toEqual(expect.objectContaining({ quality: 'Gérant', qualityWithArticle: 'le gérant' }));
195
+ });
196
+
197
+ test('should fall back to the default quality when the stored quality has no label', () => {
198
+ const data = buildApprovalTemplateData(
199
+ buildApproval({
200
+ ownerCivility: Civility.MALE,
201
+ ownerQuality: 11 as Quality,
202
+ partners: [],
203
+ idLegalForm: LegalFormTypeEnum.SARL,
204
+ }),
205
+ '',
206
+ );
207
+
208
+ expect(data.owner).toEqual(expect.objectContaining({ quality: 'Gérant', qualityWithArticle: 'le gérant' }));
209
+ });
210
+
211
+ test('should leave the owner quality empty when neither stored nor default quality exists', () => {
212
+ const data = buildApprovalTemplateData(
213
+ buildApproval({
214
+ ownerCivility: Civility.MALE,
215
+ ownerQuality: null,
216
+ partners: [],
217
+ idLegalForm: LegalFormTypeEnum.SCI,
218
+ }),
219
+ '',
220
+ );
221
+
222
+ expect(data.owner).toEqual(expect.objectContaining({ quality: '', qualityWithArticle: '' }));
223
+ });
224
+ });
225
+
226
+ describe('getDefaultOwnerQuality', () => {
227
+ test.each([
228
+ { idLegalForm: LegalFormTypeEnum.EURL, expected: Quality.GERANT },
229
+ { idLegalForm: LegalFormTypeEnum.SARL, expected: Quality.GERANT },
230
+ { idLegalForm: LegalFormTypeEnum.SASU, expected: Quality.PRESIDENT },
231
+ { idLegalForm: LegalFormTypeEnum.SAS, expected: Quality.PRESIDENT },
232
+ { idLegalForm: LegalFormTypeEnum.SCI, expected: null },
233
+ { idLegalForm: undefined, expected: null },
234
+ ])('should get the default quality of legal form $idLegalForm', ({ idLegalForm, expected }) => {
235
+ expect(getDefaultOwnerQuality(idLegalForm)).toBe(expected);
236
+ });
237
+ });
@@ -1,7 +1,7 @@
1
- import { plainToInstance } from 'class-transformer';
2
1
  import type { ClassConstructor } from 'class-transformer';
3
- import { registerDecorator, validateSync } from 'class-validator';
4
2
  import type { ValidationArguments, ValidationError, ValidationOptions } from 'class-validator';
3
+ import { plainToInstance } from 'class-transformer';
4
+ import { registerDecorator, validateSync } from 'class-validator';
5
5
 
6
6
  function getItemErrors<T extends object>(cls: ClassConstructor<T>, item: unknown): string[] {
7
7
  if (typeof item !== 'object' || item === null) return ['must be an object'];
@@ -1,18 +1,18 @@
1
- import dayjs from 'dayjs';
2
1
  import { isDefined } from 'class-validator';
2
+ import dayjs from 'dayjs';
3
3
  import { round, uniqBy, flatten, maxBy } from 'lodash-es';
4
- import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
5
- import { Cerfa3310_2024, PayloadCerfa3310_2024 } from '../../../types/Interface/api/cerfa/3310.js';
6
4
  import { Vat } from '../../../types/Enum/Vat.js';
5
+ import { FieldForGeneration } from '../../../types/Interface/api/aspone/ReadInterchange.js';
6
+ import { Cerfa3310_2024, PayloadCerfa3310_2024 } from '../../../types/Interface/api/cerfa/3310.js';
7
+ import { AsponeFormFields, CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa.js';
8
+ import { UpdatedAnnotation } from '../../../types/Interface/api/registration/ReadRegistration.js';
9
+ import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
7
10
  import {
8
11
  getAmountByAccountNumber,
9
12
  getTaxAmountByAccountNumber,
10
13
  setZeroIfIsNegative,
11
14
  textFormatting,
12
15
  } from '../utils.js';
13
- import { AsponeFormFields, CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa.js';
14
- import { UpdatedAnnotation } from '../../../types/Interface/api/registration/ReadRegistration.js';
15
- import { FieldForGeneration } from '../../../types/Interface/api/aspone/ReadInterchange.js';
16
16
 
17
17
  export function getCerfa3310Century24Payload(
18
18
  accountingEntries: IAccountingEntry[],
@@ -1,18 +1,18 @@
1
- import dayjs from 'dayjs';
2
1
  import { isDefined } from 'class-validator';
2
+ import dayjs from 'dayjs';
3
3
  import { uniqBy, flatten, round, maxBy } from 'lodash-es';
4
- import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
5
- import { Cerfa3310_2025, PayloadCerfa3310_2025 } from '../../../types/Interface/api/cerfa/3310.js';
6
4
  import { Vat } from '../../../types/Enum/Vat.js';
5
+ import { FieldForGeneration } from '../../../types/Interface/api/aspone/ReadInterchange.js';
6
+ import { Cerfa3310_2025, PayloadCerfa3310_2025 } from '../../../types/Interface/api/cerfa/3310.js';
7
+ import { AsponeFormFields, CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa.js';
8
+ import { UpdatedAnnotation } from '../../../types/Interface/api/registration/ReadRegistration.js';
9
+ import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
7
10
  import {
8
11
  getAmountByAccountNumber,
9
12
  getTaxAmountByAccountNumber,
10
13
  setZeroIfIsNegative,
11
14
  textFormatting,
12
15
  } from '../utils.js';
13
- import { AsponeFormFields, CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa.js';
14
- import { UpdatedAnnotation } from '../../../types/Interface/api/registration/ReadRegistration.js';
15
- import { FieldForGeneration } from '../../../types/Interface/api/aspone/ReadInterchange.js';
16
16
 
17
17
  export function getCerfa3310Century25Payload(
18
18
  accountingEntries: IAccountingEntry[],
@@ -1,18 +1,18 @@
1
- import dayjs from 'dayjs';
2
1
  import { isDefined } from 'class-validator';
2
+ import dayjs from 'dayjs';
3
3
  import { maxBy, round, uniqBy, flatten } from 'lodash-es';
4
- import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
5
- import { Cerfa3310_2026, PayloadCerfa3310_2026 } from '../../../types/Interface/api/cerfa/3310.js';
6
4
  import { Vat } from '../../../types/Enum/Vat.js';
5
+ import { FieldForGeneration } from '../../../types/Interface/api/aspone/ReadInterchange.js';
6
+ import { Cerfa3310_2026, PayloadCerfa3310_2026 } from '../../../types/Interface/api/cerfa/3310.js';
7
+ import { AsponeFormFields, CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa.js';
8
+ import { UpdatedAnnotation } from '../../../types/Interface/api/registration/ReadRegistration.js';
9
+ import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
7
10
  import {
8
11
  getAmountByAccountNumber,
9
12
  getTaxAmountByAccountNumber,
10
13
  setZeroIfIsNegative,
11
14
  textFormatting,
12
15
  } from '../utils.js';
13
- import { AsponeFormFields, CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa.js';
14
- import { UpdatedAnnotation } from '../../../types/Interface/api/registration/ReadRegistration.js';
15
- import { FieldForGeneration } from '../../../types/Interface/api/aspone/ReadInterchange.js';
16
16
 
17
17
  export function getCerfa3310Century26Payload(
18
18
  accountingEntries: IAccountingEntry[],
@@ -1,16 +1,16 @@
1
- import dayjs from 'dayjs';
2
1
  import { isDefined } from 'class-validator';
2
+ import dayjs from 'dayjs';
3
3
  import { round, uniqBy } from 'lodash-es';
4
+ import { Vat } from '../../../types/Enum/Vat.js';
5
+ import { AsponeFormFields, Cerfa3514_2022, CerfaPayloadForm, IRegistration } from '../../../types/index.js';
4
6
  import { Cerfa3517_2025, PayloadCerfa3517_2025 } from '../../../types/Interface/api/cerfa/3517.js';
5
7
  import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
6
- import { Vat } from '../../../types/Enum/Vat.js';
7
8
  import {
8
9
  getAmountByAccountNumber,
9
10
  getTaxAmountByAccountNumber,
10
11
  setZeroIfIsNegative,
11
12
  textFormatting,
12
13
  } from '../utils.js';
13
- import { AsponeFormFields, Cerfa3514_2022, CerfaPayloadForm, IRegistration } from '../../../types/index.js';
14
14
 
15
15
  export function getCerfa3517Century25Payload(
16
16
  accountingEntries: IAccountingEntry[],
@@ -1,15 +1,7 @@
1
- import dayjs from 'dayjs';
2
1
  import { isDefined } from 'class-validator';
2
+ import dayjs from 'dayjs';
3
3
  import { uniqBy, round } from 'lodash-es';
4
- import { Cerfa3517_2025, Cerfa3517_2026, PayloadCerfa3517_2026 } from '../../../types/Interface/api/cerfa/3517.js';
5
- import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
6
4
  import { Vat } from '../../../types/Enum/Vat.js';
7
- import {
8
- getAmountByAccountNumber,
9
- getTaxAmountByAccountNumber,
10
- setZeroIfIsNegative,
11
- textFormatting,
12
- } from '../utils.js';
13
5
  import {
14
6
  AsponeFormFields,
15
7
  Cerfa3514_2022,
@@ -17,6 +9,14 @@ import {
17
9
  FieldForGeneration,
18
10
  IRegistration,
19
11
  } from '../../../types/index.js';
12
+ import { Cerfa3517_2025, Cerfa3517_2026, PayloadCerfa3517_2026 } from '../../../types/Interface/api/cerfa/3517.js';
13
+ import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
14
+ import {
15
+ getAmountByAccountNumber,
16
+ getTaxAmountByAccountNumber,
17
+ setZeroIfIsNegative,
18
+ textFormatting,
19
+ } from '../utils.js';
20
20
 
21
21
  export function getCerfa3517Century26Payload(
22
22
  accountingEntries: IAccountingEntry[],