@silexpert/core 1.3.192-0 → 1.3.193-1

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 (539) hide show
  1. package/dist/cjs/api/resources/Checklist.d.ts +0 -6
  2. package/dist/cjs/api/resources/Checklist.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Checklist.js +0 -6
  4. package/dist/cjs/api/resources/Checklist.js.map +1 -1
  5. package/dist/cjs/api/resources/Comment.d.ts +2 -2
  6. package/dist/cjs/api/resources/Comment.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Comment.js.map +1 -1
  8. package/dist/cjs/api/resources/DocumentRequest.d.ts +1 -3
  9. package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/DocumentRequest.js +0 -6
  11. package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
  12. package/dist/cjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  13. package/dist/cjs/api/resources/InternalInvoicing.js +8 -0
  14. package/dist/cjs/api/resources/InternalInvoicing.js.map +1 -1
  15. package/dist/cjs/api/resources/Mfa.d.ts +0 -1
  16. package/dist/cjs/api/resources/Mfa.d.ts.map +1 -1
  17. package/dist/cjs/api/resources/Mfa.js +0 -4
  18. package/dist/cjs/api/resources/Mfa.js.map +1 -1
  19. package/dist/cjs/api/resources/Report.d.ts +3 -4
  20. package/dist/cjs/api/resources/Report.d.ts.map +1 -1
  21. package/dist/cjs/api/resources/Report.js +1 -15
  22. package/dist/cjs/api/resources/Report.js.map +1 -1
  23. package/dist/cjs/api/resources/Shine.d.ts +1 -2
  24. package/dist/cjs/api/resources/Shine.d.ts.map +1 -1
  25. package/dist/cjs/api/resources/Shine.js +0 -3
  26. package/dist/cjs/api/resources/Shine.js.map +1 -1
  27. package/dist/cjs/api/resources/Society.d.ts +1 -2
  28. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  29. package/dist/cjs/api/resources/Society.js +0 -3
  30. package/dist/cjs/api/resources/Society.js.map +1 -1
  31. package/dist/cjs/api/resources/User.d.ts +6 -1
  32. package/dist/cjs/api/resources/User.d.ts.map +1 -1
  33. package/dist/cjs/api/resources/User.js +15 -0
  34. package/dist/cjs/api/resources/User.js.map +1 -1
  35. package/dist/cjs/api/resources.d.ts +0 -6
  36. package/dist/cjs/api/resources.d.ts.map +1 -1
  37. package/dist/cjs/api/resources.js +0 -6
  38. package/dist/cjs/api/resources.js.map +1 -1
  39. package/dist/cjs/types/Enum/AdjustmentType.js +4 -4
  40. package/dist/cjs/types/Enum/AdjustmentType.js.map +1 -1
  41. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  42. package/dist/cjs/types/Enum/BalanceSheet.js +6 -6
  43. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  44. package/dist/cjs/types/Enum/BrandPourcentage.js +8 -8
  45. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  46. package/dist/cjs/types/Enum/Card.d.ts +1 -7
  47. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  48. package/dist/cjs/types/Enum/Card.js +1 -9
  49. package/dist/cjs/types/Enum/Card.js.map +1 -1
  50. package/dist/cjs/types/Enum/Consistency.d.ts +1 -1
  51. package/dist/cjs/types/Enum/Consistency.js +7 -7
  52. package/dist/cjs/types/Enum/Consistency.js.map +1 -1
  53. package/dist/cjs/types/Enum/DashboardBlock.d.ts +1 -2
  54. package/dist/cjs/types/Enum/DashboardBlock.d.ts.map +1 -1
  55. package/dist/cjs/types/Enum/DashboardBlock.js +0 -1
  56. package/dist/cjs/types/Enum/DashboardBlock.js.map +1 -1
  57. package/dist/cjs/types/Enum/EntityType.d.ts +2 -2
  58. package/dist/cjs/types/Enum/EntityType.js +2 -2
  59. package/dist/cjs/types/Enum/EntityType.js.map +1 -1
  60. package/dist/cjs/types/Enum/Ged.d.ts +1 -2
  61. package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
  62. package/dist/cjs/types/Enum/Ged.js +56 -40
  63. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  64. package/dist/cjs/types/Enum/InformationRequestState.d.ts +1 -2
  65. package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +1 -1
  66. package/dist/cjs/types/Enum/InformationRequestState.js +0 -1
  67. package/dist/cjs/types/Enum/InformationRequestState.js.map +1 -1
  68. package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +1 -1
  69. package/dist/cjs/types/Enum/InformationRequestType.js +6 -12
  70. package/dist/cjs/types/Enum/InformationRequestType.js.map +1 -1
  71. package/dist/cjs/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
  72. package/dist/cjs/types/Enum/KilometricAllowanceScale.js +0 -119
  73. package/dist/cjs/types/Enum/KilometricAllowanceScale.js.map +1 -1
  74. package/dist/cjs/types/Enum/MailAuto.d.ts +1 -5
  75. package/dist/cjs/types/Enum/MailAuto.d.ts.map +1 -1
  76. package/dist/cjs/types/Enum/MailAuto.js +0 -4
  77. package/dist/cjs/types/Enum/MailAuto.js.map +1 -1
  78. package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  79. package/dist/cjs/types/Enum/PriceGridClementine.js +478 -482
  80. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  81. package/dist/cjs/types/Enum/Proceding.d.ts +0 -4
  82. package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
  83. package/dist/cjs/types/Enum/Proceding.js +0 -4
  84. package/dist/cjs/types/Enum/Proceding.js.map +1 -1
  85. package/dist/cjs/types/Enum/ReportService.d.ts +1 -4
  86. package/dist/cjs/types/Enum/ReportService.d.ts.map +1 -1
  87. package/dist/cjs/types/Enum/ReportService.js +18 -39
  88. package/dist/cjs/types/Enum/ReportService.js.map +1 -1
  89. package/dist/cjs/types/Enum/ReportType.d.ts +1 -9
  90. package/dist/cjs/types/Enum/ReportType.d.ts.map +1 -1
  91. package/dist/cjs/types/Enum/ReportType.js +1 -41
  92. package/dist/cjs/types/Enum/ReportType.js.map +1 -1
  93. package/dist/cjs/types/Enum/StatutsSection.d.ts +1 -7
  94. package/dist/cjs/types/Enum/StatutsSection.d.ts.map +1 -1
  95. package/dist/cjs/types/Enum/StatutsSection.js +7 -15
  96. package/dist/cjs/types/Enum/StatutsSection.js.map +1 -1
  97. package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  98. package/dist/cjs/types/Enum/TaskResponseType.js +0 -33
  99. package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
  100. package/dist/cjs/types/Enum/Unit.d.ts +1 -2
  101. package/dist/cjs/types/Enum/Unit.d.ts.map +1 -1
  102. package/dist/cjs/types/Enum/Unit.js +0 -11
  103. package/dist/cjs/types/Enum/Unit.js.map +1 -1
  104. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -10
  105. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
  106. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
  107. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +0 -17
  108. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  109. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +1 -4
  110. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  111. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +0 -10
  112. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  113. package/dist/cjs/types/Interface/api/documentRequest/Query.js +1 -43
  114. package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  115. package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.d.ts.map +1 -1
  116. package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.js +0 -2
  117. package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.js.map +1 -1
  118. package/dist/cjs/types/Interface/api/report/CreateReport.d.ts +1 -3
  119. package/dist/cjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
  120. package/dist/cjs/types/Interface/api/report/CreateReport.js +2 -11
  121. package/dist/cjs/types/Interface/api/report/CreateReport.js.map +1 -1
  122. package/dist/cjs/types/Interface/api/report/QueryReports.d.ts +1 -5
  123. package/dist/cjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  124. package/dist/cjs/types/Interface/api/report/QueryReports.js +1 -21
  125. package/dist/cjs/types/Interface/api/report/QueryReports.js.map +1 -1
  126. package/dist/cjs/types/Interface/api/report/QueryReportsForLetter.d.ts +1 -1
  127. package/dist/cjs/types/Interface/api/report/QueryReportsForLetter.d.ts.map +1 -1
  128. package/dist/cjs/types/Interface/api/report/QueryReportsForLetter.js +3 -4
  129. package/dist/cjs/types/Interface/api/report/QueryReportsForLetter.js.map +1 -1
  130. package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts +6 -13
  131. package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
  132. package/dist/cjs/types/Interface/api/report/UpdateReport.js +0 -120
  133. package/dist/cjs/types/Interface/api/report/UpdateReport.js.map +1 -1
  134. package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts +9 -10
  135. package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
  136. package/dist/cjs/types/Interface/api/revenue/revenueMovement.js +15 -16
  137. package/dist/cjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
  138. package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts +3 -0
  139. package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts.map +1 -1
  140. package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.js +14 -1
  141. package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.js.map +1 -1
  142. package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts +4 -0
  143. package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts.map +1 -0
  144. package/dist/cjs/types/Interface/api/shine/{Query.js → GetConnect.js} +2 -9
  145. package/dist/cjs/types/Interface/api/shine/GetConnect.js.map +1 -0
  146. package/dist/cjs/types/Interface/models/IReport.d.ts +1 -10
  147. package/dist/cjs/types/Interface/models/IReport.d.ts.map +1 -1
  148. package/dist/cjs/types/Interface/models/IReport.js.map +1 -1
  149. package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts +0 -2
  150. package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
  151. package/dist/cjs/types/Interface/models/ISocietyApproval.js.map +1 -1
  152. package/dist/cjs/types/Interface/models/IUser.d.ts +0 -2
  153. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  154. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  155. package/dist/cjs/types/index.d.ts +1 -12
  156. package/dist/cjs/types/index.d.ts.map +1 -1
  157. package/dist/cjs/types/index.js +1 -12
  158. package/dist/cjs/types/index.js.map +1 -1
  159. package/dist/cjs/utils/checkup.d.ts +368 -12
  160. package/dist/cjs/utils/checkup.d.ts.map +1 -1
  161. package/dist/cjs/utils/checkup.js +565 -342
  162. package/dist/cjs/utils/checkup.js.map +1 -1
  163. package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
  164. package/dist/cjs/utils/commercialManagement/internationalization/choices.js +19 -21
  165. package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  166. package/dist/cjs/utils/index.d.ts +0 -1
  167. package/dist/cjs/utils/index.d.ts.map +1 -1
  168. package/dist/cjs/utils/index.js +0 -1
  169. package/dist/cjs/utils/index.js.map +1 -1
  170. package/dist/cjs/utils/vat/centuries.js +2 -2
  171. package/dist/cjs/utils/vat/centuries.js.map +1 -1
  172. package/dist/cjs/utils/vat/utils.d.ts.map +1 -1
  173. package/dist/cjs/utils/vat/utils.js +2 -5
  174. package/dist/cjs/utils/vat/utils.js.map +1 -1
  175. package/dist/mjs/api/resources/Checklist.d.ts +0 -6
  176. package/dist/mjs/api/resources/Checklist.d.ts.map +1 -1
  177. package/dist/mjs/api/resources/Checklist.js +0 -6
  178. package/dist/mjs/api/resources/Checklist.js.map +1 -1
  179. package/dist/mjs/api/resources/Comment.d.ts +2 -2
  180. package/dist/mjs/api/resources/Comment.d.ts.map +1 -1
  181. package/dist/mjs/api/resources/Comment.js.map +1 -1
  182. package/dist/mjs/api/resources/DocumentRequest.d.ts +1 -3
  183. package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
  184. package/dist/mjs/api/resources/DocumentRequest.js +0 -6
  185. package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
  186. package/dist/mjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  187. package/dist/mjs/api/resources/InternalInvoicing.js +8 -0
  188. package/dist/mjs/api/resources/InternalInvoicing.js.map +1 -1
  189. package/dist/mjs/api/resources/Mfa.d.ts +0 -1
  190. package/dist/mjs/api/resources/Mfa.d.ts.map +1 -1
  191. package/dist/mjs/api/resources/Mfa.js +0 -4
  192. package/dist/mjs/api/resources/Mfa.js.map +1 -1
  193. package/dist/mjs/api/resources/Report.d.ts +3 -4
  194. package/dist/mjs/api/resources/Report.d.ts.map +1 -1
  195. package/dist/mjs/api/resources/Report.js +1 -17
  196. package/dist/mjs/api/resources/Report.js.map +1 -1
  197. package/dist/mjs/api/resources/Shine.d.ts +1 -2
  198. package/dist/mjs/api/resources/Shine.d.ts.map +1 -1
  199. package/dist/mjs/api/resources/Shine.js +0 -3
  200. package/dist/mjs/api/resources/Shine.js.map +1 -1
  201. package/dist/mjs/api/resources/Society.d.ts +1 -2
  202. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  203. package/dist/mjs/api/resources/Society.js +0 -3
  204. package/dist/mjs/api/resources/Society.js.map +1 -1
  205. package/dist/mjs/api/resources/User.d.ts +6 -1
  206. package/dist/mjs/api/resources/User.d.ts.map +1 -1
  207. package/dist/mjs/api/resources/User.js +15 -0
  208. package/dist/mjs/api/resources/User.js.map +1 -1
  209. package/dist/mjs/api/resources.d.ts +0 -6
  210. package/dist/mjs/api/resources.d.ts.map +1 -1
  211. package/dist/mjs/api/resources.js +0 -6
  212. package/dist/mjs/api/resources.js.map +1 -1
  213. package/dist/mjs/types/Enum/AdjustmentType.js +4 -4
  214. package/dist/mjs/types/Enum/AdjustmentType.js.map +1 -1
  215. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  216. package/dist/mjs/types/Enum/BalanceSheet.js +6 -6
  217. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  218. package/dist/mjs/types/Enum/BrandPourcentage.js +8 -8
  219. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  220. package/dist/mjs/types/Enum/Card.d.ts +1 -7
  221. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  222. package/dist/mjs/types/Enum/Card.js +1 -9
  223. package/dist/mjs/types/Enum/Card.js.map +1 -1
  224. package/dist/mjs/types/Enum/Consistency.d.ts +1 -1
  225. package/dist/mjs/types/Enum/Consistency.js +7 -7
  226. package/dist/mjs/types/Enum/Consistency.js.map +1 -1
  227. package/dist/mjs/types/Enum/DashboardBlock.d.ts +1 -2
  228. package/dist/mjs/types/Enum/DashboardBlock.d.ts.map +1 -1
  229. package/dist/mjs/types/Enum/DashboardBlock.js +0 -1
  230. package/dist/mjs/types/Enum/DashboardBlock.js.map +1 -1
  231. package/dist/mjs/types/Enum/EntityType.d.ts +2 -2
  232. package/dist/mjs/types/Enum/EntityType.js +2 -2
  233. package/dist/mjs/types/Enum/EntityType.js.map +1 -1
  234. package/dist/mjs/types/Enum/Ged.d.ts +1 -2
  235. package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
  236. package/dist/mjs/types/Enum/Ged.js +56 -40
  237. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  238. package/dist/mjs/types/Enum/InformationRequestState.d.ts +1 -2
  239. package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +1 -1
  240. package/dist/mjs/types/Enum/InformationRequestState.js +0 -1
  241. package/dist/mjs/types/Enum/InformationRequestState.js.map +1 -1
  242. package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +1 -1
  243. package/dist/mjs/types/Enum/InformationRequestType.js +6 -12
  244. package/dist/mjs/types/Enum/InformationRequestType.js.map +1 -1
  245. package/dist/mjs/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
  246. package/dist/mjs/types/Enum/KilometricAllowanceScale.js +0 -119
  247. package/dist/mjs/types/Enum/KilometricAllowanceScale.js.map +1 -1
  248. package/dist/mjs/types/Enum/MailAuto.d.ts +1 -5
  249. package/dist/mjs/types/Enum/MailAuto.d.ts.map +1 -1
  250. package/dist/mjs/types/Enum/MailAuto.js +0 -4
  251. package/dist/mjs/types/Enum/MailAuto.js.map +1 -1
  252. package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  253. package/dist/mjs/types/Enum/PriceGridClementine.js +474 -486
  254. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  255. package/dist/mjs/types/Enum/Proceding.d.ts +0 -4
  256. package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
  257. package/dist/mjs/types/Enum/Proceding.js +0 -4
  258. package/dist/mjs/types/Enum/Proceding.js.map +1 -1
  259. package/dist/mjs/types/Enum/ReportService.d.ts +1 -4
  260. package/dist/mjs/types/Enum/ReportService.d.ts.map +1 -1
  261. package/dist/mjs/types/Enum/ReportService.js +18 -39
  262. package/dist/mjs/types/Enum/ReportService.js.map +1 -1
  263. package/dist/mjs/types/Enum/ReportType.d.ts +1 -9
  264. package/dist/mjs/types/Enum/ReportType.d.ts.map +1 -1
  265. package/dist/mjs/types/Enum/ReportType.js +1 -41
  266. package/dist/mjs/types/Enum/ReportType.js.map +1 -1
  267. package/dist/mjs/types/Enum/StatutsSection.d.ts +1 -7
  268. package/dist/mjs/types/Enum/StatutsSection.d.ts.map +1 -1
  269. package/dist/mjs/types/Enum/StatutsSection.js +7 -15
  270. package/dist/mjs/types/Enum/StatutsSection.js.map +1 -1
  271. package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  272. package/dist/mjs/types/Enum/TaskResponseType.js +0 -33
  273. package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
  274. package/dist/mjs/types/Enum/Unit.d.ts +1 -2
  275. package/dist/mjs/types/Enum/Unit.d.ts.map +1 -1
  276. package/dist/mjs/types/Enum/Unit.js +0 -11
  277. package/dist/mjs/types/Enum/Unit.js.map +1 -1
  278. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -10
  279. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
  280. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
  281. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +0 -17
  282. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  283. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +0 -7
  284. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  285. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +0 -10
  286. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  287. package/dist/mjs/types/Interface/api/documentRequest/Query.js +2 -48
  288. package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  289. package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.d.ts.map +1 -1
  290. package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.js +0 -2
  291. package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.js.map +1 -1
  292. package/dist/mjs/types/Interface/api/report/CreateReport.d.ts +1 -3
  293. package/dist/mjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
  294. package/dist/mjs/types/Interface/api/report/CreateReport.js +2 -13
  295. package/dist/mjs/types/Interface/api/report/CreateReport.js.map +1 -1
  296. package/dist/mjs/types/Interface/api/report/QueryReports.d.ts +1 -5
  297. package/dist/mjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  298. package/dist/mjs/types/Interface/api/report/QueryReports.js +2 -24
  299. package/dist/mjs/types/Interface/api/report/QueryReports.js.map +1 -1
  300. package/dist/mjs/types/Interface/api/report/QueryReportsForLetter.d.ts +1 -1
  301. package/dist/mjs/types/Interface/api/report/QueryReportsForLetter.d.ts.map +1 -1
  302. package/dist/mjs/types/Interface/api/report/QueryReportsForLetter.js +3 -5
  303. package/dist/mjs/types/Interface/api/report/QueryReportsForLetter.js.map +1 -1
  304. package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts +6 -13
  305. package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
  306. package/dist/mjs/types/Interface/api/report/UpdateReport.js +1 -135
  307. package/dist/mjs/types/Interface/api/report/UpdateReport.js.map +1 -1
  308. package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts +9 -10
  309. package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
  310. package/dist/mjs/types/Interface/api/revenue/revenueMovement.js +12 -13
  311. package/dist/mjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
  312. package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts +3 -0
  313. package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts.map +1 -1
  314. package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.js +22 -2
  315. package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.js.map +1 -1
  316. package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts +4 -0
  317. package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts.map +1 -0
  318. package/dist/mjs/types/Interface/api/shine/{Query.js → GetConnect.js} +1 -8
  319. package/dist/mjs/types/Interface/api/shine/GetConnect.js.map +1 -0
  320. package/dist/mjs/types/Interface/models/IReport.d.ts +1 -10
  321. package/dist/mjs/types/Interface/models/IReport.d.ts.map +1 -1
  322. package/dist/mjs/types/Interface/models/IReport.js.map +1 -1
  323. package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts +0 -2
  324. package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
  325. package/dist/mjs/types/Interface/models/ISocietyApproval.js.map +1 -1
  326. package/dist/mjs/types/Interface/models/IUser.d.ts +0 -2
  327. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  328. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  329. package/dist/mjs/types/index.d.ts +1 -12
  330. package/dist/mjs/types/index.d.ts.map +1 -1
  331. package/dist/mjs/types/index.js +1 -12
  332. package/dist/mjs/types/index.js.map +1 -1
  333. package/dist/mjs/utils/checkup.d.ts +368 -12
  334. package/dist/mjs/utils/checkup.d.ts.map +1 -1
  335. package/dist/mjs/utils/checkup.js +566 -343
  336. package/dist/mjs/utils/checkup.js.map +1 -1
  337. package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
  338. package/dist/mjs/utils/commercialManagement/internationalization/choices.js +19 -21
  339. package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  340. package/dist/mjs/utils/index.d.ts +0 -1
  341. package/dist/mjs/utils/index.d.ts.map +1 -1
  342. package/dist/mjs/utils/index.js +0 -1
  343. package/dist/mjs/utils/index.js.map +1 -1
  344. package/dist/mjs/utils/vat/centuries.js +2 -2
  345. package/dist/mjs/utils/vat/centuries.js.map +1 -1
  346. package/dist/mjs/utils/vat/utils.d.ts.map +1 -1
  347. package/dist/mjs/utils/vat/utils.js +2 -5
  348. package/dist/mjs/utils/vat/utils.js.map +1 -1
  349. package/package.json +1 -1
  350. package/ts/api/resources/Checklist.ts +0 -6
  351. package/ts/api/resources/Comment.ts +2 -2
  352. package/ts/api/resources/DocumentRequest.ts +1 -9
  353. package/ts/api/resources/InternalInvoicing.ts +8 -0
  354. package/ts/api/resources/Mfa.ts +0 -6
  355. package/ts/api/resources/Report.ts +4 -19
  356. package/ts/api/resources/Shine.ts +1 -11
  357. package/ts/api/resources/Society.ts +0 -5
  358. package/ts/api/resources/User.ts +23 -0
  359. package/ts/api/resources.ts +0 -6
  360. package/ts/types/Enum/AdjustmentType.ts +4 -4
  361. package/ts/types/Enum/BalanceSheet.ts +17 -17
  362. package/ts/types/Enum/BrandPourcentage.ts +8 -8
  363. package/ts/types/Enum/Card.ts +1 -9
  364. package/ts/types/Enum/Consistency.ts +7 -7
  365. package/ts/types/Enum/DashboardBlock.ts +0 -1
  366. package/ts/types/Enum/EntityType.ts +2 -2
  367. package/ts/types/Enum/Ged.ts +271 -267
  368. package/ts/types/Enum/InformationRequestState.ts +0 -1
  369. package/ts/types/Enum/InformationRequestType.ts +6 -12
  370. package/ts/types/Enum/KilometricAllowanceScale.ts +0 -119
  371. package/ts/types/Enum/MailAuto.ts +0 -4
  372. package/ts/types/Enum/PriceGridClementine.ts +474 -487
  373. package/ts/types/Enum/Proceding.ts +0 -4
  374. package/ts/types/Enum/ReportService.ts +3 -24
  375. package/ts/types/Enum/ReportType.ts +1 -41
  376. package/ts/types/Enum/StatutsSection.ts +7 -15
  377. package/ts/types/Enum/TaskResponseType.ts +0 -33
  378. package/ts/types/Enum/Unit.ts +0 -11
  379. package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +0 -10
  380. package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +0 -18
  381. package/ts/types/Interface/api/documentRequest/Query.ts +2 -40
  382. package/ts/types/Interface/api/oldExportInfo/OldExpertInfos.ts +0 -2
  383. package/ts/types/Interface/api/report/CreateReport.ts +2 -9
  384. package/ts/types/Interface/api/report/QueryReports.ts +2 -18
  385. package/ts/types/Interface/api/report/QueryReportsForLetter.ts +2 -2
  386. package/ts/types/Interface/api/report/UpdateReport.ts +6 -85
  387. package/ts/types/Interface/api/revenue/revenueMovement.ts +9 -11
  388. package/ts/types/Interface/api/revenue/revenueSnapshotGenerate.ts +21 -2
  389. package/ts/types/Interface/api/shine/{Query.ts → GetConnect.ts} +0 -5
  390. package/ts/types/Interface/models/IReport.ts +1 -10
  391. package/ts/types/Interface/models/ISocietyApproval.ts +0 -2
  392. package/ts/types/Interface/models/IUser.ts +0 -2
  393. package/ts/types/index.ts +1 -12
  394. package/ts/utils/checkup.ts +566 -347
  395. package/ts/utils/commercialManagement/internationalization/choices.ts +19 -21
  396. package/ts/utils/index.ts +0 -1
  397. package/ts/utils/vat/centuries.ts +2 -2
  398. package/ts/utils/vat/utils.ts +2 -7
  399. package/dist/cjs/api/resources/LoginApproval.d.ts +0 -18
  400. package/dist/cjs/api/resources/LoginApproval.d.ts.map +0 -1
  401. package/dist/cjs/api/resources/LoginApproval.js +0 -20
  402. package/dist/cjs/api/resources/LoginApproval.js.map +0 -1
  403. package/dist/cjs/api/resources/ReportHistory.d.ts +0 -13
  404. package/dist/cjs/api/resources/ReportHistory.d.ts.map +0 -1
  405. package/dist/cjs/api/resources/ReportHistory.js +0 -18
  406. package/dist/cjs/api/resources/ReportHistory.js.map +0 -1
  407. package/dist/cjs/api/resources/SocietyApproval.d.ts +0 -47
  408. package/dist/cjs/api/resources/SocietyApproval.d.ts.map +0 -1
  409. package/dist/cjs/api/resources/SocietyApproval.js +0 -62
  410. package/dist/cjs/api/resources/SocietyApproval.js.map +0 -1
  411. package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts +0 -14
  412. package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
  413. package/dist/cjs/types/Enum/LoginApprovalStatus.js +0 -18
  414. package/dist/cjs/types/Enum/LoginApprovalStatus.js.map +0 -1
  415. package/dist/cjs/types/Enum/MfaMode.d.ts +0 -12
  416. package/dist/cjs/types/Enum/MfaMode.d.ts.map +0 -1
  417. package/dist/cjs/types/Enum/MfaMode.js +0 -16
  418. package/dist/cjs/types/Enum/MfaMode.js.map +0 -1
  419. package/dist/cjs/types/Enum/ReportSource.d.ts +0 -13
  420. package/dist/cjs/types/Enum/ReportSource.d.ts.map +0 -1
  421. package/dist/cjs/types/Enum/ReportSource.js +0 -29
  422. package/dist/cjs/types/Enum/ReportSource.js.map +0 -1
  423. package/dist/cjs/types/Enum/SocietyApproval.d.ts +0 -27
  424. package/dist/cjs/types/Enum/SocietyApproval.d.ts.map +0 -1
  425. package/dist/cjs/types/Enum/SocietyApproval.js +0 -205
  426. package/dist/cjs/types/Enum/SocietyApproval.js.map +0 -1
  427. package/dist/cjs/types/Interface/api/SocietyApproval.d.ts +0 -36
  428. package/dist/cjs/types/Interface/api/SocietyApproval.d.ts.map +0 -1
  429. package/dist/cjs/types/Interface/api/SocietyApproval.js +0 -153
  430. package/dist/cjs/types/Interface/api/SocietyApproval.js.map +0 -1
  431. package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +0 -4
  432. package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +0 -1
  433. package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js +0 -21
  434. package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +0 -1
  435. package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +0 -5
  436. package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +0 -1
  437. package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.js +0 -27
  438. package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.js.map +0 -1
  439. package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts +0 -66
  440. package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
  441. package/dist/cjs/types/Interface/api/authentification/loginApproval.js +0 -26
  442. package/dist/cjs/types/Interface/api/authentification/loginApproval.js.map +0 -1
  443. package/dist/cjs/types/Interface/api/reportHistory/Query.d.ts +0 -4
  444. package/dist/cjs/types/Interface/api/reportHistory/Query.d.ts.map +0 -1
  445. package/dist/cjs/types/Interface/api/reportHistory/Query.js +0 -23
  446. package/dist/cjs/types/Interface/api/reportHistory/Query.js.map +0 -1
  447. package/dist/cjs/types/Interface/api/shine/Query.d.ts +0 -7
  448. package/dist/cjs/types/Interface/api/shine/Query.d.ts.map +0 -1
  449. package/dist/cjs/types/Interface/api/shine/Query.js.map +0 -1
  450. package/dist/cjs/types/Interface/models/ILoginApproval.d.ts +0 -31
  451. package/dist/cjs/types/Interface/models/ILoginApproval.d.ts.map +0 -1
  452. package/dist/cjs/types/Interface/models/ILoginApproval.js +0 -3
  453. package/dist/cjs/types/Interface/models/ILoginApproval.js.map +0 -1
  454. package/dist/cjs/types/Interface/models/IReportHistory.d.ts +0 -19
  455. package/dist/cjs/types/Interface/models/IReportHistory.d.ts.map +0 -1
  456. package/dist/cjs/types/Interface/models/IReportHistory.js +0 -3
  457. package/dist/cjs/types/Interface/models/IReportHistory.js.map +0 -1
  458. package/dist/cjs/utils/societyApproval.d.ts +0 -38
  459. package/dist/cjs/utils/societyApproval.d.ts.map +0 -1
  460. package/dist/cjs/utils/societyApproval.js +0 -101
  461. package/dist/cjs/utils/societyApproval.js.map +0 -1
  462. package/dist/mjs/api/resources/LoginApproval.d.ts +0 -18
  463. package/dist/mjs/api/resources/LoginApproval.d.ts.map +0 -1
  464. package/dist/mjs/api/resources/LoginApproval.js +0 -16
  465. package/dist/mjs/api/resources/LoginApproval.js.map +0 -1
  466. package/dist/mjs/api/resources/ReportHistory.d.ts +0 -13
  467. package/dist/mjs/api/resources/ReportHistory.d.ts.map +0 -1
  468. package/dist/mjs/api/resources/ReportHistory.js +0 -17
  469. package/dist/mjs/api/resources/ReportHistory.js.map +0 -1
  470. package/dist/mjs/api/resources/SocietyApproval.d.ts +0 -47
  471. package/dist/mjs/api/resources/SocietyApproval.d.ts.map +0 -1
  472. package/dist/mjs/api/resources/SocietyApproval.js +0 -58
  473. package/dist/mjs/api/resources/SocietyApproval.js.map +0 -1
  474. package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts +0 -14
  475. package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
  476. package/dist/mjs/types/Enum/LoginApprovalStatus.js +0 -15
  477. package/dist/mjs/types/Enum/LoginApprovalStatus.js.map +0 -1
  478. package/dist/mjs/types/Enum/MfaMode.d.ts +0 -12
  479. package/dist/mjs/types/Enum/MfaMode.d.ts.map +0 -1
  480. package/dist/mjs/types/Enum/MfaMode.js +0 -13
  481. package/dist/mjs/types/Enum/MfaMode.js.map +0 -1
  482. package/dist/mjs/types/Enum/ReportSource.d.ts +0 -13
  483. package/dist/mjs/types/Enum/ReportSource.d.ts.map +0 -1
  484. package/dist/mjs/types/Enum/ReportSource.js +0 -26
  485. package/dist/mjs/types/Enum/ReportSource.js.map +0 -1
  486. package/dist/mjs/types/Enum/SocietyApproval.d.ts +0 -27
  487. package/dist/mjs/types/Enum/SocietyApproval.d.ts.map +0 -1
  488. package/dist/mjs/types/Enum/SocietyApproval.js +0 -202
  489. package/dist/mjs/types/Enum/SocietyApproval.js.map +0 -1
  490. package/dist/mjs/types/Interface/api/SocietyApproval.d.ts +0 -36
  491. package/dist/mjs/types/Interface/api/SocietyApproval.d.ts.map +0 -1
  492. package/dist/mjs/types/Interface/api/SocietyApproval.js +0 -167
  493. package/dist/mjs/types/Interface/api/SocietyApproval.js.map +0 -1
  494. package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +0 -4
  495. package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +0 -1
  496. package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js +0 -18
  497. package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +0 -1
  498. package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +0 -5
  499. package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +0 -1
  500. package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.js +0 -25
  501. package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.js.map +0 -1
  502. package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts +0 -66
  503. package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
  504. package/dist/mjs/types/Interface/api/authentification/loginApproval.js +0 -23
  505. package/dist/mjs/types/Interface/api/authentification/loginApproval.js.map +0 -1
  506. package/dist/mjs/types/Interface/api/reportHistory/Query.d.ts +0 -4
  507. package/dist/mjs/types/Interface/api/reportHistory/Query.d.ts.map +0 -1
  508. package/dist/mjs/types/Interface/api/reportHistory/Query.js +0 -20
  509. package/dist/mjs/types/Interface/api/reportHistory/Query.js.map +0 -1
  510. package/dist/mjs/types/Interface/api/shine/Query.d.ts +0 -7
  511. package/dist/mjs/types/Interface/api/shine/Query.d.ts.map +0 -1
  512. package/dist/mjs/types/Interface/api/shine/Query.js.map +0 -1
  513. package/dist/mjs/types/Interface/models/ILoginApproval.d.ts +0 -31
  514. package/dist/mjs/types/Interface/models/ILoginApproval.d.ts.map +0 -1
  515. package/dist/mjs/types/Interface/models/ILoginApproval.js +0 -2
  516. package/dist/mjs/types/Interface/models/ILoginApproval.js.map +0 -1
  517. package/dist/mjs/types/Interface/models/IReportHistory.d.ts +0 -19
  518. package/dist/mjs/types/Interface/models/IReportHistory.d.ts.map +0 -1
  519. package/dist/mjs/types/Interface/models/IReportHistory.js +0 -2
  520. package/dist/mjs/types/Interface/models/IReportHistory.js.map +0 -1
  521. package/dist/mjs/utils/societyApproval.d.ts +0 -38
  522. package/dist/mjs/utils/societyApproval.d.ts.map +0 -1
  523. package/dist/mjs/utils/societyApproval.js +0 -109
  524. package/dist/mjs/utils/societyApproval.js.map +0 -1
  525. package/ts/api/resources/LoginApproval.ts +0 -20
  526. package/ts/api/resources/ReportHistory.ts +0 -18
  527. package/ts/api/resources/SocietyApproval.ts +0 -75
  528. package/ts/types/Enum/LoginApprovalStatus.ts +0 -13
  529. package/ts/types/Enum/MfaMode.ts +0 -11
  530. package/ts/types/Enum/ReportSource.ts +0 -30
  531. package/ts/types/Enum/SocietyApproval.ts +0 -218
  532. package/ts/types/Interface/api/SocietyApproval.ts +0 -121
  533. package/ts/types/Interface/api/authentification/FinalizeMobileApprovalDto.ts +0 -6
  534. package/ts/types/Interface/api/authentification/SetMobileApprovalDto.ts +0 -11
  535. package/ts/types/Interface/api/authentification/loginApproval.ts +0 -75
  536. package/ts/types/Interface/api/reportHistory/Query.ts +0 -8
  537. package/ts/types/Interface/models/ILoginApproval.ts +0 -31
  538. package/ts/types/Interface/models/IReportHistory.ts +0 -22
  539. package/ts/utils/societyApproval.ts +0 -129
