@silexpert/core 1.3.195-7 → 1.3.195
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/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 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +4 -2
- 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/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/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/{models/IUsersHistory.js → api/webex/WebexMeeting.js} +1 -1
- 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/index.d.ts +14 -7
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +14 -7
- 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/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/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 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +4 -2
- 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/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/{card/ModifyCustomerVat.js → authentification/SetMobileApprovalDto.js} +12 -14
- 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/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/index.d.ts +14 -7
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +14 -7
- 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/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/Webex.ts +16 -0
- package/ts/api/resources.ts +4 -2
- 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/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/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/index.ts +14 -7
- package/ts/utils/commercialManagement/internationalization/choices.ts +21 -19
- package/ts/utils/index.ts +1 -0
- package/ts/utils/societyApproval.ts +129 -0
- package/dist/cjs/api/resources/UsersHistory.d.ts +0 -11
- package/dist/cjs/api/resources/UsersHistory.d.ts.map +0 -1
- package/dist/cjs/api/resources/UsersHistory.js +0 -26
- package/dist/cjs/api/resources/UsersHistory.js.map +0 -1
- package/dist/cjs/types/Enum/UsersHistory.d.ts +0 -18
- package/dist/cjs/types/Enum/UsersHistory.d.ts.map +0 -1
- package/dist/cjs/types/Enum/UsersHistory.js +0 -42
- package/dist/cjs/types/Enum/UsersHistory.js.map +0 -1
- 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 +0 -43
- 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/cjs/types/Interface/models/IUsersHistory.d.ts +0 -10
- package/dist/cjs/types/Interface/models/IUsersHistory.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IUsersHistory.js.map +0 -1
- package/dist/mjs/api/resources/UsersHistory.d.ts +0 -11
- package/dist/mjs/api/resources/UsersHistory.d.ts.map +0 -1
- package/dist/mjs/api/resources/UsersHistory.js +0 -22
- package/dist/mjs/api/resources/UsersHistory.js.map +0 -1
- package/dist/mjs/types/Enum/UsersHistory.d.ts +0 -18
- package/dist/mjs/types/Enum/UsersHistory.d.ts.map +0 -1
- package/dist/mjs/types/Enum/UsersHistory.js +0 -39
- package/dist/mjs/types/Enum/UsersHistory.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 +0 -42
- 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/dist/mjs/types/Interface/models/IUsersHistory.d.ts +0 -10
- package/dist/mjs/types/Interface/models/IUsersHistory.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IUsersHistory.js +0 -2
- package/dist/mjs/types/Interface/models/IUsersHistory.js.map +0 -1
- package/ts/api/resources/UsersHistory.ts +0 -29
- package/ts/types/Enum/UsersHistory.ts +0 -42
- 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
- package/ts/types/Interface/models/IUsersHistory.ts +0 -9
|
@@ -30,14 +30,14 @@ exports.internationalizationChoices = {
|
|
|
30
30
|
'TVA: Non applicable',
|
|
31
31
|
'TVA non applicable, art. 293 B du CGI',
|
|
32
32
|
'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',
|
|
33
|
-
|
|
33
|
+
"Non soumis à TVA selon l'article 261C du CGI",
|
|
34
34
|
'Article 261 D du code général des impôts (CGI)',
|
|
35
35
|
'Exonération de TVA, article 283-2 du Code général des impôts',
|
|
36
36
|
'Exonération de la TVA : Article 262 ter I du CGI',
|
|
37
37
|
'Mention de TVA 261.4.4 1 du CGI',
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
"Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
39
|
+
"Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
40
|
+
"Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
41
41
|
'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',
|
|
42
42
|
'Facture soumise au régime de l’auto-liquidation de la TVA',
|
|
43
43
|
],
|
|
@@ -49,9 +49,9 @@ exports.internationalizationChoices = {
|
|
|
49
49
|
common: {
|
|
50
50
|
headers: {
|
|
51
51
|
title: 'Titre',
|
|
52
|
-
emissionDate:
|
|
52
|
+
emissionDate: "Date d'émission",
|
|
53
53
|
accountingCategory: {
|
|
54
|
-
title:
|
|
54
|
+
title: "Catégorie de l'opération",
|
|
55
55
|
choices: [
|
|
56
56
|
{ id: CommercialManagement_1.AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },
|
|
57
57
|
{ id: CommercialManagement_1.AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },
|
|
@@ -65,7 +65,7 @@ exports.internationalizationChoices = {
|
|
|
65
65
|
vatCode: 'N° TVA',
|
|
66
66
|
marginVat: 'Régime TVA sur marge',
|
|
67
67
|
legalVatMention: 'ART 297-A du CGI ou directive 2006-212 CE',
|
|
68
|
-
shouldPayTaxAfterDebit:
|
|
68
|
+
shouldPayTaxAfterDebit: "Option pour le paiement de la taxe d'après les débits",
|
|
69
69
|
penalties: 'Pénalités en cas de retard',
|
|
70
70
|
discount: 'Escompte',
|
|
71
71
|
recoveryCosts: 'Indemnités forfaitaire en cas de retard',
|
|
@@ -107,49 +107,49 @@ exports.internationalizationChoices = {
|
|
|
107
107
|
invoice: {
|
|
108
108
|
headers: {
|
|
109
109
|
title: 'Facture',
|
|
110
|
-
dueDate:
|
|
110
|
+
dueDate: "Date d'échéance",
|
|
111
111
|
termsOfPayment: 'Date limite de règlement',
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
114
|
estimate: {
|
|
115
115
|
headers: {
|
|
116
116
|
title: 'Devis',
|
|
117
|
-
dueDate:
|
|
117
|
+
dueDate: "Valide jusqu'au",
|
|
118
118
|
termsOfPayment: 'Conditions de règlement',
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
orderForm: {
|
|
122
122
|
headers: {
|
|
123
123
|
title: 'Bon de commande',
|
|
124
|
-
dueDate:
|
|
124
|
+
dueDate: "Date d'échéance",
|
|
125
125
|
termsOfPayment: 'Conditions de règlement',
|
|
126
126
|
},
|
|
127
127
|
},
|
|
128
128
|
deposit: {
|
|
129
129
|
headers: {
|
|
130
|
-
title:
|
|
131
|
-
expirationDate:
|
|
130
|
+
title: "Facture d'acompte",
|
|
131
|
+
expirationDate: "Date d'expiration",
|
|
132
132
|
termsOfPayment: 'Date limite de règlement',
|
|
133
133
|
},
|
|
134
134
|
},
|
|
135
135
|
asset: {
|
|
136
136
|
headers: {
|
|
137
137
|
title: 'Avoir',
|
|
138
|
-
dueDate:
|
|
138
|
+
dueDate: "Date d'échéance",
|
|
139
139
|
termsOfPayment: 'Date limite de règlement',
|
|
140
140
|
},
|
|
141
141
|
},
|
|
142
142
|
remainder: {
|
|
143
143
|
headers: {
|
|
144
144
|
title: 'Facture de solde',
|
|
145
|
-
dueDate:
|
|
145
|
+
dueDate: "Date d'échéance",
|
|
146
146
|
termsOfPayment: 'Date limite de règlement',
|
|
147
147
|
},
|
|
148
148
|
},
|
|
149
149
|
draft: {
|
|
150
150
|
headers: {
|
|
151
151
|
title: 'Brouillon',
|
|
152
|
-
dueDate:
|
|
152
|
+
dueDate: "Date d'échéance",
|
|
153
153
|
termsOfPayment: 'Date limite de règlement',
|
|
154
154
|
},
|
|
155
155
|
},
|
|
@@ -419,7 +419,7 @@ const internationalizationMatching = {
|
|
|
419
419
|
en: 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
|
-
fr:
|
|
422
|
+
fr: "Non soumis à TVA selon l'article 261C du CGI",
|
|
423
423
|
en: 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',
|
|
424
424
|
},
|
|
425
425
|
{ fr: 'Article 261 D du code général des impôts (CGI)', en: 'Article 261D of the French General Tax Code (FGTC)' },
|
|
@@ -433,15 +433,15 @@ const internationalizationMatching = {
|
|
|
433
433
|
},
|
|
434
434
|
{ fr: 'Mention de TVA 261.4.4 1 du CGI', en: 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)' },
|
|
435
435
|
{
|
|
436
|
-
fr:
|
|
436
|
+
fr: "Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
437
437
|
en: 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
|
-
fr:
|
|
440
|
+
fr: "Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
441
441
|
en: 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
|
-
fr:
|
|
444
|
+
fr: "Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
445
445
|
en: 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
446
446
|
},
|
|
447
447
|
{
|
|
@@ -522,6 +522,8 @@ const internationalizationMatching = {
|
|
|
522
522
|
{ fr: 'nuit', en: 'night' },
|
|
523
523
|
{ fr: 't', en: 't' },
|
|
524
524
|
{ fr: 'ha', en: 'ha' },
|
|
525
|
+
{ fr: 'min', en: 'min' },
|
|
526
|
+
{ fr: 'g', en: 'g' },
|
|
525
527
|
],
|
|
526
528
|
};
|
|
527
529
|
const internationalizationConsistency = (language, value, key) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/choices.ts"],"names":[],"mappings":";;;AAAA,mFAAiG;AAapF,QAAA,2BAA2B,GAAoC;IAC1E,EAAE,EAAE;QACF,UAAU,EAAE;YACV,OAAO,EA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tD,CAAC,CAAC,MAAA,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,CAAC,0CAAE,EAAE,CAAC;AAC3D,CAAC,CAAC;AATW,QAAA,+BAA+B,mCAS1C","sourcesContent":["import { AccountingCategoryId, InvoiceLanguage } from '../../../types/Enum/CommercialManagement';\nimport { InternationalizationChoicesType } from './type';\n\ntype InternationalizationConsistencyKey =\n | 'penalties'\n | 'discount'\n | 'vatMention'\n | 'recoveryCost'\n | 'paymentType'\n | 'termsOfPayment'\n | 'accountingCategory'\n | 'unit';\n\nexport const internationalizationChoices: InternationalizationChoicesType = {\n fr: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'À la livraison',\n 'À la commande',\n 'À réception de la facture',\n 'Exigible sous 14 jours',\n 'Exigible sous 30 jours',\n '30 jours à réception de la facture',\n '45 jours à réception de la facture',\n '60 jours à réception de la facture',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n options: {\n penalties: ['Non applicable', '3 fois le taux légal', 'Taux directeur de la BCE + 10 points'],\n discount: ['Non applicable', 'Aucun escompte en cas de paiement anticipé'],\n vatMention: [\n 'TVA: Non concerné',\n 'TVA: Non applicable',\n 'TVA non applicable, art. 293 B du CGI',\n 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n 'Non soumis à TVA selon l\\'article 261C du CGI',\n 'Article 261 D du code général des impôts (CGI)',\n 'Exonération de TVA, article 283-2 du Code général des impôts',\n 'Exonération de la TVA : Article 262 ter I du CGI',\n 'Mention de TVA 261.4.4 1 du CGI',\n 'Régime particulier – Biens d\\'occasion - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets d\\'art - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Objets de collection ou d\\'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Facture soumise au régime de l’auto-liquidation de la TVA',\n ],\n recoveryCost: ['Non applicable', '40€'],\n paymentType: ['Carte bancaire', 'Chèque', 'Espèces', 'Prélèvement', 'Virement bancaire'],\n },\n },\n template: {\n common: {\n headers: {\n title: 'Titre',\n emissionDate: 'Date d\\'émission',\n accountingCategory: {\n title: 'Catégorie de l\\'opération',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n },\n footer: {\n capital: 'au capital de',\n siren: 'immatriculée sous le SIREN',\n vatCode: 'N° TVA',\n marginVat: 'Régime TVA sur marge',\n legalVatMention: 'ART 297-A du CGI ou directive 2006-212 CE',\n shouldPayTaxAfterDebit: 'Option pour le paiement de la taxe d\\'après les débits',\n penalties: 'Pénalités en cas de retard',\n discount: 'Escompte',\n recoveryCosts: 'Indemnités forfaitaire en cas de retard',\n generate: 'Généré par',\n },\n options: {\n vatMention: 'Mention TVA',\n paymentType: 'Mode de paiement',\n bank: 'BANQUE',\n approval: 'Bon pour accord',\n comment: 'Commentaire',\n },\n table: {\n headers: {\n product: 'Article',\n quantity: 'Quantité',\n unitPrice: 'P.U HT',\n unitPriceWithoutVat: 'P.U',\n discount: 'Remise',\n vat: 'TVA',\n amount: 'Montant HT',\n amountWithoutVat: 'Montant',\n base: 'Base',\n rate: 'Taux',\n vatAmount: 'Montant TVA',\n recap: 'Récapitulatif',\n },\n lines: {\n totalHt: 'Total HT',\n vat: 'TVA',\n totalTTC: 'Total TTC',\n totalWhitoutVat: 'Total',\n deposit: 'Acompte',\n remainderToPay: 'Reste à payer',\n netToPay: 'Net à payer',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Facture',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n estimate: {\n headers: {\n title: 'Devis',\n dueDate: 'Valide jusqu\\'au',\n termsOfPayment: 'Conditions de règlement',\n },\n },\n orderForm: {\n headers: {\n title: 'Bon de commande',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Conditions de règlement',\n },\n },\n deposit: {\n headers: {\n title: 'Facture d\\'acompte',\n expirationDate: 'Date d\\'expiration',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n asset: {\n headers: {\n title: 'Avoir',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n remainder: {\n headers: {\n title: 'Facture de solde',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n draft: {\n headers: {\n title: 'Brouillon',\n dueDate: 'Date d\\'échéance',\n termsOfPayment: 'Date limite de règlement',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Échéance',\n generate: 'Généré par',\n displayDocument: 'Afficher le document',\n totalHt: 'Total HT',\n totalVat: 'Total TVA',\n totalTtc: 'Total TTC',\n send: 'vous adresse',\n },\n invoice: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n estimate: {\n title: 'ce devis',\n subTitle: 'Devis',\n },\n orderForm: {\n title: 'ce bon de commande',\n subTitle: 'Bon de commande',\n },\n deposit: {\n title: 'cet acompte',\n subTitle: 'Acompte',\n },\n asset: {\n title: 'cet avoir',\n subTitle: 'Avoir',\n },\n remainder: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n default: {\n title: 'ce document',\n subTitle: 'Document',\n },\n },\n },\n en: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'On delivery',\n 'On order',\n 'Upon receipt of invoice',\n 'Due within 14 days',\n 'Due within 30 days',\n '30 days upon receipt of invoice',\n '45 days upon receipt of invoice',\n '60 days upon receipt of invoice',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n options: {\n penalties: ['Not applicable', '3 times the legal rate', 'ECB key rate + 10 points'],\n discount: ['Not applicable', 'No discount for early payment'],\n vatMention: [\n 'Not affected',\n 'Not applicable',\n 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n 'Article 261D of the French General Tax Code (FGTC)',\n 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)',\n 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Invoice subject to VAT reverse charge system',\n ],\n recoveryCost: ['Not applicable', '40€'],\n paymentType: ['Credit card', 'Check', 'Cash', 'Direct debit', 'Bank transfer'],\n },\n },\n template: {\n common: {\n headers: {\n title: 'Title',\n emissionDate: 'Invoice date',\n accountingCategory: {\n title: 'Transaction type',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Supply of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services provision' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services provision and supply of goods' },\n ],\n },\n },\n footer: {\n capital: 'with capital of',\n siren: 'registered under SIREN',\n vatCode: 'VAT number',\n marginVat: 'VAT margin scheme',\n legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',\n shouldPayTaxAfterDebit: 'Option to pay tax on debits',\n penalties: 'Late fees',\n discount: 'discount',\n recoveryCosts: 'flat-rate delay compensation',\n generate: 'Created by',\n },\n options: {\n vatMention: 'VAT mention',\n paymentType: 'payment type',\n bank: 'BANK',\n approval: 'Agreed and signed',\n comment: 'Comment',\n },\n table: {\n headers: {\n product: 'Product',\n quantity: 'Quantity',\n unitPrice: 'Excl. tax unit price',\n unitPriceWithoutVat: 'Unit price',\n discount: 'Discount',\n vat: 'VAT',\n amount: 'Amount excl. tax',\n amountWithoutVat: 'Amount',\n base: 'Base',\n rate: 'Rate',\n vatAmount: 'VAT amount',\n recap: 'Summary',\n },\n lines: {\n totalHt: 'Amount excl. tax',\n vat: 'VAT',\n totalTTC: 'Amount incl. tax',\n totalWhitoutVat: 'Amount',\n deposit: 'Deposit',\n remainderToPay: 'Remainder to pay',\n netToPay: 'Net to pay',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n estimate: {\n headers: {\n title: 'Quotation',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n orderForm: {\n headers: {\n title: 'Order form',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n deposit: {\n headers: {\n title: 'Deposit invoice',\n expirationDate: 'expiry date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n asset: {\n headers: {\n title: 'Credit note',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n remainder: {\n headers: {\n title: 'Balance invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n draft: {\n headers: {\n title: 'Draft',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Due date',\n generate: 'Created by',\n displayDocument: 'Display document',\n totalHt: 'Total excl. tax',\n totalVat: 'Total VAT',\n totalTtc: 'Total incl. tax',\n send: 'send you',\n },\n invoice: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n estimate: {\n title: 'this estimate',\n subTitle: 'Estimate',\n },\n orderForm: {\n title: 'this order form',\n subTitle: 'Order form',\n },\n deposit: {\n title: 'this deposit',\n subTitle: 'Deposit',\n },\n asset: {\n title: 'this asset',\n subTitle: 'Asset',\n },\n remainder: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n default: {\n title: 'this document',\n subTitle: 'Document',\n },\n },\n },\n};\n\nconst internationalizationMatching: { [key: string]: { fr: string; en: string }[] } = {\n penalties: [\n { fr: 'Non applicable', en: 'Not applicable' },\n { fr: '3 fois le taux légal', en: '3 times the legal rate' },\n { fr: 'Taux directeur de la BCE + 10 points', en: 'ECB key rate + 10 points' },\n ],\n discount: [\n { fr: 'Non applicable', en: 'Not applicable' },\n { fr: 'Aucun escompte en cas de paiement anticipé', en: 'No discount for early payment' },\n ],\n recoveryCost: [\n { fr: 'Non applicable', en: 'Not applicable' },\n { fr: '40€', en: '40€' },\n ],\n paymentType: [\n { fr: 'Carte bancaire', en: 'Credit card' },\n { fr: 'Chèque', en: 'Check' },\n { fr: 'Espèces', en: 'Cash' },\n { fr: 'Prélèvement', en: 'Direct debit' },\n { fr: 'Virement bancaire', en: 'Bank transfer' },\n ],\n vatMention: [\n { fr: 'TVA: Non concerné', en: 'VAT: Not affected' },\n { fr: 'TVA: Non applicable', en: 'VAT: Not applicable' },\n {\n fr: 'TVA non applicable, art. 293 B du CGI',\n en: 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n },\n {\n fr: 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n en: 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n },\n {\n fr: 'Non soumis à TVA selon l\\'article 261C du CGI',\n en: 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n },\n { fr: 'Article 261 D du code général des impôts (CGI)', en: 'Article 261D of the French General Tax Code (FGTC)' },\n {\n fr: 'Exonération de TVA, article 283-2 du Code général des impôts',\n en: 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n },\n {\n fr: 'Exonération de la TVA : Article 262 ter I du CGI',\n en: 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n },\n { fr: 'Mention de TVA 261.4.4 1 du CGI', en: 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)' },\n {\n fr: 'Régime particulier – Biens d\\'occasion - article 297 A du CGI et directive communautaire 2006/112/CE',\n en: 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: 'Régime particulier – Objets d\\'art - article 297 A du CGI et directive communautaire 2006/112/CE',\n en: 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: 'Régime particulier – Objets de collection ou d\\'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE',\n en: 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n en: 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: 'Facture soumise au régime de l’auto-liquidation de la TVA',\n en: 'Invoice subject to VAT reverse charge system',\n },\n ],\n termsOfPayment: [\n {\n fr: 'À la livraison',\n en: 'On delivery',\n },\n {\n fr: 'À la command',\n en: 'On order',\n },\n {\n fr: 'À réception de la facture',\n en: 'Upon receipt of invoice',\n },\n {\n fr: 'Exigible sous 14 jours',\n en: 'Due within 14 days',\n },\n {\n fr: 'Exigible sous 30 jours',\n en: 'Due within 30 days',\n },\n {\n fr: '30 jours à réception de la facture',\n en: '30 days upon receipt of invoice',\n },\n {\n fr: '45 jours à réception de la facture',\n en: '45 days upon receipt of invoice',\n },\n {\n fr: '60 jours à réception de la facture',\n en: '60 days upon receipt of invoice',\n },\n ],\n accountingCategory: [\n {\n fr: 'Livraison de biens',\n en: 'Supply of goods',\n },\n {\n fr: 'Prestation de services',\n en: 'Services provision',\n },\n {\n fr: 'Prestation de services et livraison de biens',\n en: 'Services provision and supply of goods',\n },\n ],\n unit: [\n { fr: 'art', en: 'art' },\n { fr: 'h', en: 'h' },\n { fr: 'j', en: 'd' },\n { fr: 'Kg', en: 'kg' },\n { fr: 'l', en: 'l' },\n { fr: 'km', en: 'km' },\n { fr: 'demi j', en: 'half d' },\n { fr: 'an', en: 'year' },\n { fr: 'sem', en: 'week' },\n { fr: 'mois', en: 'month' },\n { fr: 'trim', en: 'quart' },\n { fr: 'p', en: 'p' },\n { fr: 'f', en: 'f' },\n { fr: 'm2', en: 'm2' },\n { fr: 'm3', en: 'm3' },\n { fr: 'Mètre', en: 'meter' },\n { fr: 'abo', en: 'sub' },\n { fr: 'nuit', en: 'night' },\n { fr: 't', en: 't' },\n { fr: 'ha', en: 'ha' },\n ],\n};\n\nexport const internationalizationConsistency = (\n language: InvoiceLanguage,\n value: string,\n key: InternationalizationConsistencyKey,\n): string | undefined => {\n const keyObjectToMacht = internationalizationMatching[key];\n return language === InvoiceLanguage.FR\n ? keyObjectToMacht.find((obj) => obj.fr === value)?.fr\n : keyObjectToMacht.find((obj) => obj.fr === value)?.en;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/internationalization/choices.ts"],"names":[],"mappings":";;;AAAA,mFAAiG;AAapF,QAAA,2BAA2B,GAAoC;IAC1E,EAAE,EAAE;QACF,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,cAAc,EAAE;oBACd,gBAAgB;oBAChB,eAAe;oBACf,2BAA2B;oBAC3B,wBAAwB;oBACxB,wBAAwB;oBACxB,oCAAoC;oBACpC,oCAAoC;oBACpC,oCAAoC;iBAC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AgB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,CAAC,0CAAE,EAAE,CAAC;AAC3D,CAAC,CAAC;AATW,QAAA,+BAA+B,mCAS1C","sourcesContent":["import { AccountingCategoryId, InvoiceLanguage } from '../../../types/Enum/CommercialManagement';\nimport { InternationalizationChoicesType } from './type';\n\ntype InternationalizationConsistencyKey =\n | 'penalties'\n | 'discount'\n | 'vatMention'\n | 'recoveryCost'\n | 'paymentType'\n | 'termsOfPayment'\n | 'accountingCategory'\n | 'unit';\n\nexport const internationalizationChoices: InternationalizationChoicesType = {\n fr: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'À la livraison',\n 'À la commande',\n 'À réception de la facture',\n 'Exigible sous 14 jours',\n 'Exigible sous 30 jours',\n '30 jours à réception de la facture',\n '45 jours à réception de la facture',\n '60 jours à réception de la facture',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n options: {\n penalties: ['Non applicable', '3 fois le taux légal', 'Taux directeur de la BCE + 10 points'],\n discount: ['Non applicable', 'Aucun escompte en cas de paiement anticipé'],\n vatMention: [\n 'TVA: Non concerné',\n 'TVA: Non applicable',\n 'TVA non applicable, art. 293 B du CGI',\n 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n \"Non soumis à TVA selon l'article 261C du CGI\",\n 'Article 261 D du code général des impôts (CGI)',\n 'Exonération de TVA, article 283-2 du Code général des impôts',\n 'Exonération de la TVA : Article 262 ter I du CGI',\n 'Mention de TVA 261.4.4 1 du CGI',\n \"Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE\",\n \"Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE\",\n \"Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE\",\n 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n 'Facture soumise au régime de l’auto-liquidation de la TVA',\n ],\n recoveryCost: ['Non applicable', '40€'],\n paymentType: ['Carte bancaire', 'Chèque', 'Espèces', 'Prélèvement', 'Virement bancaire'],\n },\n },\n template: {\n common: {\n headers: {\n title: 'Titre',\n emissionDate: \"Date d'émission\",\n accountingCategory: {\n title: \"Catégorie de l'opération\",\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Livraison de biens' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Prestation de services' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Prestation de services et livraison de biens' },\n ],\n },\n },\n footer: {\n capital: 'au capital de',\n siren: 'immatriculée sous le SIREN',\n vatCode: 'N° TVA',\n marginVat: 'Régime TVA sur marge',\n legalVatMention: 'ART 297-A du CGI ou directive 2006-212 CE',\n shouldPayTaxAfterDebit: \"Option pour le paiement de la taxe d'après les débits\",\n penalties: 'Pénalités en cas de retard',\n discount: 'Escompte',\n recoveryCosts: 'Indemnités forfaitaire en cas de retard',\n generate: 'Généré par',\n },\n options: {\n vatMention: 'Mention TVA',\n paymentType: 'Mode de paiement',\n bank: 'BANQUE',\n approval: 'Bon pour accord',\n comment: 'Commentaire',\n },\n table: {\n headers: {\n product: 'Article',\n quantity: 'Quantité',\n unitPrice: 'P.U HT',\n unitPriceWithoutVat: 'P.U',\n discount: 'Remise',\n vat: 'TVA',\n amount: 'Montant HT',\n amountWithoutVat: 'Montant',\n base: 'Base',\n rate: 'Taux',\n vatAmount: 'Montant TVA',\n recap: 'Récapitulatif',\n },\n lines: {\n totalHt: 'Total HT',\n vat: 'TVA',\n totalTTC: 'Total TTC',\n totalWhitoutVat: 'Total',\n deposit: 'Acompte',\n remainderToPay: 'Reste à payer',\n netToPay: 'Net à payer',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Facture',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n estimate: {\n headers: {\n title: 'Devis',\n dueDate: \"Valide jusqu'au\",\n termsOfPayment: 'Conditions de règlement',\n },\n },\n orderForm: {\n headers: {\n title: 'Bon de commande',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Conditions de règlement',\n },\n },\n deposit: {\n headers: {\n title: \"Facture d'acompte\",\n expirationDate: \"Date d'expiration\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n asset: {\n headers: {\n title: 'Avoir',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n remainder: {\n headers: {\n title: 'Facture de solde',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n draft: {\n headers: {\n title: 'Brouillon',\n dueDate: \"Date d'échéance\",\n termsOfPayment: 'Date limite de règlement',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Échéance',\n generate: 'Généré par',\n displayDocument: 'Afficher le document',\n totalHt: 'Total HT',\n totalVat: 'Total TVA',\n totalTtc: 'Total TTC',\n send: 'vous adresse',\n },\n invoice: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n estimate: {\n title: 'ce devis',\n subTitle: 'Devis',\n },\n orderForm: {\n title: 'ce bon de commande',\n subTitle: 'Bon de commande',\n },\n deposit: {\n title: 'cet acompte',\n subTitle: 'Acompte',\n },\n asset: {\n title: 'cet avoir',\n subTitle: 'Avoir',\n },\n remainder: {\n title: 'cette facture',\n subTitle: 'Facture',\n },\n default: {\n title: 'ce document',\n subTitle: 'Document',\n },\n },\n },\n en: {\n inputLists: {\n headers: {\n termsOfPayment: [\n 'On delivery',\n 'On order',\n 'Upon receipt of invoice',\n 'Due within 14 days',\n 'Due within 30 days',\n '30 days upon receipt of invoice',\n '45 days upon receipt of invoice',\n '60 days upon receipt of invoice',\n ],\n accountingCategories: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Delivery of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services delivery' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services and goods delivery' },\n ],\n },\n options: {\n penalties: ['Not applicable', '3 times the legal rate', 'ECB key rate + 10 points'],\n discount: ['Not applicable', 'No discount for early payment'],\n vatMention: [\n 'Not affected',\n 'Not applicable',\n 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n 'Article 261D of the French General Tax Code (FGTC)',\n 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)',\n 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n 'Invoice subject to VAT reverse charge system',\n ],\n recoveryCost: ['Not applicable', '40€'],\n paymentType: ['Credit card', 'Check', 'Cash', 'Direct debit', 'Bank transfer'],\n },\n },\n template: {\n common: {\n headers: {\n title: 'Title',\n emissionDate: 'Invoice date',\n accountingCategory: {\n title: 'Transaction type',\n choices: [\n { id: AccountingCategoryId.DELIVERY_OF_GOOD, label: 'Supply of goods' },\n { id: AccountingCategoryId.SERVICE_DELIVERY, label: 'Services provision' },\n { id: AccountingCategoryId.GOOD_AND_SERVICE, label: 'Services provision and supply of goods' },\n ],\n },\n },\n footer: {\n capital: 'with capital of',\n siren: 'registered under SIREN',\n vatCode: 'VAT number',\n marginVat: 'VAT margin scheme',\n legalVatMention: 'ART 297-A of the FGTC or directive 2006-212 EC',\n shouldPayTaxAfterDebit: 'Option to pay tax on debits',\n penalties: 'Late fees',\n discount: 'discount',\n recoveryCosts: 'flat-rate delay compensation',\n generate: 'Created by',\n },\n options: {\n vatMention: 'VAT mention',\n paymentType: 'payment type',\n bank: 'BANK',\n approval: 'Agreed and signed',\n comment: 'Comment',\n },\n table: {\n headers: {\n product: 'Product',\n quantity: 'Quantity',\n unitPrice: 'Excl. tax unit price',\n unitPriceWithoutVat: 'Unit price',\n discount: 'Discount',\n vat: 'VAT',\n amount: 'Amount excl. tax',\n amountWithoutVat: 'Amount',\n base: 'Base',\n rate: 'Rate',\n vatAmount: 'VAT amount',\n recap: 'Summary',\n },\n lines: {\n totalHt: 'Amount excl. tax',\n vat: 'VAT',\n totalTTC: 'Amount incl. tax',\n totalWhitoutVat: 'Amount',\n deposit: 'Deposit',\n remainderToPay: 'Remainder to pay',\n netToPay: 'Net to pay',\n },\n },\n },\n invoice: {\n headers: {\n title: 'Invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n estimate: {\n headers: {\n title: 'Quotation',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n orderForm: {\n headers: {\n title: 'Order form',\n dueDate: 'Valid until',\n termsOfPayment: 'Term of payment',\n },\n },\n deposit: {\n headers: {\n title: 'Deposit invoice',\n expirationDate: 'expiry date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n asset: {\n headers: {\n title: 'Credit note',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n remainder: {\n headers: {\n title: 'Balance invoice',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n draft: {\n headers: {\n title: 'Draft',\n dueDate: 'Due date',\n termsOfPayment: 'Deadline for payment',\n },\n },\n },\n mail: {\n common: {\n dueDate: 'Due date',\n generate: 'Created by',\n displayDocument: 'Display document',\n totalHt: 'Total excl. tax',\n totalVat: 'Total VAT',\n totalTtc: 'Total incl. tax',\n send: 'send you',\n },\n invoice: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n estimate: {\n title: 'this estimate',\n subTitle: 'Estimate',\n },\n orderForm: {\n title: 'this order form',\n subTitle: 'Order form',\n },\n deposit: {\n title: 'this deposit',\n subTitle: 'Deposit',\n },\n asset: {\n title: 'this asset',\n subTitle: 'Asset',\n },\n remainder: {\n title: 'this invoice',\n subTitle: 'Invoice',\n },\n default: {\n title: 'this document',\n subTitle: 'Document',\n },\n },\n },\n};\n\nconst internationalizationMatching: { [key: string]: { fr: string; en: string }[] } = {\n penalties: [\n { fr: 'Non applicable', en: 'Not applicable' },\n { fr: '3 fois le taux légal', en: '3 times the legal rate' },\n { fr: 'Taux directeur de la BCE + 10 points', en: 'ECB key rate + 10 points' },\n ],\n discount: [\n { fr: 'Non applicable', en: 'Not applicable' },\n { fr: 'Aucun escompte en cas de paiement anticipé', en: 'No discount for early payment' },\n ],\n recoveryCost: [\n { fr: 'Non applicable', en: 'Not applicable' },\n { fr: '40€', en: '40€' },\n ],\n paymentType: [\n { fr: 'Carte bancaire', en: 'Credit card' },\n { fr: 'Chèque', en: 'Check' },\n { fr: 'Espèces', en: 'Cash' },\n { fr: 'Prélèvement', en: 'Direct debit' },\n { fr: 'Virement bancaire', en: 'Bank transfer' },\n ],\n vatMention: [\n { fr: 'TVA: Non concerné', en: 'VAT: Not affected' },\n { fr: 'TVA: Non applicable', en: 'VAT: Not applicable' },\n {\n fr: 'TVA non applicable, art. 293 B du CGI',\n en: 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',\n },\n {\n fr: 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',\n en: 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',\n },\n {\n fr: \"Non soumis à TVA selon l'article 261C du CGI\",\n en: 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',\n },\n { fr: 'Article 261 D du code général des impôts (CGI)', en: 'Article 261D of the French General Tax Code (FGTC)' },\n {\n fr: 'Exonération de TVA, article 283-2 du Code général des impôts',\n en: 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',\n },\n {\n fr: 'Exonération de la TVA : Article 262 ter I du CGI',\n en: 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',\n },\n { fr: 'Mention de TVA 261.4.4 1 du CGI', en: 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)' },\n {\n fr: \"Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE\",\n en: 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: \"Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE\",\n en: 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: \"Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE\",\n en: 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',\n en: 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',\n },\n {\n fr: 'Facture soumise au régime de l’auto-liquidation de la TVA',\n en: 'Invoice subject to VAT reverse charge system',\n },\n ],\n termsOfPayment: [\n {\n fr: 'À la livraison',\n en: 'On delivery',\n },\n {\n fr: 'À la command',\n en: 'On order',\n },\n {\n fr: 'À réception de la facture',\n en: 'Upon receipt of invoice',\n },\n {\n fr: 'Exigible sous 14 jours',\n en: 'Due within 14 days',\n },\n {\n fr: 'Exigible sous 30 jours',\n en: 'Due within 30 days',\n },\n {\n fr: '30 jours à réception de la facture',\n en: '30 days upon receipt of invoice',\n },\n {\n fr: '45 jours à réception de la facture',\n en: '45 days upon receipt of invoice',\n },\n {\n fr: '60 jours à réception de la facture',\n en: '60 days upon receipt of invoice',\n },\n ],\n accountingCategory: [\n {\n fr: 'Livraison de biens',\n en: 'Supply of goods',\n },\n {\n fr: 'Prestation de services',\n en: 'Services provision',\n },\n {\n fr: 'Prestation de services et livraison de biens',\n en: 'Services provision and supply of goods',\n },\n ],\n unit: [\n { fr: 'art', en: 'art' },\n { fr: 'h', en: 'h' },\n { fr: 'j', en: 'd' },\n { fr: 'Kg', en: 'kg' },\n { fr: 'l', en: 'l' },\n { fr: 'km', en: 'km' },\n { fr: 'demi j', en: 'half d' },\n { fr: 'an', en: 'year' },\n { fr: 'sem', en: 'week' },\n { fr: 'mois', en: 'month' },\n { fr: 'trim', en: 'quart' },\n { fr: 'p', en: 'p' },\n { fr: 'f', en: 'f' },\n { fr: 'm2', en: 'm2' },\n { fr: 'm3', en: 'm3' },\n { fr: 'Mètre', en: 'meter' },\n { fr: 'abo', en: 'sub' },\n { fr: 'nuit', en: 'night' },\n { fr: 't', en: 't' },\n { fr: 'ha', en: 'ha' },\n { fr: 'min', en: 'min' },\n { fr: 'g', en: 'g' },\n ],\n};\n\nexport const internationalizationConsistency = (\n language: InvoiceLanguage,\n value: string,\n key: InternationalizationConsistencyKey,\n): string | undefined => {\n const keyObjectToMacht = internationalizationMatching[key];\n return language === InvoiceLanguage.FR\n ? keyObjectToMacht.find((obj) => obj.fr === value)?.fr\n : keyObjectToMacht.find((obj) => obj.fr === value)?.en;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -36,4 +36,5 @@ __exportStar(require("./isHtml"), exports);
|
|
|
36
36
|
__exportStar(require("./isUrl"), exports);
|
|
37
37
|
__exportStar(require("./bankAccount"), exports);
|
|
38
38
|
__exportStar(require("./commercialOffer"), exports);
|
|
39
|
+
__exportStar(require("./societyApproval"), exports);
|
|
39
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,8CAA4B;AAC5B,uDAAqC;AACrC,oDAAkC;AAClC,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,yCAAuB;AACvB,2CAAyB;AACzB,kEAAgD;AAChD,oEAAkD;AAClD,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,gDAA8B;AAC9B,oDAAkC","sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './documents';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './statutsGeneration';\nexport * from './email';\nexport * from './exercice';\nexport * from './prestation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './commercialManagement/recurrence';\nexport * from './amount';\nexport * from './quotation';\nexport * from './isHtml';\nexport * from './isUrl';\nexport * from './bankAccount';\nexport * from './commercialOffer';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,8CAA4B;AAC5B,uDAAqC;AACrC,oDAAkC;AAClC,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,yCAAuB;AACvB,2CAAyB;AACzB,kEAAgD;AAChD,oEAAkD;AAClD,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,gDAA8B;AAC9B,oDAAkC;AAClC,oDAAkC","sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './documents';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './statutsGeneration';\nexport * from './email';\nexport * from './exercice';\nexport * from './prestation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './commercialManagement/recurrence';\nexport * from './amount';\nexport * from './quotation';\nexport * from './isHtml';\nexport * from './isUrl';\nexport * from './bankAccount';\nexport * from './commercialOffer';\nexport * from './societyApproval';\n"]}
|
|
@@ -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,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLegalFormName = getLegalFormName;
|
|
4
|
+
exports.getApprovalDocumentsByLegalForm = getApprovalDocumentsByLegalForm;
|
|
5
|
+
exports.getApprovalDocumentTemplateName = getApprovalDocumentTemplateName;
|
|
6
|
+
exports.getApprovalDocumentInfos = getApprovalDocumentInfos;
|
|
7
|
+
exports.buildApprovalTemplateData = buildApprovalTemplateData;
|
|
8
|
+
const LegalForm_1 = require("../types/Enum/LegalForm");
|
|
9
|
+
const SocietyApproval_1 = require("../types/Enum/SocietyApproval");
|
|
10
|
+
const Quality_1 = require("../types/Enum/Quality");
|
|
11
|
+
const brands_1 = require("./brands");
|
|
12
|
+
const amount_1 = require("./amount");
|
|
13
|
+
const dayjs = require("dayjs");
|
|
14
|
+
const CityOfGreffe_1 = require("../types/Enum/CityOfGreffe");
|
|
15
|
+
/**
|
|
16
|
+
* Récupère le nom de la forme juridique
|
|
17
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
18
|
+
* @param fallback - Valeur par défaut si non trouvée
|
|
19
|
+
* @returns Le nom de la forme juridique
|
|
20
|
+
*/
|
|
21
|
+
function getLegalFormName(idLegalForm, fallback = '') {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
return (_b = (_a = Object.values(LegalForm_1.LegalForm).find((lf) => lf.id === idLegalForm)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : fallback;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Récupère la configuration des documents d'approbation pour une forme juridique donnée
|
|
27
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
28
|
+
* @returns La configuration des documents ou undefined si non trouvée
|
|
29
|
+
*/
|
|
30
|
+
function getApprovalDocumentsByLegalForm(idLegalForm) {
|
|
31
|
+
return SocietyApproval_1.SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Récupère le nom du template pour un document spécifique et une forme juridique
|
|
35
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
36
|
+
* @param idDocumentType - Le type de document d'approbation
|
|
37
|
+
* @returns Le nom du template ou undefined si non trouvé
|
|
38
|
+
*/
|
|
39
|
+
//@deprecated use getApprovalDocumentInfos instead
|
|
40
|
+
function getApprovalDocumentTemplateName(idLegalForm, idDocumentType) {
|
|
41
|
+
const config = getApprovalDocumentsByLegalForm(idLegalForm);
|
|
42
|
+
const document = config === null || config === void 0 ? void 0 : config.documents.find((doc) => doc.idDocumentType === idDocumentType);
|
|
43
|
+
return document === null || document === void 0 ? void 0 : document.templateName;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Récupère le texte de la ville du greffe
|
|
47
|
+
* @param idCityOfGreffe - L'identifiant de la ville du greffe
|
|
48
|
+
* @returns Le texte de la ville ou une chaîne vide
|
|
49
|
+
*/
|
|
50
|
+
function getCityOfGreffeName(idCityOfGreffe) {
|
|
51
|
+
var _a, _b;
|
|
52
|
+
if (!idCityOfGreffe)
|
|
53
|
+
return '';
|
|
54
|
+
return (_b = (_a = CityOfGreffe_1.CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)) === null || _a === void 0 ? void 0 : _a.text) !== null && _b !== void 0 ? _b : '';
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Récupère le nom du template pour un document spécifique et une forme juridique
|
|
58
|
+
* @param idLegalForm - L'identifiant de la forme juridique
|
|
59
|
+
* @param idDocumentType - Le type de document d'approbation
|
|
60
|
+
* @returns Le nom du template ou undefined si non trouvé
|
|
61
|
+
*/
|
|
62
|
+
function getApprovalDocumentInfos(idLegalForm, idDocumentType) {
|
|
63
|
+
const config = getApprovalDocumentsByLegalForm(idLegalForm);
|
|
64
|
+
return config === null || config === void 0 ? void 0 : config.documents.find((doc) => doc.idDocumentType === idDocumentType);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Construit les données formatées pour le template d'approbation
|
|
68
|
+
* @param existingApproval - Les données d'approbation de la société
|
|
69
|
+
* @param style - Le style HTML pour le document
|
|
70
|
+
* @returns L'objet de données formaté pour le template
|
|
71
|
+
*/
|
|
72
|
+
function buildApprovalTemplateData(existingApproval, style) {
|
|
73
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
74
|
+
const yearInText = (0, amount_1.convertNumberToLetter)(+dayjs().format('YYYY')).toLowerCase();
|
|
75
|
+
const dayAndMonthInText = `${(0, amount_1.convertNumberToLetter)(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;
|
|
76
|
+
const brand = (0, brands_1.getBrand)();
|
|
77
|
+
return Object.assign(Object.assign({
|
|
78
|
+
// Variables globales
|
|
79
|
+
style,
|
|
80
|
+
yearInText,
|
|
81
|
+
dayAndMonthInText, date: dayjs().locale('fr').format('DD MMMM YYYY'), companyInformation: {
|
|
82
|
+
rcs: (_a = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _a === void 0 ? void 0 : _a.rcs,
|
|
83
|
+
nomRaisonSociale: (_b = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _b === void 0 ? void 0 : _b.nomRaisonSociale,
|
|
84
|
+
city: (_c = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _c === void 0 ? void 0 : _c.city,
|
|
85
|
+
postalAddress: (_d = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _d === void 0 ? void 0 : _d.postalAddress,
|
|
86
|
+
montantCapital: (_e = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _e === void 0 ? void 0 : _e.montantCapital,
|
|
87
|
+
statut: (_f = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _f === void 0 ? void 0 : _f.statut,
|
|
88
|
+
ECOrderCity: (_g = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _g === void 0 ? void 0 : _g.ECOrderCity,
|
|
89
|
+
}, owner: {
|
|
90
|
+
identity: `${((_l = (_k = (_j = (_h = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _h === void 0 ? void 0 : _h.society) === null || _j === void 0 ? void 0 : _j.users) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.idCivility) === 1 ? 'Monsieur' : 'Madame'} ${(_q = (_p = (_o = (_m = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _m === void 0 ? void 0 : _m.society) === null || _o === void 0 ? void 0 : _o.users) === null || _p === void 0 ? void 0 : _p[0]) === null || _q === void 0 ? void 0 : _q.firstname} ${(_u = (_t = (_s = (_r = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _r === void 0 ? void 0 : _r.society) === null || _s === void 0 ? void 0 : _s.users) === null || _t === void 0 ? void 0 : _t[0]) === null || _u === void 0 ? void 0 : _u.lastname} `,
|
|
91
|
+
quality: (_v = Quality_1.QualityList.find((ql) => { var _a, _b, _c, _d, _e, _f; return ql.id === ((_f = (_e = (_d = (_c = (_b = (_a = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _a === void 0 ? void 0 : _a.society) === null || _b === void 0 ? void 0 : _b.users) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.businessPartners) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.idQuality); })) === null || _v === void 0 ? void 0 : _v.label,
|
|
92
|
+
} }, existingApproval), { generatingDatas: Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas), (((_w = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _w === void 0 ? void 0 : _w.approvalDate)
|
|
93
|
+
? {
|
|
94
|
+
approvalDate: dayjs((_x = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.generatingDatas) === null || _x === void 0 ? void 0 : _x.approvalDate)
|
|
95
|
+
.locale('fr')
|
|
96
|
+
.format('DD MMMM YYYY')
|
|
97
|
+
.toUpperCase(),
|
|
98
|
+
}
|
|
99
|
+
: {})), exercice: Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice), { society: Object.assign(Object.assign({}, (_y = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _y === void 0 ? void 0 : _y.society), { cityOfGreffe: getCityOfGreffeName((_0 = (_z = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _z === void 0 ? void 0 : _z.society) === null || _0 === void 0 ? void 0 : _0.idCityOfGreffe).toUpperCase() }), endDate: dayjs((_1 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _1 === void 0 ? void 0 : _1.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase() }) });
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=societyApproval.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"societyApproval.js","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":";;AAoBA,4CAEC;AAOD,0EAIC;AASD,0EAOC;AAkBD,4DAMC;AAQD,8DA+CC;AAhID,uDAAuE;AACvE,mEAKuC;AAEvC,mDAAoD;AACp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AY,EAAE,KAAK,CAAC,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,eAAe,0CAAE,YAAY,CAAC;qBACjE,MAAM,CAAC,IAAI,CAAC;qBACZ,MAAM,CAAC,cAAc,CAAC;qBACtB,WAAW,EAAE;aACjB;YACH,CAAC,CAAC,EAAE,CAAC,GAET,QAAQ,kCACH,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,KAC7B,OAAO,kCACF,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,KACtC,YAAY,EAAE,mBAAmB,CAAC,MAAA,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,0CAAE,cAAc,CAAC,CAAC,WAAW,EAAE,KAEtG,OAAO,EAAE,KAAK,CAAC,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,EAAE,OAEvG;AACJ,CAAC","sourcesContent":["import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n SocietyApprovalDocumentTemplate,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\nimport { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';\n\n/**\n * Récupère le nom de la forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param fallback - Valeur par défaut si non trouvée\n * @returns Le nom de la forme juridique\n */\nexport function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {\n return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;\n}\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\n//@deprecated use getApprovalDocumentInfos instead\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Récupère le texte de la ville du greffe\n * @param idCityOfGreffe - L'identifiant de la ville du greffe\n * @returns Le texte de la ville ou une chaîne vide\n */\nfunction getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {\n if (!idCityOfGreffe) return '';\n return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentInfos(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): SocietyApprovalDocumentTemplate | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;\n const brand = getBrand();\n return {\n // Variables globales\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: brand?.companyInformation?.rcs,\n nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,\n city: brand?.companyInformation?.city,\n postalAddress: brand?.companyInformation?.postalAddress,\n montantCapital: brand?.companyInformation?.montantCapital,\n statut: brand?.companyInformation?.statut,\n ECOrderCity: brand?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n society: {\n ...existingApproval?.exercice?.society,\n cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),\n },\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),\n },\n };\n}\n"]}
|
|
@@ -1,32 +1,10 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { ICard, QueryUserCards, QueryUserCardsPaginated,
|
|
2
|
+
import { ICard, QueryUserCards, QueryUserCardsPaginated, BasePaginate, UpdateCardV2, AssignCard } from '../../types';
|
|
3
3
|
export declare class Card extends Resource {
|
|
4
4
|
getById(id: number, signal?: AbortSignal): Promise<ICard>;
|
|
5
5
|
getAll(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]>;
|
|
6
6
|
getAllPaginated(params: QueryUserCardsPaginated, signal?: AbortSignal): Promise<BasePaginate<ICard>>;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use getAll instead
|
|
9
|
-
*/
|
|
10
|
-
getAllAdmin(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]>;
|
|
11
|
-
getStats(params: QueryUserCardsStats, signal?: AbortSignal): Promise<CardsStatsGroup[]>;
|
|
12
|
-
getInternalStats(params: QueryInternalCardsStats, signal?: AbortSignal): Promise<InternalCardStats[]>;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use updateV2 instead
|
|
15
|
-
*/
|
|
16
|
-
update(id: number, data: UpdateCard): Promise<ICard>;
|
|
17
7
|
delete(id: number): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated comptallo v1 endpoint
|
|
20
|
-
*/
|
|
21
|
-
modifyTeamPlanning(data: ModifyTeamPlanning): Promise<true>;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated comptallo v1 endpoint
|
|
24
|
-
*/
|
|
25
|
-
modifyExercisePlanning(data: ModifyExercisePlanning): Promise<true>;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated comptallo v1 endpoint
|
|
28
|
-
*/
|
|
29
|
-
organizeFutureBalanceSheets(data: OrganizeBalanceSheets): Promise<OrganizeBalanceSheetsResponse>;
|
|
30
8
|
updateV2(idCard: number, data: UpdateCardV2): Promise<ICard>;
|
|
31
9
|
assignCard(payload: AssignCard): Promise<ICard>;
|
|
32
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EACL,cAAc,EACd,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EACL,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,UAAU,EACX,MAAM,aAAa,CAAC;AAErB,qBAAa,IAAK,SAAQ,QAAQ;IAChC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC;IAMzD,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAOtE,eAAe,CAAC,MAAM,EAAE,uBAAuB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAOpG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC;IAI5D,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC;CAGhD"}
|
|
@@ -17,54 +17,9 @@ export class Card extends Resource {
|
|
|
17
17
|
params,
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Use getAll instead
|
|
22
|
-
*/
|
|
23
|
-
getAllAdmin(params, signal) {
|
|
24
|
-
return this.axios.$get('/cards', {
|
|
25
|
-
...(signal ? { signal } : {}),
|
|
26
|
-
params,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
getStats(params, signal) {
|
|
30
|
-
return this.axios.$get('/cards/stats', {
|
|
31
|
-
...(signal ? { signal } : {}),
|
|
32
|
-
params,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
getInternalStats(params, signal) {
|
|
36
|
-
return this.axios.$get('/cards/internal/stats', {
|
|
37
|
-
...(signal ? { signal } : {}),
|
|
38
|
-
params,
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use updateV2 instead
|
|
43
|
-
*/
|
|
44
|
-
update(id, data) {
|
|
45
|
-
return this.axios.$put(`/cards/${id}`, data);
|
|
46
|
-
}
|
|
47
20
|
delete(id) {
|
|
48
21
|
return this.axios.$delete(`/cards/${id}`);
|
|
49
22
|
}
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated comptallo v1 endpoint
|
|
52
|
-
*/
|
|
53
|
-
modifyTeamPlanning(data) {
|
|
54
|
-
return this.axios.$put('/cards/assign/modify-team-planning', data);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @deprecated comptallo v1 endpoint
|
|
58
|
-
*/
|
|
59
|
-
modifyExercisePlanning(data) {
|
|
60
|
-
return this.axios.$put('/cards/assign/modify-exercise-planning', data);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated comptallo v1 endpoint
|
|
64
|
-
*/
|
|
65
|
-
organizeFutureBalanceSheets(data) {
|
|
66
|
-
return this.axios.$post('/cards/accountant/organize/future-balance-sheets', data);
|
|
67
|
-
}
|
|
68
23
|
updateV2(idCard, data) {
|
|
69
24
|
return this.axios.$put(`/cards/${idCard}/v2`, data);
|
|
70
25
|
}
|