@silexpert/core 1.1.2 → 1.1.3

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 (328) hide show
  1. package/es/api/resources/CommercialImport.d.ts +9 -0
  2. package/es/api/resources/CommercialImport.d.ts.map +1 -0
  3. package/es/api/resources/CommercialImport.js +24 -0
  4. package/es/api/resources/CommercialImport.js.map +1 -0
  5. package/es/api/resources/Exercice.d.ts +3 -1
  6. package/es/api/resources/Exercice.d.ts.map +1 -1
  7. package/es/api/resources/Exercice.js +6 -0
  8. package/es/api/resources/Exercice.js.map +1 -1
  9. package/es/api/resources/FIle.d.ts +1 -1
  10. package/es/api/resources/FIle.d.ts.map +1 -1
  11. package/es/api/resources/FIle.js +2 -2
  12. package/es/api/resources/FIle.js.map +1 -1
  13. package/es/api/resources/Registration.d.ts +2 -1
  14. package/es/api/resources/Registration.d.ts.map +1 -1
  15. package/es/api/resources/Registration.js +3 -0
  16. package/es/api/resources/Registration.js.map +1 -1
  17. package/es/api/resources/TimeRecorder.d.ts +2 -1
  18. package/es/api/resources/TimeRecorder.d.ts.map +1 -1
  19. package/es/api/resources/TimeRecorder.js +3 -0
  20. package/es/api/resources/TimeRecorder.js.map +1 -1
  21. package/es/api/resources/Vat.d.ts.map +1 -1
  22. package/es/api/resources/Vat.js +2 -1
  23. package/es/api/resources/Vat.js.map +1 -1
  24. package/es/api/resources/statistic/CustomerSuccess.js +1 -1
  25. package/es/api/resources/statistic/CustomerSuccess.js.map +1 -1
  26. package/es/api/resources.d.ts +2 -0
  27. package/es/api/resources.d.ts.map +1 -1
  28. package/es/api/resources.js +2 -0
  29. package/es/api/resources.js.map +1 -1
  30. package/es/types/Enum/AdjustmentType.d.ts +14 -0
  31. package/es/types/Enum/AdjustmentType.d.ts.map +1 -0
  32. package/es/types/Enum/AdjustmentType.js +38 -0
  33. package/es/types/Enum/AdjustmentType.js.map +1 -0
  34. package/es/types/Enum/CommercialImportHeader.d.ts +12 -0
  35. package/es/types/Enum/CommercialImportHeader.d.ts.map +1 -0
  36. package/es/types/Enum/CommercialImportHeader.js +102 -0
  37. package/es/types/Enum/CommercialImportHeader.js.map +1 -0
  38. package/es/types/Enum/Ged.d.ts +1 -0
  39. package/es/types/Enum/Ged.d.ts.map +1 -1
  40. package/es/types/Enum/Ged.js +1 -1
  41. package/es/types/Enum/Ged.js.map +1 -1
  42. package/es/types/Enum/JobTitle.d.ts +2 -1
  43. package/es/types/Enum/JobTitle.d.ts.map +1 -1
  44. package/es/types/Enum/JobTitle.js +6 -0
  45. package/es/types/Enum/JobTitle.js.map +1 -1
  46. package/es/types/Enum/MimeType.d.ts +1 -0
  47. package/es/types/Enum/MimeType.d.ts.map +1 -1
  48. package/es/types/Enum/MimeType.js +1 -0
  49. package/es/types/Enum/MimeType.js.map +1 -1
  50. package/es/types/Enum/RoleDetail.d.ts +8 -0
  51. package/es/types/Enum/RoleDetail.d.ts.map +1 -1
  52. package/es/types/Enum/RoleDetail.js +8 -0
  53. package/es/types/Enum/RoleDetail.js.map +1 -1
  54. package/es/types/Enum/TimeRecorderLocation.d.ts +4 -0
  55. package/es/types/Enum/TimeRecorderLocation.d.ts.map +1 -1
  56. package/es/types/Enum/TimeRecorderLocation.js +3 -0
  57. package/es/types/Enum/TimeRecorderLocation.js.map +1 -1
  58. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +0 -1
  59. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts.map +1 -1
  60. package/es/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
  61. package/es/types/Interface/api/adjustment/Create.d.ts +7 -0
  62. package/es/types/Interface/api/adjustment/Create.d.ts.map +1 -0
  63. package/es/types/Interface/api/adjustment/Create.js +32 -0
  64. package/es/types/Interface/api/adjustment/Create.js.map +1 -0
  65. package/es/types/Interface/api/adjustment/Query.d.ts +4 -0
  66. package/es/types/Interface/api/adjustment/Query.d.ts.map +1 -0
  67. package/es/types/Interface/api/adjustment/Query.js +19 -0
  68. package/es/types/Interface/api/adjustment/Query.js.map +1 -0
  69. package/es/types/Interface/api/adjustment/Read.d.ts +10 -0
  70. package/es/types/Interface/api/adjustment/Read.d.ts.map +1 -0
  71. package/es/types/Interface/api/adjustment/Read.js +3 -0
  72. package/es/types/Interface/api/adjustment/Read.js.map +1 -0
  73. package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts +4 -0
  74. package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts.map +1 -0
  75. package/es/types/Interface/api/archive/ImportSocietyArchive.js +19 -0
  76. package/es/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -0
  77. package/es/types/Interface/api/commercialImport/Create.d.ts +11 -0
  78. package/es/types/Interface/api/commercialImport/Create.d.ts.map +1 -0
  79. package/es/types/Interface/api/commercialImport/Create.js +34 -0
  80. package/es/types/Interface/api/commercialImport/Create.js.map +1 -0
  81. package/es/types/Interface/api/commercialImport/Query.d.ts +12 -0
  82. package/es/types/Interface/api/commercialImport/Query.d.ts.map +1 -0
  83. package/es/types/Interface/api/commercialImport/Query.js +23 -0
  84. package/es/types/Interface/api/commercialImport/Query.js.map +1 -0
  85. package/es/types/Interface/api/commercialImport/Read.d.ts +40 -0
  86. package/es/types/Interface/api/commercialImport/Read.d.ts.map +1 -0
  87. package/es/types/Interface/api/commercialImport/Read.js +2 -0
  88. package/es/types/Interface/api/commercialImport/Read.js.map +1 -0
  89. package/es/types/Interface/api/companeo/CompaneoReturn.d.ts +28 -0
  90. package/es/types/Interface/api/companeo/CompaneoReturn.d.ts.map +1 -0
  91. package/es/types/Interface/api/companeo/CompaneoReturn.js +2 -0
  92. package/es/types/Interface/api/companeo/CompaneoReturn.js.map +1 -0
  93. package/es/types/Interface/api/companeo/Query.d.ts +5 -0
  94. package/es/types/Interface/api/companeo/Query.d.ts.map +1 -0
  95. package/es/types/Interface/api/companeo/Query.js +26 -0
  96. package/es/types/Interface/api/companeo/Query.js.map +1 -0
  97. package/es/types/Interface/api/society/CreateSociety.d.ts +1 -0
  98. package/es/types/Interface/api/society/CreateSociety.d.ts.map +1 -1
  99. package/es/types/Interface/api/society/CreateSociety.js +4 -0
  100. package/es/types/Interface/api/society/CreateSociety.js.map +1 -1
  101. package/es/types/Interface/api/statistic/QueryInternal.d.ts +2 -0
  102. package/es/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
  103. package/es/types/Interface/api/statistic/QueryInternal.js +3 -1
  104. package/es/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  105. package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +1 -0
  106. package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
  107. package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  108. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts +1 -0
  109. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts.map +1 -1
  110. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +6 -0
  111. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
  112. package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts +5 -0
  113. package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts.map +1 -0
  114. package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +25 -0
  115. package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +1 -0
  116. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts +5 -0
  117. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts.map +1 -1
  118. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -1
  119. package/es/types/Interface/models/IAccountsSocieties.d.ts +2 -0
  120. package/es/types/Interface/models/IAccountsSocieties.d.ts.map +1 -1
  121. package/es/types/Interface/models/IAccountsSocieties.js.map +1 -1
  122. package/es/types/Interface/models/IAdjustment.d.ts +13 -0
  123. package/es/types/Interface/models/IAdjustment.d.ts.map +1 -0
  124. package/es/types/Interface/models/IAdjustment.js +2 -0
  125. package/es/types/Interface/models/IAdjustment.js.map +1 -0
  126. package/es/types/Interface/models/IApiError.d.ts +4 -0
  127. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  128. package/es/types/Interface/models/IApiError.js +5 -0
  129. package/es/types/Interface/models/IApiError.js.map +1 -1
  130. package/es/types/Interface/models/IAreasInvoice.d.ts +0 -1
  131. package/es/types/Interface/models/IAreasInvoice.d.ts.map +1 -1
  132. package/es/types/Interface/models/IAreasInvoice.js.map +1 -1
  133. package/es/types/Interface/models/IBalanceSheet.d.ts +2 -0
  134. package/es/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
  135. package/es/types/Interface/models/IBalanceSheet.js.map +1 -1
  136. package/es/types/Interface/models/IExercice.d.ts +3 -0
  137. package/es/types/Interface/models/IExercice.d.ts.map +1 -1
  138. package/es/types/Interface/models/IExercice.js.map +1 -1
  139. package/es/types/Interface/models/IGedFile.d.ts +3 -0
  140. package/es/types/Interface/models/IGedFile.d.ts.map +1 -1
  141. package/es/types/Interface/models/IGedFile.js.map +1 -1
  142. package/es/types/Interface/models/ILettering.d.ts +0 -4
  143. package/es/types/Interface/models/ILettering.d.ts.map +1 -1
  144. package/es/types/Interface/models/ILettering.js.map +1 -1
  145. package/es/types/Interface/models/ISociety.d.ts +4 -1
  146. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  147. package/es/types/Interface/models/ISociety.js.map +1 -1
  148. package/es/types/Interface/models/ISocietyApproval.d.ts +4 -2
  149. package/es/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
  150. package/es/types/Interface/models/ISocietyApproval.js.map +1 -1
  151. package/es/types/Interface/models/IUser.d.ts +2 -0
  152. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  153. package/es/types/Interface/models/IUser.js.map +1 -1
  154. package/es/types/index.d.ts +13 -5
  155. package/es/types/index.d.ts.map +1 -1
  156. package/es/types/index.js +13 -5
  157. package/es/types/index.js.map +1 -1
  158. package/es/utils/email.js +2 -2
  159. package/es/utils/email.js.map +1 -1
  160. package/es/utils/phone.d.ts +1 -1
  161. package/es/utils/phone.d.ts.map +1 -1
  162. package/es/utils/phone.js +8 -8
  163. package/es/utils/phone.js.map +1 -1
  164. package/es/utils/vat/3310/century23.d.ts.map +1 -1
  165. package/es/utils/vat/3310/century23.js +1 -6
  166. package/es/utils/vat/3310/century23.js.map +1 -1
  167. package/js/api/resources/CommercialImport.js +38 -0
  168. package/js/api/resources/CommercialImport.js.map +1 -0
  169. package/js/api/resources/Exercice.js +6 -0
  170. package/js/api/resources/Exercice.js.map +1 -1
  171. package/js/api/resources/FIle.js +2 -2
  172. package/js/api/resources/FIle.js.map +1 -1
  173. package/js/api/resources/Registration.js +5 -0
  174. package/js/api/resources/Registration.js.map +1 -1
  175. package/js/api/resources/TimeRecorder.js +5 -0
  176. package/js/api/resources/TimeRecorder.js.map +1 -1
  177. package/js/api/resources/Vat.js +2 -1
  178. package/js/api/resources/Vat.js.map +1 -1
  179. package/js/api/resources/statistic/CustomerSuccess.js +1 -1
  180. package/js/api/resources/statistic/CustomerSuccess.js.map +1 -1
  181. package/js/api/resources.js +3 -1
  182. package/js/api/resources.js.map +1 -1
  183. package/js/types/Enum/AdjustmentType.js +38 -0
  184. package/js/types/Enum/AdjustmentType.js.map +1 -0
  185. package/js/types/Enum/CommercialImportHeader.js +107 -0
  186. package/js/types/Enum/CommercialImportHeader.js.map +1 -0
  187. package/js/types/Enum/Ged.js +1 -1
  188. package/js/types/Enum/Ged.js.map +1 -1
  189. package/js/types/Enum/JobTitle.js +5 -0
  190. package/js/types/Enum/JobTitle.js.map +1 -1
  191. package/js/types/Enum/MimeType.js +1 -0
  192. package/js/types/Enum/MimeType.js.map +1 -1
  193. package/js/types/Enum/RoleDetail.js +16 -8
  194. package/js/types/Enum/RoleDetail.js.map +1 -1
  195. package/js/types/Enum/TimeRecorderLocation.js +4 -0
  196. package/js/types/Enum/TimeRecorderLocation.js.map +1 -1
  197. package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
  198. package/js/types/Interface/api/adjustment/Create.js +25 -0
  199. package/js/types/Interface/api/adjustment/Create.js.map +1 -0
  200. package/js/types/Interface/api/adjustment/Query.js +22 -0
  201. package/js/types/Interface/api/adjustment/Query.js.map +1 -0
  202. package/js/types/Interface/api/adjustment/Read.js +8 -0
  203. package/js/types/Interface/api/adjustment/Read.js.map +1 -0
  204. package/js/types/Interface/api/archive/ImportSocietyArchive.js +22 -0
  205. package/js/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -0
  206. package/js/types/Interface/api/commercialImport/Create.js +27 -0
  207. package/js/types/Interface/api/commercialImport/Create.js.map +1 -0
  208. package/js/types/Interface/api/commercialImport/Query.js +24 -0
  209. package/js/types/Interface/api/commercialImport/Query.js.map +1 -0
  210. package/js/types/Interface/{models/IPageView.js → api/commercialImport/Read.js} +1 -1
  211. package/js/types/Interface/api/commercialImport/Read.js.map +1 -0
  212. package/js/types/Interface/{models/IInterestedByFeature.js → api/companeo/CompaneoReturn.js} +1 -1
  213. package/js/types/Interface/api/companeo/CompaneoReturn.js.map +1 -0
  214. package/js/types/Interface/api/companeo/Query.js +23 -0
  215. package/js/types/Interface/api/companeo/Query.js.map +1 -0
  216. package/js/types/Interface/api/society/CreateSociety.js +1 -0
  217. package/js/types/Interface/api/society/CreateSociety.js.map +1 -1
  218. package/js/types/Interface/api/statistic/QueryInternal.js +4 -2
  219. package/js/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  220. package/js/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  221. package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +1 -0
  222. package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
  223. package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +23 -0
  224. package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +1 -0
  225. package/js/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -1
  226. package/js/types/Interface/models/IAccountsSocieties.js.map +1 -1
  227. package/js/types/Interface/models/{IEngagementAccountingFile.js → IAdjustment.js} +1 -1
  228. package/js/types/Interface/models/IAdjustment.js.map +1 -0
  229. package/js/types/Interface/models/IApiError.js +5 -0
  230. package/js/types/Interface/models/IApiError.js.map +1 -1
  231. package/js/types/Interface/models/IAreasInvoice.js.map +1 -1
  232. package/js/types/Interface/models/IBalanceSheet.js.map +1 -1
  233. package/js/types/Interface/models/IExercice.js.map +1 -1
  234. package/js/types/Interface/models/IGedFile.js.map +1 -1
  235. package/js/types/Interface/models/ILettering.js.map +1 -1
  236. package/js/types/Interface/models/ISociety.js.map +1 -1
  237. package/js/types/Interface/models/ISocietyApproval.js.map +1 -1
  238. package/js/types/Interface/models/IUser.js.map +1 -1
  239. package/js/types/index.js +196 -116
  240. package/js/types/index.js.map +1 -1
  241. package/js/utils/email.js +2 -2
  242. package/js/utils/email.js.map +1 -1
  243. package/js/utils/phone.js +8 -8
  244. package/js/utils/phone.js.map +1 -1
  245. package/js/utils/vat/3310/century23.js +1 -5
  246. package/js/utils/vat/3310/century23.js.map +1 -1
  247. package/package.json +1 -1
  248. package/ts/api/resources/CommercialImport.ts +32 -0
  249. package/ts/api/resources/Exercice.ts +9 -1
  250. package/ts/api/resources/FIle.ts +2 -2
  251. package/ts/api/resources/Registration.ts +6 -0
  252. package/ts/api/resources/TimeRecorder.ts +4 -1
  253. package/ts/api/resources/Vat.ts +2 -1
  254. package/ts/api/resources/statistic/CustomerSuccess.ts +1 -1
  255. package/ts/api/resources.ts +2 -0
  256. package/ts/types/Enum/AdjustmentType.ts +37 -0
  257. package/ts/types/Enum/CommercialImportHeader.ts +112 -0
  258. package/ts/types/Enum/Ged.ts +1 -1
  259. package/ts/types/Enum/JobTitle.ts +6 -0
  260. package/ts/types/Enum/MimeType.ts +1 -0
  261. package/ts/types/Enum/RoleDetail.ts +8 -0
  262. package/ts/types/Enum/TimeRecorderLocation.ts +4 -0
  263. package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +0 -1
  264. package/ts/types/Interface/api/adjustment/Create.ts +19 -0
  265. package/ts/types/Interface/api/adjustment/Query.ts +8 -0
  266. package/ts/types/Interface/api/adjustment/Read.ts +10 -0
  267. package/ts/types/Interface/api/archive/ImportSocietyArchive.ts +8 -0
  268. package/ts/types/Interface/api/commercialImport/Create.ts +22 -0
  269. package/ts/types/Interface/api/commercialImport/Query.ts +34 -0
  270. package/ts/types/Interface/api/commercialImport/Read.ts +40 -0
  271. package/ts/types/Interface/api/companeo/CompaneoReturn.ts +27 -0
  272. package/ts/types/Interface/api/companeo/Query.ts +14 -0
  273. package/ts/types/Interface/api/society/CreateSociety.ts +3 -0
  274. package/ts/types/Interface/api/statistic/QueryInternal.ts +2 -0
  275. package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +1 -1
  276. package/ts/types/Interface/api/timeRecorder/QueryPaginatedDelays.ts +5 -0
  277. package/ts/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.ts +15 -0
  278. package/ts/types/Interface/api/timeRecorder/ReadPaginatedDelays.ts +7 -1
  279. package/ts/types/Interface/models/IAccountsSocieties.ts +4 -0
  280. package/ts/types/Interface/models/IAdjustment.ts +14 -0
  281. package/ts/types/Interface/models/IApiError.ts +6 -0
  282. package/ts/types/Interface/models/IAreasInvoice.ts +0 -1
  283. package/ts/types/Interface/models/IBalanceSheet.ts +2 -0
  284. package/ts/types/Interface/models/IExercice.ts +3 -0
  285. package/ts/types/Interface/models/IGedFile.ts +3 -0
  286. package/ts/types/Interface/models/ILettering.ts +0 -8
  287. package/ts/types/Interface/models/ISociety.ts +4 -0
  288. package/ts/types/Interface/models/ISocietyApproval.ts +4 -2
  289. package/ts/types/Interface/models/IUser.ts +2 -0
  290. package/ts/types/index.ts +13 -5
  291. package/ts/utils/email.ts +2 -2
  292. package/ts/utils/phone.ts +8 -8
  293. package/ts/utils/vat/3310/century23.ts +1 -6
  294. package/es/types/Interface/models/IEngagementAccountingEntry.d.ts +0 -27
  295. package/es/types/Interface/models/IEngagementAccountingEntry.d.ts.map +0 -1
  296. package/es/types/Interface/models/IEngagementAccountingEntry.js +0 -2
  297. package/es/types/Interface/models/IEngagementAccountingEntry.js.map +0 -1
  298. package/es/types/Interface/models/IEngagementAccountingFile.d.ts +0 -43
  299. package/es/types/Interface/models/IEngagementAccountingFile.d.ts.map +0 -1
  300. package/es/types/Interface/models/IEngagementAccountingFile.js +0 -2
  301. package/es/types/Interface/models/IEngagementAccountingFile.js.map +0 -1
  302. package/es/types/Interface/models/IEngagementBankTransaction.d.ts +0 -33
  303. package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +0 -1
  304. package/es/types/Interface/models/IEngagementBankTransaction.js +0 -2
  305. package/es/types/Interface/models/IEngagementBankTransaction.js.map +0 -1
  306. package/es/types/Interface/models/IInterestedByFeature.d.ts +0 -11
  307. package/es/types/Interface/models/IInterestedByFeature.d.ts.map +0 -1
  308. package/es/types/Interface/models/IInterestedByFeature.js +0 -2
  309. package/es/types/Interface/models/IInterestedByFeature.js.map +0 -1
  310. package/es/types/Interface/models/IPageView.d.ts +0 -10
  311. package/es/types/Interface/models/IPageView.d.ts.map +0 -1
  312. package/es/types/Interface/models/IPageView.js +0 -2
  313. package/es/types/Interface/models/IPageView.js.map +0 -1
  314. package/export-models.json +0 -28811
  315. package/importInterfaces.ts +0 -91
  316. package/js/types/Interface/models/IEngagementAccountingEntry.js +0 -6
  317. package/js/types/Interface/models/IEngagementAccountingEntry.js.map +0 -1
  318. package/js/types/Interface/models/IEngagementAccountingFile.js.map +0 -1
  319. package/js/types/Interface/models/IEngagementBankTransaction.js +0 -6
  320. package/js/types/Interface/models/IEngagementBankTransaction.js.map +0 -1
  321. package/js/types/Interface/models/IInterestedByFeature.js.map +0 -1
  322. package/js/types/Interface/models/IPageView.js.map +0 -1
  323. package/table.json +0 -264
  324. package/ts/types/Interface/models/IEngagementAccountingEntry.ts +0 -30
  325. package/ts/types/Interface/models/IEngagementAccountingFile.ts +0 -46
  326. package/ts/types/Interface/models/IEngagementBankTransaction.ts +0 -36
  327. package/ts/types/Interface/models/IInterestedByFeature.ts +0 -14
  328. package/ts/types/Interface/models/IPageView.ts +0 -13
