@silexpert/core 1.3.157-2 → 1.3.157-cutoff.0

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 (323) hide show
  1. package/dist/cjs/api/resources/DocumentRequest.d.ts +2 -1
  2. package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/DocumentRequest.js +3 -0
  4. package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
  5. package/dist/cjs/api/resources/ExercicePrestation.d.ts +6 -0
  6. package/dist/cjs/api/resources/ExercicePrestation.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/ExercicePrestation.js +8 -0
  8. package/dist/cjs/api/resources/ExercicePrestation.js.map +1 -1
  9. package/dist/cjs/api/resources/InformationRequest.d.ts +11 -0
  10. package/dist/cjs/api/resources/InformationRequest.d.ts.map +1 -0
  11. package/dist/cjs/api/resources/InformationRequest.js +26 -0
  12. package/dist/cjs/api/resources/InformationRequest.js.map +1 -0
  13. package/dist/cjs/api/resources.d.ts +0 -2
  14. package/dist/cjs/api/resources.d.ts.map +1 -1
  15. package/dist/cjs/api/resources.js +0 -2
  16. package/dist/cjs/api/resources.js.map +1 -1
  17. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/BalanceSheet.js +6 -6
  19. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  20. package/dist/cjs/types/Enum/BalanceSheetModule.d.ts +2 -0
  21. package/dist/cjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
  22. package/dist/cjs/types/Enum/BalanceSheetModule.js +23 -1
  23. package/dist/cjs/types/Enum/BalanceSheetModule.js.map +1 -1
  24. package/dist/cjs/types/Enum/BalanceSheetRequest.d.ts +9 -0
  25. package/dist/cjs/types/Enum/BalanceSheetRequest.d.ts.map +1 -0
  26. package/dist/cjs/types/Enum/BalanceSheetRequest.js +13 -0
  27. package/dist/cjs/types/Enum/BalanceSheetRequest.js.map +1 -0
  28. package/dist/cjs/types/Enum/Card.d.ts +7 -1
  29. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  30. package/dist/cjs/types/Enum/Card.js +7 -0
  31. package/dist/cjs/types/Enum/Card.js.map +1 -1
  32. package/dist/cjs/types/Enum/Ged.d.ts +10 -1
  33. package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
  34. package/dist/cjs/types/Enum/Ged.js +69 -0
  35. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  36. package/dist/cjs/types/Enum/InformationRequestState.d.ts +6 -0
  37. package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +1 -0
  38. package/dist/cjs/types/Enum/InformationRequestState.js +10 -0
  39. package/dist/cjs/types/Enum/InformationRequestState.js.map +1 -0
  40. package/dist/cjs/types/Enum/InformationRequestType.d.ts +15 -0
  41. package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +1 -0
  42. package/dist/cjs/types/Enum/InformationRequestType.js +46 -0
  43. package/dist/cjs/types/Enum/InformationRequestType.js.map +1 -0
  44. package/dist/cjs/types/Enum/MissionAcceptation.js +1 -1
  45. package/dist/cjs/types/Enum/MissionAcceptation.js.map +1 -1
  46. package/dist/cjs/types/Enum/Proceding.d.ts +8 -0
  47. package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
  48. package/dist/cjs/types/Enum/Proceding.js +10 -2
  49. package/dist/cjs/types/Enum/Proceding.js.map +1 -1
  50. package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts +7 -0
  51. package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts.map +1 -0
  52. package/dist/cjs/types/Interface/api/{mfa/VerifyRecoveryCode.js → balanceSheetModuleRequest/Create.js} +12 -10
  53. package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.js.map +1 -0
  54. package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts +6 -0
  55. package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts.map +1 -0
  56. package/dist/cjs/types/Interface/api/{mfa/SetupInit.js → balanceSheetModuleRequest/Query.js} +14 -10
  57. package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.js.map +1 -0
  58. package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts +7 -0
  59. package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts.map +1 -0
  60. package/dist/cjs/types/Interface/api/{mfa/VerifyCode.js → balanceSheetModuleRequest/Update.js} +14 -10
  61. package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.js.map +1 -0
  62. package/dist/cjs/types/Interface/api/card/Query.d.ts +3 -0
  63. package/dist/cjs/types/Interface/api/card/Query.d.ts.map +1 -1
  64. package/dist/cjs/types/Interface/api/card/Query.js +10 -1
  65. package/dist/cjs/types/Interface/api/card/Query.js.map +1 -1
  66. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
  67. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  68. package/dist/cjs/types/Interface/api/documentRequest/Query.js +12 -0
  69. package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  70. package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts +11 -0
  71. package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
  72. package/dist/cjs/types/Interface/api/documentRequest/Update.js +56 -0
  73. package/dist/cjs/types/Interface/api/documentRequest/Update.js.map +1 -0
  74. package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts +9 -0
  75. package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
  76. package/dist/cjs/types/Interface/api/informationRequest/Create.js +41 -0
  77. package/dist/cjs/types/Interface/api/informationRequest/Create.js.map +1 -0
  78. package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
  79. package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
  80. package/dist/cjs/types/Interface/api/informationRequest/Query.js +54 -0
  81. package/dist/cjs/types/Interface/api/informationRequest/Query.js.map +1 -0
  82. package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +11 -0
  83. package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
  84. package/dist/cjs/types/Interface/api/informationRequest/Update.js +50 -0
  85. package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +1 -0
  86. package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
  87. package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  88. package/dist/cjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  89. package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts +14 -0
  90. package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts.map +1 -0
  91. package/dist/cjs/types/Interface/{api/authentification/AuthenticationResponse.js → models/IBalanceSheetModuleRequest.js} +1 -1
  92. package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.js.map +1 -0
  93. package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +6 -1
  94. package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
  95. package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +1 -1
  96. package/dist/cjs/types/Interface/models/IInformationRequest.d.ts +24 -0
  97. package/dist/cjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
  98. package/dist/cjs/types/Interface/{api/mfa/mfa.js → models/IInformationRequest.js} +1 -1
  99. package/dist/cjs/types/Interface/models/IInformationRequest.js.map +1 -0
  100. package/dist/cjs/types/Interface/models/IUser.d.ts +0 -1
  101. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  102. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  103. package/dist/cjs/types/index.d.ts +7 -1
  104. package/dist/cjs/types/index.d.ts.map +1 -1
  105. package/dist/cjs/types/index.js +7 -1
  106. package/dist/cjs/types/index.js.map +1 -1
  107. package/dist/mjs/api/resources/DocumentRequest.d.ts +2 -1
  108. package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
  109. package/dist/mjs/api/resources/DocumentRequest.js +3 -0
  110. package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
  111. package/dist/mjs/api/resources/ExercicePrestation.d.ts +6 -0
  112. package/dist/mjs/api/resources/ExercicePrestation.d.ts.map +1 -1
  113. package/dist/mjs/api/resources/ExercicePrestation.js +8 -0
  114. package/dist/mjs/api/resources/ExercicePrestation.js.map +1 -1
  115. package/dist/mjs/api/resources/InformationRequest.d.ts +11 -0
  116. package/dist/mjs/api/resources/InformationRequest.d.ts.map +1 -0
  117. package/dist/mjs/api/resources/InformationRequest.js +30 -0
  118. package/dist/mjs/api/resources/InformationRequest.js.map +1 -0
  119. package/dist/mjs/api/resources.d.ts +0 -2
  120. package/dist/mjs/api/resources.d.ts.map +1 -1
  121. package/dist/mjs/api/resources.js +0 -2
  122. package/dist/mjs/api/resources.js.map +1 -1
  123. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  124. package/dist/mjs/types/Enum/BalanceSheet.js +6 -6
  125. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  126. package/dist/mjs/types/Enum/BalanceSheetModule.d.ts +2 -0
  127. package/dist/mjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
  128. package/dist/mjs/types/Enum/BalanceSheetModule.js +22 -0
  129. package/dist/mjs/types/Enum/BalanceSheetModule.js.map +1 -1
  130. package/dist/mjs/types/Enum/BalanceSheetRequest.d.ts +9 -0
  131. package/dist/mjs/types/Enum/BalanceSheetRequest.d.ts.map +1 -0
  132. package/dist/mjs/types/Enum/BalanceSheetRequest.js +10 -0
  133. package/dist/mjs/types/Enum/BalanceSheetRequest.js.map +1 -0
  134. package/dist/mjs/types/Enum/Card.d.ts +7 -1
  135. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  136. package/dist/mjs/types/Enum/Card.js +7 -0
  137. package/dist/mjs/types/Enum/Card.js.map +1 -1
  138. package/dist/mjs/types/Enum/Ged.d.ts +10 -1
  139. package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
  140. package/dist/mjs/types/Enum/Ged.js +69 -0
  141. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  142. package/dist/mjs/types/Enum/InformationRequestState.d.ts +6 -0
  143. package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +1 -0
  144. package/dist/mjs/types/Enum/InformationRequestState.js +7 -0
  145. package/dist/mjs/types/Enum/InformationRequestState.js.map +1 -0
  146. package/dist/mjs/types/Enum/InformationRequestType.d.ts +15 -0
  147. package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +1 -0
  148. package/dist/mjs/types/Enum/InformationRequestType.js +43 -0
  149. package/dist/mjs/types/Enum/InformationRequestType.js.map +1 -0
  150. package/dist/mjs/types/Enum/MissionAcceptation.js +1 -1
  151. package/dist/mjs/types/Enum/MissionAcceptation.js.map +1 -1
  152. package/dist/mjs/types/Enum/Proceding.d.ts +8 -0
  153. package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
  154. package/dist/mjs/types/Enum/Proceding.js +10 -2
  155. package/dist/mjs/types/Enum/Proceding.js.map +1 -1
  156. package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts +7 -0
  157. package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts.map +1 -0
  158. package/dist/mjs/types/Interface/api/{mfa/SetupInit.js → balanceSheetModuleRequest/Create.js} +13 -11
  159. package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Create.js.map +1 -0
  160. package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts +6 -0
  161. package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts.map +1 -0
  162. package/dist/mjs/types/Interface/api/{mfa/SetupVerify.js → balanceSheetModuleRequest/Query.js} +15 -11
  163. package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.js.map +1 -0
  164. package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts +7 -0
  165. package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts.map +1 -0
  166. package/dist/mjs/types/Interface/api/{mfa/VerifyCode.js → balanceSheetModuleRequest/Update.js} +15 -11
  167. package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.js.map +1 -0
  168. package/dist/mjs/types/Interface/api/card/Query.d.ts +3 -0
  169. package/dist/mjs/types/Interface/api/card/Query.d.ts.map +1 -1
  170. package/dist/mjs/types/Interface/api/card/Query.js +10 -2
  171. package/dist/mjs/types/Interface/api/card/Query.js.map +1 -1
  172. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
  173. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  174. package/dist/mjs/types/Interface/api/documentRequest/Query.js +15 -1
  175. package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  176. package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts +11 -0
  177. package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
  178. package/dist/mjs/types/Interface/api/documentRequest/Update.js +58 -0
  179. package/dist/mjs/types/Interface/api/documentRequest/Update.js.map +1 -0
  180. package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts +9 -0
  181. package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
  182. package/dist/mjs/types/Interface/api/informationRequest/Create.js +41 -0
  183. package/dist/mjs/types/Interface/api/informationRequest/Create.js.map +1 -0
  184. package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
  185. package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
  186. package/dist/mjs/types/Interface/api/informationRequest/Query.js +56 -0
  187. package/dist/mjs/types/Interface/api/informationRequest/Query.js.map +1 -0
  188. package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +11 -0
  189. package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
  190. package/dist/mjs/types/Interface/api/informationRequest/Update.js +51 -0
  191. package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +1 -0
  192. package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
  193. package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  194. package/dist/mjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  195. package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts +14 -0
  196. package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts.map +1 -0
  197. package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.js +2 -0
  198. package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.js.map +1 -0
  199. package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +6 -1
  200. package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
  201. package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +1 -1
  202. package/dist/mjs/types/Interface/models/IInformationRequest.d.ts +24 -0
  203. package/dist/mjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
  204. package/dist/mjs/types/Interface/models/IInformationRequest.js +2 -0
  205. package/dist/mjs/types/Interface/models/IInformationRequest.js.map +1 -0
  206. package/dist/mjs/types/Interface/models/IUser.d.ts +0 -1
  207. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  208. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  209. package/dist/mjs/types/index.d.ts +7 -1
  210. package/dist/mjs/types/index.d.ts.map +1 -1
  211. package/dist/mjs/types/index.js +7 -1
  212. package/dist/mjs/types/index.js.map +1 -1
  213. package/package.json +1 -1
  214. package/ts/api/resources/DocumentRequest.ts +5 -1
  215. package/ts/api/resources/ExercicePrestation.ts +9 -0
  216. package/ts/api/resources/InformationRequest.ts +36 -0
  217. package/ts/api/resources.ts +0 -2
  218. package/ts/types/Enum/BalanceSheet.ts +11 -11
  219. package/ts/types/Enum/BalanceSheetModule.ts +24 -1
  220. package/ts/types/Enum/BalanceSheetRequest.ts +8 -0
  221. package/ts/types/Enum/Card.ts +7 -0
  222. package/ts/types/Enum/Ged.ts +69 -0
  223. package/ts/types/Enum/InformationRequestState.ts +5 -0
  224. package/ts/types/Enum/InformationRequestType.ts +50 -0
  225. package/ts/types/Enum/MissionAcceptation.ts +1 -1
  226. package/ts/types/Enum/Proceding.ts +10 -2
  227. package/ts/types/Interface/api/balanceSheetModuleRequest/Create.ts +14 -0
  228. package/ts/types/Interface/api/balanceSheetModuleRequest/Query.ts +15 -0
  229. package/ts/types/Interface/api/balanceSheetModuleRequest/Update.ts +16 -0
  230. package/ts/types/Interface/api/card/Query.ts +9 -2
  231. package/ts/types/Interface/api/documentRequest/Query.ts +12 -1
  232. package/ts/types/Interface/api/documentRequest/Update.ts +37 -0
  233. package/ts/types/Interface/api/informationRequest/Create.ts +24 -0
  234. package/ts/types/Interface/api/informationRequest/Query.ts +36 -0
  235. package/ts/types/Interface/api/informationRequest/Update.ts +32 -0
  236. package/ts/types/Interface/models/IBalanceSheetModule.ts +7 -1
  237. package/ts/types/Interface/models/IBalanceSheetModuleRequest.ts +16 -0
  238. package/ts/types/Interface/models/IDocumentRequest.ts +7 -2
  239. package/ts/types/Interface/models/IInformationRequest.ts +26 -0
  240. package/ts/types/Interface/models/IUser.ts +0 -1
  241. package/ts/types/index.ts +7 -1
  242. package/dist/cjs/api/resources/Mfa.d.ts +0 -19
  243. package/dist/cjs/api/resources/Mfa.d.ts.map +0 -1
  244. package/dist/cjs/api/resources/Mfa.js +0 -27
  245. package/dist/cjs/api/resources/Mfa.js.map +0 -1
  246. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -7
  247. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +0 -1
  248. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +0 -1
  249. package/dist/cjs/types/Interface/api/mfa/DisableMfa.d.ts +0 -4
  250. package/dist/cjs/types/Interface/api/mfa/DisableMfa.d.ts.map +0 -1
  251. package/dist/cjs/types/Interface/api/mfa/DisableMfa.js +0 -22
  252. package/dist/cjs/types/Interface/api/mfa/DisableMfa.js.map +0 -1
  253. package/dist/cjs/types/Interface/api/mfa/SetupInit.d.ts +0 -5
  254. package/dist/cjs/types/Interface/api/mfa/SetupInit.d.ts.map +0 -1
  255. package/dist/cjs/types/Interface/api/mfa/SetupInit.js.map +0 -1
  256. package/dist/cjs/types/Interface/api/mfa/SetupVerify.d.ts +0 -5
  257. package/dist/cjs/types/Interface/api/mfa/SetupVerify.d.ts.map +0 -1
  258. package/dist/cjs/types/Interface/api/mfa/SetupVerify.js +0 -27
  259. package/dist/cjs/types/Interface/api/mfa/SetupVerify.js.map +0 -1
  260. package/dist/cjs/types/Interface/api/mfa/VerifyCode.d.ts +0 -5
  261. package/dist/cjs/types/Interface/api/mfa/VerifyCode.d.ts.map +0 -1
  262. package/dist/cjs/types/Interface/api/mfa/VerifyCode.js.map +0 -1
  263. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts +0 -5
  264. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts.map +0 -1
  265. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.js.map +0 -1
  266. package/dist/cjs/types/Interface/api/mfa/mfa.d.ts +0 -19
  267. package/dist/cjs/types/Interface/api/mfa/mfa.d.ts.map +0 -1
  268. package/dist/cjs/types/Interface/api/mfa/mfa.js.map +0 -1
  269. package/dist/cjs/types/Interface/models/IUserMfa.d.ts +0 -12
  270. package/dist/cjs/types/Interface/models/IUserMfa.d.ts.map +0 -1
  271. package/dist/cjs/types/Interface/models/IUserMfa.js +0 -3
  272. package/dist/cjs/types/Interface/models/IUserMfa.js.map +0 -1
  273. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +0 -9
  274. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +0 -1
  275. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js +0 -3
  276. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js.map +0 -1
  277. package/dist/mjs/api/resources/Mfa.d.ts +0 -19
  278. package/dist/mjs/api/resources/Mfa.d.ts.map +0 -1
  279. package/dist/mjs/api/resources/Mfa.js +0 -23
  280. package/dist/mjs/api/resources/Mfa.js.map +0 -1
  281. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -7
  282. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +0 -1
  283. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js +0 -2
  284. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +0 -1
  285. package/dist/mjs/types/Interface/api/mfa/DisableMfa.d.ts +0 -4
  286. package/dist/mjs/types/Interface/api/mfa/DisableMfa.d.ts.map +0 -1
  287. package/dist/mjs/types/Interface/api/mfa/DisableMfa.js +0 -19
  288. package/dist/mjs/types/Interface/api/mfa/DisableMfa.js.map +0 -1
  289. package/dist/mjs/types/Interface/api/mfa/SetupInit.d.ts +0 -5
  290. package/dist/mjs/types/Interface/api/mfa/SetupInit.d.ts.map +0 -1
  291. package/dist/mjs/types/Interface/api/mfa/SetupInit.js.map +0 -1
  292. package/dist/mjs/types/Interface/api/mfa/SetupVerify.d.ts +0 -5
  293. package/dist/mjs/types/Interface/api/mfa/SetupVerify.d.ts.map +0 -1
  294. package/dist/mjs/types/Interface/api/mfa/SetupVerify.js.map +0 -1
  295. package/dist/mjs/types/Interface/api/mfa/VerifyCode.d.ts +0 -5
  296. package/dist/mjs/types/Interface/api/mfa/VerifyCode.d.ts.map +0 -1
  297. package/dist/mjs/types/Interface/api/mfa/VerifyCode.js.map +0 -1
  298. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts +0 -5
  299. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts.map +0 -1
  300. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.js +0 -25
  301. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.js.map +0 -1
  302. package/dist/mjs/types/Interface/api/mfa/mfa.d.ts +0 -19
  303. package/dist/mjs/types/Interface/api/mfa/mfa.d.ts.map +0 -1
  304. package/dist/mjs/types/Interface/api/mfa/mfa.js +0 -2
  305. package/dist/mjs/types/Interface/api/mfa/mfa.js.map +0 -1
  306. package/dist/mjs/types/Interface/models/IUserMfa.d.ts +0 -12
  307. package/dist/mjs/types/Interface/models/IUserMfa.d.ts.map +0 -1
  308. package/dist/mjs/types/Interface/models/IUserMfa.js +0 -2
  309. package/dist/mjs/types/Interface/models/IUserMfa.js.map +0 -1
  310. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +0 -9
  311. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +0 -1
  312. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js +0 -2
  313. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js.map +0 -1
  314. package/ts/api/resources/Mfa.ts +0 -29
  315. package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +0 -6
  316. package/ts/types/Interface/api/mfa/DisableMfa.ts +0 -7
  317. package/ts/types/Interface/api/mfa/SetupInit.ts +0 -11
  318. package/ts/types/Interface/api/mfa/SetupVerify.ts +0 -11
  319. package/ts/types/Interface/api/mfa/VerifyCode.ts +0 -11
  320. package/ts/types/Interface/api/mfa/VerifyRecoveryCode.ts +0 -11
  321. package/ts/types/Interface/api/mfa/mfa.ts +0 -21
  322. package/ts/types/Interface/models/IUserMfa.ts +0 -11
  323. package/ts/types/Interface/models/IUserMfaRecoveryCode.ts +0 -8
