@silexpert/core 1.3.192 → 1.3.193-2

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 (419) 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/DocumentRequest.d.ts +1 -3
  6. package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/DocumentRequest.js +0 -6
  8. package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
  9. package/dist/cjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/InternalInvoicing.js +8 -0
  11. package/dist/cjs/api/resources/InternalInvoicing.js.map +1 -1
  12. package/dist/cjs/api/resources/Mfa.d.ts +0 -1
  13. package/dist/cjs/api/resources/Mfa.d.ts.map +1 -1
  14. package/dist/cjs/api/resources/Mfa.js +0 -4
  15. package/dist/cjs/api/resources/Mfa.js.map +1 -1
  16. package/dist/cjs/api/resources/Shine.d.ts +1 -2
  17. package/dist/cjs/api/resources/Shine.d.ts.map +1 -1
  18. package/dist/cjs/api/resources/Shine.js +0 -3
  19. package/dist/cjs/api/resources/Shine.js.map +1 -1
  20. package/dist/cjs/api/resources/Society.d.ts +1 -2
  21. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  22. package/dist/cjs/api/resources/Society.js +0 -3
  23. package/dist/cjs/api/resources/Society.js.map +1 -1
  24. package/dist/cjs/api/resources/User.d.ts +6 -1
  25. package/dist/cjs/api/resources/User.d.ts.map +1 -1
  26. package/dist/cjs/api/resources/User.js +15 -0
  27. package/dist/cjs/api/resources/User.js.map +1 -1
  28. package/dist/cjs/api/resources.d.ts +0 -4
  29. package/dist/cjs/api/resources.d.ts.map +1 -1
  30. package/dist/cjs/api/resources.js +0 -4
  31. package/dist/cjs/api/resources.js.map +1 -1
  32. package/dist/cjs/types/Enum/AdjustmentType.js +4 -4
  33. package/dist/cjs/types/Enum/AdjustmentType.js.map +1 -1
  34. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  35. package/dist/cjs/types/Enum/BalanceSheet.js +6 -6
  36. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  37. package/dist/cjs/types/Enum/BrandPourcentage.js +8 -8
  38. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  39. package/dist/cjs/types/Enum/Card.d.ts +1 -7
  40. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  41. package/dist/cjs/types/Enum/Card.js +1 -9
  42. package/dist/cjs/types/Enum/Card.js.map +1 -1
  43. package/dist/cjs/types/Enum/Consistency.d.ts +1 -1
  44. package/dist/cjs/types/Enum/Consistency.js +7 -7
  45. package/dist/cjs/types/Enum/Consistency.js.map +1 -1
  46. package/dist/cjs/types/Enum/DashboardBlock.d.ts +1 -2
  47. package/dist/cjs/types/Enum/DashboardBlock.d.ts.map +1 -1
  48. package/dist/cjs/types/Enum/DashboardBlock.js +0 -1
  49. package/dist/cjs/types/Enum/DashboardBlock.js.map +1 -1
  50. package/dist/cjs/types/Enum/EntityType.d.ts +2 -2
  51. package/dist/cjs/types/Enum/EntityType.js +2 -2
  52. package/dist/cjs/types/Enum/EntityType.js.map +1 -1
  53. package/dist/cjs/types/Enum/Ged.d.ts +3 -9
  54. package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
  55. package/dist/cjs/types/Enum/Ged.js +56 -163
  56. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  57. package/dist/cjs/types/Enum/InformationRequestState.d.ts +1 -2
  58. package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +1 -1
  59. package/dist/cjs/types/Enum/InformationRequestState.js +0 -1
  60. package/dist/cjs/types/Enum/InformationRequestState.js.map +1 -1
  61. package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +1 -1
  62. package/dist/cjs/types/Enum/InformationRequestType.js +6 -12
  63. package/dist/cjs/types/Enum/InformationRequestType.js.map +1 -1
  64. package/dist/cjs/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
  65. package/dist/cjs/types/Enum/KilometricAllowanceScale.js +0 -119
  66. package/dist/cjs/types/Enum/KilometricAllowanceScale.js.map +1 -1
  67. package/dist/cjs/types/Enum/MailAuto.d.ts +1 -5
  68. package/dist/cjs/types/Enum/MailAuto.d.ts.map +1 -1
  69. package/dist/cjs/types/Enum/MailAuto.js +0 -4
  70. package/dist/cjs/types/Enum/MailAuto.js.map +1 -1
  71. package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  72. package/dist/cjs/types/Enum/PriceGridClementine.js +478 -482
  73. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  74. package/dist/cjs/types/Enum/Proceding.d.ts +0 -4
  75. package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
  76. package/dist/cjs/types/Enum/Proceding.js +0 -4
  77. package/dist/cjs/types/Enum/Proceding.js.map +1 -1
  78. package/dist/cjs/types/Enum/StatutsSection.d.ts +1 -7
  79. package/dist/cjs/types/Enum/StatutsSection.d.ts.map +1 -1
  80. package/dist/cjs/types/Enum/StatutsSection.js +7 -15
  81. package/dist/cjs/types/Enum/StatutsSection.js.map +1 -1
  82. package/dist/cjs/types/Enum/Unit.d.ts +1 -2
  83. package/dist/cjs/types/Enum/Unit.d.ts.map +1 -1
  84. package/dist/cjs/types/Enum/Unit.js +0 -11
  85. package/dist/cjs/types/Enum/Unit.js.map +1 -1
  86. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -10
  87. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
  88. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
  89. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +0 -17
  90. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  91. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +1 -4
  92. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  93. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +0 -10
  94. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  95. package/dist/cjs/types/Interface/api/documentRequest/Query.js +1 -43
  96. package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  97. package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.d.ts.map +1 -1
  98. package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.js +0 -2
  99. package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.js.map +1 -1
  100. package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts +9 -10
  101. package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
  102. package/dist/cjs/types/Interface/api/revenue/revenueMovement.js +15 -16
  103. package/dist/cjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
  104. package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts +3 -0
  105. package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts.map +1 -1
  106. package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.js +14 -1
  107. package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.js.map +1 -1
  108. package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts +4 -0
  109. package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts.map +1 -0
  110. package/dist/cjs/types/Interface/api/shine/{Query.js → GetConnect.js} +2 -9
  111. package/dist/cjs/types/Interface/api/shine/GetConnect.js.map +1 -0
  112. package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts +0 -2
  113. package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
  114. package/dist/cjs/types/Interface/models/ISocietyApproval.js.map +1 -1
  115. package/dist/cjs/types/Interface/models/IUser.d.ts +0 -2
  116. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  117. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  118. package/dist/cjs/types/index.d.ts +1 -9
  119. package/dist/cjs/types/index.d.ts.map +1 -1
  120. package/dist/cjs/types/index.js +1 -9
  121. package/dist/cjs/types/index.js.map +1 -1
  122. package/dist/cjs/utils/checkup.d.ts +368 -12
  123. package/dist/cjs/utils/checkup.d.ts.map +1 -1
  124. package/dist/cjs/utils/checkup.js +565 -342
  125. package/dist/cjs/utils/checkup.js.map +1 -1
  126. package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
  127. package/dist/cjs/utils/commercialManagement/internationalization/choices.js +19 -21
  128. package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  129. package/dist/cjs/utils/index.d.ts +0 -1
  130. package/dist/cjs/utils/index.d.ts.map +1 -1
  131. package/dist/cjs/utils/index.js +0 -1
  132. package/dist/cjs/utils/index.js.map +1 -1
  133. package/dist/cjs/utils/vat/centuries.js +2 -2
  134. package/dist/cjs/utils/vat/centuries.js.map +1 -1
  135. package/dist/cjs/utils/vat/utils.d.ts.map +1 -1
  136. package/dist/cjs/utils/vat/utils.js +2 -5
  137. package/dist/cjs/utils/vat/utils.js.map +1 -1
  138. package/dist/mjs/api/resources/Checklist.d.ts +0 -6
  139. package/dist/mjs/api/resources/Checklist.d.ts.map +1 -1
  140. package/dist/mjs/api/resources/Checklist.js +0 -6
  141. package/dist/mjs/api/resources/Checklist.js.map +1 -1
  142. package/dist/mjs/api/resources/DocumentRequest.d.ts +1 -3
  143. package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
  144. package/dist/mjs/api/resources/DocumentRequest.js +0 -6
  145. package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
  146. package/dist/mjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  147. package/dist/mjs/api/resources/InternalInvoicing.js +8 -0
  148. package/dist/mjs/api/resources/InternalInvoicing.js.map +1 -1
  149. package/dist/mjs/api/resources/Mfa.d.ts +0 -1
  150. package/dist/mjs/api/resources/Mfa.d.ts.map +1 -1
  151. package/dist/mjs/api/resources/Mfa.js +0 -4
  152. package/dist/mjs/api/resources/Mfa.js.map +1 -1
  153. package/dist/mjs/api/resources/Shine.d.ts +1 -2
  154. package/dist/mjs/api/resources/Shine.d.ts.map +1 -1
  155. package/dist/mjs/api/resources/Shine.js +0 -3
  156. package/dist/mjs/api/resources/Shine.js.map +1 -1
  157. package/dist/mjs/api/resources/Society.d.ts +1 -2
  158. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  159. package/dist/mjs/api/resources/Society.js +0 -3
  160. package/dist/mjs/api/resources/Society.js.map +1 -1
  161. package/dist/mjs/api/resources/User.d.ts +6 -1
  162. package/dist/mjs/api/resources/User.d.ts.map +1 -1
  163. package/dist/mjs/api/resources/User.js +15 -0
  164. package/dist/mjs/api/resources/User.js.map +1 -1
  165. package/dist/mjs/api/resources.d.ts +0 -4
  166. package/dist/mjs/api/resources.d.ts.map +1 -1
  167. package/dist/mjs/api/resources.js +0 -4
  168. package/dist/mjs/api/resources.js.map +1 -1
  169. package/dist/mjs/types/Enum/AdjustmentType.js +4 -4
  170. package/dist/mjs/types/Enum/AdjustmentType.js.map +1 -1
  171. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  172. package/dist/mjs/types/Enum/BalanceSheet.js +6 -6
  173. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  174. package/dist/mjs/types/Enum/BrandPourcentage.js +8 -8
  175. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  176. package/dist/mjs/types/Enum/Card.d.ts +1 -7
  177. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  178. package/dist/mjs/types/Enum/Card.js +1 -9
  179. package/dist/mjs/types/Enum/Card.js.map +1 -1
  180. package/dist/mjs/types/Enum/Consistency.d.ts +1 -1
  181. package/dist/mjs/types/Enum/Consistency.js +7 -7
  182. package/dist/mjs/types/Enum/Consistency.js.map +1 -1
  183. package/dist/mjs/types/Enum/DashboardBlock.d.ts +1 -2
  184. package/dist/mjs/types/Enum/DashboardBlock.d.ts.map +1 -1
  185. package/dist/mjs/types/Enum/DashboardBlock.js +0 -1
  186. package/dist/mjs/types/Enum/DashboardBlock.js.map +1 -1
  187. package/dist/mjs/types/Enum/EntityType.d.ts +2 -2
  188. package/dist/mjs/types/Enum/EntityType.js +2 -2
  189. package/dist/mjs/types/Enum/EntityType.js.map +1 -1
  190. package/dist/mjs/types/Enum/Ged.d.ts +3 -9
  191. package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
  192. package/dist/mjs/types/Enum/Ged.js +56 -163
  193. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  194. package/dist/mjs/types/Enum/InformationRequestState.d.ts +1 -2
  195. package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +1 -1
  196. package/dist/mjs/types/Enum/InformationRequestState.js +0 -1
  197. package/dist/mjs/types/Enum/InformationRequestState.js.map +1 -1
  198. package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +1 -1
  199. package/dist/mjs/types/Enum/InformationRequestType.js +6 -12
  200. package/dist/mjs/types/Enum/InformationRequestType.js.map +1 -1
  201. package/dist/mjs/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
  202. package/dist/mjs/types/Enum/KilometricAllowanceScale.js +0 -119
  203. package/dist/mjs/types/Enum/KilometricAllowanceScale.js.map +1 -1
  204. package/dist/mjs/types/Enum/MailAuto.d.ts +1 -5
  205. package/dist/mjs/types/Enum/MailAuto.d.ts.map +1 -1
  206. package/dist/mjs/types/Enum/MailAuto.js +0 -4
  207. package/dist/mjs/types/Enum/MailAuto.js.map +1 -1
  208. package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  209. package/dist/mjs/types/Enum/PriceGridClementine.js +474 -486
  210. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  211. package/dist/mjs/types/Enum/Proceding.d.ts +0 -4
  212. package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
  213. package/dist/mjs/types/Enum/Proceding.js +0 -4
  214. package/dist/mjs/types/Enum/Proceding.js.map +1 -1
  215. package/dist/mjs/types/Enum/StatutsSection.d.ts +1 -7
  216. package/dist/mjs/types/Enum/StatutsSection.d.ts.map +1 -1
  217. package/dist/mjs/types/Enum/StatutsSection.js +7 -15
  218. package/dist/mjs/types/Enum/StatutsSection.js.map +1 -1
  219. package/dist/mjs/types/Enum/Unit.d.ts +1 -2
  220. package/dist/mjs/types/Enum/Unit.d.ts.map +1 -1
  221. package/dist/mjs/types/Enum/Unit.js +0 -11
  222. package/dist/mjs/types/Enum/Unit.js.map +1 -1
  223. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -10
  224. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
  225. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
  226. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +0 -17
  227. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  228. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +0 -7
  229. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  230. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +0 -10
  231. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  232. package/dist/mjs/types/Interface/api/documentRequest/Query.js +2 -48
  233. package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  234. package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.d.ts.map +1 -1
  235. package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.js +0 -2
  236. package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.js.map +1 -1
  237. package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts +9 -10
  238. package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
  239. package/dist/mjs/types/Interface/api/revenue/revenueMovement.js +12 -13
  240. package/dist/mjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
  241. package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts +3 -0
  242. package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts.map +1 -1
  243. package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.js +22 -2
  244. package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.js.map +1 -1
  245. package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts +4 -0
  246. package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts.map +1 -0
  247. package/dist/mjs/types/Interface/api/shine/{Query.js → GetConnect.js} +1 -8
  248. package/dist/mjs/types/Interface/api/shine/GetConnect.js.map +1 -0
  249. package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts +0 -2
  250. package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
  251. package/dist/mjs/types/Interface/models/ISocietyApproval.js.map +1 -1
  252. package/dist/mjs/types/Interface/models/IUser.d.ts +0 -2
  253. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  254. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  255. package/dist/mjs/types/index.d.ts +1 -9
  256. package/dist/mjs/types/index.d.ts.map +1 -1
  257. package/dist/mjs/types/index.js +1 -9
  258. package/dist/mjs/types/index.js.map +1 -1
  259. package/dist/mjs/utils/checkup.d.ts +368 -12
  260. package/dist/mjs/utils/checkup.d.ts.map +1 -1
  261. package/dist/mjs/utils/checkup.js +566 -343
  262. package/dist/mjs/utils/checkup.js.map +1 -1
  263. package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
  264. package/dist/mjs/utils/commercialManagement/internationalization/choices.js +19 -21
  265. package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  266. package/dist/mjs/utils/index.d.ts +0 -1
  267. package/dist/mjs/utils/index.d.ts.map +1 -1
  268. package/dist/mjs/utils/index.js +0 -1
  269. package/dist/mjs/utils/index.js.map +1 -1
  270. package/dist/mjs/utils/vat/centuries.js +2 -2
  271. package/dist/mjs/utils/vat/centuries.js.map +1 -1
  272. package/dist/mjs/utils/vat/utils.d.ts.map +1 -1
  273. package/dist/mjs/utils/vat/utils.js +2 -5
  274. package/dist/mjs/utils/vat/utils.js.map +1 -1
  275. package/package.json +1 -1
  276. package/ts/api/resources/Checklist.ts +0 -6
  277. package/ts/api/resources/DocumentRequest.ts +1 -9
  278. package/ts/api/resources/InternalInvoicing.ts +8 -0
  279. package/ts/api/resources/Mfa.ts +0 -6
  280. package/ts/api/resources/Shine.ts +1 -11
  281. package/ts/api/resources/Society.ts +0 -5
  282. package/ts/api/resources/User.ts +23 -0
  283. package/ts/api/resources.ts +0 -4
  284. package/ts/types/Enum/AdjustmentType.ts +4 -4
  285. package/ts/types/Enum/BalanceSheet.ts +17 -17
  286. package/ts/types/Enum/BrandPourcentage.ts +8 -8
  287. package/ts/types/Enum/Card.ts +1 -9
  288. package/ts/types/Enum/Consistency.ts +7 -7
  289. package/ts/types/Enum/DashboardBlock.ts +0 -1
  290. package/ts/types/Enum/EntityType.ts +2 -2
  291. package/ts/types/Enum/Ged.ts +268 -386
  292. package/ts/types/Enum/InformationRequestState.ts +0 -1
  293. package/ts/types/Enum/InformationRequestType.ts +6 -12
  294. package/ts/types/Enum/KilometricAllowanceScale.ts +0 -119
  295. package/ts/types/Enum/MailAuto.ts +0 -4
  296. package/ts/types/Enum/PriceGridClementine.ts +474 -487
  297. package/ts/types/Enum/Proceding.ts +0 -4
  298. package/ts/types/Enum/StatutsSection.ts +7 -15
  299. package/ts/types/Enum/Unit.ts +0 -11
  300. package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +0 -10
  301. package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +0 -18
  302. package/ts/types/Interface/api/documentRequest/Query.ts +2 -40
  303. package/ts/types/Interface/api/oldExportInfo/OldExpertInfos.ts +0 -2
  304. package/ts/types/Interface/api/revenue/revenueMovement.ts +9 -11
  305. package/ts/types/Interface/api/revenue/revenueSnapshotGenerate.ts +21 -2
  306. package/ts/types/Interface/api/shine/{Query.ts → GetConnect.ts} +0 -5
  307. package/ts/types/Interface/models/ISocietyApproval.ts +0 -2
  308. package/ts/types/Interface/models/IUser.ts +0 -2
  309. package/ts/types/index.ts +1 -9
  310. package/ts/utils/checkup.ts +566 -347
  311. package/ts/utils/commercialManagement/internationalization/choices.ts +19 -21
  312. package/ts/utils/index.ts +0 -1
  313. package/ts/utils/vat/centuries.ts +2 -2
  314. package/ts/utils/vat/utils.ts +2 -7
  315. package/dist/cjs/api/resources/LoginApproval.d.ts +0 -18
  316. package/dist/cjs/api/resources/LoginApproval.d.ts.map +0 -1
  317. package/dist/cjs/api/resources/LoginApproval.js +0 -20
  318. package/dist/cjs/api/resources/LoginApproval.js.map +0 -1
  319. package/dist/cjs/api/resources/SocietyApproval.d.ts +0 -47
  320. package/dist/cjs/api/resources/SocietyApproval.d.ts.map +0 -1
  321. package/dist/cjs/api/resources/SocietyApproval.js +0 -62
  322. package/dist/cjs/api/resources/SocietyApproval.js.map +0 -1
  323. package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts +0 -14
  324. package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
  325. package/dist/cjs/types/Enum/LoginApprovalStatus.js +0 -18
  326. package/dist/cjs/types/Enum/LoginApprovalStatus.js.map +0 -1
  327. package/dist/cjs/types/Enum/MfaMode.d.ts +0 -12
  328. package/dist/cjs/types/Enum/MfaMode.d.ts.map +0 -1
  329. package/dist/cjs/types/Enum/MfaMode.js +0 -16
  330. package/dist/cjs/types/Enum/MfaMode.js.map +0 -1
  331. package/dist/cjs/types/Enum/SocietyApproval.d.ts +0 -27
  332. package/dist/cjs/types/Enum/SocietyApproval.d.ts.map +0 -1
  333. package/dist/cjs/types/Enum/SocietyApproval.js +0 -205
  334. package/dist/cjs/types/Enum/SocietyApproval.js.map +0 -1
  335. package/dist/cjs/types/Interface/api/SocietyApproval.d.ts +0 -36
  336. package/dist/cjs/types/Interface/api/SocietyApproval.d.ts.map +0 -1
  337. package/dist/cjs/types/Interface/api/SocietyApproval.js +0 -153
  338. package/dist/cjs/types/Interface/api/SocietyApproval.js.map +0 -1
  339. package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +0 -4
  340. package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +0 -1
  341. package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js +0 -21
  342. package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +0 -1
  343. package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +0 -5
  344. package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +0 -1
  345. package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.js +0 -27
  346. package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.js.map +0 -1
  347. package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts +0 -66
  348. package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
  349. package/dist/cjs/types/Interface/api/authentification/loginApproval.js +0 -26
  350. package/dist/cjs/types/Interface/api/authentification/loginApproval.js.map +0 -1
  351. package/dist/cjs/types/Interface/api/shine/Query.d.ts +0 -7
  352. package/dist/cjs/types/Interface/api/shine/Query.d.ts.map +0 -1
  353. package/dist/cjs/types/Interface/api/shine/Query.js.map +0 -1
  354. package/dist/cjs/types/Interface/models/ILoginApproval.d.ts +0 -31
  355. package/dist/cjs/types/Interface/models/ILoginApproval.d.ts.map +0 -1
  356. package/dist/cjs/types/Interface/models/ILoginApproval.js +0 -3
  357. package/dist/cjs/types/Interface/models/ILoginApproval.js.map +0 -1
  358. package/dist/cjs/utils/societyApproval.d.ts +0 -38
  359. package/dist/cjs/utils/societyApproval.d.ts.map +0 -1
  360. package/dist/cjs/utils/societyApproval.js +0 -101
  361. package/dist/cjs/utils/societyApproval.js.map +0 -1
  362. package/dist/mjs/api/resources/LoginApproval.d.ts +0 -18
  363. package/dist/mjs/api/resources/LoginApproval.d.ts.map +0 -1
  364. package/dist/mjs/api/resources/LoginApproval.js +0 -16
  365. package/dist/mjs/api/resources/LoginApproval.js.map +0 -1
  366. package/dist/mjs/api/resources/SocietyApproval.d.ts +0 -47
  367. package/dist/mjs/api/resources/SocietyApproval.d.ts.map +0 -1
  368. package/dist/mjs/api/resources/SocietyApproval.js +0 -58
  369. package/dist/mjs/api/resources/SocietyApproval.js.map +0 -1
  370. package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts +0 -14
  371. package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
  372. package/dist/mjs/types/Enum/LoginApprovalStatus.js +0 -15
  373. package/dist/mjs/types/Enum/LoginApprovalStatus.js.map +0 -1
  374. package/dist/mjs/types/Enum/MfaMode.d.ts +0 -12
  375. package/dist/mjs/types/Enum/MfaMode.d.ts.map +0 -1
  376. package/dist/mjs/types/Enum/MfaMode.js +0 -13
  377. package/dist/mjs/types/Enum/MfaMode.js.map +0 -1
  378. package/dist/mjs/types/Enum/SocietyApproval.d.ts +0 -27
  379. package/dist/mjs/types/Enum/SocietyApproval.d.ts.map +0 -1
  380. package/dist/mjs/types/Enum/SocietyApproval.js +0 -202
  381. package/dist/mjs/types/Enum/SocietyApproval.js.map +0 -1
  382. package/dist/mjs/types/Interface/api/SocietyApproval.d.ts +0 -36
  383. package/dist/mjs/types/Interface/api/SocietyApproval.d.ts.map +0 -1
  384. package/dist/mjs/types/Interface/api/SocietyApproval.js +0 -167
  385. package/dist/mjs/types/Interface/api/SocietyApproval.js.map +0 -1
  386. package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +0 -4
  387. package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +0 -1
  388. package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js +0 -18
  389. package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +0 -1
  390. package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +0 -5
  391. package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +0 -1
  392. package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.js +0 -25
  393. package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.js.map +0 -1
  394. package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts +0 -66
  395. package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
  396. package/dist/mjs/types/Interface/api/authentification/loginApproval.js +0 -23
  397. package/dist/mjs/types/Interface/api/authentification/loginApproval.js.map +0 -1
  398. package/dist/mjs/types/Interface/api/shine/Query.d.ts +0 -7
  399. package/dist/mjs/types/Interface/api/shine/Query.d.ts.map +0 -1
  400. package/dist/mjs/types/Interface/api/shine/Query.js.map +0 -1
  401. package/dist/mjs/types/Interface/models/ILoginApproval.d.ts +0 -31
  402. package/dist/mjs/types/Interface/models/ILoginApproval.d.ts.map +0 -1
  403. package/dist/mjs/types/Interface/models/ILoginApproval.js +0 -2
  404. package/dist/mjs/types/Interface/models/ILoginApproval.js.map +0 -1
  405. package/dist/mjs/utils/societyApproval.d.ts +0 -38
  406. package/dist/mjs/utils/societyApproval.d.ts.map +0 -1
  407. package/dist/mjs/utils/societyApproval.js +0 -109
  408. package/dist/mjs/utils/societyApproval.js.map +0 -1
  409. package/ts/api/resources/LoginApproval.ts +0 -20
  410. package/ts/api/resources/SocietyApproval.ts +0 -75
  411. package/ts/types/Enum/LoginApprovalStatus.ts +0 -13
  412. package/ts/types/Enum/MfaMode.ts +0 -11
  413. package/ts/types/Enum/SocietyApproval.ts +0 -218
  414. package/ts/types/Interface/api/SocietyApproval.ts +0 -121
  415. package/ts/types/Interface/api/authentification/FinalizeMobileApprovalDto.ts +0 -6
  416. package/ts/types/Interface/api/authentification/SetMobileApprovalDto.ts +0 -11
  417. package/ts/types/Interface/api/authentification/loginApproval.ts +0 -75
  418. package/ts/types/Interface/models/ILoginApproval.ts +0 -31
  419. package/ts/utils/societyApproval.ts +0 -129
