@silexpert/core 1.3.195-7 → 1.3.195-9
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/Card.d.ts +1 -23
- package/dist/cjs/api/resources/Card.d.ts.map +1 -1
- package/dist/cjs/api/resources/Card.js +0 -36
- package/dist/cjs/api/resources/Card.js.map +1 -1
- package/dist/cjs/api/resources/LoginApproval.d.ts +18 -0
- package/dist/cjs/api/resources/LoginApproval.d.ts.map +1 -0
- package/dist/cjs/api/resources/LoginApproval.js +20 -0
- package/dist/cjs/api/resources/LoginApproval.js.map +1 -0
- package/dist/cjs/api/resources/Mfa.d.ts +1 -0
- package/dist/cjs/api/resources/Mfa.d.ts.map +1 -1
- package/dist/cjs/api/resources/Mfa.js +4 -0
- package/dist/cjs/api/resources/Mfa.js.map +1 -1
- package/dist/cjs/api/resources/Payment.d.ts +1 -0
- package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Payment.js +3 -0
- package/dist/cjs/api/resources/Payment.js.map +1 -1
- package/dist/cjs/api/resources/Society.d.ts +2 -1
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +3 -0
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/api/resources/SocietyApproval.d.ts +47 -0
- package/dist/cjs/api/resources/SocietyApproval.d.ts.map +1 -0
- package/dist/cjs/api/resources/SocietyApproval.js +62 -0
- package/dist/cjs/api/resources/SocietyApproval.js.map +1 -0
- package/dist/cjs/api/resources/UsersHistory.d.ts +6 -6
- package/dist/cjs/api/resources/UsersHistory.d.ts.map +1 -1
- package/dist/cjs/api/resources/UsersHistory.js +6 -6
- package/dist/cjs/api/resources/UsersHistory.js.map +1 -1
- package/dist/cjs/api/resources/Webex.d.ts +8 -0
- package/dist/cjs/api/resources/Webex.d.ts.map +1 -0
- package/dist/cjs/api/resources/Webex.js +17 -0
- package/dist/cjs/api/resources/Webex.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +4 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +4 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +2 -44
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +2 -52
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/EbookIntention.d.ts +8 -0
- package/dist/cjs/types/Enum/EbookIntention.d.ts.map +1 -0
- package/dist/cjs/types/Enum/EbookIntention.js +18 -0
- package/dist/cjs/types/Enum/EbookIntention.js.map +1 -0
- package/dist/cjs/types/Enum/Ged.d.ts +9 -3
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +154 -30
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/InformationRequestState.d.ts +2 -1
- package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +1 -1
- package/dist/cjs/types/Enum/InformationRequestState.js +1 -0
- package/dist/cjs/types/Enum/InformationRequestState.js.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts +2 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.js +6 -0
- package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts +14 -0
- package/dist/cjs/types/Enum/LoginApprovalStatus.d.ts.map +1 -0
- package/dist/cjs/types/Enum/LoginApprovalStatus.js +18 -0
- package/dist/cjs/types/Enum/LoginApprovalStatus.js.map +1 -0
- package/dist/cjs/types/Enum/MailAuto.d.ts +3 -1
- package/dist/cjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/cjs/types/Enum/MailAuto.js +2 -0
- package/dist/cjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/cjs/types/Enum/MfaMode.d.ts +12 -0
- package/dist/cjs/types/Enum/MfaMode.d.ts.map +1 -0
- package/dist/cjs/types/Enum/MfaMode.js +16 -0
- package/dist/cjs/types/Enum/MfaMode.js.map +1 -0
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +482 -478
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/Proceding.d.ts +4 -0
- package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Proceding.js +4 -0
- package/dist/cjs/types/Enum/Proceding.js.map +1 -1
- package/dist/cjs/types/Enum/SocietyApproval.d.ts +46 -0
- package/dist/cjs/types/Enum/SocietyApproval.d.ts.map +1 -0
- package/dist/cjs/types/Enum/SocietyApproval.js +280 -0
- package/dist/cjs/types/Enum/SocietyApproval.js.map +1 -0
- package/dist/cjs/types/Enum/StatutsSection.d.ts +7 -1
- package/dist/cjs/types/Enum/StatutsSection.d.ts.map +1 -1
- package/dist/cjs/types/Enum/StatutsSection.js +15 -7
- package/dist/cjs/types/Enum/StatutsSection.js.map +1 -1
- package/dist/cjs/types/Enum/UsersHistory.d.ts +8 -10
- package/dist/cjs/types/Enum/UsersHistory.d.ts.map +1 -1
- package/dist/cjs/types/Enum/UsersHistory.js +29 -33
- package/dist/cjs/types/Enum/UsersHistory.js.map +1 -1
- package/dist/cjs/types/Interface/api/SocietyApproval.d.ts +36 -0
- package/dist/cjs/types/Interface/api/SocietyApproval.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/SocietyApproval.js +153 -0
- package/dist/cjs/types/Interface/api/SocietyApproval.js.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +10 -0
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +4 -0
- package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js +21 -0
- package/dist/cjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +17 -0
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +4 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +5 -0
- package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{card/ModifyCustomerVat.js → authentification/SetMobileApprovalDto.js} +11 -13
- package/dist/cjs/types/Interface/api/authentification/SetMobileApprovalDto.js.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts +66 -0
- package/dist/cjs/types/Interface/api/authentification/loginApproval.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/loginApproval.js +26 -0
- package/dist/cjs/types/Interface/api/authentification/loginApproval.js.map +1 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +0 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +0 -6
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankAccount/Benchmark.d.ts +5 -0
- package/dist/cjs/types/Interface/api/bankAccount/Benchmark.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/bankAccount/Benchmark.js +21 -0
- package/dist/cjs/types/Interface/api/bankAccount/Benchmark.js.map +1 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts +2 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.js +6 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/Cron.d.ts +3 -0
- package/dist/cjs/types/Interface/api/card/Cron.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/Cron.js +10 -1
- package/dist/cjs/types/Interface/api/card/Cron.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts +1 -11
- package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/QueryUserCards.js +7 -44
- package/dist/cjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +0 -13
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.js +1 -58
- package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +3 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/informationRequest/Update.js +10 -1
- package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +1 -1
- package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.js +2 -0
- package/dist/cjs/types/Interface/api/oldExportInfo/OldExpertInfos.js.map +1 -1
- package/dist/cjs/types/Interface/api/prestation/Query.d.ts +1 -0
- package/dist/cjs/types/Interface/api/prestation/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/prestation/Query.js +7 -0
- package/dist/cjs/types/Interface/api/prestation/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts +1 -0
- package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/RegisterProspect.js +6 -0
- package/dist/cjs/types/Interface/api/user/RegisterProspect.js.map +1 -1
- package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts +9 -0
- package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{card/ModifyAcceptation.js → usersHistory/Create.js} +20 -22
- package/dist/cjs/types/Interface/api/usersHistory/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts +7 -0
- package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/usersHistory/Update.js +31 -0
- package/dist/cjs/types/Interface/api/usersHistory/Update.js.map +1 -0
- package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.d.ts +7 -0
- package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{card/Query.js → webex/GetWebinarsParams.js} +16 -15
- package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.js.map +1 -0
- package/dist/cjs/types/Interface/api/webex/PaginatedWebinars.d.ts +7 -0
- package/dist/cjs/types/Interface/api/webex/PaginatedWebinars.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/webex/PaginatedWebinars.js +3 -0
- package/dist/cjs/types/Interface/api/webex/PaginatedWebinars.js.map +1 -0
- package/dist/cjs/types/Interface/api/webex/WebexMeeting.d.ts +22 -0
- package/dist/cjs/types/Interface/api/webex/WebexMeeting.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/webex/WebexMeeting.js +3 -0
- package/dist/cjs/types/Interface/api/webex/WebexMeeting.js.map +1 -0
- package/dist/cjs/types/Interface/api/webex/WebexRegistrant.d.ts +18 -0
- package/dist/cjs/types/Interface/api/webex/WebexRegistrant.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/webex/WebexRegistrant.js +40 -0
- package/dist/cjs/types/Interface/api/webex/WebexRegistrant.js.map +1 -0
- package/dist/cjs/types/Interface/api/woocommerce/InvoicesWoocommerce.d.ts +6 -5
- package/dist/cjs/types/Interface/api/woocommerce/InvoicesWoocommerce.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/woocommerce/InvoicesWoocommerce.js +14 -0
- package/dist/cjs/types/Interface/api/woocommerce/InvoicesWoocommerce.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts +0 -3
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts +0 -19
- package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICardHistory.d.ts +0 -4
- package/dist/cjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICardHistory.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts +0 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.js.map +1 -1
- package/dist/cjs/types/Interface/models/ILoginApproval.d.ts +31 -0
- package/dist/cjs/types/Interface/models/ILoginApproval.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/ILoginApproval.js +3 -0
- package/dist/cjs/types/Interface/models/ILoginApproval.js.map +1 -0
- package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts +2 -0
- package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyApproval.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +2 -0
- 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/Interface/models/IUsersHistory.d.ts +10 -6
- package/dist/cjs/types/Interface/models/IUsersHistory.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUsersHistory.js.map +1 -1
- package/dist/cjs/types/index.d.ts +16 -5
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +16 -5
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js +21 -19
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.d.ts.map +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +1 -0
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/cjs/utils/societyApproval.d.ts +38 -0
- package/dist/cjs/utils/societyApproval.d.ts.map +1 -0
- package/dist/cjs/utils/societyApproval.js +101 -0
- package/dist/cjs/utils/societyApproval.js.map +1 -0
- package/dist/mjs/api/resources/Card.d.ts +1 -23
- package/dist/mjs/api/resources/Card.d.ts.map +1 -1
- package/dist/mjs/api/resources/Card.js +0 -45
- package/dist/mjs/api/resources/Card.js.map +1 -1
- package/dist/mjs/api/resources/LoginApproval.d.ts +18 -0
- package/dist/mjs/api/resources/LoginApproval.d.ts.map +1 -0
- package/dist/mjs/api/resources/LoginApproval.js +16 -0
- package/dist/mjs/api/resources/LoginApproval.js.map +1 -0
- package/dist/mjs/api/resources/Mfa.d.ts +1 -0
- package/dist/mjs/api/resources/Mfa.d.ts.map +1 -1
- package/dist/mjs/api/resources/Mfa.js +4 -0
- package/dist/mjs/api/resources/Mfa.js.map +1 -1
- package/dist/mjs/api/resources/Payment.d.ts +1 -0
- package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Payment.js +3 -0
- package/dist/mjs/api/resources/Payment.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +2 -1
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +3 -0
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/api/resources/SocietyApproval.d.ts +47 -0
- package/dist/mjs/api/resources/SocietyApproval.d.ts.map +1 -0
- package/dist/mjs/api/resources/SocietyApproval.js +58 -0
- package/dist/mjs/api/resources/SocietyApproval.js.map +1 -0
- package/dist/mjs/api/resources/UsersHistory.d.ts +6 -6
- package/dist/mjs/api/resources/UsersHistory.d.ts.map +1 -1
- package/dist/mjs/api/resources/UsersHistory.js +12 -6
- package/dist/mjs/api/resources/UsersHistory.js.map +1 -1
- package/dist/mjs/api/resources/Webex.d.ts +8 -0
- package/dist/mjs/api/resources/Webex.d.ts.map +1 -0
- package/dist/mjs/api/resources/Webex.js +13 -0
- package/dist/mjs/api/resources/Webex.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +4 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +4 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +2 -44
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +2 -52
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/EbookIntention.d.ts +8 -0
- package/dist/mjs/types/Enum/EbookIntention.d.ts.map +1 -0
- package/dist/mjs/types/Enum/EbookIntention.js +15 -0
- package/dist/mjs/types/Enum/EbookIntention.js.map +1 -0
- package/dist/mjs/types/Enum/Ged.d.ts +9 -3
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +154 -30
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/InformationRequestState.d.ts +2 -1
- package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +1 -1
- package/dist/mjs/types/Enum/InformationRequestState.js +1 -0
- package/dist/mjs/types/Enum/InformationRequestState.js.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts +2 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.js +6 -0
- package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts +14 -0
- package/dist/mjs/types/Enum/LoginApprovalStatus.d.ts.map +1 -0
- package/dist/mjs/types/Enum/LoginApprovalStatus.js +15 -0
- package/dist/mjs/types/Enum/LoginApprovalStatus.js.map +1 -0
- package/dist/mjs/types/Enum/MailAuto.d.ts +3 -1
- package/dist/mjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/mjs/types/Enum/MailAuto.js +2 -0
- package/dist/mjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/mjs/types/Enum/MfaMode.d.ts +12 -0
- package/dist/mjs/types/Enum/MfaMode.d.ts.map +1 -0
- package/dist/mjs/types/Enum/MfaMode.js +13 -0
- package/dist/mjs/types/Enum/MfaMode.js.map +1 -0
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +486 -474
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/Proceding.d.ts +4 -0
- package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Proceding.js +4 -0
- package/dist/mjs/types/Enum/Proceding.js.map +1 -1
- package/dist/mjs/types/Enum/SocietyApproval.d.ts +46 -0
- package/dist/mjs/types/Enum/SocietyApproval.d.ts.map +1 -0
- package/dist/mjs/types/Enum/SocietyApproval.js +277 -0
- package/dist/mjs/types/Enum/SocietyApproval.js.map +1 -0
- package/dist/mjs/types/Enum/StatutsSection.d.ts +7 -1
- package/dist/mjs/types/Enum/StatutsSection.d.ts.map +1 -1
- package/dist/mjs/types/Enum/StatutsSection.js +15 -7
- package/dist/mjs/types/Enum/StatutsSection.js.map +1 -1
- package/dist/mjs/types/Enum/UsersHistory.d.ts +8 -10
- package/dist/mjs/types/Enum/UsersHistory.d.ts.map +1 -1
- package/dist/mjs/types/Enum/UsersHistory.js +28 -32
- package/dist/mjs/types/Enum/UsersHistory.js.map +1 -1
- package/dist/mjs/types/Interface/api/SocietyApproval.d.ts +36 -0
- package/dist/mjs/types/Interface/api/SocietyApproval.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/SocietyApproval.js +167 -0
- package/dist/mjs/types/Interface/api/SocietyApproval.js.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +10 -0
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +4 -0
- package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js +18 -0
- package/dist/mjs/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +17 -0
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +7 -0
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +5 -0
- package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.js +25 -0
- package/dist/mjs/types/Interface/api/authentification/SetMobileApprovalDto.js.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts +66 -0
- package/dist/mjs/types/Interface/api/authentification/loginApproval.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/loginApproval.js +23 -0
- package/dist/mjs/types/Interface/api/authentification/loginApproval.js.map +1 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +0 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +0 -7
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankAccount/Benchmark.d.ts +5 -0
- package/dist/mjs/types/Interface/api/bankAccount/Benchmark.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/bankAccount/Benchmark.js +18 -0
- package/dist/mjs/types/Interface/api/bankAccount/Benchmark.js.map +1 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts +2 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.js +7 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/Cron.d.ts +3 -0
- package/dist/mjs/types/Interface/api/card/Cron.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/Cron.js +8 -0
- package/dist/mjs/types/Interface/api/card/Cron.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts +1 -11
- package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/QueryUserCards.js +7 -43
- package/dist/mjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +0 -13
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.js +1 -65
- package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +3 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/informationRequest/Update.js +9 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +1 -1
- package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.js +2 -0
- package/dist/mjs/types/Interface/api/oldExportInfo/OldExpertInfos.js.map +1 -1
- package/dist/mjs/types/Interface/api/prestation/Query.d.ts +1 -0
- package/dist/mjs/types/Interface/api/prestation/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/prestation/Query.js +8 -0
- package/dist/mjs/types/Interface/api/prestation/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts +1 -0
- package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/RegisterProspect.js +7 -0
- package/dist/mjs/types/Interface/api/user/RegisterProspect.js.map +1 -1
- package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts +9 -0
- package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{card/ModifyAcceptation.js → usersHistory/Create.js} +20 -21
- package/dist/mjs/types/Interface/api/usersHistory/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts +7 -0
- package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{card/ModifyCustomerVat.js → usersHistory/Update.js} +14 -12
- package/dist/mjs/types/Interface/api/usersHistory/Update.js.map +1 -0
- package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.d.ts +7 -0
- package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{card/Query.js → webex/GetWebinarsParams.js} +20 -16
- package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.js.map +1 -0
- package/dist/mjs/types/Interface/api/webex/PaginatedWebinars.d.ts +7 -0
- package/dist/mjs/types/Interface/api/webex/PaginatedWebinars.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/webex/PaginatedWebinars.js +2 -0
- package/dist/mjs/types/Interface/api/webex/PaginatedWebinars.js.map +1 -0
- package/dist/mjs/types/Interface/api/webex/WebexMeeting.d.ts +22 -0
- package/dist/mjs/types/Interface/api/webex/WebexMeeting.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/webex/WebexMeeting.js +2 -0
- package/dist/mjs/types/Interface/api/webex/WebexMeeting.js.map +1 -0
- package/dist/mjs/types/Interface/api/webex/WebexRegistrant.d.ts +18 -0
- package/dist/mjs/types/Interface/api/webex/WebexRegistrant.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/webex/WebexRegistrant.js +40 -0
- package/dist/mjs/types/Interface/api/webex/WebexRegistrant.js.map +1 -0
- package/dist/mjs/types/Interface/api/woocommerce/InvoicesWoocommerce.d.ts +6 -5
- package/dist/mjs/types/Interface/api/woocommerce/InvoicesWoocommerce.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/woocommerce/InvoicesWoocommerce.js +15 -0
- package/dist/mjs/types/Interface/api/woocommerce/InvoicesWoocommerce.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts +0 -3
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts +0 -19
- package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICardHistory.d.ts +0 -4
- package/dist/mjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICardHistory.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts +0 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.js.map +1 -1
- package/dist/mjs/types/Interface/models/ILoginApproval.d.ts +31 -0
- package/dist/mjs/types/Interface/models/ILoginApproval.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/ILoginApproval.js +2 -0
- package/dist/mjs/types/Interface/models/ILoginApproval.js.map +1 -0
- package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts +2 -0
- package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyApproval.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +2 -0
- 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/Interface/models/IUsersHistory.d.ts +10 -6
- package/dist/mjs/types/Interface/models/IUsersHistory.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUsersHistory.js.map +1 -1
- package/dist/mjs/types/index.d.ts +16 -5
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +16 -5
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js +21 -19
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/mjs/utils/index.d.ts +1 -0
- package/dist/mjs/utils/index.d.ts.map +1 -1
- package/dist/mjs/utils/index.js +1 -0
- package/dist/mjs/utils/index.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +1 -0
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/dist/mjs/utils/societyApproval.d.ts +38 -0
- package/dist/mjs/utils/societyApproval.d.ts.map +1 -0
- package/dist/mjs/utils/societyApproval.js +109 -0
- package/dist/mjs/utils/societyApproval.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/Card.ts +0 -61
- package/ts/api/resources/LoginApproval.ts +20 -0
- package/ts/api/resources/Mfa.ts +6 -0
- package/ts/api/resources/Payment.ts +4 -0
- package/ts/api/resources/Society.ts +5 -0
- package/ts/api/resources/SocietyApproval.ts +75 -0
- package/ts/api/resources/UsersHistory.ts +17 -11
- package/ts/api/resources/Webex.ts +16 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/Card.ts +2 -52
- package/ts/types/Enum/EbookIntention.ts +14 -0
- package/ts/types/Enum/Ged.ts +380 -248
- package/ts/types/Enum/InformationRequestState.ts +1 -0
- package/ts/types/Enum/JobTitle.ts +6 -0
- package/ts/types/Enum/LoginApprovalStatus.ts +13 -0
- package/ts/types/Enum/MailAuto.ts +2 -0
- package/ts/types/Enum/MfaMode.ts +11 -0
- package/ts/types/Enum/PriceGridClementine.ts +487 -474
- package/ts/types/Enum/Proceding.ts +4 -0
- package/ts/types/Enum/SocietyApproval.ts +301 -0
- package/ts/types/Enum/StatutsSection.ts +15 -7
- package/ts/types/Enum/UsersHistory.ts +20 -24
- package/ts/types/Interface/api/SocietyApproval.ts +121 -0
- package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +10 -0
- package/ts/types/Interface/api/authentification/FinalizeMobileApprovalDto.ts +6 -0
- package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +18 -0
- package/ts/types/Interface/api/authentification/SetMobileApprovalDto.ts +11 -0
- package/ts/types/Interface/api/authentification/loginApproval.ts +75 -0
- package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +0 -5
- package/ts/types/Interface/api/bankAccount/Benchmark.ts +7 -0
- package/ts/types/Interface/api/brevo/BrevoElement.ts +6 -0
- package/ts/types/Interface/api/card/Cron.ts +8 -1
- package/ts/types/Interface/api/card/QueryUserCards.ts +6 -36
- package/ts/types/Interface/api/card/UpdateCard.ts +2 -50
- package/ts/types/Interface/api/informationRequest/Update.ts +7 -0
- package/ts/types/Interface/api/oldExportInfo/OldExpertInfos.ts +2 -0
- package/ts/types/Interface/api/prestation/Query.ts +6 -0
- package/ts/types/Interface/api/user/RegisterProspect.ts +5 -0
- package/ts/types/Interface/api/usersHistory/Create.ts +24 -0
- package/ts/types/Interface/api/usersHistory/Update.ts +17 -0
- package/ts/types/Interface/api/webex/GetWebinarsParams.ts +20 -0
- package/ts/types/Interface/api/webex/PaginatedWebinars.ts +7 -0
- package/ts/types/Interface/api/webex/WebexMeeting.ts +21 -0
- package/ts/types/Interface/api/webex/WebexRegistrant.ts +34 -0
- package/ts/types/Interface/api/woocommerce/InvoicesWoocommerce.ts +17 -5
- package/ts/types/Interface/models/IBalanceSheet.ts +0 -3
- package/ts/types/Interface/models/ICard.ts +0 -20
- package/ts/types/Interface/models/ICardHistory.ts +0 -4
- package/ts/types/Interface/models/ICustomerVat.ts +0 -1
- package/ts/types/Interface/models/ILoginApproval.ts +31 -0
- package/ts/types/Interface/models/ISocietyApproval.ts +2 -0
- package/ts/types/Interface/models/IUser.ts +2 -0
- package/ts/types/Interface/models/IUsersHistory.ts +14 -6
- package/ts/types/index.ts +17 -5
- package/ts/utils/commercialManagement/internationalization/choices.ts +21 -19
- package/ts/utils/index.ts +1 -0
- package/ts/utils/prestation.ts +1 -0
- package/ts/utils/societyApproval.ts +129 -0
- package/dist/cjs/types/Interface/api/card/ModifyAcceptation.d.ts +0 -9
- package/dist/cjs/types/Interface/api/card/ModifyAcceptation.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/card/ModifyAcceptation.js.map +0 -1
- package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.d.ts +0 -25
- package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.js +0 -106
- package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.js.map +0 -1
- package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.d.ts +0 -5
- package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.js.map +0 -1
- package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts +0 -18
- package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/card/ModifyPlanning.js +0 -79
- package/dist/cjs/types/Interface/api/card/ModifyPlanning.js.map +0 -1
- package/dist/cjs/types/Interface/api/card/Query.d.ts +0 -8
- package/dist/cjs/types/Interface/api/card/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/card/Query.js.map +0 -1
- package/dist/mjs/types/Interface/api/card/ModifyAcceptation.d.ts +0 -9
- package/dist/mjs/types/Interface/api/card/ModifyAcceptation.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/card/ModifyAcceptation.js.map +0 -1
- package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.d.ts +0 -25
- package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.js +0 -115
- package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.js.map +0 -1
- package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.d.ts +0 -5
- package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.js.map +0 -1
- package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts +0 -18
- package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/card/ModifyPlanning.js +0 -84
- package/dist/mjs/types/Interface/api/card/ModifyPlanning.js.map +0 -1
- package/dist/mjs/types/Interface/api/card/Query.d.ts +0 -8
- package/dist/mjs/types/Interface/api/card/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/card/Query.js.map +0 -1
- package/ts/types/Interface/api/card/ModifyAcceptation.ts +0 -24
- package/ts/types/Interface/api/card/ModifyBalanceSheet.ts +0 -81
- package/ts/types/Interface/api/card/ModifyCustomerVat.ts +0 -13
- package/ts/types/Interface/api/card/ModifyPlanning.ts +0 -52
- package/ts/types/Interface/api/card/Query.ts +0 -19
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
|
|
2
|
+
import { SocietyApprovalDocumentType, SocietyApprovalDocumentConfig, SocietyApprovalDocumentTemplate } from '../types/Enum/SocietyApproval';
|
|
3
|
+
import { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';
|
|
4
|
+
/**
|
|
5
|
+
* Récupère le nom de la forme juridique
|
|
6
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
7
|
+
* @param fallback - Valeur par défaut si non trouvée
|
|
8
|
+
* @returns Le nom de la forme juridique
|
|
9
|
+
*/
|
|
10
|
+
export declare function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback?: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Récupère la configuration des documents d'approbation pour une forme juridique donnée
|
|
13
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
14
|
+
* @returns La configuration des documents ou undefined si non trouvée
|
|
15
|
+
*/
|
|
16
|
+
export declare function getApprovalDocumentsByLegalForm(idLegalForm: LegalFormTypeEnum): SocietyApprovalDocumentConfig | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Récupère le nom du template pour un document spécifique et une forme juridique
|
|
19
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
20
|
+
* @param idDocumentType - Le type de document d'approbation
|
|
21
|
+
* @returns Le nom du template ou undefined si non trouvé
|
|
22
|
+
*/
|
|
23
|
+
export declare function getApprovalDocumentTemplateName(idLegalForm: LegalFormTypeEnum, idDocumentType: SocietyApprovalDocumentType): string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Récupère le nom du template pour un document spécifique et une forme juridique
|
|
26
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
27
|
+
* @param idDocumentType - Le type de document d'approbation
|
|
28
|
+
* @returns Le nom du template ou undefined si non trouvé
|
|
29
|
+
*/
|
|
30
|
+
export declare function getApprovalDocumentInfos(idLegalForm: LegalFormTypeEnum, idDocumentType: SocietyApprovalDocumentType): SocietyApprovalDocumentTemplate | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Construit les données formatées pour le template d'approbation
|
|
33
|
+
* @param existingApproval - Les données d'approbation de la société
|
|
34
|
+
* @param style - Le style HTML pour le document
|
|
35
|
+
* @returns L'objet de données formaté pour le template
|
|
36
|
+
*/
|
|
37
|
+
export declare function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any>;
|
|
38
|
+
//# sourceMappingURL=societyApproval.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"societyApproval.d.ts","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAE7B,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAO9E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,EAAE,QAAQ,GAAE,MAAW,GAAG,MAAM,CAE9F;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,GAC7B,6BAA6B,GAAG,SAAS,CAE3C;AAED;;;;;GAKG;AAEH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,MAAM,GAAG,SAAS,CAIpB;AAYD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,+BAA+B,GAAG,SAAS,CAG7C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+ChH"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { LegalForm } from '../types/Enum/LegalForm';
|
|
2
|
+
import { SocietyApprovalDocumentsByLegalForm, } from '../types/Enum/SocietyApproval';
|
|
3
|
+
import { QualityList } from '../types/Enum/Quality';
|
|
4
|
+
import { getBrand } from './brands';
|
|
5
|
+
import { convertNumberToLetter } from './amount';
|
|
6
|
+
import * as dayjs from 'dayjs';
|
|
7
|
+
import { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';
|
|
8
|
+
/**
|
|
9
|
+
* Récupère le nom de la forme juridique
|
|
10
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
11
|
+
* @param fallback - Valeur par défaut si non trouvée
|
|
12
|
+
* @returns Le nom de la forme juridique
|
|
13
|
+
*/
|
|
14
|
+
export function getLegalFormName(idLegalForm, fallback = '') {
|
|
15
|
+
return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Récupère la configuration des documents d'approbation pour une forme juridique donnée
|
|
19
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
20
|
+
* @returns La configuration des documents ou undefined si non trouvée
|
|
21
|
+
*/
|
|
22
|
+
export function getApprovalDocumentsByLegalForm(idLegalForm) {
|
|
23
|
+
return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Récupère le nom du template pour un document spécifique et une forme juridique
|
|
27
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
28
|
+
* @param idDocumentType - Le type de document d'approbation
|
|
29
|
+
* @returns Le nom du template ou undefined si non trouvé
|
|
30
|
+
*/
|
|
31
|
+
//@deprecated use getApprovalDocumentInfos instead
|
|
32
|
+
export function getApprovalDocumentTemplateName(idLegalForm, idDocumentType) {
|
|
33
|
+
const config = getApprovalDocumentsByLegalForm(idLegalForm);
|
|
34
|
+
const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
|
|
35
|
+
return document?.templateName;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Récupère le texte de la ville du greffe
|
|
39
|
+
* @param idCityOfGreffe - L'identifiant de la ville du greffe
|
|
40
|
+
* @returns Le texte de la ville ou une chaîne vide
|
|
41
|
+
*/
|
|
42
|
+
function getCityOfGreffeName(idCityOfGreffe) {
|
|
43
|
+
if (!idCityOfGreffe)
|
|
44
|
+
return '';
|
|
45
|
+
return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Récupère le nom du template pour un document spécifique et une forme juridique
|
|
49
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
50
|
+
* @param idDocumentType - Le type de document d'approbation
|
|
51
|
+
* @returns Le nom du template ou undefined si non trouvé
|
|
52
|
+
*/
|
|
53
|
+
export function getApprovalDocumentInfos(idLegalForm, idDocumentType) {
|
|
54
|
+
const config = getApprovalDocumentsByLegalForm(idLegalForm);
|
|
55
|
+
return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Construit les données formatées pour le template d'approbation
|
|
59
|
+
* @param existingApproval - Les données d'approbation de la société
|
|
60
|
+
* @param style - Le style HTML pour le document
|
|
61
|
+
* @returns L'objet de données formaté pour le template
|
|
62
|
+
*/
|
|
63
|
+
export function buildApprovalTemplateData(existingApproval, style) {
|
|
64
|
+
const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();
|
|
65
|
+
const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;
|
|
66
|
+
const brand = getBrand();
|
|
67
|
+
return {
|
|
68
|
+
// Variables globales
|
|
69
|
+
style,
|
|
70
|
+
yearInText,
|
|
71
|
+
dayAndMonthInText,
|
|
72
|
+
date: dayjs().locale('fr').format('DD MMMM YYYY'),
|
|
73
|
+
companyInformation: {
|
|
74
|
+
rcs: brand?.companyInformation?.rcs,
|
|
75
|
+
nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,
|
|
76
|
+
city: brand?.companyInformation?.city,
|
|
77
|
+
postalAddress: brand?.companyInformation?.postalAddress,
|
|
78
|
+
montantCapital: brand?.companyInformation?.montantCapital,
|
|
79
|
+
statut: brand?.companyInformation?.statut,
|
|
80
|
+
ECOrderCity: brand?.companyInformation?.ECOrderCity,
|
|
81
|
+
},
|
|
82
|
+
owner: {
|
|
83
|
+
identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,
|
|
84
|
+
quality: QualityList.find((ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality)?.label,
|
|
85
|
+
},
|
|
86
|
+
// Variables stockées en base
|
|
87
|
+
...existingApproval,
|
|
88
|
+
generatingDatas: {
|
|
89
|
+
...existingApproval?.generatingDatas,
|
|
90
|
+
...(existingApproval?.generatingDatas?.approvalDate
|
|
91
|
+
? {
|
|
92
|
+
approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)
|
|
93
|
+
.locale('fr')
|
|
94
|
+
.format('DD MMMM YYYY')
|
|
95
|
+
.toUpperCase(),
|
|
96
|
+
}
|
|
97
|
+
: {}),
|
|
98
|
+
},
|
|
99
|
+
exercice: {
|
|
100
|
+
...existingApproval?.exercice,
|
|
101
|
+
society: {
|
|
102
|
+
...existingApproval?.exercice?.society,
|
|
103
|
+
cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),
|
|
104
|
+
},
|
|
105
|
+
endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=societyApproval.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"societyApproval.js","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"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","sourcesContent":["import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n SocietyApprovalDocumentTemplate,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\nimport { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';\n\n/**\n * Récupère le nom de la forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param fallback - Valeur par défaut si non trouvée\n * @returns Le nom de la forme juridique\n */\nexport function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {\n return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;\n}\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\n//@deprecated use getApprovalDocumentInfos instead\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Récupère le texte de la ville du greffe\n * @param idCityOfGreffe - L'identifiant de la ville du greffe\n * @returns Le texte de la ville ou une chaîne vide\n */\nfunction getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {\n if (!idCityOfGreffe) return '';\n return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentInfos(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): SocietyApprovalDocumentTemplate | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;\n const brand = getBrand();\n return {\n // Variables globales\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: brand?.companyInformation?.rcs,\n nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,\n city: brand?.companyInformation?.city,\n postalAddress: brand?.companyInformation?.postalAddress,\n montantCapital: brand?.companyInformation?.montantCapital,\n statut: brand?.companyInformation?.statut,\n ECOrderCity: brand?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n society: {\n ...existingApproval?.exercice?.society,\n cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),\n },\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),\n },\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.195-
|
|
3
|
+
"version": "1.3.195-9",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
package/ts/api/resources/Card.ts
CHANGED
|
@@ -3,15 +3,6 @@ import {
|
|
|
3
3
|
ICard,
|
|
4
4
|
QueryUserCards,
|
|
5
5
|
QueryUserCardsPaginated,
|
|
6
|
-
QueryUserCardsStats,
|
|
7
|
-
CardsStatsGroup,
|
|
8
|
-
UpdateCard,
|
|
9
|
-
ModifyTeamPlanning,
|
|
10
|
-
ModifyExercisePlanning,
|
|
11
|
-
OrganizeBalanceSheets,
|
|
12
|
-
OrganizeBalanceSheetsResponse,
|
|
13
|
-
QueryInternalCardsStats,
|
|
14
|
-
InternalCardStats,
|
|
15
6
|
BasePaginate,
|
|
16
7
|
UpdateCardV2,
|
|
17
8
|
AssignCard,
|
|
@@ -38,62 +29,10 @@ export class Card extends Resource {
|
|
|
38
29
|
});
|
|
39
30
|
}
|
|
40
31
|
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use getAll instead
|
|
43
|
-
*/
|
|
44
|
-
getAllAdmin(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]> {
|
|
45
|
-
return this.axios.$get('/cards', {
|
|
46
|
-
...(signal ? { signal } : {}),
|
|
47
|
-
params,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
getStats(params: QueryUserCardsStats, signal?: AbortSignal): Promise<CardsStatsGroup[]> {
|
|
52
|
-
return this.axios.$get('/cards/stats', {
|
|
53
|
-
...(signal ? { signal } : {}),
|
|
54
|
-
params,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
getInternalStats(params: QueryInternalCardsStats, signal?: AbortSignal): Promise<InternalCardStats[]> {
|
|
59
|
-
return this.axios.$get('/cards/internal/stats', {
|
|
60
|
-
...(signal ? { signal } : {}),
|
|
61
|
-
params,
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @deprecated Use updateV2 instead
|
|
67
|
-
*/
|
|
68
|
-
update(id: number, data: UpdateCard): Promise<ICard> {
|
|
69
|
-
return this.axios.$put(`/cards/${id}`, data);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
32
|
delete(id: number): Promise<void> {
|
|
73
33
|
return this.axios.$delete(`/cards/${id}`);
|
|
74
34
|
}
|
|
75
35
|
|
|
76
|
-
/**
|
|
77
|
-
* @deprecated comptallo v1 endpoint
|
|
78
|
-
*/
|
|
79
|
-
modifyTeamPlanning(data: ModifyTeamPlanning): Promise<true> {
|
|
80
|
-
return this.axios.$put('/cards/assign/modify-team-planning', data);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated comptallo v1 endpoint
|
|
85
|
-
*/
|
|
86
|
-
modifyExercisePlanning(data: ModifyExercisePlanning): Promise<true> {
|
|
87
|
-
return this.axios.$put('/cards/assign/modify-exercise-planning', data);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated comptallo v1 endpoint
|
|
92
|
-
*/
|
|
93
|
-
organizeFutureBalanceSheets(data: OrganizeBalanceSheets): Promise<OrganizeBalanceSheetsResponse> {
|
|
94
|
-
return this.axios.$post('/cards/accountant/organize/future-balance-sheets', data);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
36
|
updateV2(idCard: number, data: UpdateCardV2): Promise<ICard> {
|
|
98
37
|
return this.axios.$put(`/cards/${idCard}/v2`, data);
|
|
99
38
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import { ILoginApprovalStatusResponse } from '../../types/Interface/api/authentification/loginApproval';
|
|
3
|
+
|
|
4
|
+
export class LoginApproval extends Resource {
|
|
5
|
+
approve(requestId: string, deviceId: string): Promise<{ message: string; status: string }> {
|
|
6
|
+
return this.axios.$post(`/auth/approvals/${requestId}/approve`, { deviceId });
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
deny(requestId: string, deviceId: string): Promise<{ message: string; status: string }> {
|
|
10
|
+
return this.axios.$post(`/auth/approvals/${requestId}/deny`, { deviceId });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
getStatus(requestId: string): Promise<ILoginApprovalStatusResponse> {
|
|
14
|
+
return this.axios.$get(`/auth/approvals/${requestId}/status`);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
cleanup(): Promise<{ deleted: number; message: string }> {
|
|
18
|
+
return this.axios.$post('/auth/approvals/cleanup');
|
|
19
|
+
}
|
|
20
|
+
}
|
package/ts/api/resources/Mfa.ts
CHANGED
|
@@ -26,4 +26,10 @@ export class UserMfa extends Resource {
|
|
|
26
26
|
// Si userId est fourni, l'envoyer en query param, sinon vérifier l'user connecté
|
|
27
27
|
return this.axios.$get('/mfa/is-enabled', userId ? { params: { userId } } : undefined);
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
///// Mobile Approval MFA /////
|
|
31
|
+
|
|
32
|
+
setMobileApproval(userId: number, enable: boolean): Promise<void> {
|
|
33
|
+
return this.axios.$post('/mfa/mobile-approval', { userId, enable });
|
|
34
|
+
}
|
|
29
35
|
}
|
|
@@ -162,6 +162,10 @@ export class Payment extends Resource {
|
|
|
162
162
|
return this.axios.$get('/payments', { params: query, signal });
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
getLastPayment(idSociety: number): Promise<IPayment> {
|
|
166
|
+
return this.axios.$get(`/payment/${idSociety}/last`);
|
|
167
|
+
}
|
|
168
|
+
|
|
165
169
|
update(id: number, payload: UpdatePayment): Promise<IPayment> {
|
|
166
170
|
return this.axios.$patch(`/payments/${id}`, payload);
|
|
167
171
|
}
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
DataCustomersCsv,
|
|
31
31
|
ReadCurrentPrestations,
|
|
32
32
|
QueryToArchivedSociety,
|
|
33
|
+
ReadFeatureAccess,
|
|
33
34
|
} from '../../types';
|
|
34
35
|
import { CancelToken } from 'axios';
|
|
35
36
|
|
|
@@ -205,4 +206,8 @@ export class Society extends Resource {
|
|
|
205
206
|
},
|
|
206
207
|
});
|
|
207
208
|
}
|
|
209
|
+
|
|
210
|
+
getAllFeatures(idSociety: number): Promise<ReadFeatureAccess> {
|
|
211
|
+
return this.axios.$get(`/societies/${idSociety}/features`);
|
|
212
|
+
}
|
|
208
213
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import {
|
|
3
|
+
ISocietyApproval,
|
|
4
|
+
CreateDocument,
|
|
5
|
+
ReadLibraryFile,
|
|
6
|
+
ResetDocument,
|
|
7
|
+
IDocumentSection,
|
|
8
|
+
IApprovalGeneratingData,
|
|
9
|
+
} from '../../types';
|
|
10
|
+
|
|
11
|
+
export class SocietyApproval extends Resource {
|
|
12
|
+
/**
|
|
13
|
+
* Get society approval data for a given exercice
|
|
14
|
+
* @param idExercice - The exercice ID
|
|
15
|
+
* @returns Society approval with all needed data
|
|
16
|
+
*/
|
|
17
|
+
get(idExercice: number): Promise<ISocietyApproval> {
|
|
18
|
+
return this.axios.$get(`/exercices/${idExercice}/approvals`);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Get approval data needed for PDF generation
|
|
23
|
+
* Retrieves all necessary information before generating a PDF document
|
|
24
|
+
* @param idExercice - The exercice ID
|
|
25
|
+
* @returns Approval data with template data for PDF generation
|
|
26
|
+
*/
|
|
27
|
+
getGeneratingData(idExercice: number): Promise<IApprovalGeneratingData> {
|
|
28
|
+
return this.axios.$get(`/exercices/${idExercice}/approvals/generating-data`);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Create or update society approval
|
|
33
|
+
* @param idExercice - The exercice ID
|
|
34
|
+
* @param payload - The approval data
|
|
35
|
+
* @returns Updated or created society approval
|
|
36
|
+
*/
|
|
37
|
+
updateOrCreate(idExercice: number, payload: ISocietyApproval): Promise<ISocietyApproval> {
|
|
38
|
+
return this.axios.$post(`/exercices/${idExercice}/approvals`, payload);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Generate approval PDF document
|
|
43
|
+
* @param idExercice - The exercice ID
|
|
44
|
+
* @param payload - The document type(s) to generate
|
|
45
|
+
* @returns PDF file as blob
|
|
46
|
+
*/
|
|
47
|
+
generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile> {
|
|
48
|
+
return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Reset document section by regenerating from original template
|
|
53
|
+
* @param idExercice - The exercice ID
|
|
54
|
+
* @param idDocumentSection - The documentSection ID to reset
|
|
55
|
+
* @param payload - The document type for template selection
|
|
56
|
+
* @returns Updated documentSection with new content from template
|
|
57
|
+
*/
|
|
58
|
+
resetDocument(idExercice: number, idDocumentSection: number, payload: ResetDocument): Promise<IDocumentSection> {
|
|
59
|
+
return this.axios.$put(`/exercices/${idExercice}/document-sections/${idDocumentSection}/reset`, payload);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Regenerate PDF document from existing documentSection HTML content
|
|
64
|
+
* @param idExercice - The exercice ID
|
|
65
|
+
* @param idDocumentSection - The documentSection ID containing HTML content
|
|
66
|
+
* @returns PDF file as buffer for download
|
|
67
|
+
*/
|
|
68
|
+
regeneratePdf(idExercice: number, idDocumentSection: number): Promise<Buffer> {
|
|
69
|
+
return this.axios.$post(
|
|
70
|
+
`/exercices/${idExercice}/approvals/pdf/regenerate`,
|
|
71
|
+
{ idDocumentSection },
|
|
72
|
+
{ responseType: 'arraybuffer' },
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { IUsersHistory} from '../../types';
|
|
2
|
+
import { IUsersHistory, CreateUsersHistory, UpdateUsersHistory } from '../../types';
|
|
3
3
|
|
|
4
4
|
export class UsersHistory extends Resource {
|
|
5
|
-
|
|
5
|
+
createUserHistory(body: CreateUsersHistory): Promise<IUsersHistory> {
|
|
6
6
|
return this.axios.$post('usersHistory', body);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
return this.axios.$get('usersHistory'
|
|
9
|
+
getAllUserHistory(signal?: AbortSignal): Promise<IUsersHistory[]> {
|
|
10
|
+
return this.axios.$get('usersHistory', {
|
|
11
|
+
...signal && { signal }
|
|
12
|
+
});
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
return this.axios.$get(`usersHistory/${id}
|
|
15
|
+
getUserHistoryById(id: number, signal?: AbortSignal): Promise<IUsersHistory> {
|
|
16
|
+
return this.axios.$get(`usersHistory/${id}`, {
|
|
17
|
+
...signal && { signal }
|
|
18
|
+
});
|
|
15
19
|
}
|
|
16
20
|
|
|
17
|
-
getUserHistoryByUserID(id: number): Promise<IUsersHistory[]> {
|
|
18
|
-
return this.axios.$get(`usersHistory/user/${id}
|
|
21
|
+
getUserHistoryByUserID(id: number, signal?: AbortSignal): Promise<IUsersHistory[]> {
|
|
22
|
+
return this.axios.$get(`usersHistory/user/${id}`, {
|
|
23
|
+
...signal && { signal }
|
|
24
|
+
});
|
|
19
25
|
}
|
|
20
26
|
|
|
21
|
-
updateUserHistory(id: number, body:
|
|
27
|
+
updateUserHistory(id: number, body: UpdateUsersHistory): Promise<IUsersHistory> {
|
|
22
28
|
return this.axios.$put(`usersHistory/${id}`, body);
|
|
23
29
|
}
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
deleteUserHistory(id: number): Promise<number> {
|
|
26
32
|
return this.axios.$delete(`usersHistory/${id}`);
|
|
27
33
|
}
|
|
28
|
-
|
|
34
|
+
|
|
29
35
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AddWebexRegistrantBody, GetWebinarsParams, PaginatedWebinars, WebexRegistrant } from '../../types';
|
|
2
|
+
import { Resource } from '../Resource';
|
|
3
|
+
|
|
4
|
+
export class Webex extends Resource {
|
|
5
|
+
getWebinars(params?: GetWebinarsParams): Promise<PaginatedWebinars> {
|
|
6
|
+
return this.axios.$get('/connectors/webex/webinars', { params });
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
getWebinarById(meetingId: string): Promise<any> {
|
|
10
|
+
return this.axios.$get(`/connectors/webex/webinars/${meetingId}`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
addRegistrant(meetingId: string, registrant: AddWebexRegistrantBody): Promise<WebexRegistrant> {
|
|
14
|
+
return this.axios.$post(`/connectors/webex/webinars/${meetingId}/registrants`, registrant);
|
|
15
|
+
}
|
|
16
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -188,6 +188,8 @@ import { BalanceSheetReport } from './resources/BalanceSheetReport';
|
|
|
188
188
|
import { Revenue } from './resources/Revenue';
|
|
189
189
|
import { InformationRequest } from './resources/InformationRequest';
|
|
190
190
|
import { AutomaticRegistration } from './resources/AutomaticRegistration';
|
|
191
|
+
import { LoginApproval } from './resources/LoginApproval';
|
|
192
|
+
import { SocietyApproval } from './resources/SocietyApproval';
|
|
191
193
|
import { UsersHistory } from './resources/UsersHistory';
|
|
192
194
|
|
|
193
195
|
export const resources = {
|
|
@@ -381,5 +383,7 @@ export const resources = {
|
|
|
381
383
|
revenue: Revenue,
|
|
382
384
|
informationRequest: InformationRequest,
|
|
383
385
|
automaticRegistration: AutomaticRegistration,
|
|
386
|
+
loginApproval: LoginApproval,
|
|
387
|
+
societyApproval: SocietyApproval,
|
|
384
388
|
usersHistory: UsersHistory,
|
|
385
389
|
};
|
package/ts/types/Enum/Card.ts
CHANGED
|
@@ -2,15 +2,7 @@ import { Role } from './Role';
|
|
|
2
2
|
import { TeamType } from './TeamType';
|
|
3
3
|
|
|
4
4
|
export enum CardType {
|
|
5
|
-
BALANCE_SHEET = 1,
|
|
6
|
-
BALANCE_SHEET_INTERMEDIATE = 2,
|
|
7
|
-
BALANCE_SHEET_PREVISIONAL = 3,
|
|
8
|
-
BALANCE_SHEET_LIQUIDATION = 4,
|
|
9
|
-
BALANCE_SHEET_EXPRESS = 5,
|
|
10
5
|
VAT_PREPARATION = 6,
|
|
11
|
-
// REINFORCED_CHECKLIST = 7,
|
|
12
|
-
CHECK_BALANCE_ANNOTATION_NEW_CLIENT = 8,
|
|
13
|
-
CHECK_BALANCE_ANNOTATION = 9,
|
|
14
6
|
SETUP_BANK_ACCOUNT = 10, // Mise en place banque
|
|
15
7
|
UPDATE_BANK_BALANCE = 11, // MAJ du solde bancaire
|
|
16
8
|
UPDATE_ANNOTATIONS = 12, // MAJ Annotations
|
|
@@ -41,9 +33,9 @@ export enum CardState {
|
|
|
41
33
|
TODO = 1,
|
|
42
34
|
IN_PROGRESS = 2,
|
|
43
35
|
DONE = 3,
|
|
44
|
-
|
|
36
|
+
INCOMPLETE = 4,
|
|
45
37
|
WAITING_CLIENT = 5,
|
|
46
|
-
|
|
38
|
+
NOT_DONE = 6
|
|
47
39
|
}
|
|
48
40
|
|
|
49
41
|
export enum CardGroupEnum {
|
|
@@ -160,36 +152,6 @@ export const CardGroup: readonly CardGroupType[] = [
|
|
|
160
152
|
] as const;
|
|
161
153
|
|
|
162
154
|
export const CardTypeLabel = [
|
|
163
|
-
{
|
|
164
|
-
id: CardType.BALANCE_SHEET,
|
|
165
|
-
label: 'Bilan',
|
|
166
|
-
refLabel: 'B',
|
|
167
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
id: CardType.BALANCE_SHEET_INTERMEDIATE,
|
|
171
|
-
label: 'Bilan inter.',
|
|
172
|
-
refLabel: 'BI',
|
|
173
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
id: CardType.BALANCE_SHEET_PREVISIONAL,
|
|
177
|
-
label: 'Bilan prévi.',
|
|
178
|
-
refLabel: 'BP',
|
|
179
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
id: CardType.BALANCE_SHEET_LIQUIDATION,
|
|
183
|
-
label: 'Bilan liquid.',
|
|
184
|
-
refLabel: 'BL',
|
|
185
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
id: CardType.BALANCE_SHEET_EXPRESS,
|
|
189
|
-
label: 'Bilan express',
|
|
190
|
-
refLabel: 'BE',
|
|
191
|
-
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
192
|
-
},
|
|
193
155
|
{
|
|
194
156
|
id: CardType.BALANCE_SHEET_PREPARATION,
|
|
195
157
|
label: 'Préparation et Formalisation du Bilan',
|
|
@@ -268,18 +230,6 @@ export const CardTypeLabel = [
|
|
|
268
230
|
refLabel: 'ARC',
|
|
269
231
|
groupId: CardGroupEnum.ADVANCE_IS_GROUP,
|
|
270
232
|
},
|
|
271
|
-
{
|
|
272
|
-
id: CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT,
|
|
273
|
-
label: 'Contrôle solde bancaire & mise en place annotation nouveau client',
|
|
274
|
-
refLabel: 'LABNC',
|
|
275
|
-
groupId: CardGroupEnum.ACCEPTATION_GROUP,
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
id: CardType.CHECK_BALANCE_ANNOTATION,
|
|
279
|
-
label: 'Contrôle solde bancaire & contrôle annotations client',
|
|
280
|
-
refLabel: 'LABC',
|
|
281
|
-
groupId: CardGroupEnum.ACCEPTATION_GROUP,
|
|
282
|
-
},
|
|
283
233
|
{
|
|
284
234
|
id: CardType.SETUP_BANK_ACCOUNT,
|
|
285
235
|
label: 'Mise en place banque',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export enum EbookIntention {
|
|
2
|
+
FACTU_ONLY = 'Facturation uniquement',
|
|
3
|
+
FACTU_COMPTA = 'Facturation + comptabilité',
|
|
4
|
+
INFO_REFORME = 'Je cherche juste à comprendre la réforme',
|
|
5
|
+
// prettier-ignore
|
|
6
|
+
CHANGE_TOOL = 'Je dois changer d\'outil rapidement',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const BrevoEbookIntentionMapping: Record<EbookIntention, string> = {
|
|
10
|
+
[EbookIntention.FACTU_ONLY]: 'FACTU_ONLY',
|
|
11
|
+
[EbookIntention.FACTU_COMPTA]: 'FACTU_COMPTA',
|
|
12
|
+
[EbookIntention.INFO_REFORME]: 'INFO_REFORME',
|
|
13
|
+
[EbookIntention.CHANGE_TOOL]: 'CHANGE_TOOL',
|
|
14
|
+
};
|