@silexpert/core 0.4.290 → 1.0.5
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/CHANGELOG.md +0 -17
- package/es/api/resources/BudgetInsight.d.ts +7 -0
- package/es/api/resources/BudgetInsight.d.ts.map +1 -1
- package/es/api/resources/BudgetInsight.js +8 -0
- package/es/api/resources/BudgetInsight.js.map +1 -1
- package/es/api/resources/CalendarEvent.d.ts +1 -2
- package/es/api/resources/CalendarEvent.d.ts.map +1 -1
- package/es/api/resources/CalendarEvent.js +2 -2
- package/es/api/resources/CalendarEvent.js.map +1 -1
- package/es/api/resources/CommercialSetting.d.ts +7 -0
- package/es/api/resources/CommercialSetting.d.ts.map +1 -0
- package/es/api/resources/CommercialSetting.js +10 -0
- package/es/api/resources/CommercialSetting.js.map +1 -0
- package/es/api/resources/Connector.d.ts +4 -1
- package/es/api/resources/Connector.d.ts.map +1 -1
- package/es/api/resources/Connector.js +9 -0
- package/es/api/resources/Connector.js.map +1 -1
- package/es/api/resources/Dashboard.d.ts +1 -2
- package/es/api/resources/Dashboard.d.ts.map +1 -1
- package/es/api/resources/Dashboard.js +0 -3
- package/es/api/resources/Dashboard.js.map +1 -1
- package/es/api/resources/Exercice.d.ts +0 -1
- package/es/api/resources/Exercice.d.ts.map +1 -1
- package/es/api/resources/Exercice.js +0 -3
- package/es/api/resources/Exercice.js.map +1 -1
- package/es/api/resources/FecFile.d.ts +0 -6
- package/es/api/resources/FecFile.d.ts.map +1 -1
- package/es/api/resources/FecFile.js +6 -26
- package/es/api/resources/FecFile.js.map +1 -1
- package/es/api/resources/GeneralLedger.d.ts +1 -1
- package/es/api/resources/GeneralLedger.d.ts.map +1 -1
- package/es/api/resources/GeneralLedger.js +2 -2
- package/es/api/resources/GeneralLedger.js.map +1 -1
- package/es/api/resources/Invoice.d.ts +11 -0
- package/es/api/resources/Invoice.d.ts.map +1 -0
- package/es/api/resources/Invoice.js +19 -0
- package/es/api/resources/Invoice.js.map +1 -0
- package/es/api/resources/Loan.js +1 -1
- package/es/api/resources/Loan.js.map +1 -1
- package/es/api/resources/Mail.d.ts +1 -1
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +3 -4
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/Partner.d.ts +0 -1
- package/es/api/resources/Partner.d.ts.map +1 -1
- package/es/api/resources/Partner.js +0 -3
- package/es/api/resources/Partner.js.map +1 -1
- package/es/api/resources/Qonto.d.ts +1 -6
- package/es/api/resources/Qonto.d.ts.map +1 -1
- package/es/api/resources/Qonto.js +1 -16
- package/es/api/resources/Qonto.js.map +1 -1
- package/es/api/resources/User.d.ts +3 -5
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +27 -27
- package/es/api/resources/User.js.map +1 -1
- package/es/api/resources/commercialDocument.d.ts +18 -0
- package/es/api/resources/commercialDocument.d.ts.map +1 -0
- package/es/api/resources/commercialDocument.js +41 -0
- package/es/api/resources/commercialDocument.js.map +1 -0
- package/es/api/resources/reminder.d.ts +8 -0
- package/es/api/resources/reminder.d.ts.map +1 -0
- package/es/api/resources/reminder.js +13 -0
- package/es/api/resources/reminder.js.map +1 -0
- package/es/api/resources.d.ts +8 -18
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +8 -18
- package/es/api/resources.js.map +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.d.ts.map +1 -1
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/es/types/Enum/Account.d.ts +8 -0
- package/es/types/Enum/Account.d.ts.map +1 -1
- package/es/types/Enum/Account.js +8 -0
- package/es/types/Enum/Account.js.map +1 -1
- package/es/types/Enum/BalanceSheet.js +1 -1
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +1 -12
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +1 -10
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandComptalib.d.ts +0 -87
- package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/es/types/Enum/BrandComptalib.js +4 -13
- package/es/types/Enum/BrandComptalib.js.map +1 -1
- package/es/types/Enum/BrandLegalstart.d.ts +0 -3
- package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/es/types/Enum/BrandLegalstart.js +0 -3
- package/es/types/Enum/BrandLegalstart.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.d.ts +0 -4
- package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +3 -7
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- package/es/types/Enum/BudgetInsight.js.map +1 -1
- package/es/types/Enum/CommercialManagement.d.ts +32 -0
- package/es/types/Enum/CommercialManagement.d.ts.map +1 -0
- package/es/types/Enum/CommercialManagement.js +39 -0
- package/es/types/Enum/CommercialManagement.js.map +1 -0
- package/es/types/Enum/EstimateInvoice.d.ts +1 -1
- package/es/types/Enum/EstimateInvoice.d.ts.map +1 -1
- package/es/types/Enum/EstimateInvoice.js +1 -1
- package/es/types/Enum/EstimateInvoice.js.map +1 -1
- package/es/types/Enum/Ged.d.ts +1 -101
- package/es/types/Enum/Ged.d.ts.map +1 -1
- package/es/types/Enum/Ged.js +14 -100
- package/es/types/Enum/Ged.js.map +1 -1
- package/es/types/Enum/Log.d.ts +1 -2
- package/es/types/Enum/Log.d.ts.map +1 -1
- package/es/types/Enum/Log.js +0 -1
- package/es/types/Enum/Log.js.map +1 -1
- package/es/types/Enum/Prestation.d.ts +15 -0
- package/es/types/Enum/Prestation.d.ts.map +1 -0
- package/es/types/Enum/Prestation.js +16 -0
- package/es/types/Enum/Prestation.js.map +1 -0
- package/es/types/Enum/Role.d.ts +11 -6
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +10 -15
- package/es/types/Enum/Role.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +51 -42
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +64 -127
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/SheetMonthScheduleDetailType.js +1 -1
- package/es/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
- package/es/types/Enum/TaskResponseType.d.ts +0 -9
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +2 -57
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Enum/TimeCounterType.d.ts +12 -40
- package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/es/types/Enum/TimeCounterType.js +19 -47
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Enum/Vat.d.ts +1 -17
- package/es/types/Enum/Vat.d.ts.map +1 -1
- package/es/types/Enum/Vat.js +26 -24
- package/es/types/Enum/Vat.js.map +1 -1
- package/es/types/Enum/VatDeclarationType.d.ts.map +1 -1
- package/es/types/Enum/VatDeclarationType.js +0 -6
- package/es/types/Enum/VatDeclarationType.js.map +1 -1
- package/es/types/Interface/api/3cx/Query3cxSearch.d.ts +0 -1
- package/es/types/Interface/api/3cx/Query3cxSearch.d.ts.map +1 -1
- package/es/types/Interface/api/3cx/Query3cxSearch.js +0 -6
- package/es/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
- package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts +0 -1
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts.map +1 -1
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.d.ts +107 -0
- package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -0
- package/es/types/Interface/api/commercialManagement/Create.js +496 -0
- package/es/types/Interface/api/commercialManagement/Create.js.map +1 -0
- package/es/types/Interface/api/commercialManagement/Query.d.ts +45 -0
- package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -0
- package/es/types/Interface/api/commercialManagement/Query.js +121 -0
- package/es/types/Interface/api/commercialManagement/Query.js.map +1 -0
- package/es/types/Interface/api/commercialManagement/Read.d.ts +60 -0
- package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -0
- package/es/types/Interface/api/commercialManagement/Read.js +2 -0
- package/es/types/Interface/api/commercialManagement/Read.js.map +1 -0
- package/es/types/Interface/api/commercialManagement/Update.d.ts +16 -0
- package/es/types/Interface/api/commercialManagement/Update.d.ts.map +1 -0
- package/es/types/Interface/api/{societyConfig/update.js → commercialManagement/Update.js} +21 -61
- package/es/types/Interface/api/commercialManagement/Update.js.map +1 -0
- package/es/types/Interface/api/connector/CreateConnector.d.ts +13 -0
- package/es/types/Interface/api/connector/CreateConnector.d.ts.map +1 -0
- package/es/types/Interface/api/connector/CreateConnector.js +68 -0
- package/es/types/Interface/api/connector/CreateConnector.js.map +1 -0
- package/es/types/Interface/api/connector/QueryConnector.d.ts +7 -0
- package/es/types/Interface/api/connector/QueryConnector.d.ts.map +1 -0
- package/es/types/Interface/api/{qonto/ProcessBankAccount.js → connector/QueryConnector.js} +10 -7
- package/es/types/Interface/api/connector/QueryConnector.js.map +1 -0
- package/es/types/Interface/api/dashboard/ReadGescom.d.ts +2 -3
- package/es/types/Interface/api/dashboard/ReadGescom.d.ts.map +1 -1
- package/es/types/Interface/api/dashboard/ReadGescom.js.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +0 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +1 -7
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +0 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -7
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -2
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +2 -8
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -2
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -7
- package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.d.ts +1 -0
- package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.js +9 -6
- package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.d.ts +2 -0
- package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.js +15 -1
- package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/es/types/Interface/api/report/QueryReports.d.ts +0 -1
- package/es/types/Interface/api/report/QueryReports.d.ts.map +1 -1
- package/es/types/Interface/api/report/QueryReports.js +0 -4
- package/es/types/Interface/api/report/QueryReports.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevision.d.ts +0 -2
- package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevision.js +2 -16
- package/es/types/Interface/api/revision/QueryRevision.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.js +5 -11
- package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +0 -2
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js +2 -16
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/es/types/Interface/api/revision/ReadRevision.d.ts +1 -2
- package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -1
- package/es/types/Interface/api/revision/ReadRevision.js.map +1 -1
- package/es/types/Interface/api/simulation/CreateSimulation.d.ts +0 -2
- package/es/types/Interface/api/simulation/CreateSimulation.d.ts.map +1 -1
- package/es/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
- package/es/types/Interface/api/task/QueryCountTask.d.ts +1 -1
- package/es/types/Interface/api/task/QueryCountTask.d.ts.map +1 -1
- package/es/types/Interface/api/task/QueryCountTask.js +1 -1
- package/es/types/Interface/api/task/QueryCountTask.js.map +1 -1
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts +0 -2
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts.map +1 -1
- package/es/types/Interface/api/task/QueryPaginatedTask.js +0 -11
- package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
- package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts +0 -1
- package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts.map +1 -1
- package/es/types/Interface/api/thirdParty/QueryThirdParty.js +1 -7
- package/es/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +0 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +1 -10
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +0 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js +1 -11
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +0 -1
- package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +1 -8
- package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
- package/es/types/Interface/models/IAccount.d.ts +0 -2
- package/es/types/Interface/models/IAccount.d.ts.map +1 -1
- package/es/types/Interface/models/IAccount.js.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -1
- package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +4 -2
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +4 -2
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IAttributionHistory.d.ts +4 -4
- package/es/types/Interface/models/IAttributionHistory.d.ts.map +1 -1
- package/es/types/Interface/models/IAttributionHistory.js.map +1 -1
- package/es/types/Interface/models/ICommercialMail.d.ts +14 -0
- package/es/types/Interface/models/ICommercialMail.d.ts.map +1 -0
- package/es/types/Interface/models/ICommercialMail.js +2 -0
- package/es/types/Interface/models/ICommercialMail.js.map +1 -0
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts +2 -0
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.d.ts +24 -28
- package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/es/types/Interface/models/IExercice.d.ts +0 -1
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/Interface/models/{ISocietyRelance.d.ts → IInvoiceReminder.d.ts} +8 -8
- package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -0
- package/es/types/Interface/models/IInvoiceReminder.js +2 -0
- package/es/types/Interface/models/IInvoiceReminder.js.map +1 -0
- package/es/types/Interface/models/ILegalNotice.d.ts +0 -1
- package/es/types/Interface/models/ILegalNotice.d.ts.map +1 -1
- package/es/types/Interface/models/ILegalNotice.js.map +1 -1
- package/es/types/Interface/models/ILoan.d.ts +0 -2
- package/es/types/Interface/models/ILoan.d.ts.map +1 -1
- package/es/types/Interface/models/ILoan.js.map +1 -1
- package/es/types/Interface/models/IPartnerTransaction.d.ts +1 -0
- package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
- package/es/types/Interface/models/IPaymentExpectation.d.ts +0 -1
- package/es/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/es/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/es/types/Interface/models/IPrestation.d.ts +0 -3
- package/es/types/Interface/models/IPrestation.d.ts.map +1 -1
- package/es/types/Interface/models/IPrestation.js.map +1 -1
- package/es/types/Interface/models/IPrestationComplementary.d.ts +1 -1
- package/es/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
- package/es/types/Interface/models/IPrestationComplementary.js.map +1 -1
- package/es/types/Interface/models/IProduct.d.ts +1 -0
- package/es/types/Interface/models/IProduct.d.ts.map +1 -1
- package/es/types/Interface/models/IProduct.js.map +1 -1
- package/es/types/Interface/models/IProductInvoice.d.ts +5 -3
- package/es/types/Interface/models/IProductInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IProductInvoice.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +2 -5
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/Interface/models/ISocietyGescom.d.ts +13 -1
- package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
- package/es/types/Interface/models/ISocietyPartner.d.ts +1 -2
- package/es/types/Interface/models/ISocietyPartner.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyPartner.js.map +1 -1
- package/es/types/Interface/models/ITask.d.ts +2 -2
- package/es/types/Interface/models/ITask.d.ts.map +1 -1
- package/es/types/Interface/models/ITask.js.map +1 -1
- package/es/types/index.d.ts +11 -42
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +11 -42
- package/es/types/index.js.map +1 -1
- package/es/utils/amount.d.ts +2 -0
- package/es/utils/amount.d.ts.map +1 -0
- package/es/utils/amount.js +12 -0
- package/es/utils/amount.js.map +1 -0
- package/es/utils/brands.d.ts +1 -1
- package/es/utils/brands.d.ts.map +1 -1
- package/es/utils/brands.js +26 -8
- package/es/utils/brands.js.map +1 -1
- package/es/utils/commercialManagement/document.d.ts +6 -0
- package/es/utils/commercialManagement/document.d.ts.map +1 -0
- package/es/utils/commercialManagement/document.js +54 -0
- package/es/utils/commercialManagement/document.js.map +1 -0
- package/es/utils/commercialManagement/product.d.ts +5 -0
- package/es/utils/commercialManagement/product.d.ts.map +1 -0
- package/es/utils/commercialManagement/product.js +27 -0
- package/es/utils/commercialManagement/product.js.map +1 -0
- package/es/utils/commercialManagement/templates/body.d.ts +2 -0
- package/es/utils/commercialManagement/templates/body.d.ts.map +1 -0
- package/es/utils/commercialManagement/templates/body.js +111 -0
- package/es/utils/commercialManagement/templates/body.js.map +1 -0
- package/es/utils/commercialManagement/templates/common.d.ts +12 -0
- package/es/utils/commercialManagement/templates/common.d.ts.map +1 -0
- package/es/utils/commercialManagement/templates/common.js +199 -0
- package/es/utils/commercialManagement/templates/common.js.map +1 -0
- package/es/utils/commercialManagement/vat.d.ts +6 -0
- package/es/utils/commercialManagement/vat.d.ts.map +1 -0
- package/es/utils/commercialManagement/vat.js +22 -0
- package/es/utils/commercialManagement/vat.js.map +1 -0
- package/es/utils/index.d.ts +2 -1
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +2 -1
- package/es/utils/index.js.map +1 -1
- package/es/utils/task.d.ts +2 -3
- package/es/utils/task.d.ts.map +1 -1
- package/es/utils/task.js +19 -23
- package/es/utils/task.js.map +1 -1
- package/es/utils/webmail.d.ts.map +1 -1
- package/es/utils/webmail.js +4 -1
- package/es/utils/webmail.js.map +1 -1
- package/importInterfaces.ts +1 -1
- package/js/api/resources/BudgetInsight.js +10 -0
- package/js/api/resources/BudgetInsight.js.map +1 -1
- package/js/api/resources/CalendarEvent.js +3 -5
- package/js/api/resources/CalendarEvent.js.map +1 -1
- package/js/api/resources/CommercialSetting.js +22 -0
- package/js/api/resources/CommercialSetting.js.map +1 -0
- package/js/api/resources/Connector.js +14 -0
- package/js/api/resources/Connector.js.map +1 -1
- package/js/api/resources/Dashboard.js +0 -6
- package/js/api/resources/Dashboard.js.map +1 -1
- package/js/api/resources/Exercice.js +0 -4
- package/js/api/resources/Exercice.js.map +1 -1
- package/js/api/resources/FecFile.js +6 -34
- package/js/api/resources/FecFile.js.map +1 -1
- package/js/api/resources/GeneralLedger.js +2 -2
- package/js/api/resources/GeneralLedger.js.map +1 -1
- package/js/api/resources/Invoice.js +42 -0
- package/js/api/resources/Invoice.js.map +1 -0
- package/js/api/resources/Loan.js +1 -1
- package/js/api/resources/Loan.js.map +1 -1
- package/js/api/resources/Mail.js +3 -4
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/Partner.js +0 -4
- package/js/api/resources/Partner.js.map +1 -1
- package/js/api/resources/Qonto.js +1 -23
- package/js/api/resources/Qonto.js.map +1 -1
- package/js/api/resources/User.js +8 -31
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources/commercialDocument.js +74 -0
- package/js/api/resources/commercialDocument.js.map +1 -0
- package/js/api/resources/reminder.js +26 -0
- package/js/api/resources/reminder.js.map +1 -0
- package/js/api/resources.js +9 -24
- package/js/api/resources.js.map +1 -1
- package/js/index.js +12 -0
- package/js/index.js.map +1 -1
- package/js/types/Enum/Account.js +8 -0
- package/js/types/Enum/Account.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +1 -1
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +1 -10
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandComptalib.js +5 -14
- package/js/types/Enum/BrandComptalib.js.map +1 -1
- package/js/types/Enum/BrandLegalstart.js +0 -3
- package/js/types/Enum/BrandLegalstart.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +3 -7
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- package/js/types/Enum/BudgetInsight.js.map +1 -1
- package/js/types/Enum/CommercialManagement.js +67 -0
- package/js/types/Enum/CommercialManagement.js.map +1 -0
- package/js/types/Enum/EstimateInvoice.js +1 -1
- package/js/types/Enum/EstimateInvoice.js.map +1 -1
- package/js/types/Enum/Ged.js +17 -104
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Enum/Log.js +0 -1
- package/js/types/Enum/Log.js.map +1 -1
- package/js/types/Enum/Prestation.js +22 -0
- package/js/types/Enum/Prestation.js.map +1 -0
- package/js/types/Enum/Role.js +13 -18
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +86 -149
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/SheetMonthScheduleDetailType.js +1 -1
- package/js/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
- package/js/types/Enum/TaskResponseType.js +3 -56
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Enum/TimeCounterType.js +40 -68
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Enum/Vat.js +46 -45
- package/js/types/Enum/Vat.js.map +1 -1
- package/js/types/Enum/VatDeclarationType.js +0 -5
- package/js/types/Enum/VatDeclarationType.js.map +1 -1
- package/js/types/Interface/api/3cx/Query3cxSearch.js +0 -2
- package/js/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
- package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Create.js +235 -0
- package/js/types/Interface/api/commercialManagement/Create.js.map +1 -0
- package/js/types/Interface/api/commercialManagement/Query.js +79 -0
- package/js/types/Interface/api/commercialManagement/Query.js.map +1 -0
- package/js/types/Interface/api/{qonto/Query.js → commercialManagement/Read.js} +1 -1
- package/js/types/Interface/api/commercialManagement/Read.js.map +1 -0
- package/js/types/Interface/api/commercialManagement/Update.js +55 -0
- package/js/types/Interface/api/commercialManagement/Update.js.map +1 -0
- package/js/types/Interface/api/connector/CreateConnector.js +47 -0
- package/js/types/Interface/api/connector/CreateConnector.js.map +1 -0
- package/js/types/Interface/api/{qonto/ProcessBankAccount.js → connector/QueryConnector.js} +10 -6
- package/js/types/Interface/api/connector/QueryConnector.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadGescom.js.map +1 -1
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +0 -2
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +0 -2
- package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -5
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -3
- package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/js/types/Interface/api/product/CreateProduct.js +5 -5
- package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/js/types/Interface/api/product/QueryProduct.js +6 -0
- package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/js/types/Interface/api/report/QueryReports.js +0 -2
- package/js/types/Interface/api/report/QueryReports.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevision.js +0 -6
- package/js/types/Interface/api/revision/QueryRevision.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js +5 -7
- package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js +0 -6
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/js/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
- package/js/types/Interface/api/task/QueryCountTask.js +1 -1
- package/js/types/Interface/api/task/QueryCountTask.js.map +1 -1
- package/js/types/Interface/api/task/QueryPaginatedTask.js +0 -6
- package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
- package/js/types/Interface/api/thirdParty/QueryThirdParty.js +0 -2
- package/js/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +0 -6
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js +0 -8
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
- package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +0 -4
- package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +5 -3
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/{ISocietyRelance.js → ICommercialMail.js} +1 -1
- package/js/types/Interface/models/ICommercialMail.js.map +1 -0
- package/js/types/Interface/{api/dashboard/ReadVatDisbursed.js → models/IInvoiceReminder.js} +1 -1
- package/js/types/Interface/models/IInvoiceReminder.js.map +1 -0
- package/js/types/index.js +64 -436
- package/js/types/index.js.map +1 -1
- package/js/utils/amount.js +23 -0
- package/js/utils/amount.js.map +1 -0
- package/js/utils/brands.js +26 -7
- package/js/utils/brands.js.map +1 -1
- package/js/utils/commercialManagement/document.js +148 -0
- package/js/utils/commercialManagement/document.js.map +1 -0
- package/js/utils/commercialManagement/product.js +56 -0
- package/js/utils/commercialManagement/product.js.map +1 -0
- package/js/utils/commercialManagement/templates/body.js +120 -0
- package/js/utils/commercialManagement/templates/body.js.map +1 -0
- package/js/utils/commercialManagement/templates/common.js +211 -0
- package/js/utils/commercialManagement/templates/common.js.map +1 -0
- package/js/utils/commercialManagement/vat.js +44 -0
- package/js/utils/commercialManagement/vat.js.map +1 -0
- package/js/utils/index.js +21 -9
- package/js/utils/index.js.map +1 -1
- package/js/utils/task.js +20 -29
- package/js/utils/task.js.map +1 -1
- package/js/utils/webmail.js +3 -1
- package/js/utils/webmail.js.map +1 -1
- package/package.json +3 -1
- package/ts/api/resources/BudgetInsight.ts +13 -0
- package/ts/api/resources/CalendarEvent.ts +2 -3
- package/ts/api/resources/CommercialSetting.ts +12 -0
- package/ts/api/resources/Connector.ts +16 -1
- package/ts/api/resources/Dashboard.ts +0 -6
- package/ts/api/resources/Exercice.ts +0 -4
- package/ts/api/resources/FecFile.ts +6 -32
- package/ts/api/resources/GeneralLedger.ts +2 -2
- package/ts/api/resources/Invoice.ts +39 -0
- package/ts/api/resources/Loan.ts +1 -1
- package/ts/api/resources/Mail.ts +3 -4
- package/ts/api/resources/Partner.ts +0 -4
- package/ts/api/resources/Qonto.ts +5 -27
- package/ts/api/resources/User.ts +29 -30
- package/ts/api/resources/commercialDocument.ts +66 -0
- package/ts/api/resources/reminder.ts +20 -0
- package/ts/api/resources.ts +8 -18
- package/ts/index.ts +1 -0
- package/ts/types/Enum/Account.ts +8 -0
- package/ts/types/Enum/BalanceSheet.ts +1 -1
- package/ts/types/Enum/BrandClementine.ts +1 -10
- package/ts/types/Enum/BrandComptalib.ts +4 -13
- package/ts/types/Enum/BrandLegalstart.ts +0 -3
- package/ts/types/Enum/BrandPourcentage.ts +3 -7
- package/ts/types/Enum/BudgetInsight.ts +1 -1
- package/ts/types/Enum/CommercialManagement.ts +38 -0
- package/ts/types/Enum/EstimateInvoice.ts +1 -1
- package/ts/types/Enum/Ged.ts +15 -102
- package/ts/types/Enum/Log.ts +0 -1
- package/ts/types/Enum/Prestation.ts +14 -0
- package/ts/types/Enum/Role.ts +10 -15
- package/ts/types/Enum/RoleDetail.ts +64 -127
- package/ts/types/Enum/SheetMonthScheduleDetailType.ts +1 -1
- package/ts/types/Enum/TaskResponseType.ts +2 -57
- package/ts/types/Enum/TimeCounterType.ts +19 -47
- package/ts/types/Enum/Vat.ts +28 -25
- package/ts/types/Enum/VatDeclarationType.ts +0 -6
- package/ts/types/Interface/api/3cx/Query3cxSearch.ts +0 -5
- package/ts/types/Interface/api/calendarEvent/getAllCalendarEvent.ts +1 -1
- package/ts/types/Interface/api/calendarEvent/readAllCalendarEvent.ts +0 -1
- package/ts/types/Interface/api/commercialManagement/Create.ts +423 -0
- package/ts/types/Interface/api/commercialManagement/Query.ts +115 -0
- package/ts/types/Interface/api/commercialManagement/Read.ts +64 -0
- package/ts/types/Interface/api/commercialManagement/Update.ts +72 -0
- package/ts/types/Interface/api/connector/CreateConnector.ts +51 -0
- package/ts/types/Interface/api/connector/QueryConnector.ts +16 -0
- package/ts/types/Interface/api/dashboard/ReadGescom.ts +2 -3
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +0 -6
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +1 -6
- package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -7
- package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -6
- package/ts/types/Interface/api/product/CreateProduct.ts +8 -5
- package/ts/types/Interface/api/product/QueryProduct.ts +13 -0
- package/ts/types/Interface/api/report/QueryReports.ts +0 -3
- package/ts/types/Interface/api/revision/QueryRevision.ts +2 -15
- package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +4 -11
- package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +2 -15
- package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +1 -1
- package/ts/types/Interface/api/revision/ReadRevision.ts +1 -2
- package/ts/types/Interface/api/simulation/CreateSimulation.ts +0 -2
- package/ts/types/Interface/api/task/QueryCountTask.ts +1 -1
- package/ts/types/Interface/api/task/QueryPaginatedTask.ts +0 -9
- package/ts/types/Interface/api/thirdParty/QueryThirdParty.ts +1 -8
- package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +0 -9
- package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +1 -12
- package/ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts +1 -7
- package/ts/types/Interface/models/IAccount.ts +0 -2
- package/ts/types/Interface/models/IAccountingTransaction.ts +1 -1
- package/ts/types/Interface/models/IApiError.ts +5 -3
- package/ts/types/Interface/models/IAttributionHistory.ts +4 -4
- package/ts/types/Interface/models/ICommercialMail.ts +15 -0
- package/ts/types/Interface/models/IEngagementBankTransaction.ts +2 -0
- package/ts/types/Interface/models/IEstimateInvoice.ts +24 -28
- package/ts/types/Interface/models/IExercice.ts +0 -1
- package/ts/types/Interface/models/{ISocietyRelance.ts → IInvoiceReminder.ts} +7 -7
- package/ts/types/Interface/models/ILegalNotice.ts +0 -1
- package/ts/types/Interface/models/ILoan.ts +0 -2
- package/ts/types/Interface/models/IPartnerTransaction.ts +1 -0
- package/ts/types/Interface/models/IPaymentExpectation.ts +0 -1
- package/ts/types/Interface/models/IPrestation.ts +0 -3
- package/ts/types/Interface/models/IPrestationComplementary.ts +1 -1
- package/ts/types/Interface/models/IProduct.ts +1 -0
- package/ts/types/Interface/models/IProductInvoice.ts +5 -3
- package/ts/types/Interface/models/ISociety.ts +2 -5
- package/ts/types/Interface/models/ISocietyGescom.ts +14 -1
- package/ts/types/Interface/models/ISocietyPartner.ts +1 -2
- package/ts/types/Interface/models/ITask.ts +2 -2
- package/ts/types/index.ts +11 -42
- package/ts/utils/amount.ts +13 -0
- package/ts/utils/brands.ts +25 -7
- package/ts/utils/commercialManagement/document.ts +105 -0
- package/ts/utils/commercialManagement/product.ts +36 -0
- package/ts/utils/commercialManagement/templates/body.ts +113 -0
- package/ts/utils/commercialManagement/templates/common.ts +205 -0
- package/ts/utils/commercialManagement/vat.ts +24 -0
- package/ts/utils/index.ts +2 -1
- package/ts/utils/task.ts +16 -24
- package/ts/utils/webmail.ts +3 -1
- package/es/api/resources/LegalNotice.d.ts +0 -6
- package/es/api/resources/LegalNotice.d.ts.map +0 -1
- package/es/api/resources/LegalNotice.js +0 -7
- package/es/api/resources/LegalNotice.js.map +0 -1
- package/es/api/resources/PaymentExpectation.d.ts +0 -6
- package/es/api/resources/PaymentExpectation.d.ts.map +0 -1
- package/es/api/resources/PaymentExpectation.js +0 -7
- package/es/api/resources/PaymentExpectation.js.map +0 -1
- package/es/api/resources/SlowDetection.d.ts +0 -11
- package/es/api/resources/SlowDetection.d.ts.map +0 -1
- package/es/api/resources/SlowDetection.js +0 -12
- package/es/api/resources/SlowDetection.js.map +0 -1
- package/es/api/resources/SocietyConfig.d.ts +0 -7
- package/es/api/resources/SocietyConfig.d.ts.map +0 -1
- package/es/api/resources/SocietyConfig.js +0 -10
- package/es/api/resources/SocietyConfig.js.map +0 -1
- package/es/api/resources/Source.d.ts +0 -6
- package/es/api/resources/Source.d.ts.map +0 -1
- package/es/api/resources/Source.js +0 -7
- package/es/api/resources/Source.js.map +0 -1
- package/es/api/resources/TerminationList.d.ts +0 -7
- package/es/api/resources/TerminationList.d.ts.map +0 -1
- package/es/api/resources/TerminationList.js +0 -10
- package/es/api/resources/TerminationList.js.map +0 -1
- package/es/api/resources/Wallet.d.ts +0 -8
- package/es/api/resources/Wallet.d.ts.map +0 -1
- package/es/api/resources/Wallet.js +0 -7
- package/es/api/resources/Wallet.js.map +0 -1
- package/es/api/resources/statistic/Accountant.d.ts +0 -59
- package/es/api/resources/statistic/Accountant.d.ts.map +0 -1
- package/es/api/resources/statistic/Accountant.js +0 -86
- package/es/api/resources/statistic/Accountant.js.map +0 -1
- package/es/api/resources/statistic/Direction.d.ts +0 -11
- package/es/api/resources/statistic/Direction.d.ts.map +0 -1
- package/es/api/resources/statistic/Direction.js +0 -14
- package/es/api/resources/statistic/Direction.js.map +0 -1
- package/es/api/resources/statistic/ExpertAccountant.d.ts +0 -29
- package/es/api/resources/statistic/ExpertAccountant.d.ts.map +0 -1
- package/es/api/resources/statistic/ExpertAccountant.js +0 -41
- package/es/api/resources/statistic/ExpertAccountant.js.map +0 -1
- package/es/types/Enum/AdditionnalSells.d.ts +0 -7
- package/es/types/Enum/AdditionnalSells.d.ts.map +0 -1
- package/es/types/Enum/AdditionnalSells.js +0 -8
- package/es/types/Enum/AdditionnalSells.js.map +0 -1
- package/es/types/Enum/CustomerVat.d.ts +0 -24
- package/es/types/Enum/CustomerVat.d.ts.map +0 -1
- package/es/types/Enum/CustomerVat.js +0 -26
- package/es/types/Enum/CustomerVat.js.map +0 -1
- package/es/types/Enum/Lab.d.ts +0 -25
- package/es/types/Enum/Lab.d.ts.map +0 -1
- package/es/types/Enum/Lab.js +0 -26
- package/es/types/Enum/Lab.js.map +0 -1
- package/es/types/Enum/OperationLegalNotice.d.ts +0 -4
- package/es/types/Enum/OperationLegalNotice.d.ts.map +0 -1
- package/es/types/Enum/OperationLegalNotice.js +0 -5
- package/es/types/Enum/OperationLegalNotice.js.map +0 -1
- package/es/types/Enum/OrderStatus.d.ts +0 -6
- package/es/types/Enum/OrderStatus.d.ts.map +0 -1
- package/es/types/Enum/OrderStatus.js +0 -7
- package/es/types/Enum/OrderStatus.js.map +0 -1
- package/es/types/Enum/PrestationType.d.ts +0 -2776
- package/es/types/Enum/PrestationType.d.ts.map +0 -1
- package/es/types/Enum/PrestationType.js +0 -2778
- package/es/types/Enum/PrestationType.js.map +0 -1
- package/es/types/Enum/Reason.d.ts +0 -4
- package/es/types/Enum/Reason.d.ts.map +0 -1
- package/es/types/Enum/Reason.js +0 -5
- package/es/types/Enum/Reason.js.map +0 -1
- package/es/types/Enum/RegistrationSourceDetail.d.ts +0 -195
- package/es/types/Enum/RegistrationSourceDetail.d.ts.map +0 -1
- package/es/types/Enum/RegistrationSourceDetail.js +0 -99
- package/es/types/Enum/RegistrationSourceDetail.js.map +0 -1
- package/es/types/Enum/ReportService.d.ts +0 -10
- package/es/types/Enum/ReportService.d.ts.map +0 -1
- package/es/types/Enum/ReportService.js +0 -31
- package/es/types/Enum/ReportService.js.map +0 -1
- package/es/types/Enum/Rules.d.ts +0 -2
- package/es/types/Enum/Rules.d.ts.map +0 -1
- package/es/types/Enum/Rules.js +0 -19
- package/es/types/Enum/Rules.js.map +0 -1
- package/es/types/Enum/StatisticType.d.ts +0 -16
- package/es/types/Enum/StatisticType.d.ts.map +0 -1
- package/es/types/Enum/StatisticType.js +0 -17
- package/es/types/Enum/StatisticType.js.map +0 -1
- package/es/types/Enum/StatsCaStateDetail.d.ts +0 -28
- package/es/types/Enum/StatsCaStateDetail.d.ts.map +0 -1
- package/es/types/Enum/StatsCaStateDetail.js +0 -28
- package/es/types/Enum/StatsCaStateDetail.js.map +0 -1
- package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts +0 -5
- package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -24
- package/es/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
- package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts +0 -13
- package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/ReadVatDisbursed.js +0 -2
- package/es/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
- package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts +0 -5
- package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts.map +0 -1
- package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -25
- package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
- package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +0 -4
- package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +0 -1
- package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -17
- package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
- package/es/types/Interface/api/prestation/CreatePrestation.d.ts +0 -6
- package/es/types/Interface/api/prestation/CreatePrestation.d.ts.map +0 -1
- package/es/types/Interface/api/prestation/CreatePrestation.js +0 -28
- package/es/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
- package/es/types/Interface/api/qonto/CreateImportation.d.ts +0 -5
- package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/CreateImportation.js +0 -26
- package/es/types/Interface/api/qonto/CreateImportation.js.map +0 -1
- package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +0 -5
- package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/CreateQontoConnection.js +0 -24
- package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
- package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +0 -4
- package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/GetConnectionInformation.js +0 -19
- package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
- package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +0 -5
- package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
- package/es/types/Interface/api/qonto/Query.d.ts +0 -77
- package/es/types/Interface/api/qonto/Query.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/Query.js +0 -2
- package/es/types/Interface/api/qonto/Query.js.map +0 -1
- package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts +0 -6
- package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/ReadCreateConnection.js +0 -2
- package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
- package/es/types/Interface/api/qonto/UpdateConnection.d.ts +0 -4
- package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/UpdateConnection.js +0 -19
- package/es/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts +0 -13
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts.map +0 -1
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +0 -74
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +0 -1
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts +0 -11
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts.map +0 -1
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.js +0 -2
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.js.map +0 -1
- package/es/types/Interface/api/societyConfig/update.d.ts +0 -21
- package/es/types/Interface/api/societyConfig/update.d.ts.map +0 -1
- package/es/types/Interface/api/societyConfig/update.js.map +0 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts +0 -108
- package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/ExitRequest.js +0 -2
- package/es/types/Interface/api/statistic/ExitRequest.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryAccountant.d.ts +0 -6
- package/es/types/Interface/api/statistic/QueryAccountant.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryAccountant.js +0 -31
- package/es/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryDirection.d.ts +0 -6
- package/es/types/Interface/api/statistic/QueryDirection.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryDirection.js +0 -31
- package/es/types/Interface/api/statistic/QueryDirection.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts +0 -6
- package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryExpertAccountant.js +0 -31
- package/es/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts +0 -5
- package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetAccountant.js +0 -24
- package/es/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetDirection.d.ts +0 -5
- package/es/types/Interface/api/statistic/QueryGetDirection.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetDirection.js +0 -24
- package/es/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts +0 -5
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -24
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
- package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts +0 -17
- package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts.map +0 -1
- package/es/types/Interface/api/terminationList/DestroyTerminationList.js +0 -96
- package/es/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
- package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts +0 -17
- package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts.map +0 -1
- package/es/types/Interface/api/terminationList/QueryTerminationList.js +0 -98
- package/es/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
- package/es/types/Interface/api/wallet/UpdateAttribution.d.ts +0 -6
- package/es/types/Interface/api/wallet/UpdateAttribution.d.ts.map +0 -1
- package/es/types/Interface/api/wallet/UpdateAttribution.js +0 -34
- package/es/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
- package/es/types/Interface/models/IPrestationHistory.d.ts +0 -13
- package/es/types/Interface/models/IPrestationHistory.d.ts.map +0 -1
- package/es/types/Interface/models/IPrestationHistory.js +0 -2
- package/es/types/Interface/models/IPrestationHistory.js.map +0 -1
- package/es/types/Interface/models/ISlowDetection.d.ts +0 -9
- package/es/types/Interface/models/ISlowDetection.d.ts.map +0 -1
- package/es/types/Interface/models/ISlowDetection.js +0 -2
- package/es/types/Interface/models/ISlowDetection.js.map +0 -1
- package/es/types/Interface/models/ISocietyRelance.d.ts.map +0 -1
- package/es/types/Interface/models/ISocietyRelance.js +0 -2
- package/es/types/Interface/models/ISocietyRelance.js.map +0 -1
- package/es/types/Interface/models/IStatistic.d.ts +0 -11
- package/es/types/Interface/models/IStatistic.d.ts.map +0 -1
- package/es/types/Interface/models/IStatistic.js +0 -2
- package/es/types/Interface/models/IStatistic.js.map +0 -1
- package/es/utils/prestation.d.ts +0 -11
- package/es/utils/prestation.d.ts.map +0 -1
- package/es/utils/prestation.js +0 -62
- package/es/utils/prestation.js.map +0 -1
- package/js/api/resources/LegalNotice.js +0 -18
- package/js/api/resources/LegalNotice.js.map +0 -1
- package/js/api/resources/PaymentExpectation.js +0 -20
- package/js/api/resources/PaymentExpectation.js.map +0 -1
- package/js/api/resources/SlowDetection.js +0 -23
- package/js/api/resources/SlowDetection.js.map +0 -1
- package/js/api/resources/SocietyConfig.js +0 -22
- package/js/api/resources/SocietyConfig.js.map +0 -1
- package/js/api/resources/Source.js +0 -18
- package/js/api/resources/Source.js.map +0 -1
- package/js/api/resources/TerminationList.js +0 -26
- package/js/api/resources/TerminationList.js.map +0 -1
- package/js/api/resources/Wallet.js +0 -18
- package/js/api/resources/Wallet.js.map +0 -1
- package/js/api/resources/statistic/Accountant.js +0 -150
- package/js/api/resources/statistic/Accountant.js.map +0 -1
- package/js/api/resources/statistic/Direction.js +0 -30
- package/js/api/resources/statistic/Direction.js.map +0 -1
- package/js/api/resources/statistic/ExpertAccountant.js +0 -75
- package/js/api/resources/statistic/ExpertAccountant.js.map +0 -1
- package/js/types/Enum/AdditionnalSells.js +0 -14
- package/js/types/Enum/AdditionnalSells.js.map +0 -1
- package/js/types/Enum/CustomerVat.js +0 -34
- package/js/types/Enum/CustomerVat.js.map +0 -1
- package/js/types/Enum/Lab.js +0 -33
- package/js/types/Enum/Lab.js.map +0 -1
- package/js/types/Enum/OperationLegalNotice.js +0 -11
- package/js/types/Enum/OperationLegalNotice.js.map +0 -1
- package/js/types/Enum/OrderStatus.js +0 -13
- package/js/types/Enum/OrderStatus.js.map +0 -1
- package/js/types/Enum/PrestationType.js +0 -2785
- package/js/types/Enum/PrestationType.js.map +0 -1
- package/js/types/Enum/Reason.js +0 -11
- package/js/types/Enum/Reason.js.map +0 -1
- package/js/types/Enum/RegistrationSourceDetail.js +0 -200
- package/js/types/Enum/RegistrationSourceDetail.js.map +0 -1
- package/js/types/Enum/ReportService.js +0 -32
- package/js/types/Enum/ReportService.js.map +0 -1
- package/js/types/Enum/Rules.js +0 -7
- package/js/types/Enum/Rules.js.map +0 -1
- package/js/types/Enum/StatisticType.js +0 -23
- package/js/types/Enum/StatisticType.js.map +0 -1
- package/js/types/Enum/StatsCaStateDetail.js +0 -33
- package/js/types/Enum/StatsCaStateDetail.js.map +0 -1
- package/js/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -31
- package/js/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
- package/js/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
- package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -31
- package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
- package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -27
- package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
- package/js/types/Interface/api/prestation/CreatePrestation.js +0 -33
- package/js/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
- package/js/types/Interface/api/qonto/CreateImportation.js +0 -31
- package/js/types/Interface/api/qonto/CreateImportation.js.map +0 -1
- package/js/types/Interface/api/qonto/CreateQontoConnection.js +0 -31
- package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
- package/js/types/Interface/api/qonto/GetConnectionInformation.js +0 -29
- package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
- package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
- package/js/types/Interface/api/qonto/Query.js.map +0 -1
- package/js/types/Interface/api/qonto/ReadCreateConnection.js +0 -6
- package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
- package/js/types/Interface/api/qonto/UpdateConnection.js +0 -29
- package/js/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
- package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +0 -53
- package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +0 -1
- package/js/types/Interface/api/society/SocietyWithStatsCaParams.js +0 -6
- package/js/types/Interface/api/society/SocietyWithStatsCaParams.js.map +0 -1
- package/js/types/Interface/api/societyConfig/update.js +0 -65
- package/js/types/Interface/api/societyConfig/update.js.map +0 -1
- package/js/types/Interface/api/statistic/ExitRequest.js +0 -6
- package/js/types/Interface/api/statistic/ExitRequest.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryAccountant.js +0 -35
- package/js/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryDirection.js +0 -35
- package/js/types/Interface/api/statistic/QueryDirection.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryExpertAccountant.js +0 -35
- package/js/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryGetAccountant.js +0 -31
- package/js/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryGetDirection.js +0 -31
- package/js/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -31
- package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
- package/js/types/Interface/api/terminationList/DestroyTerminationList.js +0 -55
- package/js/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
- package/js/types/Interface/api/terminationList/QueryTerminationList.js +0 -55
- package/js/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
- package/js/types/Interface/api/wallet/UpdateAttribution.js +0 -35
- package/js/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
- package/js/types/Interface/models/IPrestationHistory.js +0 -6
- package/js/types/Interface/models/IPrestationHistory.js.map +0 -1
- package/js/types/Interface/models/ISlowDetection.js +0 -6
- package/js/types/Interface/models/ISlowDetection.js.map +0 -1
- package/js/types/Interface/models/ISocietyRelance.js.map +0 -1
- package/js/types/Interface/models/IStatistic.js +0 -6
- package/js/types/Interface/models/IStatistic.js.map +0 -1
- package/js/utils/prestation.js +0 -41
- package/js/utils/prestation.js.map +0 -1
- package/ts/api/resources/LegalNotice.ts +0 -8
- package/ts/api/resources/PaymentExpectation.ts +0 -8
- package/ts/api/resources/SlowDetection.ts +0 -13
- package/ts/api/resources/SocietyConfig.ts +0 -12
- package/ts/api/resources/Source.ts +0 -8
- package/ts/api/resources/TerminationList.ts +0 -12
- package/ts/api/resources/Wallet.ts +0 -8
- package/ts/api/resources/statistic/Accountant.ts +0 -121
- package/ts/api/resources/statistic/Direction.ts +0 -17
- package/ts/api/resources/statistic/ExpertAccountant.ts +0 -56
- package/ts/types/Enum/AdditionnalSells.ts +0 -6
- package/ts/types/Enum/CustomerVat.ts +0 -24
- package/ts/types/Enum/Lab.ts +0 -25
- package/ts/types/Enum/OperationLegalNotice.ts +0 -3
- package/ts/types/Enum/OrderStatus.ts +0 -5
- package/ts/types/Enum/PrestationType.ts +0 -2777
- package/ts/types/Enum/Reason.ts +0 -3
- package/ts/types/Enum/RegistrationSourceDetail.ts +0 -98
- package/ts/types/Enum/ReportService.ts +0 -32
- package/ts/types/Enum/Rules.ts +0 -18
- package/ts/types/Enum/StatisticType.ts +0 -15
- package/ts/types/Enum/StatsCaStateDetail.ts +0 -27
- package/ts/types/Interface/api/dashboard/QueryVatDisbursed.ts +0 -12
- package/ts/types/Interface/api/dashboard/ReadVatDisbursed.ts +0 -14
- package/ts/types/Interface/api/legalNotice/UpdateLegalNotice.ts +0 -13
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +0 -6
- package/ts/types/Interface/api/prestation/CreatePrestation.ts +0 -15
- package/ts/types/Interface/api/qonto/CreateImportation.ts +0 -14
- package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +0 -12
- package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +0 -8
- package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +0 -12
- package/ts/types/Interface/api/qonto/Query.ts +0 -80
- package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +0 -6
- package/ts/types/Interface/api/qonto/UpdateConnection.ts +0 -8
- package/ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts +0 -56
- package/ts/types/Interface/api/society/SocietyWithStatsCaParams.ts +0 -11
- package/ts/types/Interface/api/societyConfig/update.ts +0 -103
- package/ts/types/Interface/api/statistic/ExitRequest.ts +0 -120
- package/ts/types/Interface/api/statistic/QueryAccountant.ts +0 -20
- package/ts/types/Interface/api/statistic/QueryDirection.ts +0 -20
- package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +0 -20
- package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +0 -14
- package/ts/types/Interface/api/statistic/QueryGetDirection.ts +0 -14
- package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +0 -14
- package/ts/types/Interface/api/terminationList/DestroyTerminationList.ts +0 -74
- package/ts/types/Interface/api/terminationList/QueryTerminationList.ts +0 -76
- package/ts/types/Interface/api/wallet/UpdateAttribution.ts +0 -23
- package/ts/types/Interface/models/IPrestationHistory.ts +0 -16
- package/ts/types/Interface/models/ISlowDetection.ts +0 -11
- package/ts/types/Interface/models/IStatistic.ts +0 -13
- package/ts/utils/prestation.ts +0 -71
package/js/utils/brands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAaA,MAAMA,qBAAqB,GAAIC,OAAD,IAA+E
|
|
1
|
+
{"version":3,"file":"brands.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAaA,MAAMA,qBAAqB,GAAIC,OAAD,IAA+E;EAC3G,IAAIA,OAAJ,EAAa;IACX,IAAIA,OAAO,CAACC,OAAR,CAAgB,YAAhB,IAAgC,CAAC,CAAjC,IAAsCD,OAAO,CAACC,OAAR,CAAgB,YAAhB,IAAgC,CAAC,CAA3E,EAA8E;MAC5E,OAAO,YAAP;IACD;;IACD,IAAID,OAAO,CAACC,OAAR,CAAgB,WAAhB,IAA+B,CAAC,CAAhC,IAAqCD,OAAO,CAACC,OAAR,CAAgB,WAAhB,IAA+B,CAAC,CAAzE,EAA4E;MAC1E,OAAO,WAAP;IACD;;IACD,IAAID,OAAO,CAACC,OAAR,CAAgB,aAAhB,IAAiC,CAAC,CAAlC,IAAuCD,OAAO,CAACC,OAAR,CAAgB,aAAhB,IAAiC,CAAC,CAA7E,EAAgF;MAC9E,OAAO,aAAP;IACD;EACF,CAVD,MAUO,IAAIC,OAAO,CAACC,GAAR,CAAYC,QAAhB,EAA0B;IAC/B,IAAIF,OAAO,CAACC,GAAR,CAAYC,QAAZ,CAAqBH,OAArB,CAA6B,YAA7B,IAA6C,CAAC,CAA9C,IAAmDC,OAAO,CAACC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AL,EAAY;IACV;IACA,CAACA,KAAD,IAAUD,iBAAiB,CAACQ,IAAlB,CAAuB,CAACC,CAAD,EAAWF,CAAX,KAAwBE,CAAC,CAACL,WAAF,GAAgBG,CAAC,CAACH,WAAjE,CAAV;EACD;;EAED,IAAIC,YAAJ,EAAkB;IAChB;IACA,IAAIK,cAAc,GAAG,iBAAUT,KAAV,EAAiBI,YAAjB,CAArB,CAFgB,CAGhB;;IACA,IAAI,CAACK,cAAL,EAAqB;MACnB,MAAMC,YAAY,GAAGX,iBAAiB,CAACM,IAAlB,CAAwBC,CAAD,IAAcA,CAAC,CAACK,IAAF,KAAWlB,cAAhD,CAArB;MACAgB,cAAc,GAAG,iBAAUC,YAAV,EAAwBN,YAAxB,CAAjB;IACD;;IACD,OAAOK,cAAP;EACD;;EAED,OAAOT,KAAP;AACD,CArCD;;AAuCA,MAAMY,eAAe,GAAIC,KAAD,IAAmF;EACzG,IAAIA,KAAK,CAAC3B,OAAN,CAAc,eAAd,IAAiC,CAAC,CAAtC,EAAyC,OAAO,YAAP;EACzC,IAAI2B,KAAK,CAAC3B,OAAN,CAAc,eAAd,IAAiC,CAAC,CAAtC,EAAyC,OAAO,WAAP;EACzC,IAAI2B,KAAK,CAAC3B,OAAN,CAAc,gBAAd,IAAkC,CAAC,CAAvC,EAA0C,OAAO,aAAP;EAC1C,IAAI2B,KAAK,CAAC3B,OAAN,CAAc,sBAAd,IAAwC,CAAC,CAA7C,EAAgD,OAAO,YAAP;EAChD,OAAO,IAAP;AACD,CAND;;QASEe,c,GAAAA,c;QAAgBV,oB,GAAAA,oB;QAAsBP,qB,GAAAA,qB;QAAuB4B,e,GAAAA,e","names":["getBrandNameByNodeEnv","nodeEnv","indexOf","process","env","NODE_ENV","API_HOST","getAllBrandByNodeEnv","nodeEnvUsed","currentEnvName","listEnvEnum","BrandClementine","BrandLegalstart","BrandComptalib","BrandPourcentage","currentConfigFile","brand","getBrandConfig","params","idTypeBrand","objectWaited","find","b","sort","a","objectToReturn","brandDefault","name","getBrandByEmail","email"],"sourceRoot":"","sources":["../../ts/utils/brands.ts"],"sourcesContent":["import { get as getLodash } from 'lodash';\nimport { BrandClementine } from '../types/Enum/BrandClementine';\nimport { BrandLegalstart } from '../types/Enum/BrandLegalstart';\nimport { BrandComptalib } from '../types/Enum/BrandComptalib';\nimport { BrandPourcentage } from '../types/Enum/BrandPourcentage';\n\ntype brand = {\n idTypeBrand: number,\n name: string\n};\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' => {\n if (nodeEnv) {\n if (nodeEnv.indexOf('legalstart') > -1 || nodeEnv.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (nodeEnv.indexOf('comptalib') > -1 || nodeEnv.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (nodeEnv.indexOf('pourcentage') > -1 || nodeEnv.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n } else if (process.env.NODE_ENV) {\n if (process.env.NODE_ENV.indexOf('legalstart') > -1 || process.env.NODE_ENV.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (process.env.NODE_ENV.indexOf('comptalib') > -1 || process.env.NODE_ENV.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (process.env.NODE_ENV.indexOf('pourcentage') > -1 || process.env.NODE_ENV.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n } else if (process.env.API_HOST) {\n if (process.env.API_HOST.indexOf('legalstart') > -1 || process.env.API_HOST.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (process.env.API_HOST.indexOf('comptalib') > -1 || process.env.API_HOST.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (process.env.API_HOST.indexOf('pourcentage') > -1 || process.env.API_HOST.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n }\n return 'Clementine';\n};\n\nconst getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n const brand = currentConfigFile;\n\n return brand;\n};\n\nconst getBrandConfig = (params: getBrandConfigParams): brand => {\n const {\n idTypeBrand = null, objectWaited = null, nodeEnv,\n } = params;\n let brand;\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n if (idTypeBrand) {\n // Récupération de la brand via idTypeBrand\n brand = currentConfigFile.find((b: brand) => b.idTypeBrand === idTypeBrand);\n }\n // else if (idSociety) {\n // Récupération de la brand via l'idSociety -> impossible directement depuis le core (pas d'accès au resources, ni au token pour l'appel via fetch)\n\n if (!brand) {\n // Si aucune brand trouvée, on passe par défaut la première brand de la liste\n [brand] = currentConfigFile.sort((a: brand, b: brand) => a.idTypeBrand - b.idTypeBrand);\n }\n\n if (objectWaited) {\n // Si on attend un attribut particulier de la brand, on le parcourt\n let objectToReturn = getLodash(brand, objectWaited);\n // Si aucun attribut trouvé, on renvoit celui de Clementine par défaut\n if (!objectToReturn) {\n const brandDefault = currentConfigFile.find((b: brand) => b.name === currentEnvName);\n objectToReturn = getLodash(brandDefault, objectWaited);\n }\n return objectToReturn;\n }\n\n return brand;\n};\n\nconst getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | null => {\n if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';\n if (email.indexOf('comptalib.com') > -1) return 'Comptalib';\n if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';\n if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';\n return null;\n};\n\nexport {\n getBrandConfig, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail,\n};"]}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.generateCommercialDocument = generateCommercialDocument;
|
|
7
|
+
exports.generateAdvanceDocument = generateAdvanceDocument;
|
|
8
|
+
|
|
9
|
+
var _ejs = require("ejs");
|
|
10
|
+
|
|
11
|
+
var ejs = _interopRequireWildcard(_ejs);
|
|
12
|
+
|
|
13
|
+
var _lodash = require("lodash");
|
|
14
|
+
|
|
15
|
+
var _dayjs = require("dayjs");
|
|
16
|
+
|
|
17
|
+
var dayjs = _interopRequireWildcard(_dayjs);
|
|
18
|
+
|
|
19
|
+
var _CommercialManagement = require("../../types/Enum/CommercialManagement");
|
|
20
|
+
|
|
21
|
+
var _EstimateInvoice = require("../../types/Enum/EstimateInvoice");
|
|
22
|
+
|
|
23
|
+
var _amount = require("../amount");
|
|
24
|
+
|
|
25
|
+
var _common = require("./templates/common");
|
|
26
|
+
|
|
27
|
+
var _body = require("./templates/body");
|
|
28
|
+
|
|
29
|
+
var _product = require("./product");
|
|
30
|
+
|
|
31
|
+
var _vat = require("./vat");
|
|
32
|
+
|
|
33
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
34
|
+
|
|
35
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
36
|
+
|
|
37
|
+
function generateCommercialDocument(idEstimateInvoiceType, payload) {
|
|
38
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
39
|
+
|
|
40
|
+
const products = (0, _lodash.orderBy)(payload.products.map(product => (0, _product.productToReadProductEditing)(product), 'reorder')); // FIXME: Par quoi regrouper ceux qui ont un nom ""
|
|
41
|
+
|
|
42
|
+
const vats = (0, _lodash.orderBy)(Object.values((0, _lodash.groupBy)(products, 'vatFormatted')).map(v => (0, _vat.vatToReadVatEditing)(v), 'value'));
|
|
43
|
+
const data = Object.assign(Object.assign({}, payload), {
|
|
44
|
+
paymentLink: (_a = payload.paymentLink) !== null && _a !== void 0 ? _a : '#',
|
|
45
|
+
idEstimateInvoiceType,
|
|
46
|
+
phoneContact: (_c = (_b = payload.settings) === null || _b === void 0 ? void 0 : _b.phoneContact) !== null && _c !== void 0 ? _c : null,
|
|
47
|
+
products,
|
|
48
|
+
vats,
|
|
49
|
+
totalTaxExcluded: (0, _lodash.sumBy)(products, 'totalTaxExcluded'),
|
|
50
|
+
totalTaxIncluded: (0, _lodash.sumBy)(products, 'totalTaxExcluded') + (0, _lodash.sumBy)(vats, 'amount'),
|
|
51
|
+
totalTaxAndDiscountIncluded: (0, _lodash.sumBy)(products, 'totalTaxExcluded') + (0, _lodash.sumBy)(vats, 'amount') - ((_d = payload.generalDiscount2) !== null && _d !== void 0 ? _d : 0),
|
|
52
|
+
generalDiscountFormatted: payload.generalDiscount2 ? (0, _amount.integerToFormattedAmountString)(payload.generalDiscount2) : null,
|
|
53
|
+
depositFormatted: payload.deposit ? (0, _amount.integerToFormattedAmountString)(payload.deposit) : null,
|
|
54
|
+
totalTaxExcludedFormatted: (0, _amount.integerToFormattedAmountString)((0, _lodash.sumBy)(products, 'totalTaxExcluded')),
|
|
55
|
+
totalTaxIncludedFormatted: (0, _amount.integerToFormattedAmountString)((0, _lodash.sumBy)(products, 'totalTaxExcluded') + (0, _lodash.sumBy)(vats, 'amount') - ((_e = payload.deposit) !== null && _e !== void 0 ? _e : 0)),
|
|
56
|
+
totalTaxAndDiscountIncludedFormatted: (0, _amount.integerToFormattedAmountString)((0, _lodash.sumBy)(products, 'totalTaxExcluded') + (0, _lodash.sumBy)(vats, 'amount') - ((_f = payload.generalDiscount2) !== null && _f !== void 0 ? _f : 0) - ((_g = payload.deposit) !== null && _g !== void 0 ? _g : 0)),
|
|
57
|
+
totalVatAmountFormatted: (0, _amount.integerToFormattedAmountString)((0, _lodash.sumBy)(vats, 'amount')),
|
|
58
|
+
font: {
|
|
59
|
+
name: (_j = (_h = _CommercialManagement.fontList.find(f => {
|
|
60
|
+
var _a;
|
|
61
|
+
|
|
62
|
+
return f.id === ((_a = payload.settings) === null || _a === void 0 ? void 0 : _a.idFont);
|
|
63
|
+
})) === null || _h === void 0 ? void 0 : _h.name) !== null && _j !== void 0 ? _j : _CommercialManagement.fontList[0].name,
|
|
64
|
+
url: (_l = (_k = _CommercialManagement.fontList.find(f => {
|
|
65
|
+
var _a;
|
|
66
|
+
|
|
67
|
+
return f.id === ((_a = payload.settings) === null || _a === void 0 ? void 0 : _a.idFont);
|
|
68
|
+
})) === null || _k === void 0 ? void 0 : _k.link) !== null && _l !== void 0 ? _l : _CommercialManagement.fontList[0].link
|
|
69
|
+
},
|
|
70
|
+
capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, {
|
|
71
|
+
length
|
|
72
|
+
}) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,
|
|
73
|
+
dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,
|
|
74
|
+
expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,
|
|
75
|
+
emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,
|
|
76
|
+
shouldDisplayDiscountColumn: !!products.find(p => p.discount2 && p.discount2 > 0)
|
|
77
|
+
});
|
|
78
|
+
const commonTemplate = new _common.CommercialDocumentCommonHTML();
|
|
79
|
+
let documentFreeText; // A GERER EN FONCTION DU DOCUMENT
|
|
80
|
+
|
|
81
|
+
if ([_EstimateInvoice.EstimateInvoiceType.DEVIS, _EstimateInvoice.EstimateInvoiceType.BON].includes(idEstimateInvoiceType)) {
|
|
82
|
+
documentFreeText = (_m = payload === null || payload === void 0 ? void 0 : payload.settings) === null || _m === void 0 ? void 0 : _m.freeEstimateText;
|
|
83
|
+
} else {
|
|
84
|
+
documentFreeText = (_o = payload === null || payload === void 0 ? void 0 : payload.settings) === null || _o === void 0 ? void 0 : _o.freeInvoiceText;
|
|
85
|
+
} //
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
header: ejs.render(commonTemplate.header, data),
|
|
90
|
+
body: ejs.render(_body.bodyTemplate, data),
|
|
91
|
+
footer: ejs.render(commonTemplate.footer, Object.assign(Object.assign({}, data), {
|
|
92
|
+
freeText: documentFreeText !== null && documentFreeText !== void 0 ? documentFreeText : null
|
|
93
|
+
})),
|
|
94
|
+
data
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function generateAdvanceDocument(payload) {
|
|
99
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
100
|
+
|
|
101
|
+
if (!payload.deposit) throw new Error('Aucun acompte défini');
|
|
102
|
+
const data = Object.assign(Object.assign({}, payload), {
|
|
103
|
+
paymentLink: (_a = payload.paymentLink) !== null && _a !== void 0 ? _a : '#',
|
|
104
|
+
idEstimateInvoiceType: _EstimateInvoice.EstimateInvoiceType.ACOMPTE,
|
|
105
|
+
phoneContact: (_c = (_b = payload.settings) === null || _b === void 0 ? void 0 : _b.phoneContact) !== null && _c !== void 0 ? _c : null,
|
|
106
|
+
products: [],
|
|
107
|
+
vats: [],
|
|
108
|
+
totalTaxExcluded: payload.deposit,
|
|
109
|
+
totalTaxIncluded: payload.deposit,
|
|
110
|
+
totalTaxAndDiscountIncluded: payload.deposit,
|
|
111
|
+
generalDiscountFormatted: null,
|
|
112
|
+
depositFormatted: (0, _amount.integerToFormattedAmountString)(payload.deposit),
|
|
113
|
+
totalTaxExcludedFormatted: (0, _amount.integerToFormattedAmountString)(payload.deposit),
|
|
114
|
+
totalTaxIncludedFormatted: (0, _amount.integerToFormattedAmountString)(payload.deposit),
|
|
115
|
+
totalTaxAndDiscountIncludedFormatted: (0, _amount.integerToFormattedAmountString)(payload.deposit),
|
|
116
|
+
totalVatAmountFormatted: (0, _amount.integerToFormattedAmountString)(0),
|
|
117
|
+
font: {
|
|
118
|
+
name: (_e = (_d = _CommercialManagement.fontList.find(f => {
|
|
119
|
+
var _a;
|
|
120
|
+
|
|
121
|
+
return f.id === ((_a = payload.settings) === null || _a === void 0 ? void 0 : _a.idFont);
|
|
122
|
+
})) === null || _d === void 0 ? void 0 : _d.name) !== null && _e !== void 0 ? _e : _CommercialManagement.fontList[0].name,
|
|
123
|
+
url: (_g = (_f = _CommercialManagement.fontList.find(f => {
|
|
124
|
+
var _a;
|
|
125
|
+
|
|
126
|
+
return f.id === ((_a = payload.settings) === null || _a === void 0 ? void 0 : _a.idFont);
|
|
127
|
+
})) === null || _f === void 0 ? void 0 : _f.link) !== null && _g !== void 0 ? _g : _CommercialManagement.fontList[0].link
|
|
128
|
+
},
|
|
129
|
+
capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, {
|
|
130
|
+
length
|
|
131
|
+
}) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,
|
|
132
|
+
dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,
|
|
133
|
+
expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,
|
|
134
|
+
emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,
|
|
135
|
+
shouldDisplayDiscountColumn: false,
|
|
136
|
+
disableVat: true
|
|
137
|
+
});
|
|
138
|
+
const commonTemplate = new _common.CommercialDocumentCommonHTML();
|
|
139
|
+
return {
|
|
140
|
+
header: ejs.render(commonTemplate.header, data),
|
|
141
|
+
body: ejs.render(_body.bodyTemplate, data),
|
|
142
|
+
footer: ejs.render(commonTemplate.footer, Object.assign(Object.assign({}, data), {
|
|
143
|
+
freeText: (_j = (_h = payload === null || payload === void 0 ? void 0 : payload.settings) === null || _h === void 0 ? void 0 : _h.freeInvoiceText) !== null && _j !== void 0 ? _j : null
|
|
144
|
+
})),
|
|
145
|
+
data
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.js","mappings":";;;;;QAagBA,0B,GAAAA,0B;QAoDAC,uB,GAAAA,uB;;AAjEhB;;IAAYC,G;;AACZ;;AACA;;IAAYC,K;;AAEZ;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAGM,SAAUH,0BAAV,CAAqCI,qBAArC,EAAiFC,OAAjF,EAAuI;;;EAC3I,MAAMC,QAAQ,GAAG,qBAASD,OAAO,CAACC,QAAR,CAAiBC,GAAjB,CAAsBC,OAAD,IAAa,0CAA4BA,OAA5B,CAAlC,EAAwE,SAAxE,CAAT,CAAjB,CAD2I,CAE3I;;EACA,MAA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C,GAAkCA,EAAlC,GAAsC;IAAlD,CAAX,CAAhC,CAHH;IAIL7B;EAJK,CAAP;AAMD","names":["generateCommercialDocument","generateAdvanceDocument","ejs","dayjs","idEstimateInvoiceType","payload","products","map","product","vats","Object","values","v","data","paymentLink","_a","phoneContact","settings","_b","_c","totalTaxExcluded","totalTaxIncluded","totalTaxAndDiscountIncluded","generalDiscount2","_d","generalDiscountFormatted","depositFormatted","deposit","totalTaxExcludedFormatted","totalTaxIncludedFormatted","_e","totalTaxAndDiscountIncludedFormatted","_f","_g","totalVatAmountFormatted","font","name","find","f","id","idFont","_h","_j","fontList","url","_k","link","_l","capitalFormatted","capital","split","reduceRight","acc","char","i","length","trim","dueDateFormatted","dueDate","format","expirationDateFormatted","expirationDate","emissionDateFormatted","emissionDate","shouldDisplayDiscountColumn","p","discount2","commonTemplate","CommercialDocumentCommonHTML","documentFreeText","EstimateInvoiceType","DEVIS","BON","includes","_m","freeEstimateText","_o","freeInvoiceText","header","render","body","bodyTemplate","footer","freeText","Error","ACOMPTE","disableVat"],"sourceRoot":"","sources":["../../../ts/utils/commercialManagement/document.ts"],"sourcesContent":["import * as ejs from 'ejs';\nimport { orderBy as _orderBy, groupBy as _groupBy, sumBy as _sumBy } from 'lodash';\nimport * as dayjs from 'dayjs';\nimport { ReadCommercialDocumentTemplate, ReadDocumentEditing } from '../../types/Interface/api/commercialManagement/Read';\nimport { fontList } from '../../types/Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';\nimport { integerToFormattedAmountString } from '../amount';\nimport { CommercialDocumentCommonHTML } from './templates/common';\nimport { bodyTemplate } from './templates/body';\nimport { productToReadProductEditing } from './product';\nimport { vatToReadVatEditing } from './vat';\nimport { CreateInvoiceDocument, CreatePreSaleDocument } from '../../types';\n\nexport function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument): ReadCommercialDocumentTemplate {\n const products = _orderBy(payload.products.map((product) => productToReadProductEditing(product), 'reorder'));\n // FIXME: Par quoi regrouper ceux qui ont un nom \"\"\n const vats = _orderBy(Object.values(_groupBy(products, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value'));\n\n const data: ReadDocumentEditing = {\n ...payload,\n paymentLink: payload.paymentLink ?? '#',\n idEstimateInvoiceType,\n phoneContact: payload.settings?.phoneContact ?? null,\n products,\n vats,\n totalTaxExcluded: _sumBy(products, 'totalTaxExcluded'),\n totalTaxIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount'),\n totalTaxAndDiscountIncluded: _sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.generalDiscount2 ?? 0),\n generalDiscountFormatted: payload.generalDiscount2 ? integerToFormattedAmountString(payload.generalDiscount2) : null,\n depositFormatted: payload.deposit ? integerToFormattedAmountString(payload.deposit) : null,\n totalTaxExcludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded')),\n totalTaxIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.deposit ?? 0)),\n totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(_sumBy(products, 'totalTaxExcluded') + _sumBy(vats, 'amount') - (payload.generalDiscount2 ?? 0) - (payload.deposit ?? 0)),\n totalVatAmountFormatted: integerToFormattedAmountString(_sumBy(vats, 'amount')),\n font: {\n name: fontList.find((f) => f.id === payload.settings?.idFont)?.name ?? fontList[0].name,\n url: fontList.find((f) => f.id === payload.settings?.idFont)?.link ?? fontList[0].link,\n },\n capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,\n dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,\n expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,\n emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,\n shouldDisplayDiscountColumn: !!products.find((p) => p.discount2 && p.discount2 > 0),\n };\n\n const commonTemplate = new CommercialDocumentCommonHTML();\n\n let documentFreeText: string | null | undefined;\n\n // A GERER EN FONCTION DU DOCUMENT\n if ([EstimateInvoiceType.DEVIS, EstimateInvoiceType.BON].includes(idEstimateInvoiceType)) {\n documentFreeText = payload?.settings?.freeEstimateText;\n } else {\n documentFreeText = payload?.settings?.freeInvoiceText;\n }\n //\n\n return {\n header: ejs.render(commonTemplate.header, data),\n body: ejs.render(bodyTemplate, data),\n footer: ejs.render(commonTemplate.footer, { ...data, freeText: documentFreeText ?? null }),\n data,\n };\n}\n\nexport function generateAdvanceDocument(payload: CreateInvoiceDocument): ReadCommercialDocumentTemplate {\n if (!payload.deposit) throw new Error('Aucun acompte défini');\n\n const data: ReadDocumentEditing = {\n ...payload,\n paymentLink: payload.paymentLink ?? '#',\n idEstimateInvoiceType: EstimateInvoiceType.ACOMPTE,\n phoneContact: payload.settings?.phoneContact ?? null,\n products: [],\n vats: [],\n totalTaxExcluded: payload.deposit,\n totalTaxIncluded: payload.deposit,\n totalTaxAndDiscountIncluded: payload.deposit,\n generalDiscountFormatted: null,\n depositFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxExcludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxIncludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(payload.deposit),\n totalVatAmountFormatted: integerToFormattedAmountString(0),\n font: {\n name: fontList.find((f) => f.id === payload.settings?.idFont)?.name ?? fontList[0].name,\n url: fontList.find((f) => f.id === payload.settings?.idFont)?.link ?? fontList[0].link,\n },\n capitalFormatted: payload.capital ? `${payload.capital}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim() : null,\n dueDateFormatted: payload.dueDate ? dayjs(payload.dueDate).format('DD/MM/YYYY') : null,\n expirationDateFormatted: payload.expirationDate ? dayjs(payload.expirationDate).format('DD/MM/YYYY') : null,\n emissionDateFormatted: payload.emissionDate ? dayjs(payload.emissionDate).format('DD/MM/YYYY') : null,\n shouldDisplayDiscountColumn: false,\n disableVat: true,\n };\n\n const commonTemplate = new CommercialDocumentCommonHTML();\n\n return {\n header: ejs.render(commonTemplate.header, data),\n body: ejs.render(bodyTemplate, data),\n footer: ejs.render(commonTemplate.footer, { ...data, freeText: payload?.settings?.freeInvoiceText ?? null }),\n data,\n };\n}"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDiscount = getDiscount;
|
|
7
|
+
exports.getTotalTaxExcluded = getTotalTaxExcluded;
|
|
8
|
+
exports.productToReadProductEditing = productToReadProductEditing;
|
|
9
|
+
|
|
10
|
+
var _classValidator = require("class-validator");
|
|
11
|
+
|
|
12
|
+
var _Unit = require("../../types/Enum/Unit");
|
|
13
|
+
|
|
14
|
+
var _CommercialManagement = require("../../types/Enum/CommercialManagement");
|
|
15
|
+
|
|
16
|
+
var _vat = require("./vat");
|
|
17
|
+
|
|
18
|
+
var _amount = require("../amount");
|
|
19
|
+
|
|
20
|
+
function getDiscount(product) {
|
|
21
|
+
var _a, _b, _c;
|
|
22
|
+
|
|
23
|
+
if (product.discount2 === null || product.discount2 === undefined || product.discount2 <= 0) return 0;
|
|
24
|
+
|
|
25
|
+
if (product.discountType === _CommercialManagement.DiscountType.PERCENT) {
|
|
26
|
+
return ((_a = product.priceTaxExcluded) !== null && _a !== void 0 ? _a : 0) * (((_b = product.discount2) !== null && _b !== void 0 ? _b : 0) / 100) / 100;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (product.discountType === _CommercialManagement.DiscountType.AMOUNT) {
|
|
30
|
+
return (_c = product.discount2) !== null && _c !== void 0 ? _c : 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function getTotalTaxExcluded(product) {
|
|
37
|
+
var _a, _b, _c;
|
|
38
|
+
|
|
39
|
+
const discount = product.discount2 && product.discount2 > 0 ? getDiscount(product) : 0;
|
|
40
|
+
return ((_a = product.priceTaxExcluded) !== null && _a !== void 0 ? _a : 0) * ((_b = product.quantity) !== null && _b !== void 0 ? _b : 1) - discount * ((_c = product.quantity) !== null && _c !== void 0 ? _c : 1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function productToReadProductEditing(payload) {
|
|
44
|
+
var _a, _b, _c, _d;
|
|
45
|
+
|
|
46
|
+
return Object.assign(Object.assign({}, payload), {
|
|
47
|
+
totalTaxExcluded: getTotalTaxExcluded(payload),
|
|
48
|
+
unitFormatted: (_b = (_a = Object.values(_Unit.Unit).find(unit => unit.id === payload.unit)) === null || _a === void 0 ? void 0 : _a.shortName) !== null && _b !== void 0 ? _b : '',
|
|
49
|
+
vatFormatted: (_d = (_c = (0, _vat.getById)(payload.idVat)) === null || _c === void 0 ? void 0 : _c.saleName) !== null && _d !== void 0 ? _d : '',
|
|
50
|
+
priceTaxExcludedFormatted: (0, _classValidator.isDefined)(payload.priceTaxExcluded) ? (0, _amount.integerToFormattedAmountString)(payload.priceTaxExcluded) : null,
|
|
51
|
+
totalTaxExcludedFormatted: (0, _classValidator.isDefined)(payload.priceTaxExcluded) ? (0, _amount.integerToFormattedAmountString)(getTotalTaxExcluded(payload)) : null,
|
|
52
|
+
discountFormatted: payload.discount2 && payload.discount2 > 0 ? (0, _amount.integerToFormattedAmountString)(getDiscount(payload)) : null,
|
|
53
|
+
discountTypeFormatted: payload.discount2 && payload.discount2 > 0 ? payload.discountType === _CommercialManagement.DiscountType.PERCENT ? `${(payload.discount2 / 100).toFixed(2)}%` : `${(0, _amount.integerToFormattedAmountString)(payload.discount2)}€` :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OAAO,CAACZ,SAAR,GAAoB,GAArB,EAA0B6B,OAA1B,CAAkC,CAAlC,CAAoC,GAAvF,GAA6F,GAAG,4CAA+BjB,OAAO,CAACZ,SAAvC,CAAiD,GAA9L,GAAoM;EAPjN,CADZ;AAUD","names":["getDiscount","getTotalTaxExcluded","productToReadProductEditing","product","discount2","undefined","discountType","DiscountType","PERCENT","priceTaxExcluded","_a","_b","AMOUNT","_c","discount","quantity","payload","totalTaxExcluded","unitFormatted","values","Unit","find","unit","id","shortName","vatFormatted","idVat","saleName","_d","priceTaxExcludedFormatted","totalTaxExcludedFormatted","discountFormatted","discountTypeFormatted","toFixed"],"sourceRoot":"","sources":["../../../ts/utils/commercialManagement/product.ts"],"sourcesContent":["import { isDefined } from 'class-validator';\nimport { IProductInvoice, ReadProductEditing } from '../../types';\nimport { Unit } from '../../types/Enum/Unit';\nimport { DiscountType } from '../../types/Enum/CommercialManagement';\nimport { getById } from './vat';\nimport { integerToFormattedAmountString } from '../amount';\n\nexport function getDiscount(product: IProductInvoice): number {\n if (product.discount2 === null || product.discount2 === undefined || product.discount2 <= 0) return 0;\n\n if (product.discountType === DiscountType.PERCENT) {\n return ((product.priceTaxExcluded ?? 0) * ((product.discount2 ?? 0) / 100)) / 100;\n } if (product.discountType === DiscountType.AMOUNT) {\n return (product.discount2 ?? 0);\n }\n\n return 0;\n}\n\nexport function getTotalTaxExcluded(product: IProductInvoice): number {\n const discount = product.discount2 && product.discount2 > 0 ? getDiscount(product) : 0;\n return (product.priceTaxExcluded ?? 0) * (product.quantity ?? 1) - (discount * (product.quantity ?? 1));\n}\n\nexport function productToReadProductEditing(payload: IProductInvoice): ReadProductEditing {\n return {\n ...payload,\n totalTaxExcluded: getTotalTaxExcluded(payload),\n unitFormatted: Object.values(Unit).find((unit) => unit.id === payload.unit)?.shortName ?? '',\n vatFormatted: getById(payload.idVat)?.saleName ?? '',\n priceTaxExcludedFormatted: isDefined(payload.priceTaxExcluded) ? integerToFormattedAmountString(payload.priceTaxExcluded) : null,\n totalTaxExcludedFormatted: isDefined(payload.priceTaxExcluded) ? integerToFormattedAmountString(getTotalTaxExcluded(payload)) : null,\n discountFormatted: payload.discount2 && payload.discount2 > 0 ? integerToFormattedAmountString(getDiscount(payload)) : null,\n discountTypeFormatted: payload.discount2 && payload.discount2 > 0 ? payload.discountType === DiscountType.PERCENT ? `${(payload.discount2 / 100).toFixed(2)}%` : `${integerToFormattedAmountString(payload.discount2)}€` : null,\n };\n}"]}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.bodyTemplate = undefined;
|
|
7
|
+
|
|
8
|
+
var _EstimateInvoice = require("../../../types/Enum/EstimateInvoice");
|
|
9
|
+
|
|
10
|
+
var _common = require("./common");
|
|
11
|
+
|
|
12
|
+
const commonTemplate = new _common.CommercialDocumentCommonHTML();
|
|
13
|
+
const headOfDocument = `<div class="row space-between">
|
|
14
|
+
<% if (settings && settings.logoAlignment === 'left') { %>
|
|
15
|
+
<div class="society-informations">
|
|
16
|
+
${commonTemplate.logo}
|
|
17
|
+
${commonTemplate.company}
|
|
18
|
+
</div>
|
|
19
|
+
<% } else { %>
|
|
20
|
+
<div class="society-informations">${commonTemplate.company}</div>
|
|
21
|
+
${commonTemplate.logo}
|
|
22
|
+
<% } %>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div class="row space-between items-end" style="margin-top: 10px">
|
|
26
|
+
<div style="width: 45%; margin-top: auto;">
|
|
27
|
+
<span class="document-reference">
|
|
28
|
+
<% if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.BON}) { %>
|
|
29
|
+
Bon de commande
|
|
30
|
+
<% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.DEVIS}) { %>
|
|
31
|
+
Devis
|
|
32
|
+
<% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.FACTURE}) { %>
|
|
33
|
+
Facture
|
|
34
|
+
<% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.AVOIR}) { %>
|
|
35
|
+
Avoir
|
|
36
|
+
<% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.RESTE}) { %>
|
|
37
|
+
Facture de solde
|
|
38
|
+
<% } else if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) { %>
|
|
39
|
+
Facture d'acompte
|
|
40
|
+
<% } %>
|
|
41
|
+
<%= reference %></span><br/>
|
|
42
|
+
<% if(emissionDate) {%><span class="document-emission-date">Date d’émission : <%= emissionDateFormatted %></span><br/><% } %>
|
|
43
|
+
<% if(dueDate && idEstimateInvoiceType !== ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) {%>
|
|
44
|
+
<span class="document-due-date">
|
|
45
|
+
<% if ([${_EstimateInvoice.EstimateInvoiceType.BON}, ${_EstimateInvoice.EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>
|
|
46
|
+
Valide jusqu'au :
|
|
47
|
+
<% } else { %>
|
|
48
|
+
Date d'échéance :
|
|
49
|
+
<% } %>
|
|
50
|
+
<%= dueDateFormatted %></span>
|
|
51
|
+
<% } %>
|
|
52
|
+
<% if (expirationDate && idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) {%>
|
|
53
|
+
<span class="document-due-date">Date d'expiration : <%= expirationDateFormatted %></span>
|
|
54
|
+
<% } %>
|
|
55
|
+
<% if(termsOfPayment) { %>
|
|
56
|
+
<br/><p style="margin-bottom: 0px;"><%= [${_EstimateInvoice.EstimateInvoiceType.BON}, ${_EstimateInvoice.EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? 'Conditions de règlement' : 'Date limite de règlement' %> : <%= termsOfPayment %></p>
|
|
57
|
+
<% } %>
|
|
58
|
+
</div>
|
|
59
|
+
<div style="width: 40%; margin-top: auto;">
|
|
60
|
+
<p>Client</p>
|
|
61
|
+
<div class="<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>">
|
|
62
|
+
<% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>
|
|
63
|
+
<% if(thirdParty.company) {%><%= thirdParty.company %><br/><% } %>
|
|
64
|
+
<% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>
|
|
65
|
+
<% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>`;
|
|
69
|
+
const bodyTemplate = exports.bodyTemplate = `<html>
|
|
70
|
+
|
|
71
|
+
<body>
|
|
72
|
+
|
|
73
|
+
${headOfDocument}
|
|
74
|
+
|
|
75
|
+
<div class="row mt-25">
|
|
76
|
+
<% if (title) { %>Titre : <%= title %><% } %>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<div class="row mt-10">${commonTemplate.products}</div>
|
|
80
|
+
|
|
81
|
+
<div class="row space-between mt-20">
|
|
82
|
+
<div style="max-width: 55%;">
|
|
83
|
+
<% if (disableVat !== true && vats.length) { %>
|
|
84
|
+
${commonTemplate.vatRecapitulation}
|
|
85
|
+
<% } %>
|
|
86
|
+
<% if (vatMention) { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
|
|
87
|
+
<% if (comment) { %>
|
|
88
|
+
<p class="mt-20">Commentaire :<br/>
|
|
89
|
+
<%= comment %>
|
|
90
|
+
<% } %>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
${commonTemplate.amountRecapitulation}
|
|
94
|
+
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<% if ((settings && (settings.iban || settings.bic)) || isStripeAllowed) { %>
|
|
98
|
+
<div class="row mt-30 space-between">
|
|
99
|
+
<div>
|
|
100
|
+
<% if (settings && (settings.iban || settings.bic)) { %>
|
|
101
|
+
<% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>
|
|
102
|
+
<% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>
|
|
103
|
+
<% } %>
|
|
104
|
+
</div>
|
|
105
|
+
<% if (isStripeAllowed) { %>
|
|
106
|
+
<div style="text-align: right">${commonTemplate.paymentButton}</div>
|
|
107
|
+
<% } %>
|
|
108
|
+
</div>
|
|
109
|
+
<% } %>
|
|
110
|
+
|
|
111
|
+
<% if (cgv) { %>
|
|
112
|
+
<%- cgv %>
|
|
113
|
+
<% } %>
|
|
114
|
+
</body>
|
|
115
|
+
|
|
116
|
+
<style>
|
|
117
|
+
${commonTemplate.style}
|
|
118
|
+
</style>
|
|
119
|
+
</html>`;
|
|
120
|
+
//# sourceMappingURL=body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.js","mappings":";;;;;;;AAAA;;AACA;;AAEA,MAAMA,cAAc,GAAG,IAAIC,oCAAJ,EAAvB;AAEA,MAAMC,cAAc,GAAG;;;YAGXF,cAAc,CAACG,IAAI;YACnBH,cAAc,CAACI,OAAO;;;4CAGUJ,cAAc,CAACI,OAAO;UACxDJ,cAAc,CAACG,IAAI;;;;;;;yCAOYE,qCAAoBC,GAAG;;gDAEhBD,qCAAoBE,KAAK;;gDAEzBF,qCAAoBG,OAAO;;gDAE3BH,qCAAoBI,KAAK;;gDAEzBJ,qCAAoBK,KAAK;;gDAEzBL,qCAAoBM,OAAO;;;;;mDAKxBN,qCAAoBM,OAAO;;oBAE1DN,qCAAoBC,GAAG,KAAKD,qCAAoBE,KAAK;;;;;;;2DAOdF,qCAAoBM,OAAO;;;;mDAInCN,qCAAoBC,GAAG,KAAKD,qCAAoBE,KAAK;;;;;;;;;;;;SA3CxG;AAyDO,MAAMK,YAAY,WAAZA,YAAY,GAAG;;;;IAIxBV,cAAc;;;;;;6BAMWF,cAAc,CAACa,QAAQ;;;;;YAKxCb,cAAc,CAACc,iBAAiB;;;;;;;;;QASpCd,cAAc,CAACe,oBAAoB;;;;;;;;;;;;;2CAaAf,cAAc,CAACgB,aAAa;;;;;;;;;;;QAW/DhB,cAAc,CAACiB,KAAK;;QAhDrB","names":["commonTemplate","CommercialDocumentCommonHTML","headOfDocument","logo","company","EstimateInvoiceType","BON","DEVIS","FACTURE","AVOIR","RESTE","ACOMPTE","bodyTemplate","products","vatRecapitulation","amountRecapitulation","paymentButton","style"],"sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/templates/body.ts"],"sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport { CommercialDocumentCommonHTML } from './common';\n\nconst commonTemplate = new CommercialDocumentCommonHTML();\n\nconst headOfDocument = `<div class=\"row space-between\">\n <% if (settings && settings.logoAlignment === 'left') { %>\n <div class=\"society-informations\">\n ${commonTemplate.logo}\n ${commonTemplate.company}\n </div>\n <% } else { %>\n <div class=\"society-informations\">${commonTemplate.company}</div>\n ${commonTemplate.logo}\n <% } %>\n </div>\n\n <div class=\"row space-between items-end\" style=\"margin-top: 10px\">\n <div style=\"width: 45%; margin-top: auto;\">\n <span class=\"document-reference\">\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n Bon de commande\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n Devis\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>\n Facture\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n Avoir\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>\n Facture de solde\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n Facture d'acompte\n <% } %>\n <%= reference %></span><br/>\n <% if(emissionDate) {%><span class=\"document-emission-date\">Date d’émission : <%= emissionDateFormatted %></span><br/><% } %>\n <% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">\n <% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>\n Valide jusqu'au :\n <% } else { %>\n Date d'échéance :\n <% } %>\n <%= dueDateFormatted %></span>\n <% } %>\n <% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">Date d'expiration : <%= expirationDateFormatted %></span>\n <% } %>\n <% if(termsOfPayment) { %>\n <br/><p style=\"margin-bottom: 0px;\"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? 'Conditions de règlement' : 'Date limite de règlement' %> : <%= termsOfPayment %></p>\n <% } %>\n </div>\n <div style=\"width: 40%; margin-top: auto;\">\n <p>Client</p>\n <div class=\"<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>\">\n <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>\n <% if(thirdParty.company) {%><%= thirdParty.company %><br/><% } %>\n <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>\n <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %>\n </div>\n </div>\n </div>`;\n\nexport const bodyTemplate = `<html>\n\n <body>\n\n ${headOfDocument}\n\n <div class=\"row mt-25\">\n <% if (title) { %>Titre : <%= title %><% } %>\n </div>\n\n <div class=\"row mt-10\">${commonTemplate.products}</div>\n\n <div class=\"row space-between mt-20\">\n <div style=\"max-width: 55%;\">\n <% if (disableVat !== true && vats.length) { %>\n ${commonTemplate.vatRecapitulation}\n <% } %>\n <% if (vatMention) { %><div class=\"vat-mention <%= disableVat !== true ? 'mt-20' : ''%>\"><%= vatMention %></div><% } %>\n <% if (comment) { %>\n <p class=\"mt-20\">Commentaire :<br/>\n <%= comment %>\n <% } %>\n </div>\n\n ${commonTemplate.amountRecapitulation}\n \n </div>\n\n <% if ((settings && (settings.iban || settings.bic)) || isStripeAllowed) { %>\n <div class=\"row mt-30 space-between\">\n <div>\n <% if (settings && (settings.iban || settings.bic)) { %>\n <% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>\n <% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>\n <% } %>\n </div>\n <% if (isStripeAllowed) { %>\n <div style=\"text-align: right\">${commonTemplate.paymentButton}</div>\n <% } %>\n </div>\n <% } %>\n\n <% if (cgv) { %>\n <%- cgv %>\n <% } %>\n </body>\n\n <style>\n ${commonTemplate.style}\n </style>\n</html>`;"]}
|