@@ -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,6CAAgD;AAEhD,MAAa,UAAU;CAGtB;AAHD,gCAGC;AADC;IADC,IAAA,mBAAW,GAAE;;wCACD;AAGf,MAAa,iBAAiB;CAG7B;AAHD,8CAGC;AADC;IADC,IAAA,mBAAW,GAAE;;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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# 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,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,101 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLegalFormName = getLegalFormName;
4
- exports.getApprovalDocumentsByLegalForm = getApprovalDocumentsByLegalForm;
5
- exports.getApprovalDocumentTemplateName = getApprovalDocumentTemplateName;
6
- exports.getApprovalDocumentInfos = getApprovalDocumentInfos;
7
- exports.buildApprovalTemplateData = buildApprovalTemplateData;
8
- const LegalForm_1 = require("../types/Enum/LegalForm");
9
- const SocietyApproval_1 = require("../types/Enum/SocietyApproval");
10
- const Quality_1 = require("../types/Enum/Quality");
11
- const brands_1 = require("./brands");
12
- const amount_1 = require("./amount");
13
- const dayjs = require("dayjs");
14
- const CityOfGreffe_1 = require("../types/Enum/CityOfGreffe");
15
- /**
16
- * Récupère le nom de la forme juridique
17
- * @param idLegalForm - L'identifiant de la forme juridique
18
- * @param fallback - Valeur par défaut si non trouvée
19
- * @returns Le nom de la forme juridique
20
- */
21
- function getLegalFormName(idLegalForm, fallback = '') {
22
- var _a, _b;
23
- return (_b = (_a = Object.values(LegalForm_1.LegalForm).find((lf) => lf.id === idLegalForm)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : fallback;
24
- }
25
- /**
26
- * Récupère la configuration des documents d'approbation pour une forme juridique donnée
27
- * @param idLegalForm - L'identifiant de la forme juridique
28
- * @returns La configuration des documents ou undefined si non trouvée
29
- */
30
- function getApprovalDocumentsByLegalForm(idLegalForm) {
31
- return SocietyApproval_1.SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);
32
- }
33
- /**
34
- * Récupère le nom du template pour un document spécifique et une forme juridique
35
- * @param idLegalForm - L'identifiant de la forme juridique
36
- * @param idDocumentType - Le type de document d'approbation
37
- * @returns Le nom du template ou undefined si non trouvé
38
- */
39
- //@deprecated use getApprovalDocumentInfos instead
40
- function getApprovalDocumentTemplateName(idLegalForm, idDocumentType) {
41
- const config = getApprovalDocumentsByLegalForm(idLegalForm);
42
- const document = config === null || config === void 0 ? void 0 : config.documents.find((doc) => doc.idDocumentType === idDocumentType);
43
- return document === null || document === void 0 ? void 0 : document.templateName;
44
- }
45
- /**
46
- * Récupère le texte de la ville du greffe
47
- * @param idCityOfGreffe - L'identifiant de la ville du greffe
48
- * @returns Le texte de la ville ou une chaîne vide
49
- */
50
- function getCityOfGreffeName(idCityOfGreffe) {
51
- var _a, _b;
52
- if (!idCityOfGreffe)
53
- return '';
54
- return (_b = (_a = CityOfGreffe_1.CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)) === null || _a === void 0 ? void 0 : _a.text) !== null && _b !== void 0 ? _b : '';
55
- }
56
- /**
57
- * Récupère le nom du template pour un document spécifique et une forme juridique
58
- * @param idLegalForm - L'identifiant de la forme juridique
59
- * @param idDocumentType - Le type de document d'approbation
60
- * @returns Le nom du template ou undefined si non trouvé
61
- */
62
- function getApprovalDocumentInfos(idLegalForm, idDocumentType) {
63
- const config = getApprovalDocumentsByLegalForm(idLegalForm);
64
- return config === null || config === void 0 ? void 0 : config.documents.find((doc) => doc.idDocumentType === idDocumentType);
65
- }
66
- /**
67
- * Construit les données formatées pour le template d'approbation
68
- * @param existingApproval - Les données d'approbation de la société
69
- * @param style - Le style HTML pour le document
70
- * @returns L'objet de données formaté pour le template
71
- */
72
- function buildApprovalTemplateData(existingApproval, style) {
73
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
74
- const yearInText = (0, amount_1.convertNumberToLetter)(+dayjs().format('YYYY')).toLowerCase();
75
- const dayAndMonthInText = `${(0, amount_1.convertNumberToLetter)(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;
76
- const brand = (0, brands_1.getBrand)();
77
- return Object.assign(Object.assign({
78
- // Variables globales
79
- style,
80
- yearInText,
81
- dayAndMonthInText, date: dayjs().locale('fr').format('DD MMMM YYYY'), companyInformation: {
82
- rcs: (_a = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _a === void 0 ? void 0 : _a.rcs,
83
- nomRaisonSociale: (_b = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _b === void 0 ? void 0 : _b.nomRaisonSociale,
84
- city: (_c = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _c === void 0 ? void 0 : _c.city,
85
- postalAddress: (_d = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _d === void 0 ? void 0 : _d.postalAddress,
86
- montantCapital: (_e = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _e === void 0 ? void 0 : _e.montantCapital,
87
- statut: (_f = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _f === void 0 ? void 0 : _f.statut,
88
- ECOrderCity: (_g = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _g === void 0 ? void 0 : _g.ECOrderCity,
89
- }, owner: {
90
- identity: `${((_l = (_k = (_j = (_h = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _h === void 0 ? void 0 : _h.society) === null || _j === void 0 ? void 0 : _j.users) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.idCivility) === 1 ? 'Monsieur' : 'Madame'} ${(_q = (_p = (_o = (_m = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _m === void 0 ? void 0 : _m.society) === null || _o === void 0 ? void 0 : _o.users) === null || _p === void 0 ? void 0 : _p[0]) === null || _q === void 0 ? void 0 : _q.firstname} ${(_u = (_t = (_s = (_r = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _r === void 0 ? void 0 : _r.society) === null || _s === void 0 ? void 0 : _s.users) === null || _t === void 0 ? void 0 : _t[0]) === null || _u === void 0 ? void 0 : _u.lastname} `,
91
- quality: (_v = Quality_1.QualityList.find((ql) => { var _a, _b, _c, _d, _e, _f; return ql.id === ((_f = (_e = (_d = (_c = (_b = (_a = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _a === void 0 ? void 0 : _a.society) === null || _b === void 0 ? void 0 : _b.users) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.businessPartners) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.idQuality); })) === null || _v === void 0 ? void 0 : _v.label,
92
- } }, existingApproval), { generatingDatas: Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas), (((_w = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _w === void 0 ? void 0 : _w.approvalDate)
93
- ? {
94
- approvalDate: dayjs((_x = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _x === void 0 ? void 0 : _x.approvalDate)
95
- .locale('fr')
96
- .format('DD MMMM YYYY')
97
- .toUpperCase(),
98
- }
99
- : {})), exercice: Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice), { society: Object.assign(Object.assign({}, (_y = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _y === void 0 ? void 0 : _y.society), { cityOfGreffe: getCityOfGreffeName((_0 = (_z = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _z === void 0 ? void 0 : _z.society) === null || _0 === void 0 ? void 0 : _0.idCityOfGreffe).toUpperCase() }), endDate: dayjs((_1 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _1 === void 0 ? void 0 : _1.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase() }) });
100
- }
101
- //# 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,18 +0,0 @@
1
- import { Resource } from '../Resource';
2
- import { ILoginApprovalStatusResponse } from '../../types/Interface/api/authentification/loginApproval';
3
- export declare class LoginApproval extends Resource {
4
- approve(requestId: string, deviceId: string): Promise<{
5
- message: string;
6
- status: string;
7
- }>;
8
- deny(requestId: string, deviceId: string): Promise<{
9
- message: string;
10
- status: string;
11
- }>;
12
- getStatus(requestId: string): Promise<ILoginApprovalStatusResponse>;
13
- cleanup(): Promise<{
14
- deleted: number;
15
- message: string;
16
- }>;
17
- }
18
- //# sourceMappingURL=LoginApproval.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoginApproval.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/LoginApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AAExG,qBAAa,aAAc,SAAQ,QAAQ;IACzC,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAI1F,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvF,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAInE,OAAO,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAGzD"}
@@ -1,16 +0,0 @@
1
- import { Resource } from '../Resource';
2
- export class LoginApproval extends Resource {
3
- approve(requestId, deviceId) {
4
- return this.axios.$post(`/auth/approvals/${requestId}/approve`, { deviceId });
5
- }
6
- deny(requestId, deviceId) {
7
- return this.axios.$post(`/auth/approvals/${requestId}/deny`, { deviceId });
8
- }
9
- getStatus(requestId) {
10
- return this.axios.$get(`/auth/approvals/${requestId}/status`);
11
- }
12
- cleanup() {
13
- return this.axios.$post('/auth/approvals/cleanup');
14
- }
15
- }
16
- //# sourceMappingURL=LoginApproval.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoginApproval.js","sourceRoot":"","sources":["../../../../ts/api/resources/LoginApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,OAAO,CAAC,SAAiB,EAAE,QAAgB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,SAAS,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,IAAI,CAAC,SAAiB,EAAE,QAAgB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,SAAS,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,SAAS,CAAC,SAAiB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,SAAS,SAAS,CAAC,CAAC;IAChE,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACrD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { ILoginApprovalStatusResponse } from '../../types/Interface/api/authentification/loginApproval';\n\nexport class LoginApproval extends Resource {\n approve(requestId: string, deviceId: string): Promise<{ message: string; status: string }> {\n return this.axios.$post(`/auth/approvals/${requestId}/approve`, { deviceId });\n }\n\n deny(requestId: string, deviceId: string): Promise<{ message: string; status: string }> {\n return this.axios.$post(`/auth/approvals/${requestId}/deny`, { deviceId });\n }\n\n getStatus(requestId: string): Promise<ILoginApprovalStatusResponse> {\n return this.axios.$get(`/auth/approvals/${requestId}/status`);\n }\n\n cleanup(): Promise<{ deleted: number; message: string }> {\n return this.axios.$post('/auth/approvals/cleanup');\n }\n}\n"]}
@@ -1,47 +0,0 @@
1
- import { Resource } from '../Resource';
2
- import { ISocietyApproval, CreateDocument, ReadLibraryFile, ResetDocument, IDocumentSection, IApprovalGeneratingData } from '../../types';
3
- export declare class SocietyApproval extends Resource {
4
- /**
5
- * Get society approval data for a given exercice
6
- * @param idExercice - The exercice ID
7
- * @returns Society approval with all needed data
8
- */
9
- get(idExercice: number): Promise<ISocietyApproval>;
10
- /**
11
- * Get approval data needed for PDF generation
12
- * Retrieves all necessary information before generating a PDF document
13
- * @param idExercice - The exercice ID
14
- * @returns Approval data with template data for PDF generation
15
- */
16
- getGeneratingData(idExercice: number): Promise<IApprovalGeneratingData>;
17
- /**
18
- * Create or update society approval
19
- * @param idExercice - The exercice ID
20
- * @param payload - The approval data
21
- * @returns Updated or created society approval
22
- */
23
- updateOrCreate(idExercice: number, payload: ISocietyApproval): Promise<ISocietyApproval>;
24
- /**
25
- * Generate approval PDF document
26
- * @param idExercice - The exercice ID
27
- * @param payload - The document type(s) to generate
28
- * @returns PDF file as blob
29
- */
30
- generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile>;
31
- /**
32
- * Reset document section by regenerating from original template
33
- * @param idExercice - The exercice ID
34
- * @param idDocumentSection - The documentSection ID to reset
35
- * @param payload - The document type for template selection
36
- * @returns Updated documentSection with new content from template
37
- */
38
- resetDocument(idExercice: number, idDocumentSection: number, payload: ResetDocument): Promise<IDocumentSection>;
39
- /**
40
- * Regenerate PDF document from existing documentSection HTML content
41
- * @param idExercice - The exercice ID
42
- * @param idDocumentSection - The documentSection ID containing HTML content
43
- * @returns PDF file as buffer for download
44
- */
45
- regeneratePdf(idExercice: number, idDocumentSection: number): Promise<Buffer>;
46
- }
47
- //# sourceMappingURL=SocietyApproval.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SocietyApproval.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIlD;;;;;OAKG;IACH,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAIvE;;;;;OAKG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIxF;;;;;OAKG;IACH,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAIlF;;;;;;OAMG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI/G;;;;;OAKG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAO9E"}
@@ -1,58 +0,0 @@
1
- import { Resource } from '../Resource';
2
- export class SocietyApproval extends Resource {
3
- /**
4
- * Get society approval data for a given exercice
5
- * @param idExercice - The exercice ID
6
- * @returns Society approval with all needed data
7
- */
8
- get(idExercice) {
9
- return this.axios.$get(`/exercices/${idExercice}/approvals`);
10
- }
11
- /**
12
- * Get approval data needed for PDF generation
13
- * Retrieves all necessary information before generating a PDF document
14
- * @param idExercice - The exercice ID
15
- * @returns Approval data with template data for PDF generation
16
- */
17
- getGeneratingData(idExercice) {
18
- return this.axios.$get(`/exercices/${idExercice}/approvals/generating-data`);
19
- }
20
- /**
21
- * Create or update society approval
22
- * @param idExercice - The exercice ID
23
- * @param payload - The approval data
24
- * @returns Updated or created society approval
25
- */
26
- updateOrCreate(idExercice, payload) {
27
- return this.axios.$post(`/exercices/${idExercice}/approvals`, payload);
28
- }
29
- /**
30
- * Generate approval PDF document
31
- * @param idExercice - The exercice ID
32
- * @param payload - The document type(s) to generate
33
- * @returns PDF file as blob
34
- */
35
- generatePdf(idExercice, payload) {
36
- return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
37
- }
38
- /**
39
- * Reset document section by regenerating from original template
40
- * @param idExercice - The exercice ID
41
- * @param idDocumentSection - The documentSection ID to reset
42
- * @param payload - The document type for template selection
43
- * @returns Updated documentSection with new content from template
44
- */
45
- resetDocument(idExercice, idDocumentSection, payload) {
46
- return this.axios.$put(`/exercices/${idExercice}/document-sections/${idDocumentSection}/reset`, payload);
47
- }
48
- /**
49
- * Regenerate PDF document from existing documentSection HTML content
50
- * @param idExercice - The exercice ID
51
- * @param idDocumentSection - The documentSection ID containing HTML content
52
- * @returns PDF file as buffer for download
53
- */
54
- regeneratePdf(idExercice, idDocumentSection) {
55
- return this.axios.$post(`/exercices/${idExercice}/approvals/pdf/regenerate`, { idDocumentSection }, { responseType: 'arraybuffer' });
56
- }
57
- }
58
- //# sourceMappingURL=SocietyApproval.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SocietyApproval.js","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C;;;;OAIG;IACH,GAAG,CAAC,UAAkB;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,YAAY,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,UAAkB;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,4BAA4B,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,UAAkB,EAAE,OAAyB;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,YAAY,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,WAAW,CAAC,UAAkB,EAAE,OAAuB;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,UAAU,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,aAAa,CAAC,UAAkB,EAAE,iBAAyB,EAAE,OAAsB;QACjF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,sBAAsB,iBAAiB,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,UAAkB,EAAE,iBAAyB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CACrB,cAAc,UAAU,2BAA2B,EACnD,EAAE,iBAAiB,EAAE,EACrB,EAAE,YAAY,EAAE,aAAa,EAAE,CAChC,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n ISocietyApproval,\n CreateDocument,\n ReadLibraryFile,\n ResetDocument,\n IDocumentSection,\n IApprovalGeneratingData,\n} from '../../types';\n\nexport class SocietyApproval extends Resource {\n /**\n * Get society approval data for a given exercice\n * @param idExercice - The exercice ID\n * @returns Society approval with all needed data\n */\n get(idExercice: number): Promise<ISocietyApproval> {\n return this.axios.$get(`/exercices/${idExercice}/approvals`);\n }\n\n /**\n * Get approval data needed for PDF generation\n * Retrieves all necessary information before generating a PDF document\n * @param idExercice - The exercice ID\n * @returns Approval data with template data for PDF generation\n */\n getGeneratingData(idExercice: number): Promise<IApprovalGeneratingData> {\n return this.axios.$get(`/exercices/${idExercice}/approvals/generating-data`);\n }\n\n /**\n * Create or update society approval\n * @param idExercice - The exercice ID\n * @param payload - The approval data\n * @returns Updated or created society approval\n */\n updateOrCreate(idExercice: number, payload: ISocietyApproval): Promise<ISocietyApproval> {\n return this.axios.$post(`/exercices/${idExercice}/approvals`, payload);\n }\n\n /**\n * Generate approval PDF document\n * @param idExercice - The exercice ID\n * @param payload - The document type(s) to generate\n * @returns PDF file as blob\n */\n generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile> {\n return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);\n }\n\n /**\n * Reset document section by regenerating from original template\n * @param idExercice - The exercice ID\n * @param idDocumentSection - The documentSection ID to reset\n * @param payload - The document type for template selection\n * @returns Updated documentSection with new content from template\n */\n resetDocument(idExercice: number, idDocumentSection: number, payload: ResetDocument): Promise<IDocumentSection> {\n return this.axios.$put(`/exercices/${idExercice}/document-sections/${idDocumentSection}/reset`, payload);\n }\n\n /**\n * Regenerate PDF document from existing documentSection HTML content\n * @param idExercice - The exercice ID\n * @param idDocumentSection - The documentSection ID containing HTML content\n * @returns PDF file as buffer for download\n */\n regeneratePdf(idExercice: number, idDocumentSection: number): Promise<Buffer> {\n return this.axios.$post(\n `/exercices/${idExercice}/approvals/pdf/regenerate`,\n { idDocumentSection },\n { responseType: 'arraybuffer' },\n );\n }\n}\n"]}
@@ -1,14 +0,0 @@
1
- /**
2
- * Statuts possibles d'une demande d'approbation de connexion mobile
3
- */
4
- export declare 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
- }
14
- //# sourceMappingURL=LoginApprovalStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoginApprovalStatus.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/LoginApprovalStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,6CAA6C;IAC7C,OAAO,YAAY;IACnB,iDAAiD;IACjD,QAAQ,aAAa;IACrB,+CAA+C;IAC/C,MAAM,WAAW;IACjB,4CAA4C;IAC5C,OAAO,YAAY;CACpB"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Statuts possibles d'une demande d'approbation de connexion mobile
3
- */
4
- export var LoginApprovalStatus;
5
- (function (LoginApprovalStatus) {
6
- /** En attente de validation par le mobile */
7
- LoginApprovalStatus["PENDING"] = "pending";
8
- /** Approuvée par l'utilisateur sur son mobile */
9
- LoginApprovalStatus["APPROVED"] = "approved";
10
- /** Refusée par l'utilisateur sur son mobile */
11
- LoginApprovalStatus["DENIED"] = "denied";
12
- /** Expirée (timeout dépassé sans action) */
13
- LoginApprovalStatus["EXPIRED"] = "expired";
14
- })(LoginApprovalStatus || (LoginApprovalStatus = {}));
15
- //# sourceMappingURL=LoginApprovalStatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoginApprovalStatus.js","sourceRoot":"","sources":["../../../../ts/types/Enum/LoginApprovalStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,6CAA6C;IAC7C,0CAAmB,CAAA;IACnB,iDAAiD;IACjD,4CAAqB,CAAA;IACrB,+CAA+C;IAC/C,wCAAiB,CAAA;IACjB,4CAA4C;IAC5C,0CAAmB,CAAA;AACrB,CAAC,EATW,mBAAmB,KAAnB,mBAAmB,QAS9B","sourcesContent":["/**\n * Statuts possibles d'une demande d'approbation de connexion mobile\n */\nexport enum LoginApprovalStatus {\n /** En attente de validation par le mobile */\n PENDING = 'pending',\n /** Approuvée par l'utilisateur sur son mobile */\n APPROVED = 'approved',\n /** Refusée par l'utilisateur sur son mobile */\n DENIED = 'denied',\n /** Expirée (timeout dépassé sans action) */\n EXPIRED = 'expired',\n}\n"]}
@@ -1,12 +0,0 @@
1
- /**
2
- * Modes de double authentification disponibles
3
- */
4
- export declare 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
- }
12
- //# sourceMappingURL=MfaMode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MfaMode.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/MfaMode.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,OAAO;IACjB,yBAAyB;IACzB,IAAI,SAAS;IACb,kEAAkE;IAClE,IAAI,SAAS;IACb,2DAA2D;IAC3D,eAAe,oBAAoB;CACpC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Modes de double authentification disponibles
3
- */
4
- export var MfaMode;
5
- (function (MfaMode) {
6
- /** Pas de MFA activée */
7
- MfaMode["NONE"] = "none";
8
- /** Authentification via code TOTP (Google Authenticator, etc.) */
9
- MfaMode["TOTP"] = "totp";
10
- /** Validation via notification sur l'application mobile */
11
- MfaMode["MOBILE_APPROVAL"] = "mobile_approval";
12
- })(MfaMode || (MfaMode = {}));
13
- //# sourceMappingURL=MfaMode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MfaMode.js","sourceRoot":"","sources":["../../../../ts/types/Enum/MfaMode.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,OAOX;AAPD,WAAY,OAAO;IACjB,yBAAyB;IACzB,wBAAa,CAAA;IACb,kEAAkE;IAClE,wBAAa,CAAA;IACb,2DAA2D;IAC3D,8CAAmC,CAAA;AACrC,CAAC,EAPW,OAAO,KAAP,OAAO,QAOlB","sourcesContent":["/**\n * Modes de double authentification disponibles\n */\nexport enum MfaMode {\n /** Pas de MFA activée */\n NONE = 'none',\n /** Authentification via code TOTP (Google Authenticator, etc.) */\n TOTP = 'totp',\n /** Validation via notification sur l'application mobile */\n MOBILE_APPROVAL = 'mobile_approval',\n}\n"]}
@@ -1,27 +0,0 @@
1
- import { LegalFormTypeEnum } from './LegalForm';
2
- import { DocumentSectionType } from './StatutsSection';
3
- export declare enum SocietyApprovalDocumentType {
4
- PV_AG = 1,
5
- POWER_MANDATE = 2,
6
- DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_MICRO = 3,
7
- DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_PME = 4,
8
- INCOME_APPROPRIATION = 5,
9
- LIST_OF_CONVENTIONS = 6,
10
- LIST_OF_DIVIDENDS = 7
11
- }
12
- export type SocietyApprovalDocumentTemplate = {
13
- idDocumentType: SocietyApprovalDocumentType;
14
- docName: string;
15
- templateName: string;
16
- documentSectionType: DocumentSectionType;
17
- token?: string;
18
- htmlContent?: string;
19
- idDocumentSection?: number;
20
- };
21
- export type SocietyApprovalDocumentConfig = {
22
- idLegalForm: LegalFormTypeEnum;
23
- legalFormName: string;
24
- documents: SocietyApprovalDocumentTemplate[];
25
- };
26
- export declare const SocietyApprovalDocumentsByLegalForm: SocietyApprovalDocumentConfig[];
27
- //# sourceMappingURL=SocietyApproval.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SocietyApproval.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/SocietyApproval.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,oBAAY,2BAA2B;IACrC,KAAK,IAAI;IACT,aAAa,IAAI;IACjB,wDAAwD,IAAI;IAC5D,sDAAsD,IAAI;IAC1D,oBAAoB,IAAI;IACxB,mBAAmB,IAAI;IACvB,iBAAiB,IAAI;CACtB;AAED,MAAM,MAAM,+BAA+B,GAAG;IAC5C,cAAc,EAAE,2BAA2B,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,WAAW,EAAE,iBAAiB,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,+BAA+B,EAAE,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,6BAA6B,EA2L9E,CAAC"}