@@ -0,0 +1,32 @@
1
+ import * as FormData from 'form-data';
2
+ import {
3
+ CreateCommercialMigration,
4
+ CreateCommercialTransactions, HeadersMappingImport, ImportRow, QueryHeader, QueryProcessCsv,
5
+
6
+ } from '../../types';
7
+ import { Resource } from '../Resource';
8
+
9
+ export class CommercialImport extends Resource {
10
+ getHeaders(payload: QueryHeader): Promise<HeadersMappingImport[]> {
11
+ return this.axios.$post('/commercial-management/imports/headers', payload);
12
+ }
13
+
14
+ mapping(file: File, payload: QueryProcessCsv): Promise<ImportRow[]> {
15
+ const formData = new FormData();
16
+ const entries = Object.entries(payload.mappingHeaders);
17
+ entries.map(([name, value]: [string, string]) => {
18
+ formData.append(name, value);
19
+ return [name, value];
20
+ });
21
+ formData.append('file', file);
22
+ return this.axios.$post('/commercial-management/imports/process-csv', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
23
+ }
24
+
25
+ createTransactions(payload: CreateCommercialTransactions): Promise<boolean> {
26
+ return this.axios.$post('/commercial-management/imports/transactions', payload);
27
+ }
28
+
29
+ migrateAccountancy(payload: CreateCommercialMigration): Promise<number> {
30
+ return this.axios.$post('/commercial-management/imports/migrate', payload);
31
+ }
32
+ }
@@ -1,5 +1,5 @@
1
1
  import {
2
- CreateExercice, IBalanceSheet, IExercice, UpdateExercice,
2
+ CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment,
3
3
  } from '../../types';
4
4
  import { Resource } from '../Resource';
5
5
 
@@ -19,4 +19,12 @@ export class Exercice extends Resource {
19
19
  getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {
20
20
  return this.axios.$get(`/exercices/${id}/balance-sheets`);
21
21
  }
22
+
23
+ updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {
24
+ return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);
25
+ }
26
+
27
+ getAllAdjustments(id: number): Promise<IAdjustment[]> {
28
+ return this.axios.$get(`/exercices/${id}/adjustments`);
29
+ }
22
30
  }
