@silexpert/core 0.4.183 → 0.4.185

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 (393) hide show
  1. package/es/api/resources/Country.d.ts +2 -1
  2. package/es/api/resources/Country.d.ts.map +1 -1
  3. package/es/api/resources/Country.js +3 -0
  4. package/es/api/resources/Country.js.map +1 -1
  5. package/es/api/resources/Employee.d.ts +3 -1
  6. package/es/api/resources/Employee.d.ts.map +1 -1
  7. package/es/api/resources/Employee.js +6 -0
  8. package/es/api/resources/Employee.js.map +1 -1
  9. package/es/api/resources/Mail.d.ts +11 -6
  10. package/es/api/resources/Mail.d.ts.map +1 -1
  11. package/es/api/resources/Mail.js +34 -22
  12. package/es/api/resources/Mail.js.map +1 -1
  13. package/es/api/resources/SheetMonthSchedule.d.ts +11 -0
  14. package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -0
  15. package/es/api/resources/SheetMonthSchedule.js +22 -0
  16. package/es/api/resources/SheetMonthSchedule.js.map +1 -0
  17. package/es/api/resources/User.d.ts +3 -1
  18. package/es/api/resources/User.d.ts.map +1 -1
  19. package/es/api/resources/User.js +6 -0
  20. package/es/api/resources/User.js.map +1 -1
  21. package/es/api/resources.d.ts +2 -0
  22. package/es/api/resources.d.ts.map +1 -1
  23. package/es/api/resources.js +2 -0
  24. package/es/api/resources.js.map +1 -1
  25. package/es/types/Enum/BrandClementine.d.ts +46 -4
  26. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  27. package/es/types/Enum/BrandClementine.js +45 -0
  28. package/es/types/Enum/BrandClementine.js.map +1 -1
  29. package/es/types/Enum/BrandComptalib.js +20 -20
  30. package/es/types/Enum/BrandComptalib.js.map +1 -1
  31. package/es/types/Enum/BrandLegalstart.d.ts +15 -0
  32. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  33. package/es/types/Enum/BrandLegalstart.js +15 -0
  34. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  35. package/es/types/Enum/MailFlag.d.ts +22 -7
  36. package/es/types/Enum/MailFlag.d.ts.map +1 -1
  37. package/es/types/Enum/MailFlag.js +22 -8
  38. package/es/types/Enum/MailFlag.js.map +1 -1
  39. package/es/types/Enum/SalariesType.d.ts +28 -0
  40. package/es/types/Enum/SalariesType.d.ts.map +1 -0
  41. package/es/types/Enum/SalariesType.js +33 -0
  42. package/es/types/Enum/SalariesType.js.map +1 -0
  43. package/es/types/Interface/api/mail/CreateMailParams.d.ts +2 -0
  44. package/es/types/Interface/api/mail/CreateMailParams.d.ts.map +1 -1
  45. package/es/types/Interface/api/mail/CreateMailParams.js.map +1 -1
  46. package/es/types/Interface/api/mail/QueryCountMail.d.ts +1 -1
  47. package/es/types/Interface/api/mail/QueryCountMail.d.ts.map +1 -1
  48. package/es/types/Interface/api/mail/QueryCountMail.js +1 -1
  49. package/es/types/Interface/api/mail/QueryCountMail.js.map +1 -1
  50. package/es/types/Interface/api/mail/QueryCountProcessedByUser.d.ts +5 -0
  51. package/es/types/Interface/api/mail/QueryCountProcessedByUser.d.ts.map +1 -0
  52. package/es/types/Interface/api/mail/QueryCountProcessedByUser.js +25 -0
  53. package/es/types/Interface/api/mail/QueryCountProcessedByUser.js.map +1 -0
  54. package/es/types/Interface/api/mail/QueryGetAnsweringTimeByUser.d.ts +5 -0
  55. package/es/types/Interface/api/mail/QueryGetAnsweringTimeByUser.d.ts.map +1 -0
  56. package/es/types/Interface/api/mail/QueryGetAnsweringTimeByUser.js +25 -0
  57. package/es/types/Interface/api/mail/QueryGetAnsweringTimeByUser.js.map +1 -0
  58. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +3 -0
  59. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  60. package/es/types/Interface/api/mail/QueryPaginatedMail.js +22 -2
  61. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  62. package/es/types/Interface/api/mail/UpdateMail.d.ts +1 -0
  63. package/es/types/Interface/api/mail/UpdateMail.d.ts.map +1 -1
  64. package/es/types/Interface/api/mail/UpdateMail.js +6 -0
  65. package/es/types/Interface/api/mail/UpdateMail.js.map +1 -1
  66. package/es/types/Interface/api/mail/UpdateMailParams.d.ts +8 -0
  67. package/es/types/Interface/api/mail/UpdateMailParams.d.ts.map +1 -0
  68. package/es/types/Interface/api/mail/UpdateMailParams.js +2 -0
  69. package/es/types/Interface/api/mail/UpdateMailParams.js.map +1 -0
  70. package/es/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.d.ts +9 -0
  71. package/es/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.d.ts.map +1 -0
  72. package/es/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.js +53 -0
  73. package/es/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.js.map +1 -0
  74. package/es/types/Interface/api/user/QueryGetAllFromSociety.d.ts +5 -0
  75. package/es/types/Interface/api/user/QueryGetAllFromSociety.d.ts.map +1 -0
  76. package/es/types/Interface/api/user/QueryGetAllFromSociety.js +31 -0
  77. package/es/types/Interface/api/user/QueryGetAllFromSociety.js.map +1 -0
  78. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts +2 -0
  79. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts.map +1 -1
  80. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +12 -0
  81. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
  82. package/es/types/Interface/models/IEmployee.d.ts +2 -0
  83. package/es/types/Interface/models/IEmployee.d.ts.map +1 -1
  84. package/es/types/Interface/models/IEmployee.js.map +1 -1
  85. package/es/types/Interface/models/IMail.d.ts +1 -2
  86. package/es/types/Interface/models/IMail.d.ts.map +1 -1
  87. package/es/types/Interface/models/IMail.js.map +1 -1
  88. package/es/types/Interface/models/ISociety.d.ts +1 -0
  89. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  90. package/es/types/Interface/models/ISociety.js.map +1 -1
  91. package/es/types/index.d.ts +5 -0
  92. package/es/types/index.d.ts.map +1 -1
  93. package/es/types/index.js +5 -0
  94. package/es/types/index.js.map +1 -1
  95. package/js/api/Resource.js.map +1 -1
  96. package/js/api/index.js.map +1 -1
  97. package/js/api/resources/Account.js.map +1 -1
  98. package/js/api/resources/AccountType.js.map +1 -1
  99. package/js/api/resources/AccountingFiles.js.map +1 -1
  100. package/js/api/resources/AccountingIncome.js.map +1 -1
  101. package/js/api/resources/AccountsSectors.js.map +1 -1
  102. package/js/api/resources/AffectedPatrimony.js.map +1 -1
  103. package/js/api/resources/Authenticate.js.map +1 -1
  104. package/js/api/resources/BalanceSheet.js.map +1 -1
  105. package/js/api/resources/BalanceSheetCompletion.js.map +1 -1
  106. package/js/api/resources/BalanceSheetModule.js.map +1 -1
  107. package/js/api/resources/BalanceSheetQuestion.js.map +1 -1
  108. package/js/api/resources/BankAccount.js.map +1 -1
  109. package/js/api/resources/BankStatement.js.map +1 -1
  110. package/js/api/resources/BudgetInsight.js.map +1 -1
  111. package/js/api/resources/Cerfa.js.map +1 -1
  112. package/js/api/resources/Closing.js.map +1 -1
  113. package/js/api/resources/Connector.js.map +1 -1
  114. package/js/api/resources/Country.js +4 -0
  115. package/js/api/resources/Country.js.map +1 -1
  116. package/js/api/resources/CustomerProviderOperation.js.map +1 -1
  117. package/js/api/resources/Dashboard.js.map +1 -1
  118. package/js/api/resources/Employee.js +8 -0
  119. package/js/api/resources/Employee.js.map +1 -1
  120. package/js/api/resources/Exercice.js.map +1 -1
  121. package/js/api/resources/ExerciceNote.js.map +1 -1
  122. package/js/api/resources/ExerciceQuestion.js.map +1 -1
  123. package/js/api/resources/FecFile.js.map +1 -1
  124. package/js/api/resources/FinancialCharge.js.map +1 -1
  125. package/js/api/resources/FirstStep.js.map +1 -1
  126. package/js/api/resources/GeneralLedger.js.map +1 -1
  127. package/js/api/resources/Immobilization.js.map +1 -1
  128. package/js/api/resources/IncomeAllocation.js.map +1 -1
  129. package/js/api/resources/IncomeStatement.js.map +1 -1
  130. package/js/api/resources/InternalInvoicing.js.map +1 -1
  131. package/js/api/resources/Journal.js.map +1 -1
  132. package/js/api/resources/KilometricAllowance.js.map +1 -1
  133. package/js/api/resources/LegalForm.js.map +1 -1
  134. package/js/api/resources/Letter.js.map +1 -1
  135. package/js/api/resources/Library.js.map +1 -1
  136. package/js/api/resources/Loan.js.map +1 -1
  137. package/js/api/resources/Log.js.map +1 -1
  138. package/js/api/resources/MachineLearning.js.map +1 -1
  139. package/js/api/resources/Mail.js +91 -19
  140. package/js/api/resources/Mail.js.map +1 -1
  141. package/js/api/resources/MealExpense.js.map +1 -1
  142. package/js/api/resources/Partner.js.map +1 -1
  143. package/js/api/resources/PartneredAccountant.js.map +1 -1
  144. package/js/api/resources/Payment.js.map +1 -1
  145. package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
  146. package/js/api/resources/Product.js.map +1 -1
  147. package/js/api/resources/PromoCode.js.map +1 -1
  148. package/js/api/resources/Provision.js.map +1 -1
  149. package/js/api/resources/Qonto.js.map +1 -1
  150. package/js/api/resources/QuotesAccount.js.map +1 -1
  151. package/js/api/resources/Registration.js.map +1 -1
  152. package/js/api/resources/Report.js.map +1 -1
  153. package/js/api/resources/Revision.js.map +1 -1
  154. package/js/api/resources/RevisionGuide.js.map +1 -1
  155. package/js/api/resources/SalariesFile.js.map +1 -1
  156. package/js/api/resources/Search.js.map +1 -1
  157. package/js/api/resources/SheetMonthSchedule.js +40 -0
  158. package/js/api/resources/SheetMonthSchedule.js.map +1 -0
  159. package/js/api/resources/Shine.js.map +1 -1
  160. package/js/api/resources/Simulation.js.map +1 -1
  161. package/js/api/resources/Society.js.map +1 -1
  162. package/js/api/resources/SocietyPromoCode.js.map +1 -1
  163. package/js/api/resources/Sponsorship.js.map +1 -1
  164. package/js/api/resources/Step.js.map +1 -1
  165. package/js/api/resources/Stocks.js.map +1 -1
  166. package/js/api/resources/Subscription.js.map +1 -1
  167. package/js/api/resources/Survey.js.map +1 -1
  168. package/js/api/resources/Tax.js.map +1 -1
  169. package/js/api/resources/TaxDeadline.js.map +1 -1
  170. package/js/api/resources/ThirdParty.js.map +1 -1
  171. package/js/api/resources/Transaction.js.map +1 -1
  172. package/js/api/resources/User.js +10 -0
  173. package/js/api/resources/User.js.map +1 -1
  174. package/js/api/resources/VatControl.js.map +1 -1
  175. package/js/api/resources/VatDeclaration.js.map +1 -1
  176. package/js/api/resources/Vehicle.js.map +1 -1
  177. package/js/api/resources/WorkingSchedule.js.map +1 -1
  178. package/js/api/resources/ZTicket.js.map +1 -1
  179. package/js/api/resources/shareCapital.js.map +1 -1
  180. package/js/api/resources.js +4 -1
  181. package/js/api/resources.js.map +1 -1
  182. package/js/index.js.map +1 -1
  183. package/js/types/Enum/Account.js.map +1 -1
  184. package/js/types/Enum/AccountType.js.map +1 -1
  185. package/js/types/Enum/AccountingFileType.js.map +1 -1
  186. package/js/types/Enum/AccountingJournal.js.map +1 -1
  187. package/js/types/Enum/AccountsSectors.js.map +1 -1
  188. package/js/types/Enum/Activity.js.map +1 -1
  189. package/js/types/Enum/AnswerTypeValue.js.map +1 -1
  190. package/js/types/Enum/Aspone.js.map +1 -1
  191. package/js/types/Enum/BalanceSheet.js.map +1 -1
  192. package/js/types/Enum/BalanceSheetModule.js.map +1 -1
  193. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  194. package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  195. package/js/types/Enum/BalanceSheetStatus.js.map +1 -1
  196. package/js/types/Enum/BankAccountType.js.map +1 -1
  197. package/js/types/Enum/BrandClementine.js +45 -0
  198. package/js/types/Enum/BrandClementine.js.map +1 -1
  199. package/js/types/Enum/BrandComptalib.js +20 -20
  200. package/js/types/Enum/BrandComptalib.js.map +1 -1
  201. package/js/types/Enum/BrandLegalstart.js +15 -0
  202. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  203. package/js/types/Enum/BudgetInsight.js.map +1 -1
  204. package/js/types/Enum/CerfaType.js.map +1 -1
  205. package/js/types/Enum/Channel.js.map +1 -1
  206. package/js/types/Enum/Comment.js.map +1 -1
  207. package/js/types/Enum/ComptaType.js.map +1 -1
  208. package/js/types/Enum/ConnectorType.js.map +1 -1
  209. package/js/types/Enum/Contract.js.map +1 -1
  210. package/js/types/Enum/Country.js.map +1 -1
  211. package/js/types/Enum/Currency.js.map +1 -1
  212. package/js/types/Enum/EstimateInvoice.js.map +1 -1
  213. package/js/types/Enum/ExerciceNoteType.js.map +1 -1
  214. package/js/types/Enum/FecFileDelimiter.js.map +1 -1
  215. package/js/types/Enum/FieldSocietyStat.js.map +1 -1
  216. package/js/types/Enum/FileType.js.map +1 -1
  217. package/js/types/Enum/FiscalRegime.js.map +1 -1
  218. package/js/types/Enum/FuelType.js.map +1 -1
  219. package/js/types/Enum/Ged.js.map +1 -1
  220. package/js/types/Enum/Gescom.js.map +1 -1
  221. package/js/types/Enum/GlobalRegime.js.map +1 -1
  222. package/js/types/Enum/ImmobilizationType.js.map +1 -1
  223. package/js/types/Enum/IncomeStatement.js.map +1 -1
  224. package/js/types/Enum/JeDeclare.js.map +1 -1
  225. package/js/types/Enum/KilometricAllowanceScale.js.map +1 -1
  226. package/js/types/Enum/LegalForm.js.map +1 -1
  227. package/js/types/Enum/LegalInformation.js.map +1 -1
  228. package/js/types/Enum/LetterState.js.map +1 -1
  229. package/js/types/Enum/LetterType.js.map +1 -1
  230. package/js/types/Enum/Log.js.map +1 -1
  231. package/js/types/Enum/MailFlag.js +22 -9
  232. package/js/types/Enum/MailFlag.js.map +1 -1
  233. package/js/types/Enum/MealExpenseThresholds.js.map +1 -1
  234. package/js/types/Enum/MimeType.js.map +1 -1
  235. package/js/types/Enum/Nature.js.map +1 -1
  236. package/js/types/Enum/Notification.js.map +1 -1
  237. package/js/types/Enum/Ocr.js.map +1 -1
  238. package/js/types/Enum/PartnerTransactionType.js.map +1 -1
  239. package/js/types/Enum/PartnerType.js.map +1 -1
  240. package/js/types/Enum/PartneredAccountantServiceState.js.map +1 -1
  241. package/js/types/Enum/PartneredAccountantServiceType.js.map +1 -1
  242. package/js/types/Enum/PartneredAccountantServiceTypeId.js.map +1 -1
  243. package/js/types/Enum/PaymentMethod.js.map +1 -1
  244. package/js/types/Enum/Prestation.js.map +1 -1
  245. package/js/types/Enum/Proceding.js.map +1 -1
  246. package/js/types/Enum/ProductType.js.map +1 -1
  247. package/js/types/Enum/ProfitsType.js.map +1 -1
  248. package/js/types/Enum/ProvisionType.js.map +1 -1
  249. package/js/types/Enum/Quality.js.map +1 -1
  250. package/js/types/Enum/RegisterCategory.js.map +1 -1
  251. package/js/types/Enum/Registration.js.map +1 -1
  252. package/js/types/Enum/RegistrationSource.js.map +1 -1
  253. package/js/types/Enum/ReportState.js.map +1 -1
  254. package/js/types/Enum/ReportType.js.map +1 -1
  255. package/js/types/Enum/RevisionGuide.js.map +1 -1
  256. package/js/types/Enum/Role.js.map +1 -1
  257. package/js/types/Enum/RoleDetail.js.map +1 -1
  258. package/js/types/Enum/SalariesType.js +60 -0
  259. package/js/types/Enum/SalariesType.js.map +1 -0
  260. package/js/types/Enum/SaleType.js.map +1 -1
  261. package/js/types/Enum/Sector.js.map +1 -1
  262. package/js/types/Enum/SendInBlueList.js.map +1 -1
  263. package/js/types/Enum/Simulation.js.map +1 -1
  264. package/js/types/Enum/SponsorshipState.js.map +1 -1
  265. package/js/types/Enum/StockType.js.map +1 -1
  266. package/js/types/Enum/SubscriptionType.js.map +1 -1
  267. package/js/types/Enum/Supervision.js.map +1 -1
  268. package/js/types/Enum/SurveyType.js.map +1 -1
  269. package/js/types/Enum/SurveyTypeDatas.js.map +1 -1
  270. package/js/types/Enum/Tax.js.map +1 -1
  271. package/js/types/Enum/TaxSystem.js.map +1 -1
  272. package/js/types/Enum/ThirdPartyType.js.map +1 -1
  273. package/js/types/Enum/TypeBankConnection.js.map +1 -1
  274. package/js/types/Enum/TypeCustomerProviderOperation.js.map +1 -1
  275. package/js/types/Enum/TypeIncomeAllocation.js.map +1 -1
  276. package/js/types/Enum/TypePayment.js.map +1 -1
  277. package/js/types/Enum/Unit.js.map +1 -1
  278. package/js/types/Enum/Util.js.map +1 -1
  279. package/js/types/Enum/Vat.js.map +1 -1
  280. package/js/types/Enum/VatDeclarationType.js.map +1 -1
  281. package/js/types/Enum/VatRegime.js.map +1 -1
  282. package/js/types/Enum/Vehicle.js.map +1 -1
  283. package/js/types/Enum/VehicleType.js.map +1 -1
  284. package/js/types/Enum/WebmailFlag.js.map +1 -1
  285. package/js/types/Enum/WebmailType.js.map +1 -1
  286. package/js/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.js.map +1 -1
  287. package/js/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.js.map +1 -1
  288. package/js/types/Interface/api/bankAccount/DeleteTransaction.js.map +1 -1
  289. package/js/types/Interface/api/cerfa/2031.js.map +1 -1
  290. package/js/types/Interface/api/cerfa/2033.js.map +1 -1
  291. package/js/types/Interface/api/cerfa/2035.js.map +1 -1
  292. package/js/types/Interface/api/cerfa/2065.js.map +1 -1
  293. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  294. package/js/types/Interface/api/customerProviderOperation/CreateCustomerProviderOperation.js.map +1 -1
  295. package/js/types/Interface/api/employee/QueryEmployeeSearch.js.map +1 -1
  296. package/js/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.js.map +1 -1
  297. package/js/types/Interface/api/exerciceQuestion/QueryQuestion.js.map +1 -1
  298. package/js/types/Interface/api/financialCharge/CreateNonDeductibleInterests.js.map +1 -1
  299. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  300. package/js/types/Interface/api/immobilization/CreateImmobilization.js.map +1 -1
  301. package/js/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
  302. package/js/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js.map +1 -1
  303. package/js/types/Interface/api/loan/CreateLoan.js.map +1 -1
  304. package/js/types/Interface/api/log/QueryLogPagination.js.map +1 -1
  305. package/js/types/Interface/api/machineLearning/CreateMachineLearningAnnotation.js.map +1 -1
  306. package/js/types/Interface/api/mail/QueryCountMail.js +1 -1
  307. package/js/types/Interface/api/mail/QueryCountMail.js.map +1 -1
  308. package/js/types/Interface/api/mail/QueryCountProcessedByUser.js +33 -0
  309. package/js/types/Interface/api/mail/QueryCountProcessedByUser.js.map +1 -0
  310. package/js/types/Interface/api/mail/QueryGetAnsweringTimeByUser.js +33 -0
  311. package/js/types/Interface/api/mail/QueryGetAnsweringTimeByUser.js.map +1 -0
  312. package/js/types/Interface/api/mail/QueryMail.js.map +1 -1
  313. package/js/types/Interface/api/mail/QueryPaginatedMail.js +14 -2
  314. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  315. package/js/types/Interface/api/mail/UpdateMail.js +2 -0
  316. package/js/types/Interface/api/mail/UpdateMail.js.map +1 -1
  317. package/js/types/Interface/api/mail/UpdateMailParams.js +6 -0
  318. package/js/types/Interface/api/mail/UpdateMailParams.js.map +1 -0
  319. package/js/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -1
  320. package/js/types/Interface/api/partner/CreatePartner.js.map +1 -1
  321. package/js/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js.map +1 -1
  322. package/js/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js.map +1 -1
  323. package/js/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -1
  324. package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
  325. package/js/types/Interface/api/promoCode/QueryDefaultPromotion.js.map +1 -1
  326. package/js/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js.map +1 -1
  327. package/js/types/Interface/api/provision/CreateProvisionForm.js.map +1 -1
  328. package/js/types/Interface/api/provision/QueryProvisions.js.map +1 -1
  329. package/js/types/Interface/api/provision/UpdateProvisionForm.js.map +1 -1
  330. package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  331. package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  332. package/js/types/Interface/api/shareCapital/CreateInKindContribution.js.map +1 -1
  333. package/js/types/Interface/api/shareCapital/CreateShareCapital.js.map +1 -1
  334. package/js/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.js +52 -0
  335. package/js/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.js.map +1 -0
  336. package/js/types/Interface/api/society/CreateSociety.js.map +1 -1
  337. package/js/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
  338. package/js/types/Interface/api/sponsorship/QuerySponsorship.js.map +1 -1
  339. package/js/types/Interface/api/stock/StockEntries.js.map +1 -1
  340. package/js/types/Interface/api/tax/CreateTax.js.map +1 -1
  341. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  342. package/js/types/Interface/api/user/CreateCoworker.js.map +1 -1
  343. package/js/types/Interface/api/user/QueryGetAllFromSociety.js +39 -0
  344. package/js/types/Interface/api/user/QueryGetAllFromSociety.js.map +1 -0
  345. package/js/types/Interface/api/user/QuerySocieties.js.map +1 -1
  346. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +4 -0
  347. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
  348. package/js/types/Interface/models/IApiError.js.map +1 -1
  349. package/js/types/index.js +60 -0
  350. package/js/types/index.js.map +1 -1
  351. package/js/utils/balanceSheetModule.js.map +1 -1
  352. package/js/utils/brands.js.map +1 -1
  353. package/js/utils/cerfa.js.map +1 -1
  354. package/js/utils/decorators.js.map +1 -1
  355. package/js/utils/index.js.map +1 -1
  356. package/js/utils/objectUtils/flattenObject.js.map +1 -1
  357. package/js/utils/objectUtils/fullFlattenObject.js.map +1 -1
  358. package/js/utils/objectUtils/index.js.map +1 -1
  359. package/js/utils/objectUtils/isValidObject.js.map +1 -1
  360. package/js/utils/objectUtils/unflattenObject.js.map +1 -1
  361. package/js/utils/siretValidation.js.map +1 -1
  362. package/js/utils/stringUtils/clean.js.map +1 -1
  363. package/js/utils/stringUtils/index.js.map +1 -1
  364. package/js/utils/transforms/boolean.transform.js.map +1 -1
  365. package/js/utils/validators/formattedDateString.validator.js.map +1 -1
  366. package/js/utils/validators/objectId.validator.js.map +1 -1
  367. package/js/utils/webmail.js.map +1 -1
  368. package/package.json +1 -1
  369. package/ts/api/resources/Country.ts +5 -1
  370. package/ts/api/resources/Employee.ts +11 -1
  371. package/ts/api/resources/Mail.ts +78 -16
  372. package/ts/api/resources/SheetMonthSchedule.ts +30 -0
  373. package/ts/api/resources/User.ts +7 -1
  374. package/ts/api/resources.ts +2 -0
  375. package/ts/types/Enum/BrandClementine.ts +45 -0
  376. package/ts/types/Enum/BrandComptalib.ts +20 -20
  377. package/ts/types/Enum/BrandLegalstart.ts +15 -0
  378. package/ts/types/Enum/MailFlag.ts +22 -7
  379. package/ts/types/Enum/SalariesType.ts +38 -0
  380. package/ts/types/Interface/api/mail/CreateMailParams.ts +2 -0
  381. package/ts/types/Interface/api/mail/QueryCountMail.ts +1 -1
  382. package/ts/types/Interface/api/mail/QueryCountProcessedByUser.ts +16 -0
  383. package/ts/types/Interface/api/mail/QueryGetAnsweringTimeByUser.ts +16 -0
  384. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +19 -2
  385. package/ts/types/Interface/api/mail/UpdateMail.ts +5 -0
  386. package/ts/types/Interface/api/mail/UpdateMailParams.ts +8 -0
  387. package/ts/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.ts +37 -0
  388. package/ts/types/Interface/api/user/QueryGetAllFromSociety.ts +19 -0
  389. package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +10 -0
  390. package/ts/types/Interface/models/IEmployee.ts +2 -0
  391. package/ts/types/Interface/models/IMail.ts +1 -2
  392. package/ts/types/Interface/models/ISociety.ts +1 -0
  393. package/ts/types/index.ts +5 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Cerfa.js","mappings":";;;;;;;AAAA;;AAIA;;AAGM,MAAOA,KAAP,SAAqBC,kBAArB,CAA6B;AACjCC,YAAU,CAACC,MAAD,EAAqE;AAC7E,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaF,MAAM,CAACG,UAAU,aAA/C,EAA8DH,MAAM,CAACI,IAArE,EAA2E;AAChFC,kBAAY,EAAE,aADkE;AAEhFC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAFuE,KAA3E,CAAP;AAMD;;AACDC,YAAU,CAACR,MAAD,EAAyD;AACjE,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaF,MAAM,CAACG,UAAU,aAA/C,EAA8DH,MAAM,CAACI,IAArE,EAA2E;AAChFC,kBAAY,EAAE,aADkE;AAEhFC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAFuE,KAA3E,CAAP;AAMD;;AACDE,YAAU,CAACT,MAAD,EAAyD;AACjE,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaF,MAAM,CAACG,UAAU,aAA/C,EAA8DH,MAAM,CAACI,IAArE,EAA2E;AAChFC,kBAAY,EAAE,aADkE;AAEhFC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAFuE,KAA3E,CAAP;AAMD;;AACDG,oBAAkB,CAACC,OAAD,EAAiH;AACjI,UAAM;AACJC,iBADI;AACSC,iBADT;AACsBC,oBADtB;AACsCC;AADtC,QAEFJ,OAFJ;AAGA,WAAO,iDAAqCC,WAArC,EAAkDC,WAAlD,EAA+DC,cAA/D,EAA+EC,WAA/E,CAAP;AACD;;AA9BgC;;QAAtBlB,K,GAAAA,K","names":["Cerfa","Resource","get2035Pdf","params","axios","$post","idExercice","data","responseType","headers","Accept","get2033Pdf","get2065Pdf","getCerfaToComplete","payload","idLegalForm","idTaxSystem","idFiscalRegime","profitsType"],"sourceRoot":"","sources":["../../../ts/api/resources/Cerfa.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete,\n} from '../..';\nimport { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';\nimport { TaxSystem, FiscalRegime, ProfitsType } from '../../types';\n\nexport class Cerfa extends Resource {\n get2035Pdf(params: { idExercice: number, data: ParamsGenerate2035FullDocument }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2033Pdf(params: { idExercice: number, data: ParamsGenerate2033 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2065Pdf(params: { idExercice: number, data: ParamsGenerate2065 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n getCerfaToComplete(payload: { idLegalForm: number; idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime; profitsType: ProfitsType }): ReadCerfaToComplete {\n const {\n idLegalForm, idTaxSystem, idFiscalRegime, profitsType,\n } = payload;\n return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);\n }\n}\n"]}
1
+ {"version":3,"file":"Cerfa.js","mappings":";;;;;;;AAAA;;AAIA;;AAGM,MAAOA,KAAP,SAAqBC,kBAArB,CAA6B;EACjCC,UAAU,CAACC,MAAD,EAAqE;IAC7E,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaF,MAAM,CAACG,UAAU,aAA/C,EAA8DH,MAAM,CAACI,IAArE,EAA2E;MAChFC,YAAY,EAAE,aADkE;MAEhFC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFuE,CAA3E,CAAP;EAMD;;EACDC,UAAU,CAACR,MAAD,EAAyD;IACjE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaF,MAAM,CAACG,UAAU,aAA/C,EAA8DH,MAAM,CAACI,IAArE,EAA2E;MAChFC,YAAY,EAAE,aADkE;MAEhFC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFuE,CAA3E,CAAP;EAMD;;EACDE,UAAU,CAACT,MAAD,EAAyD;IACjE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaF,MAAM,CAACG,UAAU,aAA/C,EAA8DH,MAAM,CAACI,IAArE,EAA2E;MAChFC,YAAY,EAAE,aADkE;MAEhFC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFuE,CAA3E,CAAP;EAMD;;EACDG,kBAAkB,CAACC,OAAD,EAAiH;IACjI,MAAM;MACJC,WADI;MACSC,WADT;MACsBC,cADtB;MACsCC;IADtC,IAEFJ,OAFJ;IAGA,OAAO,iDAAqCC,WAArC,EAAkDC,WAAlD,EAA+DC,cAA/D,EAA+EC,WAA/E,CAAP;EACD;;AA9BgC;;QAAtBlB,K,GAAAA,K","names":["Cerfa","Resource","get2035Pdf","params","axios","$post","idExercice","data","responseType","headers","Accept","get2033Pdf","get2065Pdf","getCerfaToComplete","payload","idLegalForm","idTaxSystem","idFiscalRegime","profitsType"],"sourceRoot":"","sources":["../../../ts/api/resources/Cerfa.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete,\n} from '../..';\nimport { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';\nimport { TaxSystem, FiscalRegime, ProfitsType } from '../../types';\n\nexport class Cerfa extends Resource {\n get2035Pdf(params: { idExercice: number, data: ParamsGenerate2035FullDocument }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2033Pdf(params: { idExercice: number, data: ParamsGenerate2033 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2065Pdf(params: { idExercice: number, data: ParamsGenerate2065 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n getCerfaToComplete(payload: { idLegalForm: number; idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime; profitsType: ProfitsType }): ReadCerfaToComplete {\n const {\n idLegalForm, idTaxSystem, idFiscalRegime, profitsType,\n } = payload;\n return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Closing.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;AACnCC,SAAO,CAACC,UAAD,EAAmB;AACxB,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,6BAA6BF,UAAU,WAAxD,CAAP;AACD;;AACDG,aAAW,CAACH,UAAD,EAAmB;AAC5B,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,6BAA6BF,UAAU,WAAxD,CAAP;AACD;;AANkC;;QAAxBH,O,GAAAA,O","names":["Closing","Resource","process","idExercice","axios","$post","getDeadline"],"sourceRoot":"","sources":["../../../ts/api/resources/Closing.ts"],"sourcesContent":["import { ProcessedClosing } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Closing extends Resource {\n process(idExercice: number): Promise<ProcessedClosing> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/closings`);\n }\n getDeadline(idExercice: number): Promise<string> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/deadline`);\n }\n}"]}
1
+ {"version":3,"file":"Closing.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,OAAO,CAACC,UAAD,EAAmB;IACxB,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,6BAA6BF,UAAU,WAAxD,CAAP;EACD;;EACDG,WAAW,CAACH,UAAD,EAAmB;IAC5B,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,6BAA6BF,UAAU,WAAxD,CAAP;EACD;;AANkC;;QAAxBH,O,GAAAA,O","names":["Closing","Resource","process","idExercice","axios","$post","getDeadline"],"sourceRoot":"","sources":["../../../ts/api/resources/Closing.ts"],"sourcesContent":["import { ProcessedClosing } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Closing extends Resource {\n process(idExercice: number): Promise<ProcessedClosing> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/closings`);\n }\n getDeadline(idExercice: number): Promise<string> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/deadline`);\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Connector.js","mappings":";;;;;;;AAAA;;AAEM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;AACrCC,MAAI,CAACC,EAAD,EAAW;AACb,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,cAAcF,EAAE,OAAjC,CAAP;AACD;;AAHoC;;QAA1BH,S,GAAAA,S","names":["Connector","Resource","test","id","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/Connector.ts"],"sourcesContent":["import { Resource } from '../Resource';\n\nexport class Connector extends Resource {\n test(id: number): Promise<boolean> {\n return this.axios.$post(`/connector/${id}/test`);\n }\n}"]}
1
+ {"version":3,"file":"Connector.js","mappings":";;;;;;;AAAA;;AAEM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;EACrCC,IAAI,CAACC,EAAD,EAAW;IACb,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,cAAcF,EAAE,OAAjC,CAAP;EACD;;AAHoC;;QAA1BH,S,GAAAA,S","names":["Connector","Resource","test","id","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/Connector.ts"],"sourcesContent":["import { Resource } from '../Resource';\n\nexport class Connector extends Resource {\n test(id: number): Promise<boolean> {\n return this.axios.$post(`/connector/${id}/test`);\n }\n}"]}
@@ -12,6 +12,10 @@ class Country extends _Resource.Resource {
12
12
  return this.axios.$get('/countries');
13
13
  }
14
14
 
15
+ getAllNationalities() {
16
+ return this.axios.$get('/nationalities');
17
+ }
18
+
15
19
  }
16
20
 
17
21
  exports.Country = Country;
@@ -1 +1 @@
1
- {"version":3,"file":"Country.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;AACnCC,QAAM;AACJ,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,YAAhB,CAAP;AACD;;AAHkC;;QAAxBJ,O,GAAAA,O","names":["Country","Resource","getAll","axios","$get"],"sourceRoot":"","sources":["../../../ts/api/resources/Country.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { ICountry } from '../../types';\n\nexport class Country extends Resource {\n getAll(): Promise<ICountry[]> {\n return this.axios.$get('/countries');\n }\n}\n"]}
1
+ {"version":3,"file":"Country.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,MAAM;IACJ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,YAAhB,CAAP;EACD;;EAEMC,mBAAmB;IACxB,OAAO,KAAKF,KAAL,CAAWC,IAAX,CAAgB,gBAAhB,CAAP;EACD;;AAPkC;;QAAxBJ,O,GAAAA,O","names":["Country","Resource","getAll","axios","$get","getAllNationalities"],"sourceRoot":"","sources":["../../../ts/api/resources/Country.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { ICountry, INationality } from '../../types';\n\nexport class Country extends Resource {\n getAll(): Promise<ICountry[]> {\n return this.axios.$get('/countries');\n }\n\n public getAllNationalities(): Promise<INationality[]> {\n return this.axios.$get('/nationalities');\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomerProviderOperation.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,yBAAP,SAAyCC,kBAAzC,CAAiD;AACrDC,QAAM,CAACC,UAAD,EAAqBC,OAArB,EAA6D;AACjE,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaH,UAAU,4BAAxC,EAAsEC,OAAtE,CAAP;AACD;;AAHoD;;QAA1CJ,yB,GAAAA,yB","names":["CustomerProviderOperation","Resource","create","idExercice","payload","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/CustomerProviderOperation.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { CreateCustomerProviderOperation, IAccountingTransaction } from '../../types';\n\nexport class CustomerProviderOperation extends Resource {\n create(idExercice: number, payload: CreateCustomerProviderOperation): Promise<IAccountingTransaction[]> {\n return this.axios.$post(`/exercice/${idExercice}/customerProviderOperation`, payload);\n }\n}"]}
1
+ {"version":3,"file":"CustomerProviderOperation.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,yBAAP,SAAyCC,kBAAzC,CAAiD;EACrDC,MAAM,CAACC,UAAD,EAAqBC,OAArB,EAA6D;IACjE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaH,UAAU,4BAAxC,EAAsEC,OAAtE,CAAP;EACD;;AAHoD;;QAA1CJ,yB,GAAAA,yB","names":["CustomerProviderOperation","Resource","create","idExercice","payload","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/CustomerProviderOperation.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { CreateCustomerProviderOperation, IAccountingTransaction } from '../../types';\n\nexport class CustomerProviderOperation extends Resource {\n create(idExercice: number, payload: CreateCustomerProviderOperation): Promise<IAccountingTransaction[]> {\n return this.axios.$post(`/exercice/${idExercice}/customerProviderOperation`, payload);\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Dashboard.js","mappings":";;;;;;;AAAA;;AAgBA,MAAMA,KAAK,GAAG,WAAd;;AACM,MAAOC,SAAP,SAAyBC,kBAAzB,CAAiC;AACrCC,iCAA+B,CAC7BC,MAD6B,EACK;AAElC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,+BAAxB,EAAyD;AAAEI;AAAF,KAAzD,CAAP;AACD;;AAEDG,uBAAqB,CACnBH,MADmB,EACY;AAE/B,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,qBAAxB,EAA+C;AAAEI;AAAF,KAA/C,CAAP;AACD;;AAEDI,WAAS,CAACJ,MAAD,EAAoB;AAC3B,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,SAAxB,EAAmC;AAAEI;AAAF,KAAnC,CAAP;AACD;;AAEDK,YAAU,CAACC,KAAD,EAAoB;AAC5B,WAAO,KAAKL,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,UAAxB,EAAoC;AAAEI,YAAM,EAAEM;AAAV,KAApC,CAAP;AACD;;AAEDC,iBAAe,CAACP,MAAD,EAA0B;AACvC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,eAAxB,EAAyC;AAAEI;AAAF,KAAzC,CAAP;AACD;;AAEDQ,cAAY,CAACR,MAAD,EAAsB;AAChC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,YAAxB,EAAsC;AAAEI;AAAF,KAAtC,CAAP;AACD;;AA3BoC;;QAA1BH,S,GAAAA,S","names":["ROUTE","Dashboard","Resource","getTurnoverProfitAndLossAndVats","params","axios","$get","getBalanceBankAccount","getGescom","getTopBuys","dates","getTopProviders","getDeadlines"],"sourceRoot":"","sources":["../../../ts/api/resources/Dashboard.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n QueryBalanceBankAccount,\n QueryTurnoverProfitAndLoss,\n QueryTopBuys,\n QueryTopProviders,\n ReadTopProviders,\n ReadBalanceBankAccount,\n ReadTopBuys,\n QueryGescom,\n ReadGescom,\n QueryDeadline,\n ReadDeadline,\n ReadTurnoverProfitAndLossAndVats,\n} from '../../types';\n\nconst ROUTE = 'dashboard';\nexport class Dashboard extends Resource {\n getTurnoverProfitAndLossAndVats(\n params: QueryTurnoverProfitAndLoss,\n ): Promise<ReadTurnoverProfitAndLossAndVats> {\n return this.axios.$get(`${ROUTE}/turnoverProfitAndLossAndVats`, { params });\n }\n\n getBalanceBankAccount(\n params: QueryBalanceBankAccount,\n ): Promise<ReadBalanceBankAccount> {\n return this.axios.$get(`${ROUTE}/balanceBankAccount`, { params });\n }\n\n getGescom(params: QueryGescom): Promise<ReadGescom> {\n return this.axios.$get(`${ROUTE}/gescom`, { params });\n }\n\n getTopBuys(dates: QueryTopBuys): Promise<ReadTopBuys[]> {\n return this.axios.$get(`${ROUTE}/topBuys`, { params: dates });\n }\n\n getTopProviders(params: QueryTopProviders): Promise<ReadTopProviders[]> {\n return this.axios.$get(`${ROUTE}/topProviders`, { params });\n }\n\n getDeadlines(params: QueryDeadline): Promise<ReadDeadline> {\n return this.axios.$get(`${ROUTE}/deadlines`, { params });\n }\n}\n"]}
1
+ {"version":3,"file":"Dashboard.js","mappings":";;;;;;;AAAA;;AAgBA,MAAMA,KAAK,GAAG,WAAd;;AACM,MAAOC,SAAP,SAAyBC,kBAAzB,CAAiC;EACrCC,+BAA+B,CAC7BC,MAD6B,EACK;IAElC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,+BAAxB,EAAyD;MAAEI;IAAF,CAAzD,CAAP;EACD;;EAEDG,qBAAqB,CACnBH,MADmB,EACY;IAE/B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,qBAAxB,EAA+C;MAAEI;IAAF,CAA/C,CAAP;EACD;;EAEDI,SAAS,CAACJ,MAAD,EAAoB;IAC3B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,SAAxB,EAAmC;MAAEI;IAAF,CAAnC,CAAP;EACD;;EAEDK,UAAU,CAACC,KAAD,EAAoB;IAC5B,OAAO,KAAKL,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,UAAxB,EAAoC;MAAEI,MAAM,EAAEM;IAAV,CAApC,CAAP;EACD;;EAEDC,eAAe,CAACP,MAAD,EAA0B;IACvC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,eAAxB,EAAyC;MAAEI;IAAF,CAAzC,CAAP;EACD;;EAEDQ,YAAY,CAACR,MAAD,EAAsB;IAChC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,YAAxB,EAAsC;MAAEI;IAAF,CAAtC,CAAP;EACD;;AA3BoC;;QAA1BH,S,GAAAA,S","names":["ROUTE","Dashboard","Resource","getTurnoverProfitAndLossAndVats","params","axios","$get","getBalanceBankAccount","getGescom","getTopBuys","dates","getTopProviders","getDeadlines"],"sourceRoot":"","sources":["../../../ts/api/resources/Dashboard.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n QueryBalanceBankAccount,\n QueryTurnoverProfitAndLoss,\n QueryTopBuys,\n QueryTopProviders,\n ReadTopProviders,\n ReadBalanceBankAccount,\n ReadTopBuys,\n QueryGescom,\n ReadGescom,\n QueryDeadline,\n ReadDeadline,\n ReadTurnoverProfitAndLossAndVats,\n} from '../../types';\n\nconst ROUTE = 'dashboard';\nexport class Dashboard extends Resource {\n getTurnoverProfitAndLossAndVats(\n params: QueryTurnoverProfitAndLoss,\n ): Promise<ReadTurnoverProfitAndLossAndVats> {\n return this.axios.$get(`${ROUTE}/turnoverProfitAndLossAndVats`, { params });\n }\n\n getBalanceBankAccount(\n params: QueryBalanceBankAccount,\n ): Promise<ReadBalanceBankAccount> {\n return this.axios.$get(`${ROUTE}/balanceBankAccount`, { params });\n }\n\n getGescom(params: QueryGescom): Promise<ReadGescom> {\n return this.axios.$get(`${ROUTE}/gescom`, { params });\n }\n\n getTopBuys(dates: QueryTopBuys): Promise<ReadTopBuys[]> {\n return this.axios.$get(`${ROUTE}/topBuys`, { params: dates });\n }\n\n getTopProviders(params: QueryTopProviders): Promise<ReadTopProviders[]> {\n return this.axios.$get(`${ROUTE}/topProviders`, { params });\n }\n\n getDeadlines(params: QueryDeadline): Promise<ReadDeadline> {\n return this.axios.$get(`${ROUTE}/deadlines`, { params });\n }\n}\n"]}
@@ -36,6 +36,14 @@ class Employee extends _Resource.Resource {
36
36
  });
37
37
  }
38
38
 
39
+ createOrUpdateWorkingSchedule(idEmployee, payload) {
40
+ return this.axios.$post(`employees/${idEmployee}/working-schedules`, payload);
41
+ }
42
+
43
+ deleteWorkingSchedule(idEmployee, idWorkingSchedule) {
44
+ return this.axios.$delete(`employees/${idEmployee}/working-schedules/${idWorkingSchedule}`);
45
+ }
46
+
39
47
  }
40
48
 
41
49
  exports.Employee = Employee;
@@ -1 +1 @@
1
- {"version":3,"file":"Employee.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,QAAP,SAAwBC,kBAAxB,CAAgC;AAC7BC,QAAM,CAACC,OAAD,EAA4B;AACvC,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,WAAjB,EAA8BF,OAA9B,CAAP;AACD;;AAEMG,QAAM,CAACC,SAAD,EAAkB;AAC7B,WAAO,KAAKH,KAAL,CAAWI,IAAX,CAAgB,cAAcD,SAAS,YAAvC,CAAP;AACD;;AAEME,KAAG,CAACC,EAAD,EAAW;AACnB,WAAO,KAAKN,KAAL,CAAWI,IAAX,CAAgB,cAAcE,EAAE,EAAhC,CAAP;AACD;;AAEMC,QAAM,CAACD,EAAD,EAAaP,OAAb,EAAwC;AACnD,WAAO,KAAKC,KAAL,CAAWQ,IAAX,CAAgB,cAAcF,EAAE,EAAhC,EAAoCP,OAApC,CAAP;AACD;;AAEMU,QAAM,CAACH,EAAD,EAAW;AACtB,WAAO,KAAKN,KAAL,CAAWU,OAAX,CAAmB,cAAcJ,EAAE,EAAnC,CAAP;AACD;;AAEMK,aAAW,CAACR,SAAD,EAAoBS,MAApB,EAAgD;AAChE,WAAO,KAAKZ,KAAL,CAAWI,IAAX,CAAgB,cAAcD,SAAS,YAAvC,EAAqD;AAAES,YAAM,kCAAOA,MAAP,GAAa;AAAEC,kBAAU,EAAE;AAAd,OAAb;AAAR,KAArD,CAAP;AACD;;AAvBmC;;QAAzBjB,Q,GAAAA,Q","names":["Employee","Resource","create","payload","axios","$post","getAll","idSociety","$get","get","id","update","$put","delete","$delete","getPaginate","params","isPaginate"],"sourceRoot":"","sources":["../../../ts/api/resources/Employee.ts"],"sourcesContent":["import { BasePaginate, IEmployee, QueryEmployeeSearch } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Employee extends Resource {\n public create(payload: Partial<IEmployee>): Promise<IEmployee> {\n return this.axios.$post('/employee', payload);\n }\n\n public getAll(idSociety: number): Promise<IEmployee[]> {\n return this.axios.$get(`/societies/${idSociety}/employees`);\n }\n\n public get(id: number): Promise<IEmployee> {\n return this.axios.$get(`/employees/${id}`);\n }\n\n public update(id: number, payload: Partial<IEmployee>): Promise<IEmployee> {\n return this.axios.$put(`/employees/${id}`, payload);\n }\n\n public delete(id: number): Promise<true> {\n return this.axios.$delete(`/employees/${id}`);\n }\n\n public getPaginate(idSociety: number, params?: QueryEmployeeSearch): Promise<BasePaginate<Employee>> {\n return this.axios.$get(`/societies/${idSociety}/employees`, { params: { ...params, isPaginate: true } });\n }\n}\n"]}
1
+ {"version":3,"file":"Employee.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,QAAP,SAAwBC,kBAAxB,CAAgC;EAC7BC,MAAM,CAACC,OAAD,EAA4B;IACvC,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,WAAjB,EAA8BF,OAA9B,CAAP;EACD;;EAEMG,MAAM,CAACC,SAAD,EAAkB;IAC7B,OAAO,KAAKH,KAAL,CAAWI,IAAX,CAAgB,cAAcD,SAAS,YAAvC,CAAP;EACD;;EAEME,GAAG,CAACC,EAAD,EAAW;IACnB,OAAO,KAAKN,KAAL,CAAWI,IAAX,CAAgB,cAAcE,EAAE,EAAhC,CAAP;EACD;;EAEMC,MAAM,CAACD,EAAD,EAAaP,OAAb,EAAwC;IACnD,OAAO,KAAKC,KAAL,CAAWQ,IAAX,CAAgB,cAAcF,EAAE,EAAhC,EAAoCP,OAApC,CAAP;EACD;;EAEMU,MAAM,CAACH,EAAD,EAAW;IACtB,OAAO,KAAKN,KAAL,CAAWU,OAAX,CAAmB,cAAcJ,EAAE,EAAnC,CAAP;EACD;;EAEMK,WAAW,CAACR,SAAD,EAAoBS,MAApB,EAAgD;IAChE,OAAO,KAAKZ,KAAL,CAAWI,IAAX,CAAgB,cAAcD,SAAS,YAAvC,EAAqD;MAAES,MAAM,kCAAOA,MAAP,GAAa;QAAEC,UAAU,EAAE;MAAd,CAAb;IAAR,CAArD,CAAP;EACD;;EAEMC,6BAA6B,CAACC,UAAD,EAAqBhB,OAArB,EAAmE;IACrG,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAac,UAAU,oBAAxC,EAA8DhB,OAA9D,CAAP;EACD;;EAEMiB,qBAAqB,CAACD,UAAD,EAAqBE,iBAArB,EAA8C;IACxE,OAAO,KAAKjB,KAAL,CAAWU,OAAX,CAAmB,aAAaK,UAAU,sBAAsBE,iBAAiB,EAAjF,CAAP;EACD;;AA/BmC;;QAAzBrB,Q,GAAAA,Q","names":["Employee","Resource","create","payload","axios","$post","getAll","idSociety","$get","get","id","update","$put","delete","$delete","getPaginate","params","isPaginate","createOrUpdateWorkingSchedule","idEmployee","deleteWorkingSchedule","idWorkingSchedule"],"sourceRoot":"","sources":["../../../ts/api/resources/Employee.ts"],"sourcesContent":["import {\n BasePaginate, IEmployee, IWorkingSchedule, QueryEmployeeSearch,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Employee extends Resource {\n public create(payload: Partial<IEmployee>): Promise<IEmployee> {\n return this.axios.$post('/employee', payload);\n }\n\n public getAll(idSociety: number): Promise<IEmployee[]> {\n return this.axios.$get(`/societies/${idSociety}/employees`);\n }\n\n public get(id: number): Promise<IEmployee> {\n return this.axios.$get(`/employees/${id}`);\n }\n\n public update(id: number, payload: Partial<IEmployee>): Promise<IEmployee> {\n return this.axios.$put(`/employees/${id}`, payload);\n }\n\n public delete(id: number): Promise<true> {\n return this.axios.$delete(`/employees/${id}`);\n }\n\n public getPaginate(idSociety: number, params?: QueryEmployeeSearch): Promise<BasePaginate<Employee>> {\n return this.axios.$get(`/societies/${idSociety}/employees`, { params: { ...params, isPaginate: true } });\n }\n\n public createOrUpdateWorkingSchedule(idEmployee: number, payload?: Omit<IWorkingSchedule, 'idEmployee'>): Promise<IWorkingSchedule> {\n return this.axios.$post(`employees/${idEmployee}/working-schedules`, payload);\n }\n\n public deleteWorkingSchedule(idEmployee: number, idWorkingSchedule: number): Promise<true> {\n return this.axios.$delete(`employees/${idEmployee}/working-schedules/${idWorkingSchedule}`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Exercice.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,QAAP,SAAwBC,kBAAxB,CAAgC;AACpCC,QAAM,CAACC,MAAD,EAAuB;AAC3B,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,YAAjB,EAA+BF,MAA/B,CAAP;AACD;;AAHmC;;QAAzBH,Q,GAAAA,Q","names":["Exercice","Resource","create","params","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/Exercice.ts"],"sourcesContent":["import { CreateExercice, IExercice } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice> {\n return this.axios.$post('/exercices', params);\n }\n}"]}
1
+ {"version":3,"file":"Exercice.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,QAAP,SAAwBC,kBAAxB,CAAgC;EACpCC,MAAM,CAACC,MAAD,EAAuB;IAC3B,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,YAAjB,EAA+BF,MAA/B,CAAP;EACD;;AAHmC;;QAAzBH,Q,GAAAA,Q","names":["Exercice","Resource","create","params","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/Exercice.ts"],"sourcesContent":["import { CreateExercice, IExercice } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice> {\n return this.axios.$post('/exercices', params);\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ExerciceNote.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,YAAP,SAA4BC,kBAA5B,CAAoC;AACxCC,KAAG,CAACC,UAAD,EAAqBC,MAArB,EAA8C;AAC/C,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,aAAaH,UAAU,OAAvC,EAAgD;AAAEC;AAAF,KAAhD,CAAP;AACD;;AACDG,gBAAc,CAACJ,UAAD,EAAqBK,OAArB,EAAgD;AAC5D,WAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,aAAaN,UAAU,OAAxC,EAAiDK,OAAjD,CAAP;AACD;;AACDE,cAAY,CAACP,UAAD,EAAqBK,OAArB,EAAoD;AAC9D,WAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,aAAaN,UAAU,YAAxC,EAAsDK,OAAtD,CAAP;AACD;;AATuC;;QAA7BR,Y,GAAAA,Y","names":["ExerciceNote","Resource","get","idExercice","params","axios","$get","updateOrCreate","payload","$post","generateFile"],"sourceRoot":"","sources":["../../../ts/api/resources/ExerciceNote.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryExerciceNote } from '../..';\nimport { CreateExerciceNote, CreateExerciceNoteFile, IGedFile } from '../../types';\nimport { IExerciceNote } from '../../types/Interface/models/IExerciceNote';\n\nexport class ExerciceNote extends Resource {\n get(idExercice: number, params: QueryExerciceNote): Promise<IExerciceNote | null> {\n return this.axios.$get(`/exercice/${idExercice}/note`, { params });\n }\n updateOrCreate(idExercice: number, payload: CreateExerciceNote): Promise<IExerciceNote> {\n return this.axios.$post(`/exercice/${idExercice}/note`, payload);\n }\n generateFile(idExercice: number, payload: CreateExerciceNoteFile): Promise<IGedFile> {\n return this.axios.$post(`/exercice/${idExercice}/note/file`, payload);\n }\n}"]}
1
+ {"version":3,"file":"ExerciceNote.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,YAAP,SAA4BC,kBAA5B,CAAoC;EACxCC,GAAG,CAACC,UAAD,EAAqBC,MAArB,EAA8C;IAC/C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,aAAaH,UAAU,OAAvC,EAAgD;MAAEC;IAAF,CAAhD,CAAP;EACD;;EACDG,cAAc,CAACJ,UAAD,EAAqBK,OAArB,EAAgD;IAC5D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,aAAaN,UAAU,OAAxC,EAAiDK,OAAjD,CAAP;EACD;;EACDE,YAAY,CAACP,UAAD,EAAqBK,OAArB,EAAoD;IAC9D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,aAAaN,UAAU,YAAxC,EAAsDK,OAAtD,CAAP;EACD;;AATuC;;QAA7BR,Y,GAAAA,Y","names":["ExerciceNote","Resource","get","idExercice","params","axios","$get","updateOrCreate","payload","$post","generateFile"],"sourceRoot":"","sources":["../../../ts/api/resources/ExerciceNote.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryExerciceNote } from '../..';\nimport { CreateExerciceNote, CreateExerciceNoteFile, IGedFile } from '../../types';\nimport { IExerciceNote } from '../../types/Interface/models/IExerciceNote';\n\nexport class ExerciceNote extends Resource {\n get(idExercice: number, params: QueryExerciceNote): Promise<IExerciceNote | null> {\n return this.axios.$get(`/exercice/${idExercice}/note`, { params });\n }\n updateOrCreate(idExercice: number, payload: CreateExerciceNote): Promise<IExerciceNote> {\n return this.axios.$post(`/exercice/${idExercice}/note`, payload);\n }\n generateFile(idExercice: number, payload: CreateExerciceNoteFile): Promise<IGedFile> {\n return this.axios.$post(`/exercice/${idExercice}/note/file`, payload);\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ExerciceQuestion.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,gBAAP,SAAgCC,kBAAhC,CAAwC;AAC5CC,QAAM,CAACC,UAAD,EAAqBC,MAArB,EAA2C;AAC/C,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BH,UAAU,YAAvD,EAAqEC,MAAM,GAAG;AAAEA;AAAF,KAAH,GAAgB,EAA3F,CAAP;AACD;;AAEDG,YAAU,CAACJ,UAAD,EAAqBK,OAArB,EAAqD;AAC7D,WAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,6BAA6BN,UAAU,yBAAxD,EAAmFK,OAAnF,CAAP;AACD;;AAEDE,YAAU,CAACP,UAAD,EAAqBK,OAArB,EAAqD;AAC7D,WAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,6BAA6BN,UAAU,yBAAxD,EAAmFK,OAAnF,CAAP;AACD;;AAX2C;;QAAjCR,gB,GAAAA,gB","names":["ExerciceQuestion","Resource","getAll","idExercice","params","axios","$get","bulkCreate","payload","$post","bulkUpdate"],"sourceRoot":"","sources":["../../../ts/api/resources/ExerciceQuestion.ts"],"sourcesContent":["import { CreateExerciceQuestions, IExerciceQuestion, QueryQuestion } from '../..';\nimport { Resource } from '../Resource';\n\nexport class ExerciceQuestion extends Resource {\n getAll(idExercice: number, params?: QueryQuestion): Promise<Array<IExerciceQuestion>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/questions`, params ? { params } : {});\n }\n\n bulkCreate(idExercice: number, payload: CreateExerciceQuestions): Promise<Array<IExerciceQuestion>> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/questions/batch-create`, payload);\n }\n\n bulkUpdate(idExercice: number, payload: CreateExerciceQuestions): Promise<void> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/questions/batch-update`, payload);\n }\n}\n"]}
1
+ {"version":3,"file":"ExerciceQuestion.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,gBAAP,SAAgCC,kBAAhC,CAAwC;EAC5CC,MAAM,CAACC,UAAD,EAAqBC,MAArB,EAA2C;IAC/C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BH,UAAU,YAAvD,EAAqEC,MAAM,GAAG;MAAEA;IAAF,CAAH,GAAgB,EAA3F,CAAP;EACD;;EAEDG,UAAU,CAACJ,UAAD,EAAqBK,OAArB,EAAqD;IAC7D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,6BAA6BN,UAAU,yBAAxD,EAAmFK,OAAnF,CAAP;EACD;;EAEDE,UAAU,CAACP,UAAD,EAAqBK,OAArB,EAAqD;IAC7D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,6BAA6BN,UAAU,yBAAxD,EAAmFK,OAAnF,CAAP;EACD;;AAX2C;;QAAjCR,gB,GAAAA,gB","names":["ExerciceQuestion","Resource","getAll","idExercice","params","axios","$get","bulkCreate","payload","$post","bulkUpdate"],"sourceRoot":"","sources":["../../../ts/api/resources/ExerciceQuestion.ts"],"sourcesContent":["import { CreateExerciceQuestions, IExerciceQuestion, QueryQuestion } from '../..';\nimport { Resource } from '../Resource';\n\nexport class ExerciceQuestion extends Resource {\n getAll(idExercice: number, params?: QueryQuestion): Promise<Array<IExerciceQuestion>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/questions`, params ? { params } : {});\n }\n\n bulkCreate(idExercice: number, payload: CreateExerciceQuestions): Promise<Array<IExerciceQuestion>> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/questions/batch-create`, payload);\n }\n\n bulkUpdate(idExercice: number, payload: CreateExerciceQuestions): Promise<void> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/questions/batch-update`, payload);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FecFile.js","mappings":";;;;;;;AAAA;;AAUM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;AACnCC,KAAG;AACD,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,SAAhB,CAAP;AACD;;AAEDC,UAAQ;AACN,WAAO,KAAKF,KAAL,CAAWC,IAAX,CAAgB,kBAAhB,EAAoC;AAAEE,kBAAY,EAAE;AAAhB,KAApC,CAAP;AACD;;AAEDC,QAAM,CAACC,UAAD,EAAqBC,OAArB,EAA2C;AAC/C,WAAO,KAAKN,KAAL,CAAWC,IAAX,CAAgB,oBAAoBI,UAAU,SAA9C,EAAuDE,gCACzDD,OADyD,GAClD;AACVH,kBAAY,EAAE;AADJ,KADkD,CAAvD,CAAP;AAID;;AAEDK,QAAM,CAACC,MAAD,EAAsB;AAC1B,WAAO,KAAKT,KAAL,CAAWU,KAAX,CAAiB,SAAjB,EAA4BD,MAA5B,CAAP;AACD;;AAEDE,KAAG,CAACF,MAAD,EAA6B;AAC9B,WAAO,KAAKT,KAAL,CAAWU,KAAX,CAAiB,iBAAjB,EAAoCD,MAApC,CAAP;AACD;;AAEDG,QAAM;AACJ,WAAO,KAAKZ,KAAL,CAAWa,OAAX,CAAmB,SAAnB,CAAP;AACD;;AA1BkC;;QAAxBhB,O,GAAAA,O","names":["FecFile","Resource","get","axios","$get","download","responseType","export","idExercice","payload","Object","create","params","$post","map","delete","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateFecFile,\n DeleteFecFile,\n ReadFecFile,\n IFecFile,\n CreateMappingFecFile,\n QueryFecFile,\n} from '../../types';\n\nexport class FecFile extends Resource {\n get(): Promise<IFecFile> {\n return this.axios.$get('fecFile');\n }\n\n download(): Promise<any> {\n return this.axios.$get('fecFile/download', { responseType: 'blob' });\n }\n\n export(idExercice: number, payload?: QueryFecFile): Promise<any> {\n return this.axios.$get(`fecFile/exercice/${idExercice}/export`, {\n ...payload,\n responseType: 'blob',\n });\n }\n\n create(params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post('fecFile', params);\n }\n\n map(params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post('fecFile/mapping', params);\n }\n\n delete(): Promise<DeleteFecFile> {\n return this.axios.$delete('fecFile');\n }\n}"]}
1
+ {"version":3,"file":"FecFile.js","mappings":";;;;;;;AAAA;;AAUM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,GAAG;IACD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,SAAhB,CAAP;EACD;;EAEDC,QAAQ;IACN,OAAO,KAAKF,KAAL,CAAWC,IAAX,CAAgB,kBAAhB,EAAoC;MAAEE,YAAY,EAAE;IAAhB,CAApC,CAAP;EACD;;EAEDC,MAAM,CAACC,UAAD,EAAqBC,OAArB,EAA2C;IAC/C,OAAO,KAAKN,KAAL,CAAWC,IAAX,CAAgB,oBAAoBI,UAAU,SAA9C,EAAuDE,gCACzDD,OADyD,GAClD;MACVH,YAAY,EAAE;IADJ,CADkD,CAAvD,CAAP;EAID;;EAEDK,MAAM,CAACC,MAAD,EAAsB;IAC1B,OAAO,KAAKT,KAAL,CAAWU,KAAX,CAAiB,SAAjB,EAA4BD,MAA5B,CAAP;EACD;;EAEDE,GAAG,CAACF,MAAD,EAA6B;IAC9B,OAAO,KAAKT,KAAL,CAAWU,KAAX,CAAiB,iBAAjB,EAAoCD,MAApC,CAAP;EACD;;EAEDG,MAAM;IACJ,OAAO,KAAKZ,KAAL,CAAWa,OAAX,CAAmB,SAAnB,CAAP;EACD;;AA1BkC;;QAAxBhB,O,GAAAA,O","names":["FecFile","Resource","get","axios","$get","download","responseType","export","idExercice","payload","Object","create","params","$post","map","delete","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateFecFile,\n DeleteFecFile,\n ReadFecFile,\n IFecFile,\n CreateMappingFecFile,\n QueryFecFile,\n} from '../../types';\n\nexport class FecFile extends Resource {\n get(): Promise<IFecFile> {\n return this.axios.$get('fecFile');\n }\n\n download(): Promise<any> {\n return this.axios.$get('fecFile/download', { responseType: 'blob' });\n }\n\n export(idExercice: number, payload?: QueryFecFile): Promise<any> {\n return this.axios.$get(`fecFile/exercice/${idExercice}/export`, {\n ...payload,\n responseType: 'blob',\n });\n }\n\n create(params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post('fecFile', params);\n }\n\n map(params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post('fecFile/mapping', params);\n }\n\n delete(): Promise<DeleteFecFile> {\n return this.axios.$delete('fecFile');\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FinancialCharge.js","mappings":";;;;;;;AAMA;;AAEM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;AAC3C;;;;;;AAMAC,YAAU,CAACC,UAAD,EAAmB;AAC3B,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,6BAAvD,CAAP;AACD;AAED;;;;;;;;AAMAG,eAAa,CAACH,UAAD,EAAmB;AAC9B,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,kDAAvD,CAAP;AACD;AAED;;;;;;;;;;;AASAI,8BAA4B,CAACJ,UAAD,EAAqBK,OAArB,EAA0D;AACpF,WAAO,KAAKJ,KAAL,CAAWK,KAAX,CAAiB,6BAA6BN,UAAU,6CAAxD,EAAuGK,OAAvG,CAAP;AACD;;AAhC0C;;QAAhCR,e,GAAAA,e","names":["FinancialCharge","Resource","getBalance","idExercice","axios","$get","getCandidates","createNonDeductibleInterests","payload","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/FinancialCharge.ts"],"sourcesContent":["import {\n CreatedNonDeductibleInterests,\n CreateNonDeductibleInterests,\n ReadBalanceSheetTransaction,\n ReadFinancialChargesBalance,\n} from '../..';\nimport { Resource } from '../Resource';\n\nexport class FinancialCharge extends Resource {\n /**\n * Return the current balance for the client on accounts 108100 & 101100\n * If the balance is negative then proceed to next step. Else nothing to do\n * @param idExercice Exercice id\n * @returns The computed balance\n */\n getBalance(idExercice: number): Promise<ReadFinancialChargesBalance> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/financial-charges/balances`);\n }\n\n /**\n * Return the list of transaction with their date of amout, for the accounts 16, 59 and 512\n * The client will choose loan, overdraft transactions so we can compute his non deductible interests\n * @param idExercice Exercice id\n * @returns Array of BalanceSheetTransaction to choose from\n */\n getCandidates(idExercice: number): Promise<Array<ReadBalanceSheetTransaction>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/financial-charges/loan-and-overdraft-candidates`);\n }\n\n /**\n * Compute the non deductible interests for the client depending on the picked transactions\n * Will process automatically the value of the balance sheet module depending on the list of transaction ids\n * @param idExercice Exercice id\n * @param payload { transactionIds: number } The list of transactions the client has pick as loan and overdrafts\n * @returns CreatedNonDeductibleInterests\n * Include question and its value if the client picked transaction ids\n * Else return hasNonDeductibleInterests false\n */\n createNonDeductibleInterests(idExercice: number, payload: CreateNonDeductibleInterests): Promise<CreatedNonDeductibleInterests> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/financial-charges/non-deductible-interests`, payload);\n }\n}\n"]}
1
+ {"version":3,"file":"FinancialCharge.js","mappings":";;;;;;;AAMA;;AAEM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;EAC3C;;;;;;EAMAC,UAAU,CAACC,UAAD,EAAmB;IAC3B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,6BAAvD,CAAP;EACD;EAED;;;;;;;;EAMAG,aAAa,CAACH,UAAD,EAAmB;IAC9B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,kDAAvD,CAAP;EACD;EAED;;;;;;;;;;;EASAI,4BAA4B,CAACJ,UAAD,EAAqBK,OAArB,EAA0D;IACpF,OAAO,KAAKJ,KAAL,CAAWK,KAAX,CAAiB,6BAA6BN,UAAU,6CAAxD,EAAuGK,OAAvG,CAAP;EACD;;AAhC0C;;QAAhCR,e,GAAAA,e","names":["FinancialCharge","Resource","getBalance","idExercice","axios","$get","getCandidates","createNonDeductibleInterests","payload","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/FinancialCharge.ts"],"sourcesContent":["import {\n CreatedNonDeductibleInterests,\n CreateNonDeductibleInterests,\n ReadBalanceSheetTransaction,\n ReadFinancialChargesBalance,\n} from '../..';\nimport { Resource } from '../Resource';\n\nexport class FinancialCharge extends Resource {\n /**\n * Return the current balance for the client on accounts 108100 & 101100\n * If the balance is negative then proceed to next step. Else nothing to do\n * @param idExercice Exercice id\n * @returns The computed balance\n */\n getBalance(idExercice: number): Promise<ReadFinancialChargesBalance> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/financial-charges/balances`);\n }\n\n /**\n * Return the list of transaction with their date of amout, for the accounts 16, 59 and 512\n * The client will choose loan, overdraft transactions so we can compute his non deductible interests\n * @param idExercice Exercice id\n * @returns Array of BalanceSheetTransaction to choose from\n */\n getCandidates(idExercice: number): Promise<Array<ReadBalanceSheetTransaction>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/financial-charges/loan-and-overdraft-candidates`);\n }\n\n /**\n * Compute the non deductible interests for the client depending on the picked transactions\n * Will process automatically the value of the balance sheet module depending on the list of transaction ids\n * @param idExercice Exercice id\n * @param payload { transactionIds: number } The list of transactions the client has pick as loan and overdrafts\n * @returns CreatedNonDeductibleInterests\n * Include question and its value if the client picked transaction ids\n * Else return hasNonDeductibleInterests false\n */\n createNonDeductibleInterests(idExercice: number, payload: CreateNonDeductibleInterests): Promise<CreatedNonDeductibleInterests> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/financial-charges/non-deductible-interests`, payload);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FirstStep.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;AACrCC,KAAG;AACD,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oBAAhB,CAAP;AACD;;AAHoC;;QAA1BJ,S,GAAAA,S","names":["FirstStep","Resource","get","axios","$get"],"sourceRoot":"","sources":["../../../ts/api/resources/FirstStep.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { IFirstStep } from '../../types';\n\nexport class FirstStep extends Resource {\n get(): Promise<IFirstStep> {\n return this.axios.$get('/society/firstStep');\n }\n}"]}
1
+ {"version":3,"file":"FirstStep.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;EACrCC,GAAG;IACD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oBAAhB,CAAP;EACD;;AAHoC;;QAA1BJ,S,GAAAA,S","names":["FirstStep","Resource","get","axios","$get"],"sourceRoot":"","sources":["../../../ts/api/resources/FirstStep.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { IFirstStep } from '../../types';\n\nexport class FirstStep extends Resource {\n get(): Promise<IFirstStep> {\n return this.axios.$get('/society/firstStep');\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"GeneralLedger.js","mappings":";;;;;;;AAEA;;AAEM,MAAOA,aAAP,SAA6BC,kBAA7B,CAAqC;AACzCC,cAAY,CAACC,MAAD,EAA2B;AACrC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,gBAAhB,EAAkC;AACvCF;AADuC,KAAlC,CAAP;AAGD;;AAEDG,qBAAmB,CAACH,MAAD,EAA2B;AAC5C,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,wBAAhB,EAA0C;AAC/CF;AAD+C,KAA1C,CAAP;AAGD;;AAEDI,QAAM,CAACJ,MAAD,EAA2B;AAC/B,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oBAAhB,EAAsC;AAC3CF,YAD2C;AAE3CK,kBAAY,EAAE,aAF6B;AAG3CC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAHkC,KAAtC,CAAP;AAOD;;AAEDC,eAAa,CAACR,MAAD,EAA2B;AACtC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,4BAAhB,EAA8C;AACnDF,YADmD;AAEnDK,kBAAY,EAAE,aAFqC;AAGnDC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAH0C,KAA9C,CAAP;AAOD;;AAEDE,QAAM,CAACT,MAAD,EAA2B;AAC/B,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oBAAhB,EAAsC;AAC3CF,YAD2C;AAE3CK,kBAAY,EAAE,aAF6B;AAG3CC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAHkC,KAAtC,CAAP;AAOD;;AAEDG,eAAa,CAACV,MAAD,EAA2B;AACtC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,4BAAhB,EAA8C;AACnDF,YADmD;AAEnDK,kBAAY,EAAE,aAFqC;AAGnDC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAH0C,KAA9C,CAAP;AAOD;;AAnDwC;;QAA9BV,a,GAAAA,a","names":["GeneralLedger","Resource","getBySociety","params","axios","$get","getBalanceBySociety","getCsv","responseType","headers","Accept","getBalanceCsv","getPdf","getBalancePdf"],"sourceRoot":"","sources":["../../../ts/api/resources/GeneralLedger.ts"],"sourcesContent":["import { BasePaginateInterface, IGeneralLedgerAccount } from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n getCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getBalanceCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getPdf(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getBalancePdf(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}"]}
1
+ {"version":3,"file":"GeneralLedger.js","mappings":";;;;;;;AAEA;;AAEM,MAAOA,aAAP,SAA6BC,kBAA7B,CAAqC;EACzCC,YAAY,CAACC,MAAD,EAA2B;IACrC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,gBAAhB,EAAkC;MACvCF;IADuC,CAAlC,CAAP;EAGD;;EAEDG,mBAAmB,CAACH,MAAD,EAA2B;IAC5C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,wBAAhB,EAA0C;MAC/CF;IAD+C,CAA1C,CAAP;EAGD;;EAEDI,MAAM,CAACJ,MAAD,EAA2B;IAC/B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oBAAhB,EAAsC;MAC3CF,MAD2C;MAE3CK,YAAY,EAAE,aAF6B;MAG3CC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAHkC,CAAtC,CAAP;EAOD;;EAEDC,aAAa,CAACR,MAAD,EAA2B;IACtC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,4BAAhB,EAA8C;MACnDF,MADmD;MAEnDK,YAAY,EAAE,aAFqC;MAGnDC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAH0C,CAA9C,CAAP;EAOD;;EAEDE,MAAM,CAACT,MAAD,EAA2B;IAC/B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oBAAhB,EAAsC;MAC3CF,MAD2C;MAE3CK,YAAY,EAAE,aAF6B;MAG3CC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAHkC,CAAtC,CAAP;EAOD;;EAEDG,aAAa,CAACV,MAAD,EAA2B;IACtC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,4BAAhB,EAA8C;MACnDF,MADmD;MAEnDK,YAAY,EAAE,aAFqC;MAGnDC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAH0C,CAA9C,CAAP;EAOD;;AAnDwC;;QAA9BV,a,GAAAA,a","names":["GeneralLedger","Resource","getBySociety","params","axios","$get","getBalanceBySociety","getCsv","responseType","headers","Accept","getBalanceCsv","getPdf","getBalancePdf"],"sourceRoot":"","sources":["../../../ts/api/resources/GeneralLedger.ts"],"sourcesContent":["import { BasePaginateInterface, IGeneralLedgerAccount } from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n getCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getBalanceCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getPdf(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getBalancePdf(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Immobilization.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,cAAP,SAA8BC,kBAA9B,CAAsC;AAC1CC,6BAA2B,CAACC,MAAD,EAA+B;AACxD,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,aAAaF,MAAM,CAACG,UAAU,2BAA9C,EAA2E,EAA3E,CAAP;AACD;;AAEDC,gCAA8B,CAACJ,MAAD,EAA+B;AAC3D,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,aAAaF,MAAM,CAACG,UAAU,+BAA9C,EAA+E;AACpFE,kBAAY,EAAE,aADsE;AAEpFC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAF2E,KAA/E,CAAP;AAMD;;AAEDC,oBAAkB,CAACR,MAAD,EAA8B;AAC9C,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,YAAYF,MAAM,CAACS,SAAS,kBAA5C,EAAgE,EAAhE,CAAP;AACD;;AAEDC,sBAAoB,CAACV,MAAD,EAA0C;AAC5D,WAAO,KAAKC,KAAL,CAAWU,OAAX,CAAmB,YAAYX,MAAM,CAACS,SAAS,mBAAmBT,MAAM,CAACY,EAAE,EAA3E,CAAP;AACD;;AAEDC,sBAAoB,CAACJ,SAAD,EAAoBK,OAApB,EAAqD;AACvE,WAAO,KAAKb,KAAL,CAAWc,KAAX,CAAiB,YAAYN,SAAS,iBAAtC,EAAyDK,OAAzD,CAAP;AACD;;AAEDE,KAAG,CAACP,SAAD,EAAoBQ,gBAApB,EAA8CH,OAA9C,EAAoF;AACrF,WAAO,KAAKb,KAAL,CAAWiB,IAAX,CAAgB,YAAYT,SAAS,mBAAmBQ,gBAAgB,MAAxE,EAAgFH,OAAhF,CAAP;AACD;;AA5ByC;;QAA/BjB,c,GAAAA,c","names":["Immobilization","Resource","getImmobilizationsInventory","params","axios","$get","idExercice","getImmobilizationsInventoryPdf","responseType","headers","Accept","getImmobilizations","idSociety","deleteImmobilization","$delete","id","createImmobilization","payload","$post","end","idImmobilization","$put"],"sourceRoot":"","sources":["../../../ts/api/resources/Immobilization.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n ReadFormattedImmobilizationsByAccount, ReadHydratedImmobilization, CreateImmobilizationForm, CreateEndOfImmobilizationForm,\n} from '../../types';\n\nexport class Immobilization extends Resource {\n getImmobilizationsInventory(params: { idExercice: number }): Promise<ReadFormattedImmobilizationsByAccount | Error> {\n return this.axios.$get(`/exercice/${params.idExercice}/immobilizationsInventory`, {});\n }\n\n getImmobilizationsInventoryPdf(params: { idExercice: number }): Promise<Buffer> {\n return this.axios.$get(`/exercice/${params.idExercice}/immobilizationsInventory/pdf`, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getImmobilizations(params: { idSociety: number }): Promise<ReadHydratedImmobilization[]> {\n return this.axios.$get(`/society/${params.idSociety}/immobilizations`, {});\n }\n\n deleteImmobilization(params: { idSociety: number, id: number }): Promise<boolean> {\n return this.axios.$delete(`/society/${params.idSociety}/immobilization/${params.id}`);\n }\n\n createImmobilization(idSociety: number, payload: CreateImmobilizationForm): Promise<ReadHydratedImmobilization> {\n return this.axios.$post(`/society/${idSociety}/immobilization`, payload);\n }\n\n end(idSociety: number, idImmobilization: number, payload: CreateEndOfImmobilizationForm): Promise<ReadHydratedImmobilization> {\n return this.axios.$put(`/society/${idSociety}/immobilization/${idImmobilization}/end`, payload);\n }\n}\n"]}
1
+ {"version":3,"file":"Immobilization.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,cAAP,SAA8BC,kBAA9B,CAAsC;EAC1CC,2BAA2B,CAACC,MAAD,EAA+B;IACxD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,aAAaF,MAAM,CAACG,UAAU,2BAA9C,EAA2E,EAA3E,CAAP;EACD;;EAEDC,8BAA8B,CAACJ,MAAD,EAA+B;IAC3D,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,aAAaF,MAAM,CAACG,UAAU,+BAA9C,EAA+E;MACpFE,YAAY,EAAE,aADsE;MAEpFC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAF2E,CAA/E,CAAP;EAMD;;EAEDC,kBAAkB,CAACR,MAAD,EAA8B;IAC9C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,YAAYF,MAAM,CAACS,SAAS,kBAA5C,EAAgE,EAAhE,CAAP;EACD;;EAEDC,oBAAoB,CAACV,MAAD,EAA0C;IAC5D,OAAO,KAAKC,KAAL,CAAWU,OAAX,CAAmB,YAAYX,MAAM,CAACS,SAAS,mBAAmBT,MAAM,CAACY,EAAE,EAA3E,CAAP;EACD;;EAEDC,oBAAoB,CAACJ,SAAD,EAAoBK,OAApB,EAAqD;IACvE,OAAO,KAAKb,KAAL,CAAWc,KAAX,CAAiB,YAAYN,SAAS,iBAAtC,EAAyDK,OAAzD,CAAP;EACD;;EAEDE,GAAG,CAACP,SAAD,EAAoBQ,gBAApB,EAA8CH,OAA9C,EAAoF;IACrF,OAAO,KAAKb,KAAL,CAAWiB,IAAX,CAAgB,YAAYT,SAAS,mBAAmBQ,gBAAgB,MAAxE,EAAgFH,OAAhF,CAAP;EACD;;AA5ByC;;QAA/BjB,c,GAAAA,c","names":["Immobilization","Resource","getImmobilizationsInventory","params","axios","$get","idExercice","getImmobilizationsInventoryPdf","responseType","headers","Accept","getImmobilizations","idSociety","deleteImmobilization","$delete","id","createImmobilization","payload","$post","end","idImmobilization","$put"],"sourceRoot":"","sources":["../../../ts/api/resources/Immobilization.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n ReadFormattedImmobilizationsByAccount, ReadHydratedImmobilization, CreateImmobilizationForm, CreateEndOfImmobilizationForm,\n} from '../../types';\n\nexport class Immobilization extends Resource {\n getImmobilizationsInventory(params: { idExercice: number }): Promise<ReadFormattedImmobilizationsByAccount | Error> {\n return this.axios.$get(`/exercice/${params.idExercice}/immobilizationsInventory`, {});\n }\n\n getImmobilizationsInventoryPdf(params: { idExercice: number }): Promise<Buffer> {\n return this.axios.$get(`/exercice/${params.idExercice}/immobilizationsInventory/pdf`, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getImmobilizations(params: { idSociety: number }): Promise<ReadHydratedImmobilization[]> {\n return this.axios.$get(`/society/${params.idSociety}/immobilizations`, {});\n }\n\n deleteImmobilization(params: { idSociety: number, id: number }): Promise<boolean> {\n return this.axios.$delete(`/society/${params.idSociety}/immobilization/${params.id}`);\n }\n\n createImmobilization(idSociety: number, payload: CreateImmobilizationForm): Promise<ReadHydratedImmobilization> {\n return this.axios.$post(`/society/${idSociety}/immobilization`, payload);\n }\n\n end(idSociety: number, idImmobilization: number, payload: CreateEndOfImmobilizationForm): Promise<ReadHydratedImmobilization> {\n return this.axios.$put(`/society/${idSociety}/immobilization/${idImmobilization}/end`, payload);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IncomeAllocation.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,gBAAP,SAAgCC,kBAAhC,CAAwC;AAC5CC,kBAAgB,CAACC,UAAD,EAAmB;AACjC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,4CAA4CF,UAAU,EAAtE,CAAP;AACD;;AAEDG,4BAA0B,CAACH,UAAD,EAAqBI,QAArB,EAAuC;AAC/D,WAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,mDAAmDL,UAAU,EAA9E,EAAkFI,QAAlF,CAAP;AACD;;AAEDE,yBAAuB,CAACN,UAAD,EAAmB;AACxC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,mDAAmDF,UAAU,EAA7E,CAAP;AACD;;AAEDO,QAAM,CAACC,MAAD,EAA+B;AACnC,WAAO,KAAKP,KAAL,CAAWI,KAAX,CAAiB,oBAAjB,EAAuCG,MAAvC,CAAP;AACD;;AAEDC,KAAG,CAACT,UAAD,EAAmB;AACpB,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,8BAA8BF,UAAU,EAAxD,CAAP;AACD;;AAEDU,QAAM,CAACV,UAAD,EAAmB;AACvB,WAAO,KAAKC,KAAL,CAAWU,OAAX,CAAmB,8BAA8BX,UAAU,EAA3D,CAAP;AACD;;AAvB2C;;QAAjCH,gB,GAAAA,gB","names":["IncomeAllocation","Resource","getTypeAndAmount","idExercice","axios","$get","createAnnualGeneralMeeting","formData","$post","getAnnualGeneralMeeting","create","params","get","delete","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/IncomeAllocation.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateIncomeAllocation, IFile, TypeAndAmount, ReadIncomeAllocation, IAccountingEntry, ReadLibraryFile,\n} from '../../types';\n\nexport class IncomeAllocation extends Resource {\n getTypeAndAmount(idExercice: number): Promise<TypeAndAmount> {\n return this.axios.$get(`/incomeAllocation/typeAndAmount/exercice/${idExercice}`);\n }\n\n createAnnualGeneralMeeting(idExercice: number, formData: FormData): Promise<ReadLibraryFile> {\n return this.axios.$post(`/incomeAllocation/annualGeneralMeeting/exercice/${idExercice}`, formData);\n }\n\n getAnnualGeneralMeeting(idExercice: number): Promise<IFile | null> {\n return this.axios.$get(`/incomeAllocation/annualGeneralMeeting/exercice/${idExercice}`);\n }\n\n create(params: CreateIncomeAllocation): Promise<IAccountingEntry[]> {\n return this.axios.$post('/incomeAllocation/', params);\n }\n\n get(idExercice: number): Promise<ReadIncomeAllocation> {\n return this.axios.$get(`/incomeAllocation/exercice/${idExercice}`);\n }\n\n delete(idExercice: number): Promise<boolean> {\n return this.axios.$delete(`/incomeAllocation/exercice/${idExercice}`);\n }\n}\n"]}
1
+ {"version":3,"file":"IncomeAllocation.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,gBAAP,SAAgCC,kBAAhC,CAAwC;EAC5CC,gBAAgB,CAACC,UAAD,EAAmB;IACjC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,4CAA4CF,UAAU,EAAtE,CAAP;EACD;;EAEDG,0BAA0B,CAACH,UAAD,EAAqBI,QAArB,EAAuC;IAC/D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,mDAAmDL,UAAU,EAA9E,EAAkFI,QAAlF,CAAP;EACD;;EAEDE,uBAAuB,CAACN,UAAD,EAAmB;IACxC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,mDAAmDF,UAAU,EAA7E,CAAP;EACD;;EAEDO,MAAM,CAACC,MAAD,EAA+B;IACnC,OAAO,KAAKP,KAAL,CAAWI,KAAX,CAAiB,oBAAjB,EAAuCG,MAAvC,CAAP;EACD;;EAEDC,GAAG,CAACT,UAAD,EAAmB;IACpB,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,8BAA8BF,UAAU,EAAxD,CAAP;EACD;;EAEDU,MAAM,CAACV,UAAD,EAAmB;IACvB,OAAO,KAAKC,KAAL,CAAWU,OAAX,CAAmB,8BAA8BX,UAAU,EAA3D,CAAP;EACD;;AAvB2C;;QAAjCH,gB,GAAAA,gB","names":["IncomeAllocation","Resource","getTypeAndAmount","idExercice","axios","$get","createAnnualGeneralMeeting","formData","$post","getAnnualGeneralMeeting","create","params","get","delete","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/IncomeAllocation.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateIncomeAllocation, IFile, TypeAndAmount, ReadIncomeAllocation, IAccountingEntry, ReadLibraryFile,\n} from '../../types';\n\nexport class IncomeAllocation extends Resource {\n getTypeAndAmount(idExercice: number): Promise<TypeAndAmount> {\n return this.axios.$get(`/incomeAllocation/typeAndAmount/exercice/${idExercice}`);\n }\n\n createAnnualGeneralMeeting(idExercice: number, formData: FormData): Promise<ReadLibraryFile> {\n return this.axios.$post(`/incomeAllocation/annualGeneralMeeting/exercice/${idExercice}`, formData);\n }\n\n getAnnualGeneralMeeting(idExercice: number): Promise<IFile | null> {\n return this.axios.$get(`/incomeAllocation/annualGeneralMeeting/exercice/${idExercice}`);\n }\n\n create(params: CreateIncomeAllocation): Promise<IAccountingEntry[]> {\n return this.axios.$post('/incomeAllocation/', params);\n }\n\n get(idExercice: number): Promise<ReadIncomeAllocation> {\n return this.axios.$get(`/incomeAllocation/exercice/${idExercice}`);\n }\n\n delete(idExercice: number): Promise<boolean> {\n return this.axios.$delete(`/incomeAllocation/exercice/${idExercice}`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IncomeStatement.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;AAC3CC,QAAM,CAACC,KAAD,EAA+B;AACnC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,sBAAhB,EAAwC;AAC7CC,YAAM,EAAEH,KADqC;AAE7CI,kBAAY,EAAE,aAF+B;AAG7CC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAHoC,KAAxC,CAAP;AAOD;;AAT0C;;QAAhCT,e,GAAAA,e","names":["IncomeStatement","Resource","getPdf","query","axios","$get","params","responseType","headers","Accept"],"sourceRoot":"","sources":["../../../ts/api/resources/IncomeStatement.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryIncomeStatementPdf } from '../../types';\n\nexport class IncomeStatement extends Resource {\n getPdf(query: QueryIncomeStatementPdf) : Promise<Buffer> {\n return this.axios.$get('/incomeStatement/pdf', {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}"]}
1
+ {"version":3,"file":"IncomeStatement.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;EAC3CC,MAAM,CAACC,KAAD,EAA+B;IACnC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,sBAAhB,EAAwC;MAC7CC,MAAM,EAAEH,KADqC;MAE7CI,YAAY,EAAE,aAF+B;MAG7CC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAHoC,CAAxC,CAAP;EAOD;;AAT0C;;QAAhCT,e,GAAAA,e","names":["IncomeStatement","Resource","getPdf","query","axios","$get","params","responseType","headers","Accept"],"sourceRoot":"","sources":["../../../ts/api/resources/IncomeStatement.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryIncomeStatementPdf } from '../../types';\n\nexport class IncomeStatement extends Resource {\n getPdf(query: QueryIncomeStatementPdf) : Promise<Buffer> {\n return this.axios.$get('/incomeStatement/pdf', {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"InternalInvoicing.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,iBAAP,SAAiCC,kBAAjC,CAAyC;AAC7CC,QAAM,CAACC,MAAD,EAAgC;AACpC,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,oBAAjB,EAAuCF,MAAvC,CAAP;AACD;;AACDG,UAAQ,CAACH,MAAD,EAAmC;AACzC,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,wBAAjB,EAAyCE,gCAC3CJ,MAD2C,GACrC;AACTK,kBAAY,EAAE,aADL;AAETC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAFA,KADqC,CAAzC,CAAP;AAOD;;AACDC,YAAU,CAACR,MAAD,EAAoC;AAC5C,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,+BAAjB,EAAkDF,MAAlD,CAAP;AACD;;AAf4C;;QAAlCH,iB,GAAAA,iB","names":["InternalInvoicing","Resource","create","params","axios","$post","download","Object","responseType","headers","Accept","regenerate"],"sourceRoot":"","sources":["../../../ts/api/resources/InternalInvoicing.ts"],"sourcesContent":["import {\n CreateInternalInvoicing, CreateInternalInvoicing2in, RegenerateInternalInvoicing,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class InternalInvoicing extends Resource {\n create(params: CreateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing', params);\n }\n download(params: CreateInternalInvoicing2in): Promise<Buffer> {\n return this.axios.$post('/internalInvoicing/2in', {\n ...params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n regenerate(params: RegenerateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing/regenerate', params);\n }\n}"]}
1
+ {"version":3,"file":"InternalInvoicing.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,iBAAP,SAAiCC,kBAAjC,CAAyC;EAC7CC,MAAM,CAACC,MAAD,EAAgC;IACpC,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,oBAAjB,EAAuCF,MAAvC,CAAP;EACD;;EACDG,QAAQ,CAACH,MAAD,EAAmC;IACzC,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,wBAAjB,EAAyCE,gCAC3CJ,MAD2C,GACrC;MACTK,YAAY,EAAE,aADL;MAETC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFA,CADqC,CAAzC,CAAP;EAOD;;EACDC,UAAU,CAACR,MAAD,EAAoC;IAC5C,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,+BAAjB,EAAkDF,MAAlD,CAAP;EACD;;AAf4C;;QAAlCH,iB,GAAAA,iB","names":["InternalInvoicing","Resource","create","params","axios","$post","download","Object","responseType","headers","Accept","regenerate"],"sourceRoot":"","sources":["../../../ts/api/resources/InternalInvoicing.ts"],"sourcesContent":["import {\n CreateInternalInvoicing, CreateInternalInvoicing2in, RegenerateInternalInvoicing,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class InternalInvoicing extends Resource {\n create(params: CreateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing', params);\n }\n download(params: CreateInternalInvoicing2in): Promise<Buffer> {\n return this.axios.$post('/internalInvoicing/2in', {\n ...params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n regenerate(params: RegenerateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing/regenerate', params);\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Journal.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;AACnCC,WAAS,CAACC,UAAD,EAA6BC,MAA7B,EAAiD;AACxD,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,mCAAmCH,UAAU,EAA7D,EAAiE;AACtEC,YADsE;AAEtEG,kBAAY,EAAE;AAFwD,KAAjE,CAAP;AAID;;AANkC;;QAAxBP,O,GAAAA,O","names":["Journal","Resource","getExport","exportType","params","axios","$get","responseType"],"sourceRoot":"","sources":["../../../ts/api/resources/Journal.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { Journals, QueryJournal } from '../../types';\n\nexport class Journal extends Resource {\n getExport(exportType: 'pdf' | 'json', params: QueryJournal): Promise<Journals | Buffer> {\n return this.axios.$get(`/balance-sheets/journals/export/${exportType}`, {\n params,\n responseType: 'arraybuffer',\n });\n }\n}\n"]}
1
+ {"version":3,"file":"Journal.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,SAAS,CAACC,UAAD,EAA6BC,MAA7B,EAAiD;IACxD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,mCAAmCH,UAAU,EAA7D,EAAiE;MACtEC,MADsE;MAEtEG,YAAY,EAAE;IAFwD,CAAjE,CAAP;EAID;;AANkC;;QAAxBP,O,GAAAA,O","names":["Journal","Resource","getExport","exportType","params","axios","$get","responseType"],"sourceRoot":"","sources":["../../../ts/api/resources/Journal.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { Journals, QueryJournal } from '../../types';\n\nexport class Journal extends Resource {\n getExport(exportType: 'pdf' | 'json', params: QueryJournal): Promise<Journals | Buffer> {\n return this.axios.$get(`/balance-sheets/journals/export/${exportType}`, {\n params,\n responseType: 'arraybuffer',\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"KilometricAllowance.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,mBAAP,SAAmCC,kBAAnC,CAA2C;AAC/CC,UAAQ,CAACC,UAAD,EAAqBC,OAArB,EAAiE;AACvE,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaH,UAAU,gCAAxC,EAA0EC,OAA1E,CAAP;AACD;;AAH8C;;QAApCJ,mB,GAAAA,mB","names":["KilometricAllowance","Resource","validate","idExercice","payload","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/KilometricAllowance.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { CreateKilometricAllowanceValidation } from '../../types';\n\nexport class KilometricAllowance extends Resource {\n validate(idExercice: number, payload: CreateKilometricAllowanceValidation): Promise<boolean> {\n return this.axios.$post(`/exercice/${idExercice}/kilometric-allowance/validate`, payload);\n }\n}"]}
1
+ {"version":3,"file":"KilometricAllowance.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,mBAAP,SAAmCC,kBAAnC,CAA2C;EAC/CC,QAAQ,CAACC,UAAD,EAAqBC,OAArB,EAAiE;IACvE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaH,UAAU,gCAAxC,EAA0EC,OAA1E,CAAP;EACD;;AAH8C;;QAApCJ,mB,GAAAA,mB","names":["KilometricAllowance","Resource","validate","idExercice","payload","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/KilometricAllowance.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { CreateKilometricAllowanceValidation } from '../../types';\n\nexport class KilometricAllowance extends Resource {\n validate(idExercice: number, payload: CreateKilometricAllowanceValidation): Promise<boolean> {\n return this.axios.$post(`/exercice/${idExercice}/kilometric-allowance/validate`, payload);\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"LegalForm.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;AACrCC,QAAM;AACJ,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,YAAhB,CAAP;AACD;;AAHoC;;QAA1BJ,S,GAAAA,S","names":["LegalForm","Resource","getAll","axios","$get"],"sourceRoot":"","sources":["../../../ts/api/resources/LegalForm.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { ILegalForm } from '../../types';\n\nexport class LegalForm extends Resource {\n getAll(): Promise<ILegalForm> {\n return this.axios.$get('/legalForm');\n }\n}"]}
1
+ {"version":3,"file":"LegalForm.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;EACrCC,MAAM;IACJ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,YAAhB,CAAP;EACD;;AAHoC;;QAA1BJ,S,GAAAA,S","names":["LegalForm","Resource","getAll","axios","$get"],"sourceRoot":"","sources":["../../../ts/api/resources/LegalForm.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { ILegalForm } from '../../types';\n\nexport class LegalForm extends Resource {\n getAll(): Promise<ILegalForm> {\n return this.axios.$get('/legalForm');\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Letter.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,MAAP,SAAsBC,kBAAtB,CAA8B;AAClCC,QAAM,CAACC,MAAD,EAAqB;AACzB,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,UAAjB,EAA6BF,MAA7B,CAAP;AACD;;AAHiC;;QAAvBH,M,GAAAA,M","names":["Letter","Resource","create","params","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/Letter.ts"],"sourcesContent":["import {\n BasePaginate, CreateLetter, ReadReport,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Letter extends Resource {\n create(params: CreateLetter): Promise<BasePaginate<ReadReport> | Error> {\n return this.axios.$post('/letters', params);\n }\n}\n"]}
1
+ {"version":3,"file":"Letter.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,MAAP,SAAsBC,kBAAtB,CAA8B;EAClCC,MAAM,CAACC,MAAD,EAAqB;IACzB,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,UAAjB,EAA6BF,MAA7B,CAAP;EACD;;AAHiC;;QAAvBH,M,GAAAA,M","names":["Letter","Resource","create","params","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/Letter.ts"],"sourcesContent":["import {\n BasePaginate, CreateLetter, ReadReport,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Letter extends Resource {\n create(params: CreateLetter): Promise<BasePaginate<ReadReport> | Error> {\n return this.axios.$post('/letters', params);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Library.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;AACnCC,KAAG,CAACC,MAAD,EAAyB;AAC1B,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,eAAhB,EAAiC;AAAEF;AAAF,KAAjC,CAAP;AACD;;AAEDG,UAAQ,CAACC,SAAD,EAAoBJ,MAApB,EAA+CK,SAAS,GAAG,KAA3D,EAAgE;AACtE,WAAO,KAAKJ,KAAL,CAAWC,IAAX,CAAgB,YAAYE,SAAS,gBAArC,EAAqDE;AAExDN;AAFwD,OAGpDK,SAAS,GAAG;AACdE,kBAAY,EAAE,aADA;AAEdC,aAAO,EAAE;AACPC,cAAM,EAAE;AADD;AAFK,KAAH,GAKT,EARoD,CAArD,CAAP;AAUD;;AAhBkC;;QAAxBZ,O,GAAAA,O","names":["Library","Resource","get","params","axios","$get","download","idSociety","isPdfFile","Object","responseType","headers","Accept"],"sourceRoot":"","sources":["../../../ts/api/resources/Library.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryLibraryFile, IGedFile, QueryDownloadFile } from '../../types';\n\nexport class Library extends Resource {\n get(params: QueryLibraryFile): Promise<IGedFile | null> {\n return this.axios.$get('/library/file', { params });\n }\n\n download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {\n return this.axios.$get(`/library/${idSociety}/file/download`,\n {\n params,\n ...(isPdfFile ? {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n } : {}),\n });\n }\n}"]}
1
+ {"version":3,"file":"Library.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,GAAG,CAACC,MAAD,EAAyB;IAC1B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,eAAhB,EAAiC;MAAEF;IAAF,CAAjC,CAAP;EACD;;EAEDG,QAAQ,CAACC,SAAD,EAAoBJ,MAApB,EAA+CK,SAAS,GAAG,KAA3D,EAAgE;IACtE,OAAO,KAAKJ,KAAL,CAAWC,IAAX,CAAgB,YAAYE,SAAS,gBAArC,EAAqDE;MAExDN;IAFwD,GAGpDK,SAAS,GAAG;MACdE,YAAY,EAAE,aADA;MAEdC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFK,CAAH,GAKT,EARoD,CAArD,CAAP;EAUD;;AAhBkC;;QAAxBZ,O,GAAAA,O","names":["Library","Resource","get","params","axios","$get","download","idSociety","isPdfFile","Object","responseType","headers","Accept"],"sourceRoot":"","sources":["../../../ts/api/resources/Library.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryLibraryFile, IGedFile, QueryDownloadFile } from '../../types';\n\nexport class Library extends Resource {\n get(params: QueryLibraryFile): Promise<IGedFile | null> {\n return this.axios.$get('/library/file', { params });\n }\n\n download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {\n return this.axios.$get(`/library/${idSociety}/file/download`,\n {\n params,\n ...(isPdfFile ? {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n } : {}),\n });\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Loan.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,IAAP,SAAoBC,kBAApB,CAA4B;AAChCC,UAAQ;AACN,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,QAAhB,CAAP;AACD;;AAEDC,SAAO,CAACC,MAAD,EAA2B;AAChC,WAAO,KAAKH,KAAL,CAAWC,IAAX,CAAgB,SAASE,MAAM,CAACC,MAAM,EAAtC,CAAP;AACD;;AAEDC,YAAU,CAACC,OAAD,EAAwB;AAChC,WAAO,KAAKN,KAAL,CAAWO,KAAX,CAAiB,OAAjB,EAA0BD,OAA1B,CAAP;AACD;;AAEDE,YAAU,CAACJ,MAAD,EAAiBE,OAAjB,EAAwC;AAChD,WAAO,KAAKN,KAAL,CAAWS,IAAX,CAAgB,SAASL,MAAM,EAA/B,EAAmCE,OAAnC,CAAP;AACD;;AAEDI,YAAU,CAACN,MAAD,EAAe;AACvB,WAAO,KAAKJ,KAAL,CAAWW,OAAX,CAAmB,SAASP,MAAM,EAAlC,CAAP;AACD;;AAnB+B;;QAArBP,I,GAAAA,I","names":["Loan","Resource","getLoans","axios","$get","getLoan","params","idLoan","createLoan","payload","$post","updateLoan","$put","deleteLoan","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/Loan.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { CreateLoanForm, ILoan, UpdateLoanForm } from '../../types';\n\nexport class Loan extends Resource {\n getLoans(): Promise<ILoan[]> {\n return this.axios.$get('/loans');\n }\n\n getLoan(params: { idLoan: number }): Promise<ILoan> {\n return this.axios.$get(`/loan/${params.idLoan}`);\n }\n\n createLoan(payload: CreateLoanForm): Promise<ILoan> {\n return this.axios.$post('/loan', payload);\n }\n\n updateLoan(idLoan: number, payload: UpdateLoanForm): Promise<ILoan> {\n return this.axios.$put(`/loan/${idLoan}`, payload);\n }\n\n deleteLoan(idLoan: number): Promise<true> {\n return this.axios.$delete(`/loan/${idLoan}`);\n }\n}\n"]}
1
+ {"version":3,"file":"Loan.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,IAAP,SAAoBC,kBAApB,CAA4B;EAChCC,QAAQ;IACN,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,QAAhB,CAAP;EACD;;EAEDC,OAAO,CAACC,MAAD,EAA2B;IAChC,OAAO,KAAKH,KAAL,CAAWC,IAAX,CAAgB,SAASE,MAAM,CAACC,MAAM,EAAtC,CAAP;EACD;;EAEDC,UAAU,CAACC,OAAD,EAAwB;IAChC,OAAO,KAAKN,KAAL,CAAWO,KAAX,CAAiB,OAAjB,EAA0BD,OAA1B,CAAP;EACD;;EAEDE,UAAU,CAACJ,MAAD,EAAiBE,OAAjB,EAAwC;IAChD,OAAO,KAAKN,KAAL,CAAWS,IAAX,CAAgB,SAASL,MAAM,EAA/B,EAAmCE,OAAnC,CAAP;EACD;;EAEDI,UAAU,CAACN,MAAD,EAAe;IACvB,OAAO,KAAKJ,KAAL,CAAWW,OAAX,CAAmB,SAASP,MAAM,EAAlC,CAAP;EACD;;AAnB+B;;QAArBP,I,GAAAA,I","names":["Loan","Resource","getLoans","axios","$get","getLoan","params","idLoan","createLoan","payload","$post","updateLoan","$put","deleteLoan","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/Loan.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { CreateLoanForm, ILoan, UpdateLoanForm } from '../../types';\n\nexport class Loan extends Resource {\n getLoans(): Promise<ILoan[]> {\n return this.axios.$get('/loans');\n }\n\n getLoan(params: { idLoan: number }): Promise<ILoan> {\n return this.axios.$get(`/loan/${params.idLoan}`);\n }\n\n createLoan(payload: CreateLoanForm): Promise<ILoan> {\n return this.axios.$post('/loan', payload);\n }\n\n updateLoan(idLoan: number, payload: UpdateLoanForm): Promise<ILoan> {\n return this.axios.$put(`/loan/${idLoan}`, payload);\n }\n\n deleteLoan(idLoan: number): Promise<true> {\n return this.axios.$delete(`/loan/${idLoan}`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Log.js","mappings":";;;;;;;AAAA;;AACA;;AAMM,MAAOA,GAAP,SAAmBC,kBAAnB,CAA2B;AAC/BC,qBAAmB,CAACC,MAAD,EAAe;AAChC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,UAAUF,MAAM,OAAhC,EAAyC;AAAEG,YAAM,EAAE;AAAEC,iBAAS,EAAEC,eAAQC,KAArB;AAA4BC,eAAO,EAAE;AAArC;AAAV,KAAzC,CAAP;AACD;;AAH8B;;QAApBV,G,GAAAA,G","names":["Log","Resource","getLastIpsPaginated","idUser","axios","$get","params","idLogType","LogType","LOGIN","orderBy"],"sourceRoot":"","sources":["../../../ts/api/resources/Log.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n ILog,\n LogType,\n} from '../../types';\n\nexport class Log extends Resource {\n getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>> {\n return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });\n }\n}"]}
1
+ {"version":3,"file":"Log.js","mappings":";;;;;;;AAAA;;AACA;;AAMM,MAAOA,GAAP,SAAmBC,kBAAnB,CAA2B;EAC/BC,mBAAmB,CAACC,MAAD,EAAe;IAChC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,UAAUF,MAAM,OAAhC,EAAyC;MAAEG,MAAM,EAAE;QAAEC,SAAS,EAAEC,eAAQC,KAArB;QAA4BC,OAAO,EAAE;MAArC;IAAV,CAAzC,CAAP;EACD;;AAH8B;;QAApBV,G,GAAAA,G","names":["Log","Resource","getLastIpsPaginated","idUser","axios","$get","params","idLogType","LogType","LOGIN","orderBy"],"sourceRoot":"","sources":["../../../ts/api/resources/Log.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n ILog,\n LogType,\n} from '../../types';\n\nexport class Log extends Resource {\n getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>> {\n return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"MachineLearning.js","mappings":";;;;;;;AAIA;;AAEM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;AAC3CC,2BAAyB;AACvB,WAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,gCAAjB,CAAP;AACD;;AACDC,wCAAsC,CAACC,aAAD,EAAwBC,MAAxB,EAA2D;AAC/F,WAAO,KAAKJ,KAAL,CAAWC,KAAX,CAAiB,+CAA+CE,aAAa,EAA7E,EAAiF;AACtFE,eAAS,EAAED,MAAM,CAACC,SADoE;AAEtFC,aAAO,EAAEF,MAAM,CAACE;AAFsE,KAAjF,CAAP;AAID;;AAT0C;;QAAhCT,e,GAAAA,e","names":["MachineLearning","Resource","machineLearningAnnotation","axios","$post","annotateBankAccountWithMachineLearning","idBankAccount","params","startDate","endDate"],"sourceRoot":"","sources":["../../../ts/api/resources/MachineLearning.ts"],"sourcesContent":["import {\n GetTransactionsBetweenDates,\n ResultCreateMachineLearningAnnotation,\n} from '../..';\nimport { Resource } from '../Resource';\n\nexport class MachineLearning extends Resource {\n machineLearningAnnotation(): Promise<ResultCreateMachineLearningAnnotation> {\n return this.axios.$post('/transactions/machine-learning');\n }\n annotateBankAccountWithMachineLearning(idBankAccount: number, params: GetTransactionsBetweenDates): Promise<ResultCreateMachineLearningAnnotation> {\n return this.axios.$post(`/transactions/machine-learning/bankAccounts/${idBankAccount}`, {\n startDate: params.startDate,\n endDate: params.endDate,\n });\n }\n}"]}
1
+ {"version":3,"file":"MachineLearning.js","mappings":";;;;;;;AAIA;;AAEM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;EAC3CC,yBAAyB;IACvB,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,gCAAjB,CAAP;EACD;;EACDC,sCAAsC,CAACC,aAAD,EAAwBC,MAAxB,EAA2D;IAC/F,OAAO,KAAKJ,KAAL,CAAWC,KAAX,CAAiB,+CAA+CE,aAAa,EAA7E,EAAiF;MACtFE,SAAS,EAAED,MAAM,CAACC,SADoE;MAEtFC,OAAO,EAAEF,MAAM,CAACE;IAFsE,CAAjF,CAAP;EAID;;AAT0C;;QAAhCT,e,GAAAA,e","names":["MachineLearning","Resource","machineLearningAnnotation","axios","$post","annotateBankAccountWithMachineLearning","idBankAccount","params","startDate","endDate"],"sourceRoot":"","sources":["../../../ts/api/resources/MachineLearning.ts"],"sourcesContent":["import {\n GetTransactionsBetweenDates,\n ResultCreateMachineLearningAnnotation,\n} from '../..';\nimport { Resource } from '../Resource';\n\nexport class MachineLearning extends Resource {\n machineLearningAnnotation(): Promise<ResultCreateMachineLearningAnnotation> {\n return this.axios.$post('/transactions/machine-learning');\n }\n annotateBankAccountWithMachineLearning(idBankAccount: number, params: GetTransactionsBetweenDates): Promise<ResultCreateMachineLearningAnnotation> {\n return this.axios.$post(`/transactions/machine-learning/bankAccounts/${idBankAccount}`, {\n startDate: params.startDate,\n endDate: params.endDate,\n });\n }\n}"]}
@@ -23,7 +23,9 @@ class Mail extends _Resource.Resource {
23
23
  cancelToken
24
24
  } : {}), {
25
25
  params: Object.assign(Object.assign({}, params), {
26
- idUser
26
+ idUser,
27
+ isProcessed: false,
28
+ isSent: false
27
29
  })
28
30
  }));
29
31
  }
@@ -34,49 +36,117 @@ class Mail extends _Resource.Resource {
34
36
  } : {}), {
35
37
  params: Object.assign(Object.assign({}, params), {
36
38
  idUser,
37
- withoutSociety: true
39
+ isProcessed: false,
40
+ isSent: false,
41
+ isWithoutSociety: true
38
42
  })
39
43
  }));
40
44
  }
41
45
 
42
- getPaginatedSentForUser(idUser, params, cancelToken) {
46
+ getPaginatedProcessedForUser(idUser, params, cancelToken) {
43
47
  return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
44
48
  cancelToken
45
49
  } : {}), {
46
50
  params: Object.assign(Object.assign({}, params), {
47
51
  idUser,
48
- isSent: true
52
+ isProcessed: true,
53
+ isSent: false
49
54
  })
50
55
  }));
51
56
  }
52
57
 
53
- getPaginatedBySociety(idSociety, isSent, cancelToken) {
58
+ getPaginatedSentForUser(idUserWhoAnswered, params, cancelToken) {
54
59
  return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
55
60
  cancelToken
56
61
  } : {}), {
57
- params: Object.assign({
62
+ params: Object.assign(Object.assign({}, params), {
63
+ idUserWhoAnswered,
64
+ isProcessed: false,
65
+ isSent: true,
66
+ isDraft: false
67
+ })
68
+ }));
69
+ }
70
+
71
+ getPaginatedImportantForUser(idUser, params, cancelToken) {
72
+ return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
73
+ cancelToken
74
+ } : {}), {
75
+ params: Object.assign(Object.assign({}, params), {
76
+ idUser,
77
+ isProcessed: false,
78
+ isImportant: true
79
+ })
80
+ }));
81
+ }
82
+
83
+ getPaginatedDraftForUser(idUserWhoAnswered, params, cancelToken) {
84
+ return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
85
+ cancelToken
86
+ } : {}), {
87
+ params: Object.assign(Object.assign({}, params), {
88
+ idUserWhoAnswered,
89
+ isProcessed: false,
90
+ isSent: true,
91
+ isDraft: true
92
+ })
93
+ }));
94
+ }
95
+
96
+ getPaginatedTrashedForUser(idUser, params, cancelToken) {
97
+ return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
98
+ cancelToken
99
+ } : {}), {
100
+ params: Object.assign(Object.assign({}, params), {
101
+ idUser,
102
+ isDeleted: true,
103
+ withDeleted: true
104
+ })
105
+ }));
106
+ }
107
+
108
+ getPaginatedBySociety(idSociety, params, cancelToken) {
109
+ return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
110
+ cancelToken
111
+ } : {}), {
112
+ params: Object.assign(Object.assign({}, params), {
58
113
  idSociety
59
- }, isSent !== undefined ? {
60
- isSent
114
+ })
115
+ }));
116
+ }
117
+
118
+ countProcessedByUser(idUser, sumOfSlidingDays, cancelToken) {
119
+ return this.axios.$get('/mails/count-processed-by-user', Object.assign(Object.assign({}, cancelToken ? {
120
+ cancelToken
121
+ } : {}), {
122
+ params: Object.assign({
123
+ idUser
124
+ }, sumOfSlidingDays ? {
125
+ sumOfSlidingDays
61
126
  } : {})
62
127
  }));
63
128
  }