@@ -1,66 +0,0 @@
1
- import { LoginApprovalStatus } from '../../../Enum/LoginApprovalStatus';
2
- /**
3
- * Payload de l'événement socket envoyé au mobile lors d'une demande de connexion
4
- */
5
- export interface ILoginApprovalRequestEvent {
6
- /** ID unique de la demande */
7
- requestId: string;
8
- /** Date d'expiration */
9
- expiresAt: Date;
10
- /** ID de l'utilisateur */
11
- userId: number;
12
- /** Métadonnées (IP, navigateur, localisation) */
13
- metadata?: {
14
- ip?: string;
15
- userAgent?: string;
16
- location?: string;
17
- };
18
- }
19
- export interface IApproveOrDenyResponse {
20
- message: string;
21
- status: LoginApprovalStatus;
22
- }
23
- /**
24
- * Payload de l'événement socket envoyé au Web lors d'un changement de statut
25
- */
26
- export interface ILoginApprovalStatusEvent {
27
- /** ID de la demande */
28
- requestId: string;
29
- /** Nouveau statut */
30
- status: LoginApprovalStatus;
31
- /** Date de la transition */
32
- timestamp: Date;
33
- }
34
- /**
35
- * Réponse renvoyée au Web lorsque mobile MFA est requis
36
- */
37
- export interface ILoginApprovalResponse {
38
- /** Indique qu'une validation mobile est nécessaire */
39
- requiresMobileApproval: true;
40
- /** ID de la demande pour polling/tracking */
41
- requestId: string;
42
- /** Date d'expiration de la demande */
43
- expiresAt: Date;
44
- /** ID utilisateur */
45
- userId: number;
46
- }
47
- /**
48
- * Réponse du statut d'une demande d'approbation
49
- */
50
- export interface ILoginApprovalStatusResponse {
51
- /** ID de la demande */
52
- requestId: string;
53
- /** Statut actuel */
54
- status: LoginApprovalStatus;
55
- /** Date d'expiration */
56
- expiresAt: Date;
57
- /** Token JWT si status = approved */
58
- token?: string;
59
- }
60
- /**
61
- * DTO pour approuver/refuser une demande depuis le mobile
62
- */
63
- export declare class IApproveOrDenyRequest {
64
- deviceId: string;
65
- }
66
- //# sourceMappingURL=loginApproval.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loginApproval.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/loginApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAIxE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,wBAAwB;IACxB,SAAS,EAAE,IAAI,CAAC;IAChB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,QAAQ,CAAC,EAAE;QACT,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,uBAAuB;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,4BAA4B;IAC5B,SAAS,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,sDAAsD;IACtD,sBAAsB,EAAE,IAAI,CAAC;IAC7B,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,SAAS,EAAE,IAAI,CAAC;IAChB,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,uBAAuB;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,wBAAwB;IACxB,SAAS,EAAE,IAAI,CAAC;IAChB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,qBAAqB;IAGhC,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,23 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { IsString } from 'class-validator';
11
- import { ApiProperty } from '../../../../';
12
- /**
13
- * DTO pour approuver/refuser une demande depuis le mobile
14
- */
15
- export class IApproveOrDenyRequest {
16
- deviceId;
17
- }
18
- __decorate([
19
- ApiProperty(),
20
- IsString(),
21
- __metadata("design:type", String)
22
- ], IApproveOrDenyRequest.prototype, "deviceId", void 0);
23
- //# sourceMappingURL=loginApproval.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loginApproval.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/loginApproval.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAiE3C;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAGhC,QAAQ,CAAS;CAClB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACM","sourcesContent":["import { LoginApprovalStatus } from '../../../Enum/LoginApprovalStatus';\nimport { IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../';\n\n/**\n * Payload de l'événement socket envoyé au mobile lors d'une demande de connexion\n */\nexport interface ILoginApprovalRequestEvent {\n /** ID unique de la demande */\n requestId: string;\n /** Date d'expiration */\n expiresAt: Date;\n /** ID de l'utilisateur */\n userId: number;\n /** Métadonnées (IP, navigateur, localisation) */\n metadata?: {\n ip?: string;\n userAgent?: string;\n location?: string;\n };\n}\n\nexport interface IApproveOrDenyResponse {\n message: string;\n status: LoginApprovalStatus;\n}\n\n/**\n * Payload de l'événement socket envoyé au Web lors d'un changement de statut\n */\nexport interface ILoginApprovalStatusEvent {\n /** ID de la demande */\n requestId: string;\n /** Nouveau statut */\n status: LoginApprovalStatus;\n /** Date de la transition */\n timestamp: Date;\n}\n\n/**\n * Réponse renvoyée au Web lorsque mobile MFA est requis\n */\nexport interface ILoginApprovalResponse {\n /** Indique qu'une validation mobile est nécessaire */\n requiresMobileApproval: true;\n /** ID de la demande pour polling/tracking */\n requestId: string;\n /** Date d'expiration de la demande */\n expiresAt: Date;\n /** ID utilisateur */\n userId: number;\n}\n\n/**\n * Réponse du statut d'une demande d'approbation\n */\nexport interface ILoginApprovalStatusResponse {\n /** ID de la demande */\n requestId: string;\n /** Statut actuel */\n status: LoginApprovalStatus;\n /** Date d'expiration */\n expiresAt: Date;\n /** Token JWT si status = approved */\n token?: string;\n}\n\n/**\n * DTO pour approuver/refuser une demande depuis le mobile\n */\nexport class IApproveOrDenyRequest {\n @ApiProperty()\n @IsString()\n deviceId: string;\n}\n"]}
@@ -1,4 +0,0 @@
1
- export declare class QueryAllReportHistory {
2
- idReport: number;
3
- }
4
- //# sourceMappingURL=Query.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/reportHistory/Query.ts"],"names":[],"mappings":"AAGA,qBAAa,qBAAqB;IAGhC,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,20 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { IsInt } from 'class-validator';
11
- import { ApiProperty } from '../../../../utils';
12
- export class QueryAllReportHistory {
13
- idReport;
14
- }
15
- __decorate([
16
- ApiProperty(),
17
- IsInt(),
18
- __metadata("design:type", Number)
19
- ], QueryAllReportHistory.prototype, "idReport", void 0);
20
- //# sourceMappingURL=Query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/reportHistory/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,qBAAqB;IAGhC,QAAQ,CAAS;CAClB;AADC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;uDACS","sourcesContent":["import { IsInt } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class QueryAllReportHistory {\n @ApiProperty()\n @IsInt()\n idReport: number;\n}\n"]}
@@ -1,7 +0,0 @@
1
- export declare class GetConnect {
2
- code: string;
3
- }
4
- export declare class GetRefreshConnect {
5
- idBankConnection: number;
6
- }
7
- //# sourceMappingURL=Query.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/Query.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IAErB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,iBAAiB;IAE5B,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,UAAU;IAErB,IAAI,CAAS;CACd;AADC;IADC,WAAW,EAAE;;wCACD;AAGf,MAAM,OAAO,iBAAiB;IAE5B,gBAAgB,CAAS;CAC1B;AADC;IADC,WAAW,EAAE;;2DACW","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class GetConnect {\n @ApiProperty()\n code: string;\n}\n\nexport class GetRefreshConnect {\n @ApiProperty()\n idBankConnection: number;\n}\n"]}
@@ -1,31 +0,0 @@
1
- import { LoginApprovalStatus } from '../../Enum/LoginApprovalStatus';
2
- /**
3
- * Interface représentant une demande d'approbation de connexion mobile
4
- */
5
- export interface ILoginApproval {
6
- /** Identifiant unique (UUID) */
7
- id: string;
8
- /** ID de l'utilisateur demandant la connexion */
9
- idUser: number;
10
- /** Statut actuel de la demande */
11
- status: LoginApprovalStatus;
12
- /** Date d'expiration de la demande (généralement 2-3 min après création) */
13
- expiresAt: Date;
14
- /** Date d'approbation (si status = approved) */
15
- approvedAt?: Date;
16
- /** Date de refus (si status = denied) */
17
- deniedAt?: Date;
18
- /** Device ID du mobile ayant approuvé/refusé */
19
- deviceIdUsed?: string;
20
- /** IP de la connexion Web à l'origine de la demande */
21
- ip?: string;
22
- /** User-Agent du navigateur Web */
23
- userAgent?: string;
24
- /** Métadonnées additionnelles (géoloc, risk score, etc.) */
25
- metadata?: Record<string, any>;
26
- /** Date de création */
27
- createdAt: Date;
28
- /** Date de mise à jour */
29
- updatedAt: Date;
30
- }
31
- //# sourceMappingURL=ILoginApproval.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ILoginApproval.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoginApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,4EAA4E;IAC5E,SAAS,EAAE,IAAI,CAAC;IAChB,gDAAgD;IAChD,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,uBAAuB;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,0BAA0B;IAC1B,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ILoginApproval.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ILoginApproval.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoginApproval.ts"],"names":[],"mappings":"","sourcesContent":["import { LoginApprovalStatus } from '../../Enum/LoginApprovalStatus';\n\n/**\n * Interface représentant une demande d'approbation de connexion mobile\n */\nexport interface ILoginApproval {\n /** Identifiant unique (UUID) */\n id: string;\n /** ID de l'utilisateur demandant la connexion */\n idUser: number;\n /** Statut actuel de la demande */\n status: LoginApprovalStatus;\n /** Date d'expiration de la demande (généralement 2-3 min après création) */\n expiresAt: Date;\n /** Date d'approbation (si status = approved) */\n approvedAt?: Date;\n /** Date de refus (si status = denied) */\n deniedAt?: Date;\n /** Device ID du mobile ayant approuvé/refusé */\n deviceIdUsed?: string;\n /** IP de la connexion Web à l'origine de la demande */\n ip?: string;\n /** User-Agent du navigateur Web */\n userAgent?: string;\n /** Métadonnées additionnelles (géoloc, risk score, etc.) */\n metadata?: Record<string, any>;\n /** Date de création */\n createdAt: Date;\n /** Date de mise à jour */\n updatedAt: Date;\n}\n"]}
@@ -1,19 +0,0 @@
1
- import { ReportTypeEnum } from '../../Enum/ReportType';
2
- import { IReport } from './IReport';
3
- import { IUser } from './IUser';
4
- export interface IReportHistory {
5
- id?: number;
6
- idSource?: number | null;
7
- idReportType?: ReportTypeEnum[] | null;
8
- state?: number | null;
9
- idUserConcerned?: number | null;
10
- idServiceConcerned?: number | null;
11
- idReport?: number;
12
- idUser?: number | null;
13
- createdAt?: Date | null;
14
- updatedAt?: Date | null;
15
- userConcerned?: IUser;
16
- report?: IReport;
17
- user?: IUser;
18
- }
19
- //# sourceMappingURL=IReportHistory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IReportHistory.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReportHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IReportHistory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IReportHistory.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReportHistory.ts"],"names":[],"mappings":"","sourcesContent":["import { ReportTypeEnum } from '../../Enum/ReportType';\nimport { IReport } from './IReport';\nimport { IUser } from './IUser';\n\n// reportHistory\nexport interface IReportHistory {\n id?: number;\n idSource?: number | null;\n idReportType?: ReportTypeEnum[] | null;\n state?: number | null;\n idUserConcerned?: number | null;\n idServiceConcerned?: number | null;\n idReport?: number;\n idUser?: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n userConcerned?: IUser;\n report?: IReport;\n user?: IUser;\n}\n"]}
@@ -1,38 +0,0 @@
1
- import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
2
- import { SocietyApprovalDocumentType, SocietyApprovalDocumentConfig, SocietyApprovalDocumentTemplate } from '../types/Enum/SocietyApproval';
3
- import { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';
4
- /**
5
- * Récupère le nom de la forme juridique
6
- * @param idLegalForm - L'identifiant de la forme juridique
7
- * @param fallback - Valeur par défaut si non trouvée
8
- * @returns Le nom de la forme juridique
9
- */
10
- export declare function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback?: string): string;
11
- /**
12
- * Récupère la configuration des documents d'approbation pour une forme juridique donnée
13
- * @param idLegalForm - L'identifiant de la forme juridique
14
- * @returns La configuration des documents ou undefined si non trouvée
15
- */
16
- export declare function getApprovalDocumentsByLegalForm(idLegalForm: LegalFormTypeEnum): SocietyApprovalDocumentConfig | undefined;
17
- /**
18
- * Récupère le nom du template pour un document spécifique et une forme juridique
19
- * @param idLegalForm - L'identifiant de la forme juridique
20
- * @param idDocumentType - Le type de document d'approbation
21
- * @returns Le nom du template ou undefined si non trouvé
22
- */
23
- export declare function getApprovalDocumentTemplateName(idLegalForm: LegalFormTypeEnum, idDocumentType: SocietyApprovalDocumentType): string | undefined;
24
- /**
25
- * Récupère le nom du template pour un document spécifique et une forme juridique
26
- * @param idLegalForm - L'identifiant de la forme juridique
27
- * @param idDocumentType - Le type de document d'approbation
28
- * @returns Le nom du template ou undefined si non trouvé
29
- */
30
- export declare function getApprovalDocumentInfos(idLegalForm: LegalFormTypeEnum, idDocumentType: SocietyApprovalDocumentType): SocietyApprovalDocumentTemplate | undefined;
31
- /**
32
- * Construit les données formatées pour le template d'approbation
33
- * @param existingApproval - Les données d'approbation de la société
34
- * @param style - Le style HTML pour le document
35
- * @returns L'objet de données formaté pour le template
36
- */
37
- export declare function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any>;
38
- //# sourceMappingURL=societyApproval.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"societyApproval.d.ts","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAE7B,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAO9E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,EAAE,QAAQ,GAAE,MAAW,GAAG,MAAM,CAE9F;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,GAC7B,6BAA6B,GAAG,SAAS,CAE3C;AAED;;;;;GAKG;AAEH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,MAAM,GAAG,SAAS,CAIpB;AAYD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,+BAA+B,GAAG,SAAS,CAG7C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+ChH"}
@@ -1,109 +0,0 @@
1
- import { LegalForm } from '../types/Enum/LegalForm';
2
- import { SocietyApprovalDocumentsByLegalForm, } from '../types/Enum/SocietyApproval';
3
- import { QualityList } from '../types/Enum/Quality';
4
- import { getBrand } from './brands';
5
- import { convertNumberToLetter } from './amount';
6
- import * as dayjs from 'dayjs';
7
- import { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';
8
- /**
9
- * Récupère le nom de la forme juridique
10
- * @param idLegalForm - L'identifiant de la forme juridique
11
- * @param fallback - Valeur par défaut si non trouvée
12
- * @returns Le nom de la forme juridique
13
- */
14
- export function getLegalFormName(idLegalForm, fallback = '') {
15
- return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;
16
- }
17
- /**
18
- * Récupère la configuration des documents d'approbation pour une forme juridique donnée
19
- * @param idLegalForm - L'identifiant de la forme juridique
20
- * @returns La configuration des documents ou undefined si non trouvée
21
- */
22
- export function getApprovalDocumentsByLegalForm(idLegalForm) {
23
- return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);
24
- }
25
- /**
26
- * Récupère le nom du template pour un document spécifique et une forme juridique
27
- * @param idLegalForm - L'identifiant de la forme juridique
28
- * @param idDocumentType - Le type de document d'approbation
29
- * @returns Le nom du template ou undefined si non trouvé
30
- */
31
- //@deprecated use getApprovalDocumentInfos instead
32
- export function getApprovalDocumentTemplateName(idLegalForm, idDocumentType) {
33
- const config = getApprovalDocumentsByLegalForm(idLegalForm);
34
- const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
35
- return document?.templateName;
36
- }
37
- /**
38
- * Récupère le texte de la ville du greffe
39
- * @param idCityOfGreffe - L'identifiant de la ville du greffe
40
- * @returns Le texte de la ville ou une chaîne vide
41
- */
42
- function getCityOfGreffeName(idCityOfGreffe) {
43
- if (!idCityOfGreffe)
44
- return '';
45
- return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';
46
- }
47
- /**
48
- * Récupère le nom du template pour un document spécifique et une forme juridique
49
- * @param idLegalForm - L'identifiant de la forme juridique
50
- * @param idDocumentType - Le type de document d'approbation
51
- * @returns Le nom du template ou undefined si non trouvé
52
- */
53
- export function getApprovalDocumentInfos(idLegalForm, idDocumentType) {
54
- const config = getApprovalDocumentsByLegalForm(idLegalForm);
55
- return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
56
- }
57
- /**
58
- * Construit les données formatées pour le template d'approbation
59
- * @param existingApproval - Les données d'approbation de la société
60
- * @param style - Le style HTML pour le document
61
- * @returns L'objet de données formaté pour le template
62
- */
63
- export function buildApprovalTemplateData(existingApproval, style) {
64
- const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();
65
- const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;
66
- const brand = getBrand();
67
- return {
68
- // Variables globales
69
- style,
70
- yearInText,
71
- dayAndMonthInText,
72
- date: dayjs().locale('fr').format('DD MMMM YYYY'),
73
- companyInformation: {
74
- rcs: brand?.companyInformation?.rcs,
75
- nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,
76
- city: brand?.companyInformation?.city,
77
- postalAddress: brand?.companyInformation?.postalAddress,
78
- montantCapital: brand?.companyInformation?.montantCapital,
79
- statut: brand?.companyInformation?.statut,
80
- ECOrderCity: brand?.companyInformation?.ECOrderCity,
81
- },
82
- owner: {
83
- identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,
84
- quality: QualityList.find((ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality)?.label,
85
- },
86
- // Variables stockées en base
87
- ...existingApproval,
88
- generatingDatas: {
89
- ...existingApproval?.generatingDatas,
90
- ...(existingApproval?.generatingDatas?.approvalDate
91
- ? {
92
- approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)
93
- .locale('fr')
94
- .format('DD MMMM YYYY')
95
- .toUpperCase(),
96
- }
97
- : {}),
98
- },
99
- exercice: {
100
- ...existingApproval?.exercice,
101
- society: {
102
- ...existingApproval?.exercice?.society,
103
- cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),
104
- },
105
- endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),
106
- },
107
- };
108
- }
109
- //# sourceMappingURL=societyApproval.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"societyApproval.js","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"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","sourcesContent":["import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n SocietyApprovalDocumentTemplate,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\nimport { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';\n\n/**\n * Récupère le nom de la forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param fallback - Valeur par défaut si non trouvée\n * @returns Le nom de la forme juridique\n */\nexport function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {\n return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;\n}\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\n//@deprecated use getApprovalDocumentInfos instead\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Récupère le texte de la ville du greffe\n * @param idCityOfGreffe - L'identifiant de la ville du greffe\n * @returns Le texte de la ville ou une chaîne vide\n */\nfunction getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {\n if (!idCityOfGreffe) return '';\n return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentInfos(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): SocietyApprovalDocumentTemplate | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;\n const brand = getBrand();\n return {\n // Variables globales\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: brand?.companyInformation?.rcs,\n nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,\n city: brand?.companyInformation?.city,\n postalAddress: brand?.companyInformation?.postalAddress,\n montantCapital: brand?.companyInformation?.montantCapital,\n statut: brand?.companyInformation?.statut,\n ECOrderCity: brand?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n society: {\n ...existingApproval?.exercice?.society,\n cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),\n },\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),\n },\n };\n}\n"]}
@@ -1,20 +0,0 @@
1
- import { Resource } from '../Resource';
2
- import { ILoginApprovalStatusResponse } from '../../types/Interface/api/authentification/loginApproval';
3
-
4
- export class LoginApproval extends Resource {
5
- approve(requestId: string, deviceId: string): Promise<{ message: string; status: string }> {
6
- return this.axios.$post(`/auth/approvals/${requestId}/approve`, { deviceId });
7
- }
8
-
9
- deny(requestId: string, deviceId: string): Promise<{ message: string; status: string }> {
10
- return this.axios.$post(`/auth/approvals/${requestId}/deny`, { deviceId });
11
- }
12
-
13
- getStatus(requestId: string): Promise<ILoginApprovalStatusResponse> {
14
- return this.axios.$get(`/auth/approvals/${requestId}/status`);
15
- }
16
-
17
- cleanup(): Promise<{ deleted: number; message: string }> {
18
- return this.axios.$post('/auth/approvals/cleanup');
19
- }
20
- }
@@ -1,18 +0,0 @@
1
- import { IReportHistory, QueryAllReportHistory } from '../../types';
2
- import { Resource } from '../Resource';
3
-
4
- export class ReportHistory extends Resource {
5
- /**
6
- * Report Message Get All
7
- * @param { QueryAllReportHistory } params
8
- * @param { CancelToken } cancelToken
9
- * @param { AbortSignal } signal
10
- * @returns { Promise<IReportHistory[]> }
11
- */
12
- getAll(params: QueryAllReportHistory, signal?: AbortSignal): Promise<IReportHistory[]> {
13
- return this.axios.$get('/report-history/all', {
14
- params,
15
- ...(signal ? { signal } : {}),
16
- });
17
- }
18
- }
@@ -1,75 +0,0 @@
1
- import { Resource } from '../Resource';
2
- import {
3
- ISocietyApproval,
4
- CreateDocument,
5
- ReadLibraryFile,
6
- ResetDocument,
7
- IDocumentSection,
8
- IApprovalGeneratingData,
9
- } from '../../types';
10
-
11
- export class SocietyApproval extends Resource {
12
- /**
13
- * Get society approval data for a given exercice
14
- * @param idExercice - The exercice ID
15
- * @returns Society approval with all needed data
16
- */
17
- get(idExercice: number): Promise<ISocietyApproval> {
18
- return this.axios.$get(`/exercices/${idExercice}/approvals`);
19
- }
20
-
21
- /**
22
- * Get approval data needed for PDF generation
23
- * Retrieves all necessary information before generating a PDF document
24
- * @param idExercice - The exercice ID
25
- * @returns Approval data with template data for PDF generation
26
- */
27
- getGeneratingData(idExercice: number): Promise<IApprovalGeneratingData> {
28
- return this.axios.$get(`/exercices/${idExercice}/approvals/generating-data`);
29
- }
30
-
31
- /**
32
- * Create or update society approval
33
- * @param idExercice - The exercice ID
34
- * @param payload - The approval data
35
- * @returns Updated or created society approval
36
- */
37
- updateOrCreate(idExercice: number, payload: ISocietyApproval): Promise<ISocietyApproval> {
38
- return this.axios.$post(`/exercices/${idExercice}/approvals`, payload);
39
- }
40
-
41
- /**
42
- * Generate approval PDF document
43
- * @param idExercice - The exercice ID
44
- * @param payload - The document type(s) to generate
45
- * @returns PDF file as blob
46
- */
47
- generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile> {
48
- return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
49
- }
50
-
51
- /**
52
- * Reset document section by regenerating from original template
53
- * @param idExercice - The exercice ID
54
- * @param idDocumentSection - The documentSection ID to reset
55
- * @param payload - The document type for template selection
56
- * @returns Updated documentSection with new content from template
57
- */
58
- resetDocument(idExercice: number, idDocumentSection: number, payload: ResetDocument): Promise<IDocumentSection> {
59
- return this.axios.$put(`/exercices/${idExercice}/document-sections/${idDocumentSection}/reset`, payload);
60
- }
61
-
62
- /**
63
- * Regenerate PDF document from existing documentSection HTML content
64
- * @param idExercice - The exercice ID
65
- * @param idDocumentSection - The documentSection ID containing HTML content
66
- * @returns PDF file as buffer for download
67
- */
68
- regeneratePdf(idExercice: number, idDocumentSection: number): Promise<Buffer> {
69
- return this.axios.$post(
70
- `/exercices/${idExercice}/approvals/pdf/regenerate`,
71
- { idDocumentSection },
72
- { responseType: 'arraybuffer' },
73
- );
74
- }
75
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Statuts possibles d'une demande d'approbation de connexion mobile
3
- */
4
- export enum LoginApprovalStatus {
5
- /** En attente de validation par le mobile */
6
- PENDING = 'pending',
7
- /** Approuvée par l'utilisateur sur son mobile */
8
- APPROVED = 'approved',
9
- /** Refusée par l'utilisateur sur son mobile */
10
- DENIED = 'denied',
11
- /** Expirée (timeout dépassé sans action) */
12
- EXPIRED = 'expired',
13
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Modes de double authentification disponibles
3
- */
4
- export enum MfaMode {
5
- /** Pas de MFA activée */
6
- NONE = 'none',
7
- /** Authentification via code TOTP (Google Authenticator, etc.) */
8
- TOTP = 'totp',
9
- /** Validation via notification sur l'application mobile */
10
- MOBILE_APPROVAL = 'mobile_approval',
11
- }
@@ -1,30 +0,0 @@
1
- export enum ReportSource {
2
- LETTER = 1,
3
- MAIL = 2,
4
- INTERNAL = 3,
5
- CLIENT = 4,
6
- }
7
-
8
- interface ReportSourceInterface {
9
- id: ReportSource;
10
- name: string;
11
- }
12
-
13
- export const ReportSourceDetails: ReportSourceInterface[] = [
14
- {
15
- id: ReportSource.LETTER,
16
- name: 'Courrier',
17
- },
18
- {
19
- id: ReportSource.MAIL,
20
- name: 'Mail',
21
- },
22
- {
23
- id: ReportSource.INTERNAL,
24
- name: 'Interne',
25
- },
26
- {
27
- id: ReportSource.CLIENT,
28
- name: 'Client',
29
- },
30
- ];