@@ -18,7 +18,7 @@ export class File extends Resource {
18
18
  return this.axios.$post('files', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
19
19
  }
20
20
 
21
- get(id: number): Promise<ReadFile> {
22
- return this.axios.$get(`files/${id}`);
21
+ get(id: number, idSociety: number): Promise<ReadFile> {
22
+ return this.axios.$get(`societies/${idSociety}/files/${id}`);
23
23
  }
24
24
  }
@@ -8,6 +8,8 @@ import {
8
8
  DeclareRegistration,
9
9
  CreateRegistrationSettingFromSociety,
10
10
  IRegistrationDetail,
11
+ QueryRegistrationAdjustment,
12
+ ReadRegistrationAdjustment,
11
13
  } from '../../types';
12
14
 
13
15
  export class Registration extends Resource {
@@ -45,4 +47,8 @@ export class Registration extends Resource {
45
47
  getDetails(idSociety: number, idRegistration: number): Promise<IRegistrationDetail | null> {
46
48
  return this.axios.$get(`/societies/${idSociety}/registrations/${idRegistration}/details`);
47
49
  }
50
+
51
+ getAllAdjustments(idSociety: number, params: QueryRegistrationAdjustment): Promise<ReadRegistrationAdjustment[]> {
52
+ return this.axios.$get(`/societies/${idSociety}/registrations/adjustments`, { params });
53
+ }
48
54
  }
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder, ReadUsersAbsent,
3
+ ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder, QueryTimeRecorderGetStats, ReadUsersAbsent, ReadPlaceToWork,
4
4
  } from '../../types';
5
5
 
6
6
  export class TimeRecorder extends Resource {
@@ -21,6 +21,9 @@ export class TimeRecorder extends Resource {
21
21
  return this.axios.$get('paginated-delays',
22
22
  { params });
23
23
  }
24
+ getStats(params: QueryTimeRecorderGetStats): Promise<ReadPlaceToWork> {
25
+ return this.axios.$get('/stats', { params });
26
+ }
24
27
  getUsersAbsent(): Promise<ReadUsersAbsent[]> {
25
28
  return this.axios.$get('/users/absent');
26
29
  }
@@ -21,7 +21,8 @@ export class Vat extends Resource {
21
21
 
22
22
  async updateOrCreate(idSociety: number, payload: UpdateOrCreateVatRegistration, details: CreateRegistrationDetail): Promise<ReadRegistration> {
23
23
  const result = await this.axios.$post(`/societies/${idSociety}/vat`, payload);
24
- const data = result.data as ReadRegistration;
24
+ // @ts-ignore
25
+ const data = result as ReadRegistration;
25
26
  await this.axios.$post(`/societies/${idSociety}/registrations/${data.id}/details`, details);
26
27
  return data;
27
28
  }
@@ -4,6 +4,6 @@ import { QueryCustomerSuccess } from '../../../types';
4
4
 
5
5
  export class StatisticCustomerSuccess extends Resource {
6
6
  public get(params: QueryCustomerSuccess, cancelToken?: CancelToken): Promise<JSON> {
7
- return this.axios.$get('/statistic-cs', { params, ...(cancelToken ? { cancelToken } : {}) });
7
+ return this.axios.$get('/statistic-customer-success', { params, ...(cancelToken ? { cancelToken } : {}) });
8
8
  }
9
9
  }
@@ -122,6 +122,7 @@ import { Quotation } from './resources/Quotation';
122
122
  import { Prestations } from './resources/Prestations';
123
123
  import { StatisticCustomerSuccess } from './resources/statistic/CustomerSuccess';
124
124
  import { UnpaidCallHistory } from './resources/UnpaidCallHistory';
125
+ import { CommercialImport } from './resources/CommercialImport';
125
126
 
126
127
  export const resources = {
127
128
  simulation: Simulation,
@@ -248,4 +249,5 @@ export const resources = {
248
249
  quotation: Quotation,
249
250
  prestations: Prestations,
250
251
  unpaidCallHistory: UnpaidCallHistory,
252
+ commercialImport: CommercialImport,
251
253
  };
@@ -0,0 +1,37 @@
1
+ export enum AdjustmentTypeId {
2
+ TOO_MUCH_COLLECTED = 1,
3
+ NOT_ENOUGH_COLLECTED = 2,
4
+ TOO_MUCH_DEDUCTED = 3,
5
+ NOT_ENOUGH_DEDUCTED = 4,
6
+ }
7
+
8
+ export const AdjustmentTypeList: Array<{ id:AdjustmentTypeId; label: string; centuries: number[], key: string; inputKey: string; }> = [
9
+ {
10
+ id: AdjustmentTypeId.TOO_MUCH_COLLECTED,
11
+ label: 'TVA trop collectée',
12
+ centuries: [2022, 2023, 2024, 2025],
13
+ key: 'vat.deductible.toImpute',
14
+ inputKey: 'adjustment.tooMuchCollected',
15
+ },
16
+ {
17
+ id: AdjustmentTypeId.NOT_ENOUGH_COLLECTED,
18
+ label: 'TVA pas assez collectée',
19
+ centuries: [2022, 2023, 2024, 2025],
20
+ key: 'vat.sumToAdd',
21
+ inputKey: 'adjustment.notEnoughCollected',
22
+ },
23
+ {
24
+ id: AdjustmentTypeId.TOO_MUCH_DEDUCTED,
25
+ label: 'TVA trop déduite',
26
+ centuries: [2022, 2023, 2024, 2025],
27
+ key: 'vat.deductible.toImpute',
28
+ inputKey: 'adjustment.tooMuchDeducted',
29
+ },
30
+ {
31
+ id: AdjustmentTypeId.NOT_ENOUGH_DEDUCTED,
32
+ label: 'TVA pas assez déduite',
33
+ centuries: [2022, 2023, 2024, 2025],
34
+ key: 'vat.sumToAdd',
35
+ inputKey: 'adjustment.notEnoughDeducted',
36
+ },
37
+ ];
@@ -0,0 +1,112 @@
1
+ export type CommercialImportHeaderContent = {
2
+ originalName:string;
3
+ name: string;
4
+ required: boolean,
5
+ description?: string;
6
+ relatedField?: string;
7
+ };
8
+ export type CommercialImportHeader = {
9
+ [key: string]: CommercialImportHeaderContent
10
+ };
11
+
12
+ export const commercialImportHeader: CommercialImportHeader = {
13
+ TAX_INCLUDED_AMOUNT: {
14
+ originalName: 'taxIncludedAmount',
15
+ name: 'Montant TTC',
16
+ required: true,
17
+ description: 'Montant total toutes taxes comprises',
18
+ },
19
+ TAX_EXCLUDED_AMOUNT_20: {
20
+ originalName: 'taxExcludedAmount_20',
21
+ name: 'Montant HT TVA 20%',
22
+ required: true,
23
+ description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 20%',
24
+ },
25
+ AMOUNT_VAT_20: {
26
+ originalName: 'amountVat_20',
27
+ name: 'Montant TVA 20%',
28
+ required: true,
29
+ description: 'Montant en euros de la TVA 20%',
30
+ relatedField: 'taxExcludedAmount_20',
31
+ },
32
+ TAX_EXCLUDED_10: {
33
+ originalName: 'taxExcludedAmount_10',
34
+ name: 'Montant HT TVA 10%',
35
+ required: true,
36
+ description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 10%',
37
+ },
38
+ AMOUNT_VAT_10: {
39
+ originalName: 'amountVat_10',
40
+ name: 'Montant TVA 10%',
41
+ required: true,
42
+ description: 'Montant en euros de la TVA 10%',
43
+ relatedField: 'taxExcludedAmount_10',
44
+ },
45
+ TAX_EXCLUDED_8_5: {
46
+ originalName: 'taxExcludedAmount_8_5',
47
+ name: 'Montant HT TVA 8,5%',
48
+ required: true,
49
+ description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 8,5%',
50
+ },
51
+ AMOUNT_VAT_8_5: {
52
+ originalName: 'amountVat_8_5',
53
+ name: 'Montant TVA 8,5%',
54
+ required: true,
55
+ description: 'Montant en euros de la TVA 8,5%',
56
+ relatedField: 'taxExcludedAmount_8_5',
57
+ },
58
+ TAX_EXCLUDED_5_5: {
59
+ originalName: 'taxExcludedAmount_5_5',
60
+ name: 'Montant HT TVA 5,5%',
61
+ required: true,
62
+ description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 5,5%',
63
+ },
64
+ AMOUNT_VAT_5_5: {
65
+ originalName: 'amountVat_5_5',
66
+ name: 'Montant TVA 5,5%',
67
+ required: true,
68
+ description: 'Montant en euros de la TVA 5,5%',
69
+ relatedField: 'taxExcludedAmount_5_5',
70
+ },
71
+ TAX_EXCLUDED_2_1: {
72
+ originalName: 'taxExcludedAmount_2_1',
73
+ name: 'Montant HT TVA 2,1%',
74
+ required: true,
75
+ description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 2,1%',
76
+ },
77
+ AMOUNT_VAT_2_1: {
78
+ originalName: 'amountVat_2_1',
79
+ name: 'Montant TVA 2,1%',
80
+ required: true,
81
+ description: 'Montant en euros de la TVA 2,1%',
82
+ relatedField: 'taxExcludedAmount_2_1',
83
+ },
84
+ TAX_EXCLUDED: {
85
+ originalName: 'taxExcludedAmount',
86
+ name: 'Montant sans TVA',
87
+ required: true,
88
+ description: 'Total hors taxes des prestations ou marchandises facturées sans TVA',
89
+ },
90
+ CUSTOMER_NAME: {
91
+ originalName: 'customerName',
92
+ name: 'Nom de client',
93
+ required: true,
94
+ description: 'Nom ou raison sociale de vos clients',
95
+ },
96
+ DATE_VALUE: {
97
+ originalName: 'dateValue',
98
+ name: 'date',
99
+ required: false,
100
+ description: 'Date d’émission des factures',
101
+ },
102
+ LABEL: {
103
+ originalName: 'Label',
104
+ name: 'Libellé',
105
+ required: false,
106
+ },
107
+ INVOICE_NUMBER: {
108
+ originalName: 'invoiceNumber',
109
+ name: 'Numéro de facture',
110
+ required: false,
111
+ },
112
+ };
@@ -33,7 +33,7 @@ export enum GedFolder {
33
33
  RSI_URSSAF = 27,
34
34
  // Previous GA balance & PV = 28,
35
35
  // Slips for the CFE = 29,
36
- // Suppliers / customers appendices = 30,
36
+ APPENDIX_PROVIDERS_CUSTOMERS = 30,
37
37
  MISCELLANEOUS = 31,
38
38
  // Legal Announcements = 32,
39
39
  CERTIFICATES = 33,
@@ -17,6 +17,7 @@ export enum JobTitle {
17
17
  JURIST_ASSISTANT = 16,
18
18
  BILLING_ASSISTANT = 17,
19
19
  COMMERCIAL = 18,
20
+ ACCOUNTING_CONSULTANT = 19,
20
21
  }
21
22
 
22
23
  export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: string }> = [
@@ -110,4 +111,9 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
110
111
  menText: 'Responsable paie',
111
112
  womenText: 'Responsable paie',
112
113
  },
114
+ {
115
+ id: JobTitle.ACCOUNTING_CONSULTANT,
116
+ menText: 'Conseiller comptable',
117
+ womenText: 'Conseillère comptable',
118
+ },
113
119
  ];
@@ -11,6 +11,7 @@ export const MimeType = {
11
11
  JPEG: 'image/jpeg',
12
12
  XPNG: 'image/x-png',
13
13
  ZIP: 'application/zip',
14
+ JSON: 'application/json',
14
15
  X7Z: 'application/x-7z-compressed',
15
16
  RAR: 'application/x-rar-compressed',
16
17
  CSV: 'text/csv',
@@ -20,6 +20,7 @@ export const RoleDetail = {
20
20
  colorSecondary: '#DED7F6',
21
21
  subRole: false,
22
22
  phoneNumber: '',
23
+ phoneNumberPourcentage: '',
23
24
  },
24
25
  COMMERCIAL: {
25
26
  id: 9,
@@ -28,6 +29,7 @@ export const RoleDetail = {
28
29
  colorSecondary: '#DED7F6',
29
30
  subRole: false,
30
31
  phoneNumber: '+33755537510',
32
+ phoneNumberPourcentage: '+33756796318',
31
33
  },
32
34
  CUSTOMER_SUCCESS: {
33
35
  id: 10,
@@ -37,6 +39,7 @@ export const RoleDetail = {
37
39
  subRole: false,
38
40
  handledInUserSocietyPermissionTable: false,
39
41
  phoneNumber: '',
42
+ phoneNumberPourcentage: '',
40
43
  },
41
44
  SOCIAL: {
42
45
  id: 11,
@@ -45,6 +48,7 @@ export const RoleDetail = {
45
48
  colorSecondary: '#DED7F6',
46
49
  subRole: false,
47
50
  phoneNumber: '',
51
+ phoneNumberPourcentage: '',
48
52
  },
49
53
  JURIDIC: {
50
54
  id: 12,
@@ -53,6 +57,7 @@ export const RoleDetail = {
53
57
  colorSecondary: '#DED7F6',
54
58
  subRole: false,
55
59
  phoneNumber: '',
60
+ phoneNumberPourcentage: '',
56
61
  },
57
62
  // CHIEF_ACCOUNTANT: {
58
63
  // id: 13,
@@ -75,6 +80,7 @@ export const RoleDetail = {
75
80
  colorSecondary: '#DED7F6',
76
81
  subRole: false,
77
82
  phoneNumber: '',
83
+ phoneNumberPourcentage: '',
78
84
  },
79
85
  SUPER_ADMIN: {
80
86
  id: 16,
@@ -140,6 +146,7 @@ export const RoleDetail = {
140
146
  colorSecondary: '#DED7F6',
141
147
  subRole: false,
142
148
  phoneNumber: '',
149
+ phoneNumberPourcentage: '',
143
150
  },
144
151
  API: {
145
152
  id: 26,
@@ -199,6 +206,7 @@ export const RoleDetail = {
199
206
  colorSecondary: '#DED7F6',
200
207
  subRole: false,
201
208
  phoneNumber: '',
209
+ phoneNumberPourcentage: '',
202
210
  },
203
211
  HUMAN_RESSOURCES: {
204
212
  id: 35,
@@ -6,4 +6,8 @@ export const TimeRecorderLocation = {
6
6
  id: 5,
7
7
  name: 'Télétravail',
8
8
  },
9
+ WITHOUT_PLACE: {
10
+ id: 6,
11
+ name: 'NC',
12
+ },
9
13
  };
@@ -8,7 +8,6 @@ export interface IOcrPayload extends Partial<IOcrPayloadOptionnal> {
8
8
  }
9
9
 
10
10
  export interface IOcrPayloadOptionnal {
11
- idEngagementAccountingFile: number | null;
12
11
  idAccountingTransaction: number;
13
12
  idSociety: number;
14
13
  idFile: number;
@@ -0,0 +1,19 @@
1
+ import { IsNumber, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { AdjustmentTypeId } from '../../../Enum/AdjustmentType';
4
+
5
+ export class UpdateOrCreateAdjustment {
6
+ @ApiProperty()
7
+ @IsNumber()
8
+ idAdjustmentType: AdjustmentTypeId;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsNumber()
12
+ @IsOptional()
13
+ amount?: number;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsNumber()
17
+ @IsOptional()
18
+ amountUsed?: number;
19
+ }
@@ -0,0 +1,8 @@
1
+ import { IsDateString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryRegistrationAdjustment {
5
+ @ApiProperty()
6
+ @IsDateString()
7
+ startDate: string;
8
+ }
@@ -0,0 +1,10 @@
1
+ import { AdjustmentTypeId } from '../../../Enum/AdjustmentType';
2
+
3
+ export class ReadRegistrationAdjustment {
4
+ idExercice: number;
5
+ value: number;
6
+ key: string;
7
+ idAdjustmentType: AdjustmentTypeId;
8
+ inputKey: string;
9
+ label: string;
10
+ }
@@ -0,0 +1,8 @@
1
+ import { IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class ImportSocietyArchive {
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ destinationBucket: string | null;
8
+ }
@@ -0,0 +1,22 @@
1
+ import { IsNumber } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+ import { TFile } from '../file/TFile';
4
+ import { ImportRow } from './Read';
5
+
6
+ export class CreateCommercialTransactions {
7
+ @ApiProperty()
8
+ transactions: ImportRow[];
9
+
10
+ @ApiProperty()
11
+ @IsNumber()
12
+ type: number;
13
+
14
+ @ApiProperty()
15
+ file: TFile;
16
+ }
17
+
18
+ export class CreateCommercialMigration {
19
+ @ApiProperty()
20
+ @IsNumber()
21
+ idSociety: number;
22
+ }
@@ -0,0 +1,34 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+ import { TFile } from '../file/TFile';
3
+
4
+ export type MappingImport = {
5
+ [K in HeadersMappingImport]?: string
6
+ };
7
+
8
+ export type HeadersMappingImport =
9
+ 'dateValue' |
10
+ 'label' |
11
+ 'customerName' |
12
+ 'invoiceNumber' |
13
+ 'taxIncludedAmount' |
14
+ 'taxExcludedAmount' |
15
+ 'taxExcludedAmount_2_1' |
16
+ 'amountVat_2_1' |
17
+ 'taxExcludedAmount_5_5' |
18
+ 'amountVat_5_5' |
19
+ 'taxExcludedAmount_8_5' |
20
+ 'amountVat_8_5' |
21
+ 'taxExcludedAmount_10' |
22
+ 'amountVat_10' |
23
+ 'taxExcludedAmount_20' |
24
+ 'amountVat_20';
25
+
26
+ export class QueryHeader {
27
+ @ApiProperty()
28
+ file: TFile;
29
+ }
30
+
31
+ export class QueryProcessCsv {
32
+ @ApiProperty()
33
+ mappingHeaders: MappingImport;
34
+ }
@@ -0,0 +1,40 @@
1
+ export interface ImportRow {
2
+ taxIncludedAmount: number;
3
+ taxExcludedAmount: number;
4
+ amountVat: number;
5
+ taxExcludedAmount_20: number;
6
+ amountVat_20: number;
7
+ taxExcludedAmount_10: number;
8
+ amountVat_10: number;
9
+ taxExcludedAmount_8_5: number;
10
+ amountVat_8_5: number;
11
+ taxExcludedAmount_5_5: number;
12
+ amountVat_5_5: number;
13
+ taxExcludedAmount_2_1: number;
14
+ amountVat_2_1: number;
15
+ customerName: string;
16
+ dateValue?: string;
17
+ label?: string;
18
+ invoiceNumber?: string
19
+ line: number // the line in the csv
20
+ }
21
+
22
+ export interface ImportRawRow {
23
+ taxIncludedAmount: number;
24
+ taxExcludedAmount: number;
25
+ taxExcludedAmount_20: number;
26
+ amountVat_20: number;
27
+ taxExcludedAmount_10: number;
28
+ amountVat_10: number;
29
+ taxExcludedAmount_8_5: number;
30
+ amountVat_8_5: number;
31
+ taxExcludedAmount_5_5: number;
32
+ amountVat_5_5: number;
33
+ taxExcludedAmount_2_1: number;
34
+ amountVat_2_1: number;
35
+ customerName: string;
36
+ dateValue?: string;
37
+ label?: string;
38
+ invoiceNumber?: string,
39
+ line: number // the line in the csv
40
+ }
@@ -0,0 +1,27 @@
1
+ export interface CompaneoReturn {
2
+ id: number,
3
+ lead_id: number,
4
+ dem_num: string,
5
+ lead_date: Date,
6
+ raison_sociale: string,
7
+ civilite: string,
8
+ nom: string,
9
+ prenom: string,
10
+ activite: string,
11
+ poste: string,
12
+ fonction: string,
13
+ code_postal: string,
14
+ ville: string,
15
+ adresse: string,
16
+ adresse2?: string,
17
+ adresse3?: string,
18
+ email: string,
19
+ telephone: string,
20
+ fax: string,
21
+ mobile: string,
22
+ segment: string,
23
+ date_creation: string,
24
+ commentaire: string,
25
+ comment_companeo: string,
26
+ questionnaire: string,
27
+ }
@@ -0,0 +1,14 @@
1
+ import { IsString, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class QueryCompaneo {
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsString()
8
+ fromDate?: string;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
12
+ @IsString()
13
+ toDate?: string;
14
+ }
@@ -66,6 +66,9 @@ export class CreateSociety {
66
66
  @ApiPropertyOptional()
67
67
  idSector?: number;
68
68
 
69
+ @ApiPropertyOptional()
70
+ leadQuotation?: number;
71
+
69
72
  @ApiPropertyOptional({ enum: SubscriptionType })
70
73
  idSubscriptionType?: SubscriptionType;
71
74
 
@@ -13,7 +13,9 @@ export class QueryInternal {
13
13
  @IsOptional()
14
14
  @IsNumber()
15
15
  idUser?: number;
16
+ }
16
17
 
18
+ export class QueryInternalCustomerSuccess {
17
19
  @ApiPropertyOptional()
18
20
  @IsOptional()
19
21
  @IsArray()
@@ -87,6 +87,6 @@ export class ReadVatDeadline {
87
87
  checklists: ReadChecklistDeadline[];
88
88
  vat: ICustomerVat | null;
89
89
  registration: IRegistration;
90
- type: { id: VatDeadlineType; operations?: Array<{ id: number; label: string; dateValue: Date; amount: number; }>; turnover?: number; limit?: number; };
90
+ type: { id: VatDeadlineType; operations?: Array<{ id: number; label: string; dateValue: Date; amount: number; }>; turnover?: number; limit?: number; businessLine?: string; };
91
91
  hasComment: boolean;
92
92
  }
@@ -33,4 +33,9 @@ export class QueryPaginatedDelays {
33
33
  @IsOptional()
34
34
  @IsNumber()
35
35
  page?: number;
36
+
37
+ @ApiPropertyOptional()
38
+ @IsOptional()
39
+ @IsArray()
40
+ location?: number[];
36
41
  }
@@ -0,0 +1,15 @@
1
+ import {
2
+ IsDateString, IsOptional, IsArray,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class QueryTimeRecorderGetStats {
7
+ @ApiProperty()
8
+ @IsDateString()
9
+ startDate: string;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsArray()
14
+ idUser?: number[];
15
+ }
@@ -18,4 +18,10 @@ export interface ReadPaginatedDelays {
18
18
  firstname: string;
19
19
  lastname: string;
20
20
  days: DelaysByDay
21
- }
21
+ }
22
+
23
+ export type ReadPlaceToWork = Array< {
24
+ location: string;
25
+ id: number;
26
+ value: number;
27
+ }>;