64
129
 
65
- countInboxByUser(idUser, cancelToken) {
66
- return this.axios.$get('/mails/count-unprocessed-by-user', Object.assign(Object.assign({}, cancelToken ? {
130
+ getAnsweringTimeByUser(idUser, sumOfSlidingDays, cancelToken) {
131
+ return this.axios.$get('/mails/answering-time-by-user', Object.assign(Object.assign({}, cancelToken ? {
67
132
  cancelToken
68
133
  } : {}), {
69
- idUser,
70
- isSent: false
134
+ params: Object.assign({
135
+ idUser
136
+ }, sumOfSlidingDays ? {
137
+ sumOfSlidingDays
138
+ } : {})
71
139
  }));
72
140
  }
73
141
 
74
- countSentByUser(idUser, cancelToken) {
142
+ countInboxByUser(idUser, cancelToken) {
75
143
  return this.axios.$get('/mails/count-unprocessed-by-user', Object.assign(Object.assign({}, cancelToken ? {
76
144
  cancelToken
77
145
  } : {}), {
78
- idUser,
79
- isSent: true
146
+ params: {
147
+ idUser,
148
+ isSent: false
149
+ }
80
150
  }));
81
151
  }
82
152
 
@@ -84,13 +154,15 @@ class Mail extends _Resource.Resource {
84
154
  return this.axios.$get('/mails/count-unprocessed-by-user', Object.assign(Object.assign({}, cancelToken ? {
85
155
  cancelToken
86
156
  } : {}), {
87
- idUser,
88
- withoutSociety: true
157
+ params: {
158
+ idUser,
159
+ isWithoutSociety: true
160
+ }
89
161
  }));
90
162
  }
91
163
 
92
- update(id, payload) {
93
- return this.axios.patch(`/mails/${id}`, payload);
164
+ update(id, payload, params) {
165
+ return this.axios.patch(`/mails/${id}`, Object.assign(Object.assign({}, payload), params));
94
166
  }
95
167
 
96
168
  delete(idMail) {
@@ -1 +1 @@
1
- {"version":3,"file":"Mail.js","mappings":"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","names":["Mail","Resource","create","payload","axios","$post","get","id","params","$get","getPaginatedInboxForUser","idUser","cancelToken","Object","getPaginatedToBeClassifiedForUser","withoutSociety","getPaginatedSentForUser","isSent","getPaginatedBySociety","idSociety","undefined","countInboxByUser","countSentByUser","countToBeClassifiedByUser","update","patch","delete","idMail","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/Mail.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n UpdateMailPayload,\n QueryMail,\n QueryPaginatedMail,\n IMail,\n} from '../../types';\n\nexport class Mail extends Resource {\n create(payload: IMail): Promise<IMail> {\n return this.axios.$post('/mails', payload);\n }\n\n public get(id: number, params: QueryMail): Promise<Mail> {\n return this.axios.$get(`/mails/${id}`, { params });\n }\n\n public getPaginatedInboxForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n },\n });\n }\n public getPaginatedToBeClassifiedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n withoutSociety: true,\n },\n });\n }\n public getPaginatedSentForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isSent: true,\n },\n });\n }\n public getPaginatedBySociety(idSociety: number, isSent?: boolean, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idSociety,\n ...(isSent !== undefined ? { isSent } : {}),\n },\n });\n }\n\n public countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n ...{\n idUser,\n isSent: false,\n },\n });\n }\n public countSentByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n ...{\n idUser,\n isSent: true,\n },\n });\n }\n public countToBeClassifiedByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n ...{\n idUser,\n withoutSociety: true,\n },\n });\n }\n\n update(id: number, payload: UpdateMailPayload): Promise<IMail> {\n return this.axios.patch(`/mails/${id}`, payload);\n }\n\n delete(idMail: number): Promise<void> {\n return this.axios.$delete(`/mails/${idMail}`);\n }\n}\n"]}
1
+ {"version":3,"file":"Mail.js","mappings":"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","names":["Mail","Resource","create","payload","axios","$post","get","id","params","$get","getPaginatedInboxForUser","idUser","cancelToken","Object","isProcessed","isSent","getPaginatedToBeClassifiedForUser","isWithoutSociety","getPaginatedProcessedForUser","getPaginatedSentForUser","idUserWhoAnswered","isDraft","getPaginatedImportantForUser","isImportant","getPaginatedDraftForUser","getPaginatedTrashedForUser","isDeleted","withDeleted","getPaginatedBySociety","idSociety","countProcessedByUser","sumOfSlidingDays","getAnsweringTimeByUser","countInboxByUser","countToBeClassifiedByUser","update","patch","delete","idMail","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/Mail.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n UpdateMailPayload,\n QueryMail,\n QueryPaginatedMail,\n IMail,\n CreateMailParams,\n} from '../../types';\n\nexport class Mail extends Resource {\n create(payload: CreateMailParams): Promise<IMail> {\n return this.axios.$post('/mails', payload);\n }\n\n public get(id: number, params: QueryMail): Promise<Mail> {\n return this.axios.$get(`/mails/${id}`, { params });\n }\n\n public getPaginatedInboxForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n },\n });\n }\n public getPaginatedToBeClassifiedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n isWithoutSociety: true,\n },\n });\n }\n public getPaginatedProcessedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: true,\n isSent: false,\n },\n });\n }\n public getPaginatedSentForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: false,\n },\n });\n }\n public getPaginatedImportantForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isImportant: true,\n },\n });\n }\n public getPaginatedDraftForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: true,\n },\n });\n }\n public getPaginatedTrashedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isDeleted: true,\n withDeleted: true,\n },\n });\n }\n public getPaginatedBySociety(idSociety: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idSociety,\n },\n });\n }\n\n public countProcessedByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-processed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n public getAnsweringTimeByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/answering-time-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n\n public countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n isSent: false,\n },\n });\n }\n public countToBeClassifiedByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n isWithoutSociety: true,\n },\n });\n }\n\n update(id: number, payload: UpdateMailPayload, params: QueryMail): Promise<IMail> {\n return this.axios.patch(`/mails/${id}`, { ...payload, ...params });\n }\n\n delete(idMail: number): Promise<void> {\n return this.axios.$delete(`/mails/${idMail}`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"MealExpense.js","mappings":";;;;;;;AACA;;AAGM,MAAOA,WAAP,SAA2BC,kBAA3B,CAAmC;AACvC;;;;;;AAMAC,kBAAgB,CAACC,UAAD,EAAmB;AACjC,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,0BAAvD,CAAP;AACD;AAED;;;;;;;;;AAOAG,QAAM,CAACH,UAAD,EAAmB;AACvB,WAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,gBAAvD,CAAP;AACD;AAED;;;;;;;;;;;;;AAWAI,mBAAiB,CAACJ,UAAD,EAAqBK,OAArB,EAA+C;AAC9D,WAAO,KAAKJ,KAAL,CAAWK,KAAX,CAAiB,6BAA6BN,UAAU,gBAAxD,EAA0EK,OAA1E,CAAP;AACD;;AAnCsC;;QAA5BR,W,GAAAA,W","names":["MealExpense","Resource","getAllCandidates","idExercice","axios","$get","getAll","processCandidates","payload","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/MealExpense.ts"],"sourcesContent":["import { CreateMealExpense, ReadBalanceSheetTransaction, ReadMealExpense } from '../..';\nimport { Resource } from '../Resource';\nimport { BalanceSheetModule } from './BalanceSheetModule';\n\nexport class MealExpense extends Resource {\n /**\n * Get all possible transactions to be processed in meal expenses\n * @param idExercice Exercice id\n * @returns Array<ReadBalanceSheetTransaction>\n * A list of possible candidate to meal expenses formatted into balance sheet transactions.\n */\n getAllCandidates(idExercice: number): Promise<Array<ReadBalanceSheetTransaction>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expense-candidates`);\n }\n\n /**\n * Get all processed meal expenses for this exercice.\n * @param idExercice\n * @returns ReadMealExpense\n * Result is parsed to provide how many meal expenses are processed for this exercice. The amount corresponding, and the deductible amount computed.\n * Also provide the transaction lists.\n */\n getAll(idExercice: number): Promise<ReadMealExpense> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expenses`);\n }\n\n /**\n * Transform given transactions into meal expenses.\n * @param idExercice Exercice id\n * @param payload { transactionIds: Array<number> }\n * @returns BalanceSheetModule\n * The updated balance sheet module.\n * Set hasMealExpenses to true if all transactions were processed.\n * Set hasMealExpenses to false if no transaction was provided.\n *\n * Fails if exercice is unknown, or if transactions are not in exercice or if transactions are not valid candidate for meal expenses.\n */\n processCandidates(idExercice: number, payload: CreateMealExpense): Promise<BalanceSheetModule> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/meal-expenses`, payload);\n }\n}"]}
1
+ {"version":3,"file":"MealExpense.js","mappings":";;;;;;;AACA;;AAGM,MAAOA,WAAP,SAA2BC,kBAA3B,CAAmC;EACvC;;;;;;EAMAC,gBAAgB,CAACC,UAAD,EAAmB;IACjC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,0BAAvD,CAAP;EACD;EAED;;;;;;;;;EAOAG,MAAM,CAACH,UAAD,EAAmB;IACvB,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,gBAAvD,CAAP;EACD;EAED;;;;;;;;;;;;;EAWAI,iBAAiB,CAACJ,UAAD,EAAqBK,OAArB,EAA+C;IAC9D,OAAO,KAAKJ,KAAL,CAAWK,KAAX,CAAiB,6BAA6BN,UAAU,gBAAxD,EAA0EK,OAA1E,CAAP;EACD;;AAnCsC;;QAA5BR,W,GAAAA,W","names":["MealExpense","Resource","getAllCandidates","idExercice","axios","$get","getAll","processCandidates","payload","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/MealExpense.ts"],"sourcesContent":["import { CreateMealExpense, ReadBalanceSheetTransaction, ReadMealExpense } from '../..';\nimport { Resource } from '../Resource';\nimport { BalanceSheetModule } from './BalanceSheetModule';\n\nexport class MealExpense extends Resource {\n /**\n * Get all possible transactions to be processed in meal expenses\n * @param idExercice Exercice id\n * @returns Array<ReadBalanceSheetTransaction>\n * A list of possible candidate to meal expenses formatted into balance sheet transactions.\n */\n getAllCandidates(idExercice: number): Promise<Array<ReadBalanceSheetTransaction>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expense-candidates`);\n }\n\n /**\n * Get all processed meal expenses for this exercice.\n * @param idExercice\n * @returns ReadMealExpense\n * Result is parsed to provide how many meal expenses are processed for this exercice. The amount corresponding, and the deductible amount computed.\n * Also provide the transaction lists.\n */\n getAll(idExercice: number): Promise<ReadMealExpense> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expenses`);\n }\n\n /**\n * Transform given transactions into meal expenses.\n * @param idExercice Exercice id\n * @param payload { transactionIds: Array<number> }\n * @returns BalanceSheetModule\n * The updated balance sheet module.\n * Set hasMealExpenses to true if all transactions were processed.\n * Set hasMealExpenses to false if no transaction was provided.\n *\n * Fails if exercice is unknown, or if transactions are not in exercice or if transactions are not valid candidate for meal expenses.\n */\n processCandidates(idExercice: number, payload: CreateMealExpense): Promise<BalanceSheetModule> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/meal-expenses`, payload);\n }\n}"]}