@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":"clean.js","mappings":";;;;;QAGgBA,a,GAAAA,a;AAHhB,MAAMC,cAAc,GAAG,CAAC,QAAD,EAAW,aAAX,EAA0B,SAA1B,EAAqC,cAArC,EAAqD,OAArD,EAA8D,MAA9D,EAAsE,QAAtE,EAAgF,MAAhF,EAAwF,OAAxF,EAAiG,MAAjG,CAAvB;AACO,MAAMC,sBAAsB,WAAtBA,sBAAsB,GAAG,CAA/B;;AAED,SAAUF,aAAV,CAAwBG,MAAxB,EAAsC;AAC1C,SAAOA,MAAM,CACVC,WADI,GAEJC,OAFI,CAEI,cAFJ,EAEoB,EAFpB,EAEwB;AAFxB,GAGJC,KAHI,CAGE,GAHF,EAIJC,MAJI,CAIIC,GAAD,IAASA,GAAG,CAACC,MAAJ,IAAcP,sBAAd,IAAwC,CAACD,cAAc,CAACS,QAAf,CAAwBF,GAAxB,CAJrD,EAImF;AAJnF,GAKJG,IALI,CAKC,GALD,EAMJN,OANI,CAMI,UANJ,EAMgB,EANhB,CAAP,CAD0C,CAOd;AAC7B","names":["cleanForRules","wordsToExclude","minWordsForDesignation","string","toLowerCase","replace","split","filter","str","length","includes","join"],"sourceRoot":"","sources":["../../../ts/utils/stringUtils/clean.ts"],"sourcesContent":["const wordsToExclude = ['cheque', 'prelevement', 'cheques', 'prelevements', 'prlvt', 'prlv', 'valeur', 'euro', 'solde', 'dont'];\nexport const minWordsForDesignation = 3;\n\nexport function cleanForRules(string: string) : string {\n return string\n .toLowerCase()\n .replace(/[^a-z0-9 ]/gi, '') // Conservation des espaces & caractères alphanumérique\n .split(' ')\n .filter((str) => str.length >= minWordsForDesignation && !wordsToExclude.includes(str)) // Suppression des mots à exclure et désignation inférieur à 3 char\n .join(' ')\n .replace(/[^a-z]/gi, ''); // Conservation des caractères alphanumérique\n}"]}
1
+ {"version":3,"file":"clean.js","mappings":";;;;;QAGgBA,a,GAAAA,a;AAHhB,MAAMC,cAAc,GAAG,CAAC,QAAD,EAAW,aAAX,EAA0B,SAA1B,EAAqC,cAArC,EAAqD,OAArD,EAA8D,MAA9D,EAAsE,QAAtE,EAAgF,MAAhF,EAAwF,OAAxF,EAAiG,MAAjG,CAAvB;AACO,MAAMC,sBAAsB,WAAtBA,sBAAsB,GAAG,CAA/B;;AAED,SAAUF,aAAV,CAAwBG,MAAxB,EAAsC;EAC1C,OAAOA,MAAM,CACVC,WADI,GAEJC,OAFI,CAEI,cAFJ,EAEoB,EAFpB,EAEwB;EAFxB,CAGJC,KAHI,CAGE,GAHF,EAIJC,MAJI,CAIIC,GAAD,IAASA,GAAG,CAACC,MAAJ,IAAcP,sBAAd,IAAwC,CAACD,cAAc,CAACS,QAAf,CAAwBF,GAAxB,CAJrD,EAImF;EAJnF,CAKJG,IALI,CAKC,GALD,EAMJN,OANI,CAMI,UANJ,EAMgB,EANhB,CAAP,CAD0C,CAOd;AAC7B","names":["cleanForRules","wordsToExclude","minWordsForDesignation","string","toLowerCase","replace","split","filter","str","length","includes","join"],"sourceRoot":"","sources":["../../../ts/utils/stringUtils/clean.ts"],"sourcesContent":["const wordsToExclude = ['cheque', 'prelevement', 'cheques', 'prelevements', 'prlvt', 'prlv', 'valeur', 'euro', 'solde', 'dont'];\nexport const minWordsForDesignation = 3;\n\nexport function cleanForRules(string: string) : string {\n return string\n .toLowerCase()\n .replace(/[^a-z0-9 ]/gi, '') // Conservation des espaces & caractères alphanumérique\n .split(' ')\n .filter((str) => str.length >= minWordsForDesignation && !wordsToExclude.includes(str)) // Suppression des mots à exclure et désignation inférieur à 3 char\n .join(' ')\n .replace(/[^a-z]/gi, ''); // Conservation des caractères alphanumérique\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":";;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","names":[],"sourceRoot":"","sources":["../../../ts/utils/stringUtils/index.ts"],"sourcesContent":["export * from './clean';\n"]}
1
+ {"version":3,"file":"index.js","mappings":";;;;;;;;AAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA","names":[],"sourceRoot":"","sources":["../../../ts/utils/stringUtils/index.ts"],"sourcesContent":["export * from './clean';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"boolean.transform.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,cAAc,GAAIC,KAAD,IAAe;AACpC,MAAIA,KAAK,KAAK,IAAV,IAAkBA,KAAK,KAAKC,SAAhC,EAA2C;AACzC,WAAOA,SAAP;AACD;;AACD,MAAI,OAAOD,KAAP,KAAiB,SAArB,EAAgC;AAC9B,WAAOA,KAAP;AACD;;AACD,MAAI,CAAC,MAAD,EAAS,IAAT,EAAe,KAAf,EAAsB,GAAtB,EAA2BE,QAA3B,CAAoCF,KAAK,CAACG,WAAN,EAApC,CAAJ,EAA8D;AAC5D,WAAO,IAAP;AACD;;AACD,MAAI,CAAC,OAAD,EAAU,KAAV,EAAiB,IAAjB,EAAuB,GAAvB,EAA4BD,QAA5B,CAAqCF,KAAK,CAACG,WAAN,EAArC,CAAJ,EAA+D;AAC7D,WAAO,KAAP;AACD;;AACD,SAAOF,SAAP;AACD,CAdD;;AAgBA,MAAMG,SAAS,GAAG,MAAK;AACrB,QAAMC,OAAO,GAAG,iCACd,CAAC;AAAEL;AAAF,GAAD,KAAeA,KADD,EAEd;AACEM,eAAW,EAAE;AADf,GAFc,CAAhB;;AAMA,QAAMC,OAAO,GAAG,CAACC,MAAD,EAAcC,GAAd,KAA8B,iCAC5C,CAAC;AAAEC;AAAF,GAAD,KAAaX,cAAc,CAACW,GAAG,CAACD,GAAD,CAAJ,CADiB,EAE5C;AACEE,eAAW,EAAE;AADf,GAF4C,EAK5CH,MAL4C,EAKpCC,GALoC,CAA9C;;AAMA,SAAO,CAACD,MAAD,EAAcC,GAAd,KAA6B;AAClCJ,WAAO,CAACG,MAAD,EAASC,GAAT,CAAP;AACAF,WAAO,CAACC,MAAD,EAASC,GAAT,CAAP;AACD,GAHD;AAID,CAjBD;;QAmBSL,S,GAAAA,S","names":["valueToBoolean","value","undefined","includes","toLowerCase","ToBoolean","toPlain","toPlainOnly","toClass","target","key","obj","toClassOnly"],"sourceRoot":"","sources":["../../../ts/utils/transforms/boolean.transform.ts"],"sourcesContent":["import { Transform } from 'class-transformer';\n\nconst valueToBoolean = (value: any) => {\n if (value === null || value === undefined) {\n return undefined;\n }\n if (typeof value === 'boolean') {\n return value;\n }\n if (['true', 'on', 'yes', '1'].includes(value.toLowerCase())) {\n return true;\n }\n if (['false', 'off', 'no', '0'].includes(value.toLowerCase())) {\n return false;\n }\n return undefined;\n};\n\nconst ToBoolean = () => {\n const toPlain = Transform(\n ({ value }) => value,\n {\n toPlainOnly: true,\n },\n );\n const toClass = (target: any, key: string) => Transform(\n ({ obj }) => valueToBoolean(obj[key]),\n {\n toClassOnly: true,\n },\n )(target, key);\n return (target: any, key: string) => {\n toPlain(target, key);\n toClass(target, key);\n };\n};\n\nexport { ToBoolean };"]}
1
+ {"version":3,"file":"boolean.transform.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,cAAc,GAAIC,KAAD,IAAe;EACpC,IAAIA,KAAK,KAAK,IAAV,IAAkBA,KAAK,KAAKC,SAAhC,EAA2C;IACzC,OAAOA,SAAP;EACD;;EACD,IAAI,OAAOD,KAAP,KAAiB,SAArB,EAAgC;IAC9B,OAAOA,KAAP;EACD;;EACD,IAAI,CAAC,MAAD,EAAS,IAAT,EAAe,KAAf,EAAsB,GAAtB,EAA2BE,QAA3B,CAAoCF,KAAK,CAACG,WAAN,EAApC,CAAJ,EAA8D;IAC5D,OAAO,IAAP;EACD;;EACD,IAAI,CAAC,OAAD,EAAU,KAAV,EAAiB,IAAjB,EAAuB,GAAvB,EAA4BD,QAA5B,CAAqCF,KAAK,CAACG,WAAN,EAArC,CAAJ,EAA+D;IAC7D,OAAO,KAAP;EACD;;EACD,OAAOF,SAAP;AACD,CAdD;;AAgBA,MAAMG,SAAS,GAAG,MAAK;EACrB,MAAMC,OAAO,GAAG,iCACd,CAAC;IAAEL;EAAF,CAAD,KAAeA,KADD,EAEd;IACEM,WAAW,EAAE;EADf,CAFc,CAAhB;;EAMA,MAAMC,OAAO,GAAG,CAACC,MAAD,EAAcC,GAAd,KAA8B,iCAC5C,CAAC;IAAEC;EAAF,CAAD,KAAaX,cAAc,CAACW,GAAG,CAACD,GAAD,CAAJ,CADiB,EAE5C;IACEE,WAAW,EAAE;EADf,CAF4C,EAK5CH,MAL4C,EAKpCC,GALoC,CAA9C;;EAMA,OAAO,CAACD,MAAD,EAAcC,GAAd,KAA6B;IAClCJ,OAAO,CAACG,MAAD,EAASC,GAAT,CAAP;IACAF,OAAO,CAACC,MAAD,EAASC,GAAT,CAAP;EACD,CAHD;AAID,CAjBD;;QAmBSL,S,GAAAA,S","names":["valueToBoolean","value","undefined","includes","toLowerCase","ToBoolean","toPlain","toPlainOnly","toClass","target","key","obj","toClassOnly"],"sourceRoot":"","sources":["../../../ts/utils/transforms/boolean.transform.ts"],"sourcesContent":["import { Transform } from 'class-transformer';\n\nconst valueToBoolean = (value: any) => {\n if (value === null || value === undefined) {\n return undefined;\n }\n if (typeof value === 'boolean') {\n return value;\n }\n if (['true', 'on', 'yes', '1'].includes(value.toLowerCase())) {\n return true;\n }\n if (['false', 'off', 'no', '0'].includes(value.toLowerCase())) {\n return false;\n }\n return undefined;\n};\n\nconst ToBoolean = () => {\n const toPlain = Transform(\n ({ value }) => value,\n {\n toPlainOnly: true,\n },\n );\n const toClass = (target: any, key: string) => Transform(\n ({ obj }) => valueToBoolean(obj[key]),\n {\n toClassOnly: true,\n },\n )(target, key);\n return (target: any, key: string) => {\n toPlain(target, key);\n toClass(target, key);\n };\n};\n\nexport { ToBoolean };"]}
@@ -1 +1 @@
1
- {"version":3,"file":"formattedDateString.validator.js","mappings":";;;;;QAIgBA,qB,GAAAA,qB;;AAJhB;;AAIM,SAAUA,qBAAV,CAAgCC,iBAAhC,EAAqE;AACzE,SAAO,SAASC,SAAT,CAAmBC,MAAnB,EAAgCC,YAAhC,EAAoD;AACzD,2CAAkB;AAChBC,UAAI,EAAE,uBADU;AAEhBC,YAAM,EAAEH,MAAM,CAACI,WAFC;AAGhBH,kBAHgB;AAIhBI,aAAO;AACLC,eAAO,EAAE,GAAGL,YAAY;AADnB,SAEFH,iBAFE,CAJS;AAQhBC,eAAS,EAAE;AACTQ,gBAAQ,CAACC,KAAD,EAAaC,IAAb,EAAsC;AAC5C,gBAAMC,SAAS,GAAG,mMAAlB;AACA,iBAAO,OAAOF,KAAP,KAAiB,QAAjB,IACJE,SAAS,CAACC,IAAV,CAAeH,KAAf,CADH;AAED;;AALQ;AARK,KAAlB;AAgBD,GAjBD;AAkBD","names":["IsFormattedDateString","validationOptions","validator","object","propertyName","name","target","constructor","options","message","validate","value","args","dateRegex","test"],"sourceRoot":"","sources":["../../../ts/utils/validators/formattedDateString.validator.ts"],"sourcesContent":["import {\n registerDecorator, ValidationArguments, ValidationOptions,\n} from 'class-validator';\n\nexport function IsFormattedDateString(validationOptions?: ValidationOptions) {\n return function validator(object: any, propertyName: string) {\n registerDecorator({\n name: 'IsFormattedDateString',\n target: object.constructor,\n propertyName,\n options: {\n message: `${propertyName} should be a string date formatted in 'YYYY-MM-DD'`,\n ...validationOptions,\n },\n validator: {\n validate(value: any, args: ValidationArguments) {\n const dateRegex = /^((\\d{4}-((0[13578]-|1[02]-)(0[1-9]|[12]\\d|3[01])|(0[13456789]-|1[012]-)(0[1-9]|[12]\\d|30)|02-(0[1-9]|1\\d|2[0-8])))|((([02468][048]|[13579][26])00|\\d{2}([13579][26]|0[48]|[2468][048])))-02-29)$/;\n return typeof value === 'string'\n && dateRegex.test(value);\n },\n },\n });\n };\n}"]}
1
+ {"version":3,"file":"formattedDateString.validator.js","mappings":";;;;;QAIgBA,qB,GAAAA,qB;;AAJhB;;AAIM,SAAUA,qBAAV,CAAgCC,iBAAhC,EAAqE;EACzE,OAAO,SAASC,SAAT,CAAmBC,MAAnB,EAAgCC,YAAhC,EAAoD;IACzD,uCAAkB;MAChBC,IAAI,EAAE,uBADU;MAEhBC,MAAM,EAAEH,MAAM,CAACI,WAFC;MAGhBH,YAHgB;MAIhBI,OAAO;QACLC,OAAO,EAAE,GAAGL,YAAY;MADnB,GAEFH,iBAFE,CAJS;MAQhBC,SAAS,EAAE;QACTQ,QAAQ,CAACC,KAAD,EAAaC,IAAb,EAAsC;UAC5C,MAAMC,SAAS,GAAG,mMAAlB;UACA,OAAO,OAAOF,KAAP,KAAiB,QAAjB,IACJE,SAAS,CAACC,IAAV,CAAeH,KAAf,CADH;QAED;;MALQ;IARK,CAAlB;EAgBD,CAjBD;AAkBD","names":["IsFormattedDateString","validationOptions","validator","object","propertyName","name","target","constructor","options","message","validate","value","args","dateRegex","test"],"sourceRoot":"","sources":["../../../ts/utils/validators/formattedDateString.validator.ts"],"sourcesContent":["import {\n registerDecorator, ValidationArguments, ValidationOptions,\n} from 'class-validator';\n\nexport function IsFormattedDateString(validationOptions?: ValidationOptions) {\n return function validator(object: any, propertyName: string) {\n registerDecorator({\n name: 'IsFormattedDateString',\n target: object.constructor,\n propertyName,\n options: {\n message: `${propertyName} should be a string date formatted in 'YYYY-MM-DD'`,\n ...validationOptions,\n },\n validator: {\n validate(value: any, args: ValidationArguments) {\n const dateRegex = /^((\\d{4}-((0[13578]-|1[02]-)(0[1-9]|[12]\\d|3[01])|(0[13456789]-|1[012]-)(0[1-9]|[12]\\d|30)|02-(0[1-9]|1\\d|2[0-8])))|((([02468][048]|[13579][26])00|\\d{2}([13579][26]|0[48]|[2468][048])))-02-29)$/;\n return typeof value === 'string'\n && dateRegex.test(value);\n },\n },\n });\n };\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"objectId.validator.js","mappings":";;;;;QAWgBA,U,GAAAA,U;;AAXhB;;AAWM,SAAUA,UAAV,CAAqBC,QAArB,EAA2CC,iBAA3C,EAAgF;AACpF,SAAO,SAASC,SAAT,CAAmBC,MAAnB,EAAgCC,YAAhC,EAAoD;AACzD,2CAAkB;AAChBC,UAAI,EAAE,YADU;AAEhBC,YAAM,EAAEH,MAAM,CAACI,WAFC;AAGhBH,kBAHgB;AAIhBI,iBAAW,EAAE,CAACR,QAAD,CAJG;AAKhBS,aAAO;AACLC,eAAO,EAAE,GAAGN,YAAY;AADnB,SAEFH,iBAFE,CALS;AAShBC,eAAS,EAAE;AACTS,gBAAQ,CAACC,KAAD,EAAaC,IAAb,EAAsC;AAC5C,iBAAO,OAAOD,KAAP,KAAiB,QAAjB,IACJE,MAAM,CAACC,MAAP,CAAcf,QAAd,EAAwBgB,GAAxB,CAA6BC,CAAD,IAAOA,CAAC,CAACC,EAArC,EAAyCC,QAAzC,CAAkDP,KAAlD,CADH;AAED;;AAJQ;AATK,KAAlB;AAgBD,GAjBD;AAkBD","names":["IsObjectId","property","validationOptions","validator","object","propertyName","name","target","constructor","constraints","options","message","validate","value","args","Object","values","map","p","id","includes"],"sourceRoot":"","sources":["../../../ts/utils/validators/objectId.validator.ts"],"sourcesContent":["import { registerDecorator, ValidationArguments, ValidationOptions } from 'class-validator';\n\ninterface ObjectWithId {\n id: number;\n [key: string]: unknown;\n}\n\ninterface EnumObject {\n [key: string]: ObjectWithId\n}\n\nexport function IsObjectId(property: EnumObject, validationOptions?: ValidationOptions) {\n return function validator(object: any, propertyName: string) {\n registerDecorator({\n name: 'IsObjectId',\n target: object.constructor,\n propertyName,\n constraints: [property],\n options: {\n message: `${propertyName} should be a valid id from enum`,\n ...validationOptions,\n },\n validator: {\n validate(value: any, args: ValidationArguments) {\n return typeof value === 'number'\n && Object.values(property).map((p) => p.id).includes(value);\n },\n },\n });\n };\n}"]}
1
+ {"version":3,"file":"objectId.validator.js","mappings":";;;;;QAWgBA,U,GAAAA,U;;AAXhB;;AAWM,SAAUA,UAAV,CAAqBC,QAArB,EAA2CC,iBAA3C,EAAgF;EACpF,OAAO,SAASC,SAAT,CAAmBC,MAAnB,EAAgCC,YAAhC,EAAoD;IACzD,uCAAkB;MAChBC,IAAI,EAAE,YADU;MAEhBC,MAAM,EAAEH,MAAM,CAACI,WAFC;MAGhBH,YAHgB;MAIhBI,WAAW,EAAE,CAACR,QAAD,CAJG;MAKhBS,OAAO;QACLC,OAAO,EAAE,GAAGN,YAAY;MADnB,GAEFH,iBAFE,CALS;MAShBC,SAAS,EAAE;QACTS,QAAQ,CAACC,KAAD,EAAaC,IAAb,EAAsC;UAC5C,OAAO,OAAOD,KAAP,KAAiB,QAAjB,IACJE,MAAM,CAACC,MAAP,CAAcf,QAAd,EAAwBgB,GAAxB,CAA6BC,CAAD,IAAOA,CAAC,CAACC,EAArC,EAAyCC,QAAzC,CAAkDP,KAAlD,CADH;QAED;;MAJQ;IATK,CAAlB;EAgBD,CAjBD;AAkBD","names":["IsObjectId","property","validationOptions","validator","object","propertyName","name","target","constructor","constraints","options","message","validate","value","args","Object","values","map","p","id","includes"],"sourceRoot":"","sources":["../../../ts/utils/validators/objectId.validator.ts"],"sourcesContent":["import { registerDecorator, ValidationArguments, ValidationOptions } from 'class-validator';\n\ninterface ObjectWithId {\n id: number;\n [key: string]: unknown;\n}\n\ninterface EnumObject {\n [key: string]: ObjectWithId\n}\n\nexport function IsObjectId(property: EnumObject, validationOptions?: ValidationOptions) {\n return function validator(object: any, propertyName: string) {\n registerDecorator({\n name: 'IsObjectId',\n target: object.constructor,\n propertyName,\n constraints: [property],\n options: {\n message: `${propertyName} should be a valid id from enum`,\n ...validationOptions,\n },\n validator: {\n validate(value: any, args: ValidationArguments) {\n return typeof value === 'number'\n && Object.values(property).map((p) => p.id).includes(value);\n },\n },\n });\n };\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"webmail.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,qBAAqB,GAAIC,SAAD,IAAgC;AAC5D,MAAIC,MAAM,GAAGC,WAAKC,gBAAlB;;AACA,MAAIH,SAAS,CAACI,QAAV,CAAmBF,WAAKG,YAAxB,KAAyCL,SAAS,CAACI,QAAV,CAAmBF,WAAKI,oBAAxB,CAA7C,EAA4F;AAC1FL,UAAM,GAAGC,WAAKG,YAAd;AACD,GAFD,MAEO,IAAIL,SAAS,CAACI,QAAV,CAAmBF,WAAKK,WAAxB,KAAwCP,SAAS,CAACI,QAAV,CAAmBF,WAAKM,mBAAxB,CAA5C,EAA0F;AAC/FP,UAAM,GAAGC,WAAKK,WAAd;AACD,GAFM,MAEA,IAAIP,SAAS,CAACI,QAAV,CAAmBF,WAAKO,OAAxB,CAAJ,EAAsC;AAC3CR,UAAM,GAAGC,WAAKO,OAAd;AACD;;AACD,SAAOR,MAAP;AACD,CAVD;;QAaEF,qB,GAAAA,qB","names":["getIdRoleUsedForEmail","listRoles","idRole","Role","CUSTOMER_SUCCESS","includes","FRONT_OFFICE","FRONT_OFFICE_EXPRESS","BACK_OFFICE","BACK_OFFICE_EXPRESS","MANAGER"],"sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"sourcesContent":["import { Role } from '../types/Enum/Role';\n\nconst getIdRoleUsedForEmail = (listRoles: number[]): number => {\n let idRole = Role.CUSTOMER_SUCCESS;\n if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {\n idRole = Role.FRONT_OFFICE;\n } else if (listRoles.includes(Role.BACK_OFFICE) || listRoles.includes(Role.BACK_OFFICE_EXPRESS)) {\n idRole = Role.BACK_OFFICE;\n } else if (listRoles.includes(Role.MANAGER)) {\n idRole = Role.MANAGER;\n }\n return idRole;\n};\n\nexport {\n getIdRoleUsedForEmail,\n};"]}
1
+ {"version":3,"file":"webmail.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,qBAAqB,GAAIC,SAAD,IAAgC;EAC5D,IAAIC,MAAM,GAAGC,WAAKC,gBAAlB;;EACA,IAAIH,SAAS,CAACI,QAAV,CAAmBF,WAAKG,YAAxB,KAAyCL,SAAS,CAACI,QAAV,CAAmBF,WAAKI,oBAAxB,CAA7C,EAA4F;IAC1FL,MAAM,GAAGC,WAAKG,YAAd;EACD,CAFD,MAEO,IAAIL,SAAS,CAACI,QAAV,CAAmBF,WAAKK,WAAxB,KAAwCP,SAAS,CAACI,QAAV,CAAmBF,WAAKM,mBAAxB,CAA5C,EAA0F;IAC/FP,MAAM,GAAGC,WAAKK,WAAd;EACD,CAFM,MAEA,IAAIP,SAAS,CAACI,QAAV,CAAmBF,WAAKO,OAAxB,CAAJ,EAAsC;IAC3CR,MAAM,GAAGC,WAAKO,OAAd;EACD;;EACD,OAAOR,MAAP;AACD,CAVD;;QAaEF,qB,GAAAA,qB","names":["getIdRoleUsedForEmail","listRoles","idRole","Role","CUSTOMER_SUCCESS","includes","FRONT_OFFICE","FRONT_OFFICE_EXPRESS","BACK_OFFICE","BACK_OFFICE_EXPRESS","MANAGER"],"sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"sourcesContent":["import { Role } from '../types/Enum/Role';\n\nconst getIdRoleUsedForEmail = (listRoles: number[]): number => {\n let idRole = Role.CUSTOMER_SUCCESS;\n if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {\n idRole = Role.FRONT_OFFICE;\n } else if (listRoles.includes(Role.BACK_OFFICE) || listRoles.includes(Role.BACK_OFFICE_EXPRESS)) {\n idRole = Role.BACK_OFFICE;\n } else if (listRoles.includes(Role.MANAGER)) {\n idRole = Role.MANAGER;\n }\n return idRole;\n};\n\nexport {\n getIdRoleUsedForEmail,\n};"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "0.4.183",
3
+ "version": "0.4.185",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "js/index.js",
@@ -1,8 +1,12 @@
1
1
  import { Resource } from '../Resource';
2
- import { ICountry } from '../../types';
2
+ import { ICountry, INationality } from '../../types';
3
3
 
4
4
  export class Country extends Resource {
5
5
  getAll(): Promise<ICountry[]> {
6
6
  return this.axios.$get('/countries');
7
7
  }
8
+
9
+ public getAllNationalities(): Promise<INationality[]> {
10
+ return this.axios.$get('/nationalities');
11
+ }
8
12
  }
@@ -1,4 +1,6 @@
1
- import { BasePaginate, IEmployee, QueryEmployeeSearch } from '../../types';
1
+ import {
2
+ BasePaginate, IEmployee, IWorkingSchedule, QueryEmployeeSearch,
3
+ } from '../../types';
2
4
  import { Resource } from '../Resource';
3
5
 
4
6
  export class Employee extends Resource {
@@ -25,4 +27,12 @@ export class Employee extends Resource {
25
27
  public getPaginate(idSociety: number, params?: QueryEmployeeSearch): Promise<BasePaginate<Employee>> {
26
28
  return this.axios.$get(`/societies/${idSociety}/employees`, { params: { ...params, isPaginate: true } });
27
29
  }
30
+
31
+ public createOrUpdateWorkingSchedule(idEmployee: number, payload?: Omit<IWorkingSchedule, 'idEmployee'>): Promise<IWorkingSchedule> {
32
+ return this.axios.$post(`employees/${idEmployee}/working-schedules`, payload);
33
+ }
34
+
35
+ public deleteWorkingSchedule(idEmployee: number, idWorkingSchedule: number): Promise<true> {
36
+ return this.axios.$delete(`employees/${idEmployee}/working-schedules/${idWorkingSchedule}`);
37
+ }
28
38
  }
@@ -5,10 +5,11 @@ import {
5
5
  QueryMail,
6
6
  QueryPaginatedMail,
7
7
  IMail,
8
+ CreateMailParams,
8
9
  } from '../../types';
9
10
 
10
11
  export class Mail extends Resource {
11
- create(payload: IMail): Promise<IMail> {
12
+ create(payload: CreateMailParams): Promise<IMail> {
12
13
  return this.axios.$post('/mails', payload);
13
14
  }
14
15
 
@@ -22,6 +23,8 @@ export class Mail extends Resource {
22
23
  params: {
23
24
  ...params,
24
25
  idUser,
26
+ isProcessed: false,
27
+ isSent: false,
25
28
  },
26
29
  });
27
30
  }
@@ -31,60 +34,119 @@ export class Mail extends Resource {
31
34
  params: {
32
35
  ...params,
33
36
  idUser,
34
- withoutSociety: true,
37
+ isProcessed: false,
38
+ isSent: false,
39
+ isWithoutSociety: true,
40
+ },
41
+ });
42
+ }
43
+ public getPaginatedProcessedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
44
+ return this.axios.$get('/mails/paginated', {
45
+ ...(cancelToken ? { cancelToken } : {}),
46
+ params: {
47
+ ...params,
48
+ idUser,
49
+ isProcessed: true,
50
+ isSent: false,
51
+ },
52
+ });
53
+ }
54
+ public getPaginatedSentForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
55
+ return this.axios.$get('/mails/paginated', {
56
+ ...(cancelToken ? { cancelToken } : {}),
57
+ params: {
58
+ ...params,
59
+ idUserWhoAnswered,
60
+ isProcessed: false,
61
+ isSent: true,
62
+ isDraft: false,
35
63
  },
36
64
  });
37
65
  }
38
- public getPaginatedSentForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
66
+ public getPaginatedImportantForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
39
67
  return this.axios.$get('/mails/paginated', {
40
68
  ...(cancelToken ? { cancelToken } : {}),
41
69
  params: {
42
70
  ...params,
43
71
  idUser,
72
+ isProcessed: false,
73
+ isImportant: true,
74
+ },
75
+ });
76
+ }
77
+ public getPaginatedDraftForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
78
+ return this.axios.$get('/mails/paginated', {
79
+ ...(cancelToken ? { cancelToken } : {}),
80
+ params: {
81
+ ...params,
82
+ idUserWhoAnswered,
83
+ isProcessed: false,
44
84
  isSent: true,
85
+ isDraft: true,
45
86
  },
46
87
  });
47
88
  }
48
- public getPaginatedBySociety(idSociety: number, isSent?: boolean, cancelToken?: CancelToken): Promise<Mail[]> {
89
+ public getPaginatedTrashedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
49
90
  return this.axios.$get('/mails/paginated', {
50
91
  ...(cancelToken ? { cancelToken } : {}),
51
92
  params: {
93
+ ...params,
94
+ idUser,
95
+ isDeleted: true,
96
+ withDeleted: true,
97
+ },
98
+ });
99
+ }
100
+ public getPaginatedBySociety(idSociety: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
101
+ return this.axios.$get('/mails/paginated', {
102
+ ...(cancelToken ? { cancelToken } : {}),
103
+ params: {
104
+ ...params,
52
105
  idSociety,
53
- ...(isSent !== undefined ? { isSent } : {}),
54
106
  },
55
107
  });
56
108
  }
57
109
 
58
- public countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {
59
- return this.axios.$get('/mails/count-unprocessed-by-user', {
110
+ public countProcessedByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {
111
+ return this.axios.$get('/mails/count-processed-by-user', {
60
112
  ...(cancelToken ? { cancelToken } : {}),
61
- ...{
113
+ params: {
62
114
  idUser,
63
- isSent: false,
115
+ ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),
64
116
  },
65
117
  });
66
118
  }
67
- public countSentByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {
119
+ public getAnsweringTimeByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {
120
+ return this.axios.$get('/mails/answering-time-by-user', {
121
+ ...(cancelToken ? { cancelToken } : {}),
122
+ params: {
123
+ idUser,
124
+ ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),
125
+ },
126
+ });
127
+ }
128
+
129
+ public countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {
68
130
  return this.axios.$get('/mails/count-unprocessed-by-user', {
69
131
  ...(cancelToken ? { cancelToken } : {}),
70
- ...{
132
+ params: {
71
133
  idUser,
72
- isSent: true,
134
+ isSent: false,
73
135
  },
74
136
  });
75
137
  }
76
138
  public countToBeClassifiedByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {
77
139
  return this.axios.$get('/mails/count-unprocessed-by-user', {
78
140
  ...(cancelToken ? { cancelToken } : {}),
79
- ...{
141
+ params: {
80
142
  idUser,
81
- withoutSociety: true,
143
+ isWithoutSociety: true,
82
144
  },
83
145
  });
84
146
  }
85
147
 
86
- update(id: number, payload: UpdateMailPayload): Promise<IMail> {
87
- return this.axios.patch(`/mails/${id}`, payload);
148
+ update(id: number, payload: UpdateMailPayload, params: QueryMail): Promise<IMail> {
149
+ return this.axios.patch(`/mails/${id}`, { ...payload, ...params });
88
150
  }
89
151
 
90
152
  delete(idMail: number): Promise<void> {
@@ -0,0 +1,30 @@
1
+ import {
2
+ BasePaginate, ISheetMonthSchedule, QuerySheetMonthSchedule,
3
+ } from '../../types';
4
+ import { Resource } from '../Resource';
5
+
6
+ export class SheetMonthSchedule extends Resource {
7
+ public create(idEmployee: number, payload: Omit<ISheetMonthSchedule, 'idEmployee' | 'employee'>): Promise<ISheetMonthSchedule> {
8
+ return this.axios.$post(`/sheet-month-schedules/${idEmployee}`, payload);
9
+ }
10
+
11
+ public getAll(idEmployee: number): Promise<ISheetMonthSchedule[]> {
12
+ return this.axios.$get(`/employees/${idEmployee}/sheet-month-schedules`);
13
+ }
14
+
15
+ public get(id: number): Promise<ISheetMonthSchedule> {
16
+ return this.axios.$get(`/sheet-month-schedules/${id}`);
17
+ }
18
+
19
+ public update(id: number, payload: Partial<ISheetMonthSchedule>): Promise<ISheetMonthSchedule> {
20
+ return this.axios.$put(`/sheet-month-schedules/${id}`, payload);
21
+ }
22
+
23
+ public delete(id: number): Promise<true> {
24
+ return this.axios.$delete(`/sheet-month-schedules/${id}`);
25
+ }
26
+
27
+ public getPaginate(params: QuerySheetMonthSchedule): Promise<BasePaginate<SheetMonthSchedule>> {
28
+ return this.axios.$get('/employees/sheet-month-schedules', { params });
29
+ }
30
+ }
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation,
3
+ IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety,
4
4
  } from '../../types';
5
5
 
6
6
  export class User extends Resource {
@@ -22,4 +22,10 @@ export class User extends Resource {
22
22
  verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {
23
23
  return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });
24
24
  }
25
+ allFromSociety(params: QueryGetAllFromSociety): Promise<IUser> {
26
+ return this.axios.$get('user/all-from-society', { params });
27
+ }
28
+ selectableTeammates(): Promise<IUser> {
29
+ return this.axios.$get('user/selectable-teammates');
30
+ }
25
31
  }
@@ -70,6 +70,7 @@ import { Log } from './resources/Log';
70
70
  import { Exercice } from './resources/Exercice';
71
71
  import { Mail } from './resources/Mail';
72
72
  import { Employee } from './resources/Employee';
73
+ import { SheetMonthSchedule } from './resources/SheetMonthSchedule';
73
74
 
74
75
  export const resources = {
75
76
  simulation: Simulation,
@@ -144,4 +145,5 @@ export const resources = {
144
145
  exercice: Exercice,
145
146
  mail: Mail,
146
147
  employee: Employee,
148
+ sheetMonthSchedule: SheetMonthSchedule,
147
149
  };
@@ -57,6 +57,21 @@ export const BrandClementine = [
57
57
  Name: 'Expertise Choix B',
58
58
  Id: 'FR91ZZZ617135',
59
59
  },
60
+ internalInvoicing: {
61
+ statut: 'SAS',
62
+ name: 'EXPERTISE CHOIX B',
63
+ address: '9, avenue du Rhin',
64
+ zipCode: '54520',
65
+ city: 'LAXOU',
66
+ country: 'FRANCE',
67
+ montantCapital: '500 000',
68
+ siret: '752566687',
69
+ ape: '6920Z',
70
+ rcs: '752 566 687',
71
+ phone: '03 83 93 14 14',
72
+ vatIntracom: 'FR47752566687',
73
+ email: 'facturation@compta-clementine.fr',
74
+ },
60
75
  },
61
76
  {
62
77
  idTypeBrand: 2,
@@ -115,6 +130,21 @@ export const BrandClementine = [
115
130
  Name: 'Expertise Choix B',
116
131
  Id: 'FR91ZZZ617135',
117
132
  },
133
+ internalInvoicing: {
134
+ statut: 'SAS',
135
+ name: 'EXPERTISE CHOIX B',
136
+ address: '9, avenue du Rhin',
137
+ zipCode: '54520',
138
+ city: 'LAXOU',
139
+ country: 'FRANCE',
140
+ montantCapital: '500 000',
141
+ siret: '752566687',
142
+ ape: '6920Z',
143
+ rcs: '752 566 687',
144
+ phone: '03 83 93 14 14',
145
+ vatIntracom: 'FR47752566687',
146
+ email: 'facturation@compta-clementine.fr',
147
+ },
118
148
  },
119
149
  {
120
150
  idTypeBrand: 3,
@@ -219,5 +249,20 @@ export const BrandClementine = [
219
249
  Name: 'Expertise Choix B',
220
250
  Id: 'FR91ZZZ617135',
221
251
  },
252
+ internalInvoicing: {
253
+ statut: 'SAS',
254
+ name: 'EXPERTISE CHOIX B',
255
+ address: '9, avenue du Rhin',
256
+ zipCode: '54520',
257
+ city: 'LAXOU',
258
+ country: 'FRANCE',
259
+ montantCapital: '500 000',
260
+ siret: '752566687',
261
+ ape: '6920Z',
262
+ rcs: '752 566 687',
263
+ phone: '03 83 93 14 14',
264
+ vatIntracom: 'FR47752566687',
265
+ email: 'facturation@compta-clementine.fr',
266
+ },
222
267
  },
223
268
  ];
@@ -194,7 +194,7 @@ export const BrandComptalib = [
194
194
  rcs: '891 501 181',
195
195
  phone: '03 83 93 14 14',
196
196
  vatIntracom: 'FR58891501181',
197
- email: 'contact@comptalib.com',
197
+ email: 'bonjour@comptalib.com',
198
198
  },
199
199
  },
200
200
  {
@@ -209,22 +209,22 @@ export const BrandComptalib = [
209
209
  juridique: '03 83 25 82 20',
210
210
  },
211
211
  listMails: {
212
- administratif: 'contact@aec-54.com',
213
- app: 'contact@aec-54.com',
214
- bonjour: 'contact@aec-54.com',
215
- contact: 'contact@aec-54.com',
216
- facturation: 'contact@aec-54.com',
217
- feedback: 'contact@aec-54.com',
218
- juridique: 'contact@aec-54.com',
219
- informatique: 'contact@aec-54.com',
220
- msd: 'contact@aec-54.com',
221
- noreply: 'contact@aec-54.com',
222
- qualite: 'contact@aec-54.com',
223
- paiement: 'contact@aec-54.com',
224
- social: 'contact@aec-54.com',
225
- support: 'contact@aec-54.com',
226
- tva: 'contact@aec-54.com',
227
- wb: 'contact@aec-54.com',
212
+ administratif: 'bonjour@aec54.com',
213
+ app: 'bonjour@aec54.com',
214
+ bonjour: 'bonjour@aec54.com',
215
+ contact: 'bonjour@aec54.com',
216
+ facturation: 'bonjour@aec54.com',
217
+ feedback: 'bonjour@aec54.com',
218
+ juridique: 'bonjour@aec54.com',
219
+ informatique: 'bonjour@aec54.com',
220
+ msd: 'bonjour@aec54.com',
221
+ noreply: 'bonjour@aec54.com',
222
+ qualite: 'bonjour@aec54.com',
223
+ paiement: 'bonjour@aec54.com',
224
+ social: 'bonjour@aec54.com',
225
+ support: 'bonjour@aec54.com',
226
+ tva: 'bonjour@aec54.com',
227
+ wb: 'bonjour@aec54.com',
228
228
  },
229
229
  companyInformation: {
230
230
  ape: '6920Z',
@@ -245,11 +245,11 @@ export const BrandComptalib = [
245
245
  miniLogoUrl: 'logo-aec.png',
246
246
  hiddenPages: [],
247
247
  recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
248
- urlApp: 'https://app.aec-54.com/',
248
+ urlApp: 'https://app.aec54.com/',
249
249
  urlApi1: 'https://api.comptalib.com',
250
250
  urlApi2: 'https://api-next.comptalib.com',
251
251
  urlExpert: 'https://pro.comptalib.com',
252
- urlClient: 'https://www.aec-54.com/',
252
+ urlClient: 'https://www.aec54.com/',
253
253
  bank: {
254
254
  IBAN: '',
255
255
  BIC: '',
@@ -269,7 +269,7 @@ export const BrandComptalib = [
269
269
  rcs: '315 519 587',
270
270
  phone: '03 83 25 82 20',
271
271
  vatIntracom: 'FR84315519587',
272
- email: 'contact@aec-54.com',
272
+ email: 'bonjour@aec54.com',
273
273
  },
274
274
  },
275
275
  ];
@@ -58,5 +58,20 @@ export const BrandLegalstart = [
58
58
  Name: 'Expertise Choix B',
59
59
  Id: 'FR91ZZZ617135',
60
60
  },
61
+ internalInvoicing: {
62
+ statut: 'SAS',
63
+ name: 'EXPERTISE CHOIX B',
64
+ address: '9, avenue du Rhin',
65
+ zipCode: '54520',
66
+ city: 'LAXOU',
67
+ country: 'FRANCE',
68
+ montantCapital: '500 000',
69
+ siret: '752566687',
70
+ ape: '6920Z',
71
+ rcs: '752 566 687',
72
+ phone: '03 83 93 14 14',
73
+ vatIntracom: 'FR47752566687',
74
+ email: 'facturation@compta-clementine.fr',
75
+ },
61
76
  },
62
77
  ];
@@ -1,7 +1,22 @@
1
- export enum MailFlag {
2
- TO_BE_PROCESSED = 1,
3
- ANSWERED = 2,
4
- NO_ANSWER_NEEDED = 3,
5
- CUSTOMER_CALLED = 4,
6
- OTHER = 5,
7
- }
1
+ export const MailFlag = {
2
+ TO_BE_PROCESSED: {
3
+ id: 1,
4
+ name: 'Non traité',
5
+ },
6
+ ANSWERED: {
7
+ id: 2,
8
+ name: 'Répondu',
9
+ },
10
+ NO_ANSWER_NEEDED: {
11
+ id: 3,
12
+ name: 'Pas de réponse nécessaire',
13
+ },
14
+ CUSTOMER_CALLED: {
15
+ id: 4,
16
+ name: 'Client rappelé',
17
+ },
18
+ OTHER: {
19
+ id: 5,
20
+ name: 'Autre',
21
+ },
22
+ };
@@ -0,0 +1,38 @@
1
+ import { ContractTypeEnum } from './Contract';
2
+
3
+ export enum HiringReasonEnum {
4
+ INCREASE = 'Accroissement',
5
+ REPLACEMENT = 'Remplacement',
6
+ SEASONAL = 'Saisonnier',
7
+ }
8
+
9
+ export enum StudyLevelEnum {
10
+ BELOW_BAC = 'En dessous de BAC',
11
+ BAC = 'BAC',
12
+ BAC_PLUS_ONE = 'BAC +1',
13
+ BAC_PLUS_TWO = 'BAC +2',
14
+ BAC_PLUS_THREE = 'BAC +3',
15
+ BAC_PLUS_FOUR = 'BAC +4',
16
+ BAC_PLUS_FIVE = 'BAC +5',
17
+ BAC_PLUS_SIX = 'BAC +6',
18
+ BAC_PLUS_SEVEN = 'BAC +7',
19
+ ABOVE_BAC_PLUS_SEVEN = 'Au dessus de BAC + 7',
20
+ }
21
+
22
+ export type ContractTypeList = { label: string, value: ContractTypeEnum }[];
23
+ export type HiringReasonList = Array<HiringReasonEnum>;
24
+ export type StudyLevelList = Array<StudyLevelEnum>;
25
+
26
+ export const contractTypeList: ContractTypeList = [
27
+ { label: 'CDD accroissement d\'activité', value: ContractTypeEnum.TEMPORARY_CONTRACT_ACTIVITY },
28
+ { label: 'CDD apprentissage', value: ContractTypeEnum.TEMPORARY_CONTRACT_LEARNING },
29
+ { label: 'CDD de remplacement', value: ContractTypeEnum.TEMPORARY_CONTRACT_REPLACMENT },
30
+ { label: 'CDD extra', value: ContractTypeEnum.TEMPORARY_CONTRACT_EXTRA },
31
+ { label: 'CDD professionnaliste', value: ContractTypeEnum.TEMPORARY_CONTRACT_PRO },
32
+ { label: 'CDD usage', value: ContractTypeEnum.TEMPORARY_CONTRACT_USAGE },
33
+ { label: 'CDI', value: ContractTypeEnum.PERMANENT_CONTRACT },
34
+ { label: 'Stage', value: ContractTypeEnum.INTERNSHIP },
35
+ ];
36
+
37
+ export const hiringReasonList: HiringReasonList = Object.keys(HiringReasonEnum).map((value) => value as HiringReasonEnum);
38
+ export const studyLevelList: StudyLevelList = Object.keys(StudyLevelEnum).map((value) => value as StudyLevelEnum);
@@ -5,4 +5,6 @@ export interface CreateMailParams extends IMail{
5
5
  files?: TFile[];
6
6
  textPlain?: string;
7
7
  textHtml?: string;
8
+ isAnswerProcessed?: boolean;
9
+ idMailParent?: number;
8
10
  }
@@ -15,7 +15,7 @@ export class QueryCountMail {
15
15
  @IsOptional()
16
16
  @IsBoolean()
17
17
  @ToBoolean()
18
- withoutSociety?: boolean;
18
+ isWithoutSociety?: boolean;
19
19
 
20
20
  @ApiPropertyOptional()
21
21
  @IsOptional()
@@ -0,0 +1,16 @@
1
+ import {
2
+ IsInt,
3
+ IsOptional,
4
+ } from 'class-validator';
5
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
6
+
7
+ export class QueryCountProcessedByUser {
8
+ @ApiProperty()
9
+ @IsInt()
10
+ idUser: number;
11
+
12
+ @ApiPropertyOptional({ default: 1 })
13
+ @IsOptional()
14
+ @IsInt()
15
+ sumOfSlidingDays?: number;
16
+ }
@@ -0,0 +1,16 @@
1
+ import {
2
+ IsInt,
3
+ IsOptional,
4
+ } from 'class-validator';
5
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
6
+
7
+ export class QueryGetAnsweringTimeByUser {
8
+ @ApiProperty()
9
+ @IsInt()
10
+ idUser: number;
11
+
12
+ @ApiPropertyOptional({ default: 30 })
13
+ @IsOptional()
14
+ @IsInt()
15
+ sumOfSlidingDays?: number;
16
+ }