@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.
- package/dist/cjs/api/resources/DocumentRequest.d.ts +2 -1
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/cjs/api/resources/DocumentRequest.js +3 -0
- package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/cjs/api/resources/ExercicePrestation.d.ts +6 -0
- package/dist/cjs/api/resources/ExercicePrestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/ExercicePrestation.js +8 -0
- package/dist/cjs/api/resources/ExercicePrestation.js.map +1 -1
- package/dist/cjs/api/resources/InformationRequest.d.ts +11 -0
- package/dist/cjs/api/resources/InformationRequest.d.ts.map +1 -0
- package/dist/cjs/api/resources/InformationRequest.js +26 -0
- package/dist/cjs/api/resources/InformationRequest.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +6 -6
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts +2 -0
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.js +23 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetRequest.d.ts +9 -0
- package/dist/cjs/types/Enum/BalanceSheetRequest.d.ts.map +1 -0
- package/dist/cjs/types/Enum/BalanceSheetRequest.js +13 -0
- package/dist/cjs/types/Enum/BalanceSheetRequest.js.map +1 -0
- package/dist/cjs/types/Enum/Card.d.ts +7 -1
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +7 -0
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +10 -1
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +69 -0
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/InformationRequestState.d.ts +6 -0
- package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +1 -0
- package/dist/cjs/types/Enum/InformationRequestState.js +10 -0
- package/dist/cjs/types/Enum/InformationRequestState.js.map +1 -0
- package/dist/cjs/types/Enum/InformationRequestType.d.ts +15 -0
- package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/InformationRequestType.js +46 -0
- package/dist/cjs/types/Enum/InformationRequestType.js.map +1 -0
- package/dist/cjs/types/Enum/MissionAcceptation.js +1 -1
- package/dist/cjs/types/Enum/MissionAcceptation.js.map +1 -1
- package/dist/cjs/types/Enum/Proceding.d.ts +8 -0
- package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Proceding.js +10 -2
- package/dist/cjs/types/Enum/Proceding.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts +7 -0
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{mfa/VerifyRecoveryCode.js → balanceSheetModuleRequest/Create.js} +12 -10
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts +6 -0
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{mfa/SetupInit.js → balanceSheetModuleRequest/Query.js} +14 -10
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts +7 -0
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{mfa/VerifyCode.js → balanceSheetModuleRequest/Update.js} +14 -10
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.js.map +1 -0
- package/dist/cjs/types/Interface/api/card/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/card/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/Query.js +10 -1
- package/dist/cjs/types/Interface/api/card/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +12 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts +11 -0
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Update.js +56 -0
- package/dist/cjs/types/Interface/api/documentRequest/Update.js.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts +9 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.js +41 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.js +54 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +11 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.js +50 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +1 -0
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts +14 -0
- package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts.map +1 -0
- package/dist/cjs/types/Interface/{api/authentification/AuthenticationResponse.js → models/IBalanceSheetModuleRequest.js} +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.js.map +1 -0
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +6 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +1 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts +24 -0
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
- package/dist/cjs/types/Interface/{api/mfa/mfa.js → models/IInformationRequest.js} +1 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.js.map +1 -0
- package/dist/cjs/types/Interface/models/IUser.d.ts +0 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/index.d.ts +7 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +7 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts +2 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.js +3 -0
- package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/mjs/api/resources/ExercicePrestation.d.ts +6 -0
- package/dist/mjs/api/resources/ExercicePrestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/ExercicePrestation.js +8 -0
- package/dist/mjs/api/resources/ExercicePrestation.js.map +1 -1
- package/dist/mjs/api/resources/InformationRequest.d.ts +11 -0
- package/dist/mjs/api/resources/InformationRequest.d.ts.map +1 -0
- package/dist/mjs/api/resources/InformationRequest.js +30 -0
- package/dist/mjs/api/resources/InformationRequest.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +6 -6
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts +2 -0
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.js +22 -0
- package/dist/mjs/types/Enum/BalanceSheetModule.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetRequest.d.ts +9 -0
- package/dist/mjs/types/Enum/BalanceSheetRequest.d.ts.map +1 -0
- package/dist/mjs/types/Enum/BalanceSheetRequest.js +10 -0
- package/dist/mjs/types/Enum/BalanceSheetRequest.js.map +1 -0
- package/dist/mjs/types/Enum/Card.d.ts +7 -1
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +7 -0
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +10 -1
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +69 -0
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/InformationRequestState.d.ts +6 -0
- package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +1 -0
- package/dist/mjs/types/Enum/InformationRequestState.js +7 -0
- package/dist/mjs/types/Enum/InformationRequestState.js.map +1 -0
- package/dist/mjs/types/Enum/InformationRequestType.d.ts +15 -0
- package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/InformationRequestType.js +43 -0
- package/dist/mjs/types/Enum/InformationRequestType.js.map +1 -0
- package/dist/mjs/types/Enum/MissionAcceptation.js +1 -1
- package/dist/mjs/types/Enum/MissionAcceptation.js.map +1 -1
- package/dist/mjs/types/Enum/Proceding.d.ts +8 -0
- package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Proceding.js +10 -2
- package/dist/mjs/types/Enum/Proceding.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts +7 -0
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{mfa/SetupInit.js → balanceSheetModuleRequest/Create.js} +13 -11
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts +6 -0
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{mfa/SetupVerify.js → balanceSheetModuleRequest/Query.js} +15 -11
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts +7 -0
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{mfa/VerifyCode.js → balanceSheetModuleRequest/Update.js} +15 -11
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.js.map +1 -0
- package/dist/mjs/types/Interface/api/card/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/card/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/Query.js +10 -2
- package/dist/mjs/types/Interface/api/card/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +15 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts +11 -0
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Update.js +58 -0
- package/dist/mjs/types/Interface/api/documentRequest/Update.js.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts +9 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.js +41 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.js +56 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +11 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.js +51 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +1 -0
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts +14 -0
- package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.js +2 -0
- package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.js.map +1 -0
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +6 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +1 -1
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts +24 -0
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IInformationRequest.js +2 -0
- package/dist/mjs/types/Interface/models/IInformationRequest.js.map +1 -0
- package/dist/mjs/types/Interface/models/IUser.d.ts +0 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/index.d.ts +7 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +7 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/DocumentRequest.ts +5 -1
- package/ts/api/resources/ExercicePrestation.ts +9 -0
- package/ts/api/resources/InformationRequest.ts +36 -0
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/BalanceSheet.ts +11 -11
- package/ts/types/Enum/BalanceSheetModule.ts +24 -1
- package/ts/types/Enum/BalanceSheetRequest.ts +8 -0
- package/ts/types/Enum/Card.ts +7 -0
- package/ts/types/Enum/Ged.ts +69 -0
- package/ts/types/Enum/InformationRequestState.ts +5 -0
- package/ts/types/Enum/InformationRequestType.ts +50 -0
- package/ts/types/Enum/MissionAcceptation.ts +1 -1
- package/ts/types/Enum/Proceding.ts +10 -2
- package/ts/types/Interface/api/balanceSheetModuleRequest/Create.ts +14 -0
- package/ts/types/Interface/api/balanceSheetModuleRequest/Query.ts +15 -0
- package/ts/types/Interface/api/balanceSheetModuleRequest/Update.ts +16 -0
- package/ts/types/Interface/api/card/Query.ts +9 -2
- package/ts/types/Interface/api/documentRequest/Query.ts +12 -1
- package/ts/types/Interface/api/documentRequest/Update.ts +37 -0
- package/ts/types/Interface/api/informationRequest/Create.ts +24 -0
- package/ts/types/Interface/api/informationRequest/Query.ts +36 -0
- package/ts/types/Interface/api/informationRequest/Update.ts +32 -0
- package/ts/types/Interface/models/IBalanceSheetModule.ts +7 -1
- package/ts/types/Interface/models/IBalanceSheetModuleRequest.ts +16 -0
- package/ts/types/Interface/models/IDocumentRequest.ts +7 -2
- package/ts/types/Interface/models/IInformationRequest.ts +26 -0
- package/ts/types/Interface/models/IUser.ts +0 -1
- package/ts/types/index.ts +7 -1
- package/dist/cjs/api/resources/Mfa.d.ts +0 -19
- package/dist/cjs/api/resources/Mfa.d.ts.map +0 -1
- package/dist/cjs/api/resources/Mfa.js +0 -27
- package/dist/cjs/api/resources/Mfa.js.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -7
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.d.ts +0 -4
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.js +0 -22
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/SetupInit.d.ts +0 -5
- package/dist/cjs/types/Interface/api/mfa/SetupInit.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/SetupInit.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.d.ts +0 -5
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.js +0 -27
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.d.ts +0 -5
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts +0 -5
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/mfa.d.ts +0 -19
- package/dist/cjs/types/Interface/api/mfa/mfa.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/mfa.js.map +0 -1
- package/dist/cjs/types/Interface/models/IUserMfa.d.ts +0 -12
- package/dist/cjs/types/Interface/models/IUserMfa.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IUserMfa.js +0 -3
- package/dist/cjs/types/Interface/models/IUserMfa.js.map +0 -1
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +0 -9
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js +0 -3
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js.map +0 -1
- package/dist/mjs/api/resources/Mfa.d.ts +0 -19
- package/dist/mjs/api/resources/Mfa.d.ts.map +0 -1
- package/dist/mjs/api/resources/Mfa.js +0 -23
- package/dist/mjs/api/resources/Mfa.js.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +0 -7
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js +0 -2
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.d.ts +0 -4
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.js +0 -19
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/SetupInit.d.ts +0 -5
- package/dist/mjs/types/Interface/api/mfa/SetupInit.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/SetupInit.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.d.ts +0 -5
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.d.ts +0 -5
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts +0 -5
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.js +0 -25
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/mfa.d.ts +0 -19
- package/dist/mjs/types/Interface/api/mfa/mfa.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/mfa.js +0 -2
- package/dist/mjs/types/Interface/api/mfa/mfa.js.map +0 -1
- package/dist/mjs/types/Interface/models/IUserMfa.d.ts +0 -12
- package/dist/mjs/types/Interface/models/IUserMfa.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IUserMfa.js +0 -2
- package/dist/mjs/types/Interface/models/IUserMfa.js.map +0 -1
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +0 -9
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js +0 -2
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js.map +0 -1
- package/ts/api/resources/Mfa.ts +0 -29
- package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +0 -6
- package/ts/types/Interface/api/mfa/DisableMfa.ts +0 -7
- package/ts/types/Interface/api/mfa/SetupInit.ts +0 -11
- package/ts/types/Interface/api/mfa/SetupVerify.ts +0 -11
- package/ts/types/Interface/api/mfa/VerifyCode.ts +0 -11
- package/ts/types/Interface/api/mfa/VerifyRecoveryCode.ts +0 -11
- package/ts/types/Interface/api/mfa/mfa.ts +0 -21
- package/ts/types/Interface/models/IUserMfa.ts +0 -11
- 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
|
|
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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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"}
|