@@ -7,13 +7,18 @@ import { IFile } from './IFile';
7
7
  import { IGedFile } from './IGedFile';
8
8
 
9
9
  export interface IDocumentRequest {
10
- id: number;
10
+ id?: number;
11
11
  idSociety: number;
12
12
  idExercice?: number | null;
13
13
  idBalanceSheet?: number | null;
14
- idRequestedBy: number;
14
+ idRequestedBy: number; // IUser who requested the document
15
15
  typeFile: TypeFile;
16
16
  comment?: string | null;
17
+ isNotConcerned?: boolean; // This can't be null (default false in db)
18
+ notConcernedAt?: Date | null;
19
+ createdAt?: Date | null;
20
+ updatedAt?: Date | null;
21
+ deletedAt?: Date | null;
17
22
 
18
23
  // Associations
19
24
  society?: ISociety;
@@ -0,0 +1,26 @@
1
+ import { InformationRequestType } from '../../Enum/InformationRequestType';
2
+ import { InformationRequestState } from '../../Enum/InformationRequestState';
3
+ import { IUser } from './IUser';
4
+ import { ISociety } from './ISociety';
5
+ import { IExercice } from './IExercice';
6
+ import { IBalanceSheet } from './IBalanceSheet';
7
+
8
+ export interface IInformationRequest {
9
+ id?: number;
10
+ idSociety: number;
11
+ idExercice?: number | null;
12
+ idBalanceSheet?: number | null;
13
+ idRequestedBy: number; // IUser who requested the information
14
+ type: InformationRequestType; // Type of information request
15
+ state: InformationRequestState; // State of the request (pending, completed, not concerned)
16
+ answeredAt?: Date | null; // Date when client answered (completed or marked as not concerned)
17
+ createdAt?: Date | null;
18
+ updatedAt?: Date | null;
19
+ deletedAt?: Date | null;
20
+
21
+ // Associations
22
+ society?: ISociety;
23
+ exercice?: IExercice;
24
+ balanceSheet?: IBalanceSheet;
25
+ requestedBy?: IUser;
26
+ }
@@ -51,7 +51,6 @@ export interface IUser {
51
51
  textMessageNumber?: string | null;
52
52
  prefix?: string | null;
53
53
  tokenLostPassword?: string | null;
54
- twoFactorEnabled?: boolean | null;
55
54
  tokenApi?: string | null;
56
55
  tokenNotification?: string | null;
57
56
  tokenSocket?: string | null;
package/ts/types/index.ts CHANGED
@@ -324,6 +324,7 @@ export * from './Interface/models/IAIQuestion';
324
324
  export * from './Interface/models/IAIConversation';
325
325
  export * from './Interface/models/IPaymentAttempt';
326
326
  export * from './Interface/models/IDocumentRequest';
327
+ export * from './Interface/models/IInformationRequest';
327
328
 
328
329
  // Schemas
329
330
  export * from './Interface/schemas/IRegistrationDetail';
@@ -555,9 +556,10 @@ export * from './Enum/TeamType';
555
556
  export * from './Enum/PartneredAccountantServiceType';
556
557
  export * from './Enum/PartneredAccountantServiceTypeId';
557
558
  export * from './Enum/PaymentAttempt';
559
+ export * from './Enum/InformationRequestType';
560
+ export * from './Enum/InformationRequestState';
558
561
 
559
562
  // Interfaces API
560
- export * from './Interface/api/authentification/AuthenticationResponse';
561
563
  export * from './Interface/api/exercice/ReadExercice';
562
564
  export * from './Interface/api/balanceSheet/consistency/Read';
563
565
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -1141,6 +1143,10 @@ export * from './Interface/api/recurrence/Query';
1141
1143
  export * from './Interface/api/recurrence/Read';
1142
1144
  export * from './Interface/api/documentRequest/Query';
1143
1145
  export * from './Interface/api/documentRequest/Create';
1146
+ export * from './Interface/api/documentRequest/Update';
1147
+ export * from './Interface/api/informationRequest/Query';
1148
+ export * from './Interface/api/informationRequest/Create';
1149
+ export * from './Interface/api/informationRequest/Update';
1144
1150
 
1145
1151
  // Enums types
1146
1152
  export * from './Interface/enum/Util';
@@ -1,19 +0,0 @@
1
- import { MfaSetupInitResult, MfaSetupVerifyResult } from '../../types/Interface/api/mfa/mfa';
2
- import { Resource } from '../Resource';
3
- export declare class UserMfa extends Resource {
4
- setupInit(userId: number, userEmail: string): Promise<MfaSetupInitResult>;
5
- setupVerify(userId: number, code: string): Promise<MfaSetupVerifyResult>;
6
- disable(userId: number): Promise<boolean>;
7
- verifyCode(userId: number, code: string): Promise<{
8
- success: boolean;
9
- token?: string;
10
- }>;
11
- verifyRecoveryCode(userId: number, recoveryCode: string): Promise<{
12
- success: boolean;
13
- token?: string;
14
- }>;
15
- isMfaEnabled(userId?: number): Promise<{
16
- isEnabled: boolean;
17
- }>;
18
- }
19
- //# sourceMappingURL=Mfa.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Mfa.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Mfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIxE,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvF,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvG,YAAY,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;CAI/D"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserMfa = void 0;
4
- const Resource_1 = require("../Resource");
5
- class UserMfa extends Resource_1.Resource {
6
- setupInit(userId, userEmail) {
7
- return this.axios.$post('/mfa/setup/init', { userId, userEmail });
8
- }
9
- setupVerify(userId, code) {
10
- return this.axios.$post('/mfa/setup/verify', { userId, code });
11
- }
12
- disable(userId) {
13
- return this.axios.$post('/mfa/disable', { userId });
14
- }
15
- verifyCode(userId, code) {
16
- return this.axios.$post('/mfa/verify/code', { userId, code });
17
- }
18
- verifyRecoveryCode(userId, recoveryCode) {
19
- return this.axios.$post('/mfa/verify/recovery-code', { userId, recoveryCode });
20
- }
21
- isMfaEnabled(userId) {
22
- // Si userId est fourni, l'envoyer en query param, sinon vérifier l'user connecté
23
- return this.axios.$get('/mfa/is-enabled', userId ? { params: { userId } } : undefined);
24
- }
25
- }
26
- exports.UserMfa = UserMfa;
27
- //# sourceMappingURL=Mfa.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Mfa.js","sourceRoot":"","sources":["../../../../ts/api/resources/Mfa.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAEvC,MAAa,OAAQ,SAAQ,mBAAQ;IACnC,SAAS,CAAC,MAAc,EAAE,SAAiB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,WAAW,CAAC,MAAc,EAAE,IAAY;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,MAAc;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,UAAU,CAAC,MAAc,EAAE,IAAY;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,kBAAkB,CAAC,MAAc,EAAE,YAAoB;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,YAAY,CAAC,MAAe;QAC1B,iFAAiF;QACjF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACzF,CAAC;CACF;AAzBD,0BAyBC","sourcesContent":["import { MfaSetupInitResult, MfaSetupVerifyResult } from '../../types/Interface/api/mfa/mfa';\nimport { Resource } from '../Resource';\n\nexport class UserMfa extends Resource {\n setupInit(userId: number, userEmail: string): Promise<MfaSetupInitResult> {\n return this.axios.$post('/mfa/setup/init', { userId, userEmail });\n }\n\n setupVerify(userId: number, code: string): Promise<MfaSetupVerifyResult> {\n return this.axios.$post('/mfa/setup/verify', { userId, code });\n }\n\n disable(userId: number): Promise<boolean> {\n return this.axios.$post('/mfa/disable', { userId });\n }\n\n verifyCode(userId: number, code: string): Promise<{ success: boolean; token?: string }> {\n return this.axios.$post('/mfa/verify/code', { userId, code });\n }\n\n verifyRecoveryCode(userId: number, recoveryCode: string): Promise<{ success: boolean; token?: string }> {\n return this.axios.$post('/mfa/verify/recovery-code', { userId, recoveryCode });\n }\n\n isMfaEnabled(userId?: number): Promise<{ isEnabled: boolean }> {\n // Si userId est fourni, l'envoyer en query param, sinon vérifier l'user connecté\n return this.axios.$get('/mfa/is-enabled', userId ? { params: { userId } } : undefined);\n }\n}\n"]}
@@ -1,7 +0,0 @@
1
- export interface IAuthenticationResponse {
2
- requiresMfa?: boolean;
3
- userId?: number;
4
- message?: string;
5
- token?: string;
6
- }
7
- //# sourceMappingURL=AuthenticationResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthenticationResponse.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/AuthenticationResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthenticationResponse.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/AuthenticationResponse.ts"],"names":[],"mappings":"","sourcesContent":["export interface IAuthenticationResponse {\n requiresMfa?: boolean;\n userId?: number;\n message?: string;\n token?: string;\n}\n"]}
@@ -1,4 +0,0 @@
1
- export declare class MfaDisable {
2
- userId: number;
3
- }
4
- //# sourceMappingURL=DisableMfa.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisableMfa.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/DisableMfa.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IAGrB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MfaDisable = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class MfaDisable {
15
- }
16
- exports.MfaDisable = MfaDisable;
17
- __decorate([
18
- (0, class_validator_1.IsNotEmpty)(),
19
- (0, class_validator_1.IsInt)(),
20
- __metadata("design:type", Number)
21
- ], MfaDisable.prototype, "userId", void 0);
22
- //# sourceMappingURL=DisableMfa.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisableMfa.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/DisableMfa.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AAEpD,MAAa,UAAU;CAItB;AAJD,gCAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;0CACO","sourcesContent":["import { IsInt, IsNotEmpty } from 'class-validator';\n\nexport class MfaDisable {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare class MfaSetupInit {
2
- userId: number;
3
- userEmail: string;
4
- }
5
- //# sourceMappingURL=SetupInit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetupInit.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/SetupInit.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IAGvB,MAAM,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetupInit.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/SetupInit.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,MAAa,YAAY;CAQxB;AARD,oCAQC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;4CACO;AAIf;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,GAAE;;+CACO","sourcesContent":["import { IsEmail, IsInt, IsNotEmpty, IsString } from 'class-validator';\n\nexport class MfaSetupInit {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n\n @IsEmail()\n @IsString()\n userEmail: string;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare class MfaSetupVerify {
2
- userId: number;
3
- code: string;
4
- }
5
- //# sourceMappingURL=SetupVerify.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetupVerify.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/SetupVerify.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IAGzB,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MfaSetupVerify = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class MfaSetupVerify {
15
- }
16
- exports.MfaSetupVerify = MfaSetupVerify;
17
- __decorate([
18
- (0, class_validator_1.IsNotEmpty)(),
19
- (0, class_validator_1.IsInt)(),
20
- __metadata("design:type", Number)
21
- ], MfaSetupVerify.prototype, "userId", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsNotEmpty)(),
24
- (0, class_validator_1.IsString)(),
25
- __metadata("design:type", String)
26
- ], MfaSetupVerify.prototype, "code", void 0);
27
- //# sourceMappingURL=SetupVerify.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetupVerify.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/SetupVerify.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,MAAa,cAAc;CAQ1B;AARD,wCAQC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;8CACO;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACE","sourcesContent":["import { IsInt, IsNotEmpty, IsString } from 'class-validator';\n\nexport class MfaSetupVerify {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n\n @IsNotEmpty()\n @IsString()\n code: string;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare class MfaVerifyCode {
2
- userId: number;
3
- code: string;
4
- }
5
- //# sourceMappingURL=VerifyCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerifyCode.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/VerifyCode.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;IAGxB,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerifyCode.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/VerifyCode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;AAEtE,MAAa,aAAa;CAQzB;AARD,sCAQC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;6CACO;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,CAAC,EAAE,CAAC,CAAC;;2CACA","sourcesContent":["import { IsInt, IsNotEmpty, IsString, Length } from 'class-validator';\n\nexport class MfaVerifyCode {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n\n @IsString()\n @Length(6, 6)\n code: string;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare class MfaVerifyRecoveryCode {
2
- userId: number;
3
- recoveryCode: string;
4
- }
5
- //# sourceMappingURL=VerifyRecoveryCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerifyRecoveryCode.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/VerifyRecoveryCode.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAGhC,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerifyRecoveryCode.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/VerifyRecoveryCode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;qDACO;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACQ","sourcesContent":["import { IsInt, IsNotEmpty, IsString } from 'class-validator';\n\nexport class MfaVerifyRecoveryCode {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n\n @IsString()\n @IsNotEmpty()\n recoveryCode: string;\n}\n"]}
@@ -1,19 +0,0 @@
1
- export interface MfaSetupInitResult {
2
- otpauthUri: string;
3
- tempSecret: string;
4
- label: string;
5
- }
6
- export interface MfaSetupVerifyResult {
7
- success: boolean;
8
- recoveryCodes: string[];
9
- }
10
- export interface MfaAuthenticationResponse {
11
- requiresMfa: boolean;
12
- userId?: number;
13
- token?: string;
14
- }
15
- export interface MfaVerificationResponse {
16
- success: boolean;
17
- token?: string;
18
- }
19
- //# sourceMappingURL=mfa.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mfa.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/mfa.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mfa.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/mfa.ts"],"names":[],"mappings":"","sourcesContent":["export interface MfaSetupInitResult {\n otpauthUri: string;\n tempSecret: string;\n label: string;\n}\n\nexport interface MfaSetupVerifyResult {\n success: boolean;\n recoveryCodes: string[];\n}\n\nexport interface MfaAuthenticationResponse {\n requiresMfa: boolean;\n userId?: number;\n token?: string;\n}\n\nexport interface MfaVerificationResponse {\n success: boolean;\n token?: string;\n}\n"]}
@@ -1,12 +0,0 @@
1
- export interface IUserMfa {
2
- idUserMfa: number;
3
- idUser: number;
4
- method: 'totp' | 'sms' | 'email';
5
- secretEnc: string;
6
- tempSecretEnc: string;
7
- verifiedAt: Date;
8
- isPrimary: boolean;
9
- createdAt?: Date;
10
- updatedAt?: Date;
11
- }
12
- //# sourceMappingURL=IUserMfa.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IUserMfa.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUserMfa.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IUserMfa.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IUserMfa.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUserMfa.ts"],"names":[],"mappings":"","sourcesContent":["export interface IUserMfa {\n idUserMfa: number;\n idUser: number;\n method: 'totp' | 'sms' | 'email';\n secretEnc: string;\n tempSecretEnc: string;\n verifiedAt: Date;\n isPrimary: boolean;\n createdAt?: Date;\n updatedAt?: Date;\n}"]}
@@ -1,9 +0,0 @@
1
- export interface IUserMfaRecoveryCode {
2
- id: number;
3
- idUserMfa: number;
4
- recoveryCodeEnc: string;
5
- usedAt: Date | null;
6
- createdAt?: Date;
7
- updatedAt?: Date;
8
- }
9
- //# sourceMappingURL=IUserMfaRecoveryCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IUserMfaRecoveryCode.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUserMfaRecoveryCode.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IUserMfaRecoveryCode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IUserMfaRecoveryCode.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUserMfaRecoveryCode.ts"],"names":[],"mappings":"","sourcesContent":["export interface IUserMfaRecoveryCode {\n id: number;\n idUserMfa: number;\n recoveryCodeEnc: string; // haché, jamais en clair\n usedAt: Date | null; // nullable\n createdAt?: Date;\n updatedAt?: Date;\n}\n"]}
@@ -1,19 +0,0 @@
1
- import { MfaSetupInitResult, MfaSetupVerifyResult } from '../../types/Interface/api/mfa/mfa';
2
- import { Resource } from '../Resource';
3
- export declare class UserMfa extends Resource {
4
- setupInit(userId: number, userEmail: string): Promise<MfaSetupInitResult>;
5
- setupVerify(userId: number, code: string): Promise<MfaSetupVerifyResult>;
6
- disable(userId: number): Promise<boolean>;
7
- verifyCode(userId: number, code: string): Promise<{
8
- success: boolean;
9
- token?: string;
10
- }>;
11
- verifyRecoveryCode(userId: number, recoveryCode: string): Promise<{
12
- success: boolean;
13
- token?: string;
14
- }>;
15
- isMfaEnabled(userId?: number): Promise<{
16
- isEnabled: boolean;
17
- }>;
18
- }
19
- //# sourceMappingURL=Mfa.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Mfa.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Mfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIxE,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvF,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvG,YAAY,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;CAI/D"}
@@ -1,23 +0,0 @@
1
- import { Resource } from '../Resource';
2
- export class UserMfa extends Resource {
3
- setupInit(userId, userEmail) {
4
- return this.axios.$post('/mfa/setup/init', { userId, userEmail });
5
- }
6
- setupVerify(userId, code) {
7
- return this.axios.$post('/mfa/setup/verify', { userId, code });
8
- }
9
- disable(userId) {
10
- return this.axios.$post('/mfa/disable', { userId });
11
- }
12
- verifyCode(userId, code) {
13
- return this.axios.$post('/mfa/verify/code', { userId, code });
14
- }
15
- verifyRecoveryCode(userId, recoveryCode) {
16
- return this.axios.$post('/mfa/verify/recovery-code', { userId, recoveryCode });
17
- }
18
- isMfaEnabled(userId) {
19
- // Si userId est fourni, l'envoyer en query param, sinon vérifier l'user connecté
20
- return this.axios.$get('/mfa/is-enabled', userId ? { params: { userId } } : undefined);
21
- }
22
- }
23
- //# sourceMappingURL=Mfa.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Mfa.js","sourceRoot":"","sources":["../../../../ts/api/resources/Mfa.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,MAAc,EAAE,SAAiB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,WAAW,CAAC,MAAc,EAAE,IAAY;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,MAAc;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,UAAU,CAAC,MAAc,EAAE,IAAY;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,kBAAkB,CAAC,MAAc,EAAE,YAAoB;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,YAAY,CAAC,MAAe;QAC1B,iFAAiF;QACjF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACzF,CAAC;CACF","sourcesContent":["import { MfaSetupInitResult, MfaSetupVerifyResult } from '../../types/Interface/api/mfa/mfa';\nimport { Resource } from '../Resource';\n\nexport class UserMfa extends Resource {\n setupInit(userId: number, userEmail: string): Promise<MfaSetupInitResult> {\n return this.axios.$post('/mfa/setup/init', { userId, userEmail });\n }\n\n setupVerify(userId: number, code: string): Promise<MfaSetupVerifyResult> {\n return this.axios.$post('/mfa/setup/verify', { userId, code });\n }\n\n disable(userId: number): Promise<boolean> {\n return this.axios.$post('/mfa/disable', { userId });\n }\n\n verifyCode(userId: number, code: string): Promise<{ success: boolean; token?: string }> {\n return this.axios.$post('/mfa/verify/code', { userId, code });\n }\n\n verifyRecoveryCode(userId: number, recoveryCode: string): Promise<{ success: boolean; token?: string }> {\n return this.axios.$post('/mfa/verify/recovery-code', { userId, recoveryCode });\n }\n\n isMfaEnabled(userId?: number): Promise<{ isEnabled: boolean }> {\n // Si userId est fourni, l'envoyer en query param, sinon vérifier l'user connecté\n return this.axios.$get('/mfa/is-enabled', userId ? { params: { userId } } : undefined);\n }\n}\n"]}
@@ -1,7 +0,0 @@
1
- export interface IAuthenticationResponse {
2
- requiresMfa?: boolean;
3
- userId?: number;
4
- message?: string;
5
- token?: string;
6
- }
7
- //# sourceMappingURL=AuthenticationResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthenticationResponse.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/AuthenticationResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=AuthenticationResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthenticationResponse.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/AuthenticationResponse.ts"],"names":[],"mappings":"","sourcesContent":["export interface IAuthenticationResponse {\n requiresMfa?: boolean;\n userId?: number;\n message?: string;\n token?: string;\n}\n"]}
@@ -1,4 +0,0 @@
1
- export declare class MfaDisable {
2
- userId: number;
3
- }
4
- //# sourceMappingURL=DisableMfa.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisableMfa.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/DisableMfa.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IAGrB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1,19 +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, IsNotEmpty } from 'class-validator';
11
- export class MfaDisable {
12
- userId;
13
- }
14
- __decorate([
15
- IsNotEmpty(),
16
- IsInt(),
17
- __metadata("design:type", Number)
18
- ], MfaDisable.prototype, "userId", void 0);
19
- //# sourceMappingURL=DisableMfa.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisableMfa.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/DisableMfa.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,OAAO,UAAU;IAGrB,MAAM,CAAS;CAChB;AADC;IAFC,UAAU,EAAE;IACZ,KAAK,EAAE;;0CACO","sourcesContent":["import { IsInt, IsNotEmpty } from 'class-validator';\n\nexport class MfaDisable {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare class MfaSetupInit {
2
- userId: number;
3
- userEmail: string;
4
- }
5
- //# sourceMappingURL=SetupInit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetupInit.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/SetupInit.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IAGvB,MAAM,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetupInit.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/SetupInit.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvE,MAAM,OAAO,YAAY;IAGvB,MAAM,CAAS;IAIf,SAAS,CAAS;CACnB;AALC;IAFC,UAAU,EAAE;IACZ,KAAK,EAAE;;4CACO;AAIf;IAFC,OAAO,EAAE;IACT,QAAQ,EAAE;;+CACO","sourcesContent":["import { IsEmail, IsInt, IsNotEmpty, IsString } from 'class-validator';\n\nexport class MfaSetupInit {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n\n @IsEmail()\n @IsString()\n userEmail: string;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare class MfaSetupVerify {
2
- userId: number;
3
- code: string;
4
- }
5
- //# sourceMappingURL=SetupVerify.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetupVerify.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/SetupVerify.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IAGzB,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetupVerify.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/SetupVerify.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,OAAO,cAAc;IAGzB,MAAM,CAAS;IAIf,IAAI,CAAS;CACd;AALC;IAFC,UAAU,EAAE;IACZ,KAAK,EAAE;;8CACO;AAIf;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;4CACE","sourcesContent":["import { IsInt, IsNotEmpty, IsString } from 'class-validator';\n\nexport class MfaSetupVerify {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n\n @IsNotEmpty()\n @IsString()\n code: string;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare class MfaVerifyCode {
2
- userId: number;
3
- code: string;
4
- }
5
- //# sourceMappingURL=VerifyCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerifyCode.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/VerifyCode.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;IAGxB,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerifyCode.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/VerifyCode.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtE,MAAM,OAAO,aAAa;IAGxB,MAAM,CAAS;IAIf,IAAI,CAAS;CACd;AALC;IAFC,UAAU,EAAE;IACZ,KAAK,EAAE;;6CACO;AAIf;IAFC,QAAQ,EAAE;IACV,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;;2CACA","sourcesContent":["import { IsInt, IsNotEmpty, IsString, Length } from 'class-validator';\n\nexport class MfaVerifyCode {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n\n @IsString()\n @Length(6, 6)\n code: string;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare class MfaVerifyRecoveryCode {
2
- userId: number;
3
- recoveryCode: string;
4
- }
5
- //# sourceMappingURL=VerifyRecoveryCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerifyRecoveryCode.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/VerifyRecoveryCode.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAGhC,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -1,25 +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, IsNotEmpty, IsString } from 'class-validator';
11
- export class MfaVerifyRecoveryCode {
12
- userId;
13
- recoveryCode;
14
- }
15
- __decorate([
16
- IsNotEmpty(),
17
- IsInt(),
18
- __metadata("design:type", Number)
19
- ], MfaVerifyRecoveryCode.prototype, "userId", void 0);
20
- __decorate([
21
- IsString(),
22
- IsNotEmpty(),
23
- __metadata("design:type", String)
24
- ], MfaVerifyRecoveryCode.prototype, "recoveryCode", void 0);
25
- //# sourceMappingURL=VerifyRecoveryCode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerifyRecoveryCode.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/VerifyRecoveryCode.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,OAAO,qBAAqB;IAGhC,MAAM,CAAS;IAIf,YAAY,CAAS;CACtB;AALC;IAFC,UAAU,EAAE;IACZ,KAAK,EAAE;;qDACO;AAIf;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACQ","sourcesContent":["import { IsInt, IsNotEmpty, IsString } from 'class-validator';\n\nexport class MfaVerifyRecoveryCode {\n @IsNotEmpty()\n @IsInt()\n userId: number;\n\n @IsString()\n @IsNotEmpty()\n recoveryCode: string;\n}\n"]}
@@ -1,19 +0,0 @@
1
- export interface MfaSetupInitResult {
2
- otpauthUri: string;
3
- tempSecret: string;
4
- label: string;
5
- }
6
- export interface MfaSetupVerifyResult {
7
- success: boolean;
8
- recoveryCodes: string[];
9
- }
10
- export interface MfaAuthenticationResponse {
11
- requiresMfa: boolean;
12
- userId?: number;
13
- token?: string;
14
- }
15
- export interface MfaVerificationResponse {
16
- success: boolean;
17
- token?: string;
18
- }
19
- //# sourceMappingURL=mfa.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mfa.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/mfa/mfa.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=mfa.js.map