@silexpert/core 0.4.290 → 1.0.6
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 +42 -0
- package/es/types/Enum/CommercialManagement.d.ts.map +1 -0
- package/es/types/Enum/CommercialManagement.js +64 -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 +109 -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 +63 -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/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 +3 -1
- package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.js +16 -7
- 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/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 +5 -2
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +5 -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/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 +4 -1
- 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 +7 -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 +58 -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 +23 -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 +90 -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/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 +8 -6
- 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/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 +6 -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 +157 -0
- package/js/utils/commercialManagement/document.js.map +1 -0
- package/js/utils/commercialManagement/product.js +57 -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 +45 -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 +64 -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 +425 -0
- package/ts/types/Interface/api/commercialManagement/Query.ts +115 -0
- package/ts/types/Interface/api/commercialManagement/Read.ts +67 -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/mail/QueryCountUnprocessedByUserMail.ts +1 -7
- package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -6
- package/ts/types/Interface/api/product/CreateProduct.ts +14 -6
- 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/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 +6 -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/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 +4 -1
- package/ts/types/Interface/models/IProductInvoice.ts +7 -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 +111 -0
- package/ts/utils/commercialManagement/product.ts +37 -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 +25 -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
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CommercialDocumentCommonHTML = undefined;
|
|
7
|
+
|
|
8
|
+
var _EstimateInvoice = require("../../../types/Enum/EstimateInvoice");
|
|
9
|
+
|
|
10
|
+
var _CommercialManagement = require("../../../types/Enum/CommercialManagement");
|
|
11
|
+
|
|
12
|
+
class CommercialDocumentCommonHTML {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.header = `<style>html {
|
|
15
|
+
-webkit-print-color-adjust: exact;
|
|
16
|
+
}</style><% if (settings && settings.isEdgingDisplayed) { %>
|
|
17
|
+
<span style="position: absolute; top: 0; left: 0; width: 100vw; font-size: 10px; height: 15px; background-color: <%= settings && settings.edgingColor ? settings.edgingColor : '#333333' %>; margin-bottom: 20px;"></span>
|
|
18
|
+
<% } %>`;
|
|
19
|
+
this.footer = `<div style="font-size: 8px; color: #DADCDF; text-align: center; margin-left: 40px; margin-right: 40px; display: block; width: 100%">
|
|
20
|
+
<% if (freeText) { %><%- freeText %><br/><br/><% } %>
|
|
21
|
+
<% if(marginVats.length > 0) {%>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) } %> ART 297-A du CGI ou directive 2006-212 CE | <% if(penalties || compensation || discount) {%><%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%><%= penalties && compensation ? '|' : ''%><%= compensation ? 'Indemnité forfaitaire en cas de retard :' + compensation : '' %><%= (compensation || penalties) && discount ? '| ' : '' %><%= discount %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% }%>
|
|
22
|
+
<%= name %><%= name && (legalForm || capital || siren || rcs) ? ',' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? 'RCS ' + rcs + vatCode || nafCode ? '|' : '' : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? 'N° TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
|
|
23
|
+
</div>`;
|
|
24
|
+
this.logo = `<div class="logo-placeholder">
|
|
25
|
+
<% if (logoUrl) { %><img src="<%= logoUrl %>" alt="logo" /><% } %>
|
|
26
|
+
</div>`;
|
|
27
|
+
this.company = `<div>
|
|
28
|
+
<% if (name) { %><p><%= name %><p><% } %>
|
|
29
|
+
<% if (number || street) {%><p><%}%><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) { %><% } %><% if (number || street) {%></p><%}%>
|
|
30
|
+
<% if (zipCode || city) {%><p><%}%><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>
|
|
31
|
+
</div>
|
|
32
|
+
<% if (phoneContact) { %><p><%= phoneContact %><p><% } %>
|
|
33
|
+
<% if (settings && settings.mailContact) { %><p><%= settings.mailContact %></p><% } %>`;
|
|
34
|
+
this.products = `<table class="full-width">
|
|
35
|
+
<thead>
|
|
36
|
+
<tr>
|
|
37
|
+
<td>Article</td>
|
|
38
|
+
<td>Quantité</td>
|
|
39
|
+
<td>P.U <%= disableVat !== true ? 'HT' : ''%></td>
|
|
40
|
+
<% if (shouldDisplayDiscountColumn) { %><td>Remise</td><% } %>
|
|
41
|
+
<% if (disableVat !== true) { %><td>TVA</td><% } %>
|
|
42
|
+
<td>Montant <%= disableVat !== true ? 'HT' : ''%></td>
|
|
43
|
+
</tr>
|
|
44
|
+
</thead>
|
|
45
|
+
<% if (idEstimateInvoiceType === ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) { %>
|
|
46
|
+
<tr>
|
|
47
|
+
<td class="product-title">
|
|
48
|
+
<%= title %>
|
|
49
|
+
</td>
|
|
50
|
+
<td class="product-quantity">1</td>
|
|
51
|
+
<td class="product-price-without-vat"><%= depositFormatted %>€</td>
|
|
52
|
+
<td class="product-total-price-without-vat"><%= depositFormatted %>€</td>
|
|
53
|
+
</tr>
|
|
54
|
+
<% } %>
|
|
55
|
+
<% if (products) { %>
|
|
56
|
+
<% products.forEach(function (product) { %>
|
|
57
|
+
<tr>
|
|
58
|
+
<td class="product-title">
|
|
59
|
+
<% if(product.itemSaleName) { %><p class="product-name"><%= product.itemSaleName %></p><% } %>
|
|
60
|
+
<% if(product.comment) { %><p class="product-description"><%= product.comment %></p><% } %>
|
|
61
|
+
</td>
|
|
62
|
+
<td class="product-quantity"><%= product.quantity ? product.quantity : '' %><%= product.unitFormatted ? product.unitFormatted : '' %></td>
|
|
63
|
+
<td class="product-price-without-vat"><% if(product.priceTaxExcludedFormatted) { %><%= product.priceTaxExcludedFormatted + '€' %><% } %></td>
|
|
64
|
+
<% if (shouldDisplayDiscountColumn) { %>
|
|
65
|
+
<td class="product-discount">
|
|
66
|
+
<% if (product.discountFormatted) { %>
|
|
67
|
+
<p style="margin-bottom: 0px;"><%= product.discountFormatted %>€</p>
|
|
68
|
+
<% if(product.discountType === ${_CommercialManagement.DiscountType.PERCENT}) { %><span class="discount-percent">(<%= product.discountTypeFormatted %>)</span><% } %>
|
|
69
|
+
<% } %>
|
|
70
|
+
</td>
|
|
71
|
+
<% } %>
|
|
72
|
+
<% if(disableVat !== true) { %><td class="product-vat"><% if(product.vatFormatted) { %><%= product.vatFormatted %><% } %></td><% } %>
|
|
73
|
+
<td class="product-total-price-without-vat"><% if(product.totalTaxExcludedFormatted) { %><%= product.totalTaxExcludedFormatted + '€' %><% } %></td>
|
|
74
|
+
</tr>
|
|
75
|
+
<% }) %>
|
|
76
|
+
<% } %>
|
|
77
|
+
</table>`;
|
|
78
|
+
this.vatRecapitulation = `<table style="width: 80%;">
|
|
79
|
+
<thead>
|
|
80
|
+
<tr>
|
|
81
|
+
<td>Base</td>
|
|
82
|
+
<td>Taux</td>
|
|
83
|
+
<td>Montant TVA</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</thead>
|
|
86
|
+
<% vats.forEach(function (vat) { %>
|
|
87
|
+
<tr class="vat-detail-row">
|
|
88
|
+
<td><%= vat.baseFormatted %>€</td>
|
|
89
|
+
<td><%= vat.name %></td>
|
|
90
|
+
<td><%= vat.amountFormatted %>€</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<% }) %>
|
|
93
|
+
</table>`;
|
|
94
|
+
this.amountRecapitulation = `<table class="summary-prices" style="width: 40%">
|
|
95
|
+
<thead>
|
|
96
|
+
<tr>
|
|
97
|
+
<td colspan="2">Récapitulatif</td>
|
|
98
|
+
</tr>
|
|
99
|
+
</thead>
|
|
100
|
+
<% if (idEstimateInvoiceType !== ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}) { %>
|
|
101
|
+
<% if (disableVat !== true) { %>
|
|
102
|
+
<tr>
|
|
103
|
+
<td>Total HT</td>
|
|
104
|
+
<td><%= totalTaxExcludedFormatted %>€</td>
|
|
105
|
+
</tr>
|
|
106
|
+
<% } %>
|
|
107
|
+
<% if (generalDiscountFormatted) { %>
|
|
108
|
+
<tr>
|
|
109
|
+
<td>Remise</td>
|
|
110
|
+
<td><%= generalDiscountFormatted %>€</td>
|
|
111
|
+
</tr>
|
|
112
|
+
<% } %>
|
|
113
|
+
<% if (disableVat !== true) { %>
|
|
114
|
+
<tr>
|
|
115
|
+
<td>TVA</td>
|
|
116
|
+
<td><%= totalVatAmountFormatted %>€</td>
|
|
117
|
+
</tr>
|
|
118
|
+
<% } %>
|
|
119
|
+
<% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>
|
|
120
|
+
<tr>
|
|
121
|
+
<td>Total <%= disableVat !== true ? 'TTC' : ''%></td>
|
|
122
|
+
<td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
|
|
123
|
+
</tr>
|
|
124
|
+
<% } %>
|
|
125
|
+
<% if (depositFormatted) { %>
|
|
126
|
+
<tr>
|
|
127
|
+
<td>Acompte</td>
|
|
128
|
+
<td><%= depositFormatted %>€</td>
|
|
129
|
+
</tr>
|
|
130
|
+
<% } %>
|
|
131
|
+
<% } %>
|
|
132
|
+
<% if ([${_EstimateInvoice.EstimateInvoiceType.FACTURE}, ${_EstimateInvoice.EstimateInvoiceType.RESTE}, ${_EstimateInvoice.EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
|
|
133
|
+
<tr>
|
|
134
|
+
<td><b>Net à payer</b></td>
|
|
135
|
+
<td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
|
|
136
|
+
</tr>
|
|
137
|
+
<% } %>
|
|
138
|
+
</table>`;
|
|
139
|
+
this.paymentButton = `<a class="payment-button" href="<% if (paymentLink) {%><%= paymentLink %><% } else {%>#<%}%>">Payer en ligne <svg width="81" height="17" viewBox="0 0 81 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
140
|
+
<path d="M23.6521 1H2.21213C1.5052 1 0.932129 1.57308 0.932129 2.28V14.792C0.932129 15.4989 1.5052 16.072 2.21213 16.072H23.6521C24.3591 16.072 24.9321 15.4989 24.9321 14.792V2.28C24.9321 1.57308 24.3591 1 23.6521 1Z" fill="black"/>
|
|
141
|
+
<path d="M14.9716 5.02051H10.3726V12.5219H14.9716V5.02051Z" fill="#FF5F00"/>
|
|
142
|
+
<path d="M10.8366 8.77127C10.8369 7.30928 11.5058 5.92768 12.6523 5.02055C10.6962 3.48259 7.88661 3.70615 6.19833 5.53409C4.51006 7.36203 4.51006 10.1805 6.19833 12.0085C7.88661 13.8364 10.6962 14.06 12.6523 12.522C11.5058 11.6149 10.8369 10.2333 10.8366 8.77127Z" fill="#EB001B"/>
|
|
143
|
+
<path d="M20.3795 8.77136C20.3808 10.5969 19.3394 12.2628 17.6977 13.0612C16.0561 13.8596 14.1027 13.6502 12.6675 12.5221C13.8143 11.6152 14.4832 10.2334 14.4832 8.77136C14.4832 7.30928 13.8143 5.92754 12.6675 5.02064C14.1027 3.8925 16.0561 3.68315 17.6977 4.48156C19.3394 5.27997 20.3808 6.94586 20.3795 8.77136Z" fill="#F79E1B"/>
|
|
144
|
+
<path d="M30.1321 1.25H51.1321C51.6568 1.25 52.0821 1.67534 52.0821 2.2V14.8C52.0821 15.3247 51.6568 15.75 51.1321 15.75H30.1321C29.6075 15.75 29.1821 15.3247 29.1821 14.8V2.2C29.1821 1.67534 29.6075 1.25 30.1321 1.25Z" fill="white" stroke="#EDEDED" stroke-width="0.5"/>
|
|
145
|
+
<path d="M37.7276 11.4621L38.7284 5.5893H40.3292L39.3277 11.4621H37.7276ZM45.1109 5.7159C44.7938 5.59692 44.2968 5.46924 43.6762 5.46924C42.0945 5.46924 40.9803 6.26574 40.9708 7.40733C40.9618 8.25123 41.7662 8.72199 42.3734 9.00291C42.9965 9.29076 43.2059 9.47433 43.203 9.7314C43.1991 10.125 42.7054 10.3049 42.2453 10.3049C41.6046 10.3049 41.2642 10.2159 40.7385 9.9966L40.5322 9.9033L40.3076 11.218C40.6815 11.3819 41.3729 11.5239 42.0907 11.5313C43.7734 11.5313 44.8657 10.7439 44.8782 9.52482C44.8842 8.85675 44.4577 8.34834 43.5342 7.92918C42.9747 7.65753 42.632 7.47621 42.6356 7.20114C42.6356 6.95703 42.9257 6.69597 43.5523 6.69597C44.0758 6.68787 44.455 6.80202 44.7505 6.92097L44.8939 6.98877L45.1109 5.7159M49.2302 5.58921H47.9932C47.61 5.58921 47.3233 5.69382 47.155 6.07623L44.7777 11.4582H46.4586C46.4586 11.4582 46.7334 10.7345 46.7955 10.5757C46.9793 10.5757 48.6122 10.5782 48.8457 10.5782C48.8936 10.7838 49.0404 11.4582 49.0404 11.4582H50.5258L49.2302 5.58903V5.58921ZM47.2676 9.38151C47.4 9.04314 47.9054 7.73982 47.9054 7.73982C47.8959 7.75548 48.0368 7.3998 48.1176 7.1793L48.2258 7.68567C48.2258 7.68567 48.5324 9.08754 48.5964 9.38151H47.2676ZM36.3686 5.58921L34.8014 9.59421L34.6344 8.78031C34.3427 7.84212 33.4337 6.82566 32.4175 6.31677L33.8505 11.4528L35.5441 11.4508L38.0643 5.58915H36.3686" fill="#171E6C"/>
|
|
146
|
+
<path d="M33.3395 5.58874H30.7582L30.7378 5.71093C32.7459 6.19705 34.0747 7.37182 34.6264 8.78323L34.0651 6.08443C33.9682 5.71258 33.6872 5.60161 33.3395 5.58862" fill="#171E6C"/>
|
|
147
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M78.6129 1C77.4206 1 64.7971 1 57.7475 1C57.1513 1 56.5552 1.6 56.5552 2.2V14.2C56.5552 15.4 57.1513 16 58.3436 16C64.9942 16 77.4206 16 78.6129 16C79.8052 16 80.4013 15.4 80.4013 14.2V2.8C80.4013 1.6 79.8052 1 78.6129 1Z" fill="#306FC5"/>
|
|
148
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M58.496 7.17857L58.0342 6.04592L57.575 7.17857H58.496ZM68.6703 6.72755C68.5775 6.7842 68.4679 6.78608 68.3365 6.78608H67.5168V6.15502H68.3476C68.4652 6.15502 68.5879 6.16033 68.6676 6.20626C68.7552 6.24765 68.8093 6.33575 68.8093 6.45744C68.8093 6.58161 68.7578 6.68153 68.6703 6.72755C68.7578 6.68153 68.6703 6.72755 68.6703 6.72755ZM74.518 7.17857L74.0511 6.04592L73.5867 7.17857H74.518ZM63.6175 8.40455H62.9257L62.9232 6.17935L61.9448 8.40455H61.3523L60.3713 6.17738V8.40455H58.9989L58.7396 7.77082H57.3347L57.0728 8.40455H56.3399L57.5483 5.56337H58.5508L59.6984 8.25338V5.56337H60.7997L61.6828 7.49077L62.494 5.56337H63.6174V8.40455H63.6175ZM66.3744 8.40455H64.1203V5.56337H66.3744V6.15502H64.7951V6.66714H66.3366V7.24953H64.7951V7.81693H66.3744V8.40455ZM69.5526 6.32855C69.5526 6.78154 69.2522 7.01558 69.0772 7.08585C69.2248 7.14241 69.3509 7.24233 69.411 7.32512C69.5062 7.46643 69.5227 7.59266 69.5227 7.84641V8.40455H68.8421L68.8395 8.04625C68.8395 7.87529 68.8558 7.62942 68.733 7.49274C68.6344 7.39282 68.4841 7.37113 68.2412 7.37113H67.5169V8.40455H66.8422V5.56337H68.3941C68.739 5.56337 68.9931 5.57254 69.2112 5.69945C69.4247 5.82637 69.5526 6.01165 69.5526 6.32855C69.5526 6.01165 69.5526 6.32855 69.5526 6.32855ZM70.6325 8.40455H69.944V5.56337H70.6325V8.40455ZM78.62 8.40455H77.6638L76.3848 6.27208V8.40455H75.0106L74.748 7.77082H73.3463L73.0915 8.40455H72.302C71.974 8.40455 71.5587 8.33153 71.3235 8.0903C71.0864 7.84906 70.963 7.5223 70.963 7.00564C70.963 6.58427 71.0368 6.19906 71.3268 5.89467C71.5449 5.66792 71.8865 5.56337 72.3515 5.56337H73.0048V6.17216H72.3652C72.119 6.17216 71.9799 6.209 71.846 6.34046C71.731 6.4601 71.652 6.68625 71.652 6.98404C71.652 7.28844 71.7121 7.50791 71.8376 7.65128C71.9414 7.76371 72.1302 7.79782 72.3078 7.79782H72.6109L73.5619 5.56345H74.5729L75.7153 8.25081V5.56345H76.7427L77.9288 7.54218V5.56345H78.62V8.40455ZM56.3321 8.9626H57.485L57.745 8.33153H58.3269L58.5862 8.9626H60.8546V8.48013L61.0571 8.96466H62.2347L62.4372 8.47293V8.9626H68.0746L68.0719 7.9267H68.181C68.2574 7.92936 68.2797 7.93647 68.2797 8.06339V8.9626H71.1954V8.72145C71.4306 8.84828 71.7964 8.9626 72.2777 8.9626H73.5043L73.7668 8.33153H74.3488L74.6055 8.9626H76.9693V8.36316L77.3273 8.9626H79.2214V5H77.3468V5.46799L77.0843 5H75.1608V5.46799L74.9197 5H72.3215C71.8865 5 71.5042 5.0611 71.1954 5.23138V5H69.4024V5.23138C69.2058 5.05587 68.9381 5 68.6403 5H62.0897L61.6501 6.02347L61.1988 5H59.1355V5.46799L58.9088 5H57.1492L56.332 6.88404V8.9626H56.3321ZM80.3331 11.0548H79.1033C78.9806 11.0548 78.899 11.0594 78.8303 11.1061C78.7591 11.1521 78.7317 11.2204 78.7317 11.3106C78.7317 11.4178 78.7918 11.4907 78.8792 11.5223C78.9504 11.5472 79.0269 11.5545 79.1393 11.5545L79.505 11.5643C79.874 11.5735 80.1203 11.6374 80.2705 11.7931C80.2979 11.8148 80.3143 11.8391 80.3331 11.8634V11.0548ZM80.3331 12.9284C80.1692 13.1696 79.8498 13.2919 79.4174 13.2919H78.1144V12.6825H79.4122C79.5409 12.6825 79.631 12.6655 79.6852 12.6122C79.7322 12.5682 79.765 12.5043 79.765 12.4268C79.765 12.344 79.7322 12.2783 79.6826 12.2389C79.6336 12.1955 79.5624 12.1758 79.4449 12.1758C78.8113 12.1541 78.0209 12.1955 78.0209 11.2962C78.0209 10.884 78.2809 10.4501 78.989 10.4501H80.333V9.8847H79.0843C78.7074 9.8847 78.4337 9.97553 78.2398 10.1168V9.8847H76.3927C76.0973 9.8847 75.7506 9.95839 75.5866 10.1168V9.8847H72.2882V10.1168C72.0257 9.92617 71.5827 9.8847 71.3783 9.8847H69.2026V10.1168C68.9949 9.91435 68.5331 9.8847 68.2516 9.8847H65.8166L65.2594 10.4916L64.7376 9.8847H61.1003V13.85H64.6691L65.2433 13.2335L65.7841 13.85L67.984 13.852V12.9192H68.2003C68.4921 12.9237 68.8364 12.9119 69.1401 12.7798V13.85H70.9546V12.8165H71.0421C71.1538 12.8165 71.1648 12.8211 71.1648 12.9334V13.8499H76.6769C77.0269 13.8499 77.3926 13.7597 77.5952 13.5961V13.8499H79.3436C79.7075 13.8499 80.0628 13.7985 80.3331 13.6671V12.9284ZM77.6415 11.7931C77.7729 11.9299 77.8433 12.1027 77.8433 12.3952C77.8433 13.0065 77.4638 13.2919 76.7833 13.2919H75.4691V12.6825H76.7781C76.906 12.6825 76.9968 12.6655 77.0537 12.6122C77.1001 12.5682 77.1334 12.5043 77.1334 12.4268C77.1334 12.344 77.0974 12.2783 77.051 12.2389C76.9994 12.1955 76.9283 12.1758 76.8108 12.1758C76.1797 12.1541 75.3895 12.1955 75.3895 11.2962C75.3895 10.884 75.6468 10.4501 76.3542 10.4501H77.7069V11.055H76.4691C76.3464 11.055 76.2667 11.0596 76.1988 11.1063C76.1249 11.1523 76.0975 11.2206 76.0975 11.3108C76.0975 11.418 76.1602 11.4909 76.2451 11.5224C76.3163 11.5474 76.3928 11.5547 76.5077 11.5547L76.871 11.5645C77.2373 11.5735 77.4887 11.6373 77.6415 11.7931C77.4887 11.6373 77.6415 11.7931 77.6415 11.7931ZM71.5528 11.6176C71.4626 11.6715 71.351 11.6761 71.2197 11.6761H70.3999V11.0378H71.2308C71.351 11.0378 71.4712 11.0404 71.5528 11.0892C71.6403 11.1352 71.6926 11.2232 71.6926 11.3448C71.6926 11.4664 71.6403 11.5643 71.5528 11.6176C71.6403 11.5643 71.5528 11.6176 71.5528 11.6176ZM71.9604 11.9712C72.1106 12.027 72.2333 12.127 72.2909 12.2098C72.3862 12.3486 72.4 12.478 72.4027 12.7285V13.2919H71.7253V12.9363C71.7253 12.7654 71.7416 12.5122 71.6162 12.3801C71.5176 12.2783 71.3673 12.2539 71.1211 12.2539H70.4V13.2919H69.722V10.45H71.2799C71.6215 10.45 71.8703 10.4652 72.0917 10.5841C72.3047 10.7136 72.4386 10.891 72.4386 11.2152C72.4385 11.6688 72.138 11.9003 71.9604 11.9712C72.138 11.9003 71.9604 11.9712 71.9604 11.9712ZM72.8128 10.45H75.0648V11.0377H73.4847V11.5544H75.0262V12.1342H73.4847V12.6997L75.0648 12.7022V13.2919H72.8128V10.45ZM68.2602 11.7615H67.3882V11.0378H68.268C68.5116 11.0378 68.6807 11.1377 68.6807 11.3863C68.6807 11.632 68.5195 11.7615 68.2602 11.7615ZM66.7161 13.0334L65.6802 11.8759L66.7161 10.755V13.0334ZM64.0407 12.6997H62.3817V12.1342H63.8631V11.5544H62.3817V11.0377H64.0734L64.8115 11.8659L64.0407 12.6997ZM69.4052 11.3863C69.4052 12.1757 68.82 12.3387 68.2301 12.3387H67.3882V13.2919H66.0767L65.2458 12.3511L64.3823 13.2919H61.7096V10.45H64.4235L65.2537 11.3816L66.1119 10.45H68.268C68.8035 10.45 69.4052 10.5992 69.4052 11.3863C69.4052 10.5992 69.4052 11.3863 69.4052 11.3863Z" fill="white"/>
|
|
149
|
+
</svg></a>`;
|
|
150
|
+
this.style = `@import url("<%= font.url %>");
|
|
151
|
+
|
|
152
|
+
html { padding: 0; margin: 0px; }
|
|
153
|
+
body { width: 100%; margin: 0px; font-family: "<%= font.name %>"; font-size: 14px; font-weight: normal; }
|
|
154
|
+
.row { display: flex; }
|
|
155
|
+
.items-end { align-items: end; }
|
|
156
|
+
.space-between { justify-content: space-between; }
|
|
157
|
+
.full-width { width: 100% }
|
|
158
|
+
.mt-30 { margin-top: 30px }
|
|
159
|
+
.mt-25 { margin-top: 25px }
|
|
160
|
+
.mt-20 { margin-top: 20px }
|
|
161
|
+
.mt-10 { margin-top: 10px }
|
|
162
|
+
.align-center { text-align: center; }
|
|
163
|
+
.margin-auto { margin: auto; }
|
|
164
|
+
.justify-center { justify-content: center; }
|
|
165
|
+
table { font-size: 14px; font-style: normal; }
|
|
166
|
+
|
|
167
|
+
/* Header */
|
|
168
|
+
.society-informations p { margin: 0px; }
|
|
169
|
+
.society-informations > div p { font-weight: bold; }
|
|
170
|
+
.logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}
|
|
171
|
+
.logo-placeholder > svg, .logo-placeholder > img { max-width: 100%; max-height: 150px; }
|
|
172
|
+
.document-reference { font-size: 20px; }
|
|
173
|
+
.customer-border { border: 2px solid #EAEAEA; border-radius: 6px; padding: 7px; }
|
|
174
|
+
|
|
175
|
+
/* Body */
|
|
176
|
+
table { border-spacing: 1px; border-collapse: collapse; }
|
|
177
|
+
table, th, td { border: 1px solid #DADCDF; }
|
|
178
|
+
table tr td p { margin: 0px; }
|
|
179
|
+
table tbody tr td { padding: 10px; background-color: white; vertical-align: baseline;}
|
|
180
|
+
table thead tr td { background-color: <%= settings && settings.color ? settings.color : '#EAEAEA' %>; padding: 10px; }
|
|
181
|
+
table thead tr td:not(:first-child) { text-align: right; }
|
|
182
|
+
table .product-description { color: #838384 }
|
|
183
|
+
table .product-quantity, table .product-price-without-vat, table .product-vat, table .product-total-price-without-vat, table .product-discount { text-align: right; }
|
|
184
|
+
table td.product-quantity, table td.product-vat { width: 10% }
|
|
185
|
+
td.product-discount { width: 12.5% }
|
|
186
|
+
table td.product-total-price-without-vat, table td.product-price-without-vat { width: 15% }
|
|
187
|
+
table tr.vat-detail-row td:not(:first-child) { text-align: right; }
|
|
188
|
+
table.summary-prices tr td:not(:first-child) {text-align: right;}
|
|
189
|
+
table.summary-prices tr td:first-child {border-right: none;}
|
|
190
|
+
table .discount-percent { color: #838384; font-size: smaller }
|
|
191
|
+
a.payment-button { display: flex; align-items: center; background-color: #EBF1FF; border-radius: 10px; font-weight: 450; font-size: 14px; color: #1656FF; border: none; padding: 10px 16px; text-decoration: none; }
|
|
192
|
+
a.payment-button svg { margin-left: 15px; }
|
|
193
|
+
<% if (settings && settings.areLinesSeparationHidden) { %>
|
|
194
|
+
td { border-top: none !important; border-bottom: none !important; }
|
|
195
|
+
<% } %>
|
|
196
|
+
<% if (settings && settings.areColumnsSeparationHidden) { %>
|
|
197
|
+
td { border-left: none !important; border-right: none !important; }
|
|
198
|
+
<% } %>
|
|
199
|
+
<% if (settings && settings.areExternalBordersHidden) { %>
|
|
200
|
+
table { border: none !important }
|
|
201
|
+
table tr:last-child td { border-bottom: none !important }
|
|
202
|
+
table thead td { border-top: none !important }
|
|
203
|
+
table td:first-child { border-left: none !important }
|
|
204
|
+
table td:last-child { border-right: none !important }
|
|
205
|
+
<% } %>`;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
exports.CommercialDocumentCommonHTML = CommercialDocumentCommonHTML;
|
|
211
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","mappings":";;;;;;;AAAA;;AACA;;AAEM,MAAOA,4BAAP,CAAmC;EAAzCC;IACE,cAAS;;;;UAAT;IAMA,cAAS;;;;WAAT;IAMA,YAAO;;SAAP;IAIA,eAAU;;;;;;yFAAV;IAQA,gBAAW;;;;;;;;;;;qCAWwBC,qCAAoBC,OAAO;;;;;;;;;;;;;;;;;;;;;;;+CAuBjBC,mCAAaC,OAAO;;;;;;;;;SAlCjE;IA6CA,yBAAoB;;;;;;;;;;;;;;;WAApB;IAiBA,4BAAuB;;;;;;qCAMYH,qCAAoBC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgCpDD,qCAAoBI,OAAO,KAAKJ,qCAAoBK,KAAK,KAAKL,qCAAoBC,OAAO;;;;;;SAtCnG;IA8CA,qBAAgB;;;;;;;;;;aAAhB;IAYA,aAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAR;EAwDD;;AAzMwC;;QAA5BH,4B,GAAAA,4B","names":["CommercialDocumentCommonHTML","constructor","EstimateInvoiceType","ACOMPTE","DiscountType","PERCENT","FACTURE","RESTE"],"sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/templates/common.ts"],"sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport { DiscountType } from '../../../types/Enum/CommercialManagement';\n\nexport class CommercialDocumentCommonHTML {\n header = `<style>html {\n -webkit-print-color-adjust: exact;\n }</style><% if (settings && settings.isEdgingDisplayed) { %>\n <span style=\"position: absolute; top: 0; left: 0; width: 100vw; font-size: 10px; height: 15px; background-color: <%= settings && settings.edgingColor ? settings.edgingColor : '#333333' %>; margin-bottom: 20px;\"></span>\n <% } %>`;\n\n footer = `<div style=\"font-size: 8px; color: #DADCDF; text-align: center; margin-left: 40px; margin-right: 40px; display: block; width: 100%\">\n <% if (freeText) { %><%- freeText %><br/><br/><% } %>\n <% if(marginVats.length > 0) {%>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) } %> ART 297-A du CGI ou directive 2006-212 CE | <% if(penalties || compensation || discount) {%><%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%><%= penalties && compensation ? '|' : ''%><%= compensation ? 'Indemnité forfaitaire en cas de retard :' + compensation : '' %><%= (compensation || penalties) && discount ? '| ' : '' %><%= discount %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% }%>\n <%= name %><%= name && (legalForm || capital || siren || rcs) ? ',' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? 'RCS ' + rcs + vatCode || nafCode ? '|' : '' : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? 'N° TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>\n </div>`;\n\n logo = `<div class=\"logo-placeholder\">\n <% if (logoUrl) { %><img src=\"<%= logoUrl %>\" alt=\"logo\" /><% } %>\n </div>`;\n\n company = `<div>\n <% if (name) { %><p><%= name %><p><% } %>\n <% if (number || street) {%><p><%}%><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) { %><% } %><% if (number || street) {%></p><%}%>\n <% if (zipCode || city) {%><p><%}%><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>\n </div>\n <% if (phoneContact) { %><p><%= phoneContact %><p><% } %>\n <% if (settings && settings.mailContact) { %><p><%= settings.mailContact %></p><% } %>`;\n\n products = `<table class=\"full-width\">\n <thead>\n <tr>\n <td>Article</td>\n <td>Quantité</td>\n <td>P.U <%= disableVat !== true ? 'HT' : ''%></td>\n <% if (shouldDisplayDiscountColumn) { %><td>Remise</td><% } %>\n <% if (disableVat !== true) { %><td>TVA</td><% } %>\n <td>Montant <%= disableVat !== true ? 'HT' : ''%></td>\n </tr>\n </thead>\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n <tr>\n <td class=\"product-title\">\n <%= title %>\n </td>\n <td class=\"product-quantity\">1</td>\n <td class=\"product-price-without-vat\"><%= depositFormatted %>€</td>\n <td class=\"product-total-price-without-vat\"><%= depositFormatted %>€</td>\n </tr>\n <% } %>\n <% if (products) { %>\n <% products.forEach(function (product) { %>\n <tr>\n <td class=\"product-title\">\n <% if(product.itemSaleName) { %><p class=\"product-name\"><%= product.itemSaleName %></p><% } %>\n <% if(product.comment) { %><p class=\"product-description\"><%= product.comment %></p><% } %>\n </td>\n <td class=\"product-quantity\"><%= product.quantity ? product.quantity : '' %><%= product.unitFormatted ? product.unitFormatted : '' %></td>\n <td class=\"product-price-without-vat\"><% if(product.priceTaxExcludedFormatted) { %><%= product.priceTaxExcludedFormatted + '€' %><% } %></td>\n <% if (shouldDisplayDiscountColumn) { %>\n <td class=\"product-discount\">\n <% if (product.discountFormatted) { %> \n <p style=\"margin-bottom: 0px;\"><%= product.discountFormatted %>€</p>\n <% if(product.discountType === ${DiscountType.PERCENT}) { %><span class=\"discount-percent\">(<%= product.discountTypeFormatted %>)</span><% } %>\n <% } %>\n </td>\n <% } %>\n <% if(disableVat !== true) { %><td class=\"product-vat\"><% if(product.vatFormatted) { %><%= product.vatFormatted %><% } %></td><% } %>\n <td class=\"product-total-price-without-vat\"><% if(product.totalTaxExcludedFormatted) { %><%= product.totalTaxExcludedFormatted + '€' %><% } %></td>\n </tr>\n <% }) %>\n <% } %>\n</table>`;\n\n vatRecapitulation = `<table style=\"width: 80%;\">\n <thead>\n <tr>\n <td>Base</td>\n <td>Taux</td>\n <td>Montant TVA</td>\n </tr>\n </thead>\n <% vats.forEach(function (vat) { %>\n <tr class=\"vat-detail-row\">\n <td><%= vat.baseFormatted %>€</td>\n <td><%= vat.name %></td>\n <td><%= vat.amountFormatted %>€</td>\n </tr>\n <% }) %>\n </table>`;\n\n amountRecapitulation = `<table class=\"summary-prices\" style=\"width: 40%\">\n <thead>\n <tr>\n <td colspan=\"2\">Récapitulatif</td>\n </tr>\n </thead>\n <% if (idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) { %>\n <% if (disableVat !== true) { %>\n <tr>\n <td>Total HT</td>\n <td><%= totalTaxExcludedFormatted %>€</td>\n </tr>\n <% } %>\n <% if (generalDiscountFormatted) { %>\n <tr>\n <td>Remise</td>\n <td><%= generalDiscountFormatted %>€</td>\n </tr>\n <% } %>\n <% if (disableVat !== true) { %>\n <tr>\n <td>TVA</td>\n <td><%= totalVatAmountFormatted %>€</td>\n </tr>\n <% } %>\n <% if (disableVat !== true || generalDiscountFormatted || depositFormatted) { %>\n <tr>\n <td>Total <%= disableVat !== true ? 'TTC' : ''%></td>\n <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>\n </tr>\n <% } %>\n <% if (depositFormatted) { %>\n <tr>\n <td>Acompte</td>\n <td><%= depositFormatted %>€</td>\n </tr>\n <% } %>\n <% } %>\n <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>\n <tr>\n <td><b>Net à payer</b></td>\n <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>\n </tr>\n <% } %>\n</table>`;\n\n paymentButton = `<a class=\"payment-button\" href=\"<% if (paymentLink) {%><%= paymentLink %><% } else {%>#<%}%>\">Payer en ligne <svg width=\"81\" height=\"17\" viewBox=\"0 0 81 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M23.6521 1H2.21213C1.5052 1 0.932129 1.57308 0.932129 2.28V14.792C0.932129 15.4989 1.5052 16.072 2.21213 16.072H23.6521C24.3591 16.072 24.9321 15.4989 24.9321 14.792V2.28C24.9321 1.57308 24.3591 1 23.6521 1Z\" fill=\"black\"/>\n <path d=\"M14.9716 5.02051H10.3726V12.5219H14.9716V5.02051Z\" fill=\"#FF5F00\"/>\n <path d=\"M10.8366 8.77127C10.8369 7.30928 11.5058 5.92768 12.6523 5.02055C10.6962 3.48259 7.88661 3.70615 6.19833 5.53409C4.51006 7.36203 4.51006 10.1805 6.19833 12.0085C7.88661 13.8364 10.6962 14.06 12.6523 12.522C11.5058 11.6149 10.8369 10.2333 10.8366 8.77127Z\" fill=\"#EB001B\"/>\n <path d=\"M20.3795 8.77136C20.3808 10.5969 19.3394 12.2628 17.6977 13.0612C16.0561 13.8596 14.1027 13.6502 12.6675 12.5221C13.8143 11.6152 14.4832 10.2334 14.4832 8.77136C14.4832 7.30928 13.8143 5.92754 12.6675 5.02064C14.1027 3.8925 16.0561 3.68315 17.6977 4.48156C19.3394 5.27997 20.3808 6.94586 20.3795 8.77136Z\" fill=\"#F79E1B\"/>\n <path d=\"M30.1321 1.25H51.1321C51.6568 1.25 52.0821 1.67534 52.0821 2.2V14.8C52.0821 15.3247 51.6568 15.75 51.1321 15.75H30.1321C29.6075 15.75 29.1821 15.3247 29.1821 14.8V2.2C29.1821 1.67534 29.6075 1.25 30.1321 1.25Z\" fill=\"white\" stroke=\"#EDEDED\" stroke-width=\"0.5\"/>\n <path d=\"M37.7276 11.4621L38.7284 5.5893H40.3292L39.3277 11.4621H37.7276ZM45.1109 5.7159C44.7938 5.59692 44.2968 5.46924 43.6762 5.46924C42.0945 5.46924 40.9803 6.26574 40.9708 7.40733C40.9618 8.25123 41.7662 8.72199 42.3734 9.00291C42.9965 9.29076 43.2059 9.47433 43.203 9.7314C43.1991 10.125 42.7054 10.3049 42.2453 10.3049C41.6046 10.3049 41.2642 10.2159 40.7385 9.9966L40.5322 9.9033L40.3076 11.218C40.6815 11.3819 41.3729 11.5239 42.0907 11.5313C43.7734 11.5313 44.8657 10.7439 44.8782 9.52482C44.8842 8.85675 44.4577 8.34834 43.5342 7.92918C42.9747 7.65753 42.632 7.47621 42.6356 7.20114C42.6356 6.95703 42.9257 6.69597 43.5523 6.69597C44.0758 6.68787 44.455 6.80202 44.7505 6.92097L44.8939 6.98877L45.1109 5.7159M49.2302 5.58921H47.9932C47.61 5.58921 47.3233 5.69382 47.155 6.07623L44.7777 11.4582H46.4586C46.4586 11.4582 46.7334 10.7345 46.7955 10.5757C46.9793 10.5757 48.6122 10.5782 48.8457 10.5782C48.8936 10.7838 49.0404 11.4582 49.0404 11.4582H50.5258L49.2302 5.58903V5.58921ZM47.2676 9.38151C47.4 9.04314 47.9054 7.73982 47.9054 7.73982C47.8959 7.75548 48.0368 7.3998 48.1176 7.1793L48.2258 7.68567C48.2258 7.68567 48.5324 9.08754 48.5964 9.38151H47.2676ZM36.3686 5.58921L34.8014 9.59421L34.6344 8.78031C34.3427 7.84212 33.4337 6.82566 32.4175 6.31677L33.8505 11.4528L35.5441 11.4508L38.0643 5.58915H36.3686\" fill=\"#171E6C\"/>\n <path d=\"M33.3395 5.58874H30.7582L30.7378 5.71093C32.7459 6.19705 34.0747 7.37182 34.6264 8.78323L34.0651 6.08443C33.9682 5.71258 33.6872 5.60161 33.3395 5.58862\" fill=\"#171E6C\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M78.6129 1C77.4206 1 64.7971 1 57.7475 1C57.1513 1 56.5552 1.6 56.5552 2.2V14.2C56.5552 15.4 57.1513 16 58.3436 16C64.9942 16 77.4206 16 78.6129 16C79.8052 16 80.4013 15.4 80.4013 14.2V2.8C80.4013 1.6 79.8052 1 78.6129 1Z\" fill=\"#306FC5\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M58.496 7.17857L58.0342 6.04592L57.575 7.17857H58.496ZM68.6703 6.72755C68.5775 6.7842 68.4679 6.78608 68.3365 6.78608H67.5168V6.15502H68.3476C68.4652 6.15502 68.5879 6.16033 68.6676 6.20626C68.7552 6.24765 68.8093 6.33575 68.8093 6.45744C68.8093 6.58161 68.7578 6.68153 68.6703 6.72755C68.7578 6.68153 68.6703 6.72755 68.6703 6.72755ZM74.518 7.17857L74.0511 6.04592L73.5867 7.17857H74.518ZM63.6175 8.40455H62.9257L62.9232 6.17935L61.9448 8.40455H61.3523L60.3713 6.17738V8.40455H58.9989L58.7396 7.77082H57.3347L57.0728 8.40455H56.3399L57.5483 5.56337H58.5508L59.6984 8.25338V5.56337H60.7997L61.6828 7.49077L62.494 5.56337H63.6174V8.40455H63.6175ZM66.3744 8.40455H64.1203V5.56337H66.3744V6.15502H64.7951V6.66714H66.3366V7.24953H64.7951V7.81693H66.3744V8.40455ZM69.5526 6.32855C69.5526 6.78154 69.2522 7.01558 69.0772 7.08585C69.2248 7.14241 69.3509 7.24233 69.411 7.32512C69.5062 7.46643 69.5227 7.59266 69.5227 7.84641V8.40455H68.8421L68.8395 8.04625C68.8395 7.87529 68.8558 7.62942 68.733 7.49274C68.6344 7.39282 68.4841 7.37113 68.2412 7.37113H67.5169V8.40455H66.8422V5.56337H68.3941C68.739 5.56337 68.9931 5.57254 69.2112 5.69945C69.4247 5.82637 69.5526 6.01165 69.5526 6.32855C69.5526 6.01165 69.5526 6.32855 69.5526 6.32855ZM70.6325 8.40455H69.944V5.56337H70.6325V8.40455ZM78.62 8.40455H77.6638L76.3848 6.27208V8.40455H75.0106L74.748 7.77082H73.3463L73.0915 8.40455H72.302C71.974 8.40455 71.5587 8.33153 71.3235 8.0903C71.0864 7.84906 70.963 7.5223 70.963 7.00564C70.963 6.58427 71.0368 6.19906 71.3268 5.89467C71.5449 5.66792 71.8865 5.56337 72.3515 5.56337H73.0048V6.17216H72.3652C72.119 6.17216 71.9799 6.209 71.846 6.34046C71.731 6.4601 71.652 6.68625 71.652 6.98404C71.652 7.28844 71.7121 7.50791 71.8376 7.65128C71.9414 7.76371 72.1302 7.79782 72.3078 7.79782H72.6109L73.5619 5.56345H74.5729L75.7153 8.25081V5.56345H76.7427L77.9288 7.54218V5.56345H78.62V8.40455ZM56.3321 8.9626H57.485L57.745 8.33153H58.3269L58.5862 8.9626H60.8546V8.48013L61.0571 8.96466H62.2347L62.4372 8.47293V8.9626H68.0746L68.0719 7.9267H68.181C68.2574 7.92936 68.2797 7.93647 68.2797 8.06339V8.9626H71.1954V8.72145C71.4306 8.84828 71.7964 8.9626 72.2777 8.9626H73.5043L73.7668 8.33153H74.3488L74.6055 8.9626H76.9693V8.36316L77.3273 8.9626H79.2214V5H77.3468V5.46799L77.0843 5H75.1608V5.46799L74.9197 5H72.3215C71.8865 5 71.5042 5.0611 71.1954 5.23138V5H69.4024V5.23138C69.2058 5.05587 68.9381 5 68.6403 5H62.0897L61.6501 6.02347L61.1988 5H59.1355V5.46799L58.9088 5H57.1492L56.332 6.88404V8.9626H56.3321ZM80.3331 11.0548H79.1033C78.9806 11.0548 78.899 11.0594 78.8303 11.1061C78.7591 11.1521 78.7317 11.2204 78.7317 11.3106C78.7317 11.4178 78.7918 11.4907 78.8792 11.5223C78.9504 11.5472 79.0269 11.5545 79.1393 11.5545L79.505 11.5643C79.874 11.5735 80.1203 11.6374 80.2705 11.7931C80.2979 11.8148 80.3143 11.8391 80.3331 11.8634V11.0548ZM80.3331 12.9284C80.1692 13.1696 79.8498 13.2919 79.4174 13.2919H78.1144V12.6825H79.4122C79.5409 12.6825 79.631 12.6655 79.6852 12.6122C79.7322 12.5682 79.765 12.5043 79.765 12.4268C79.765 12.344 79.7322 12.2783 79.6826 12.2389C79.6336 12.1955 79.5624 12.1758 79.4449 12.1758C78.8113 12.1541 78.0209 12.1955 78.0209 11.2962C78.0209 10.884 78.2809 10.4501 78.989 10.4501H80.333V9.8847H79.0843C78.7074 9.8847 78.4337 9.97553 78.2398 10.1168V9.8847H76.3927C76.0973 9.8847 75.7506 9.95839 75.5866 10.1168V9.8847H72.2882V10.1168C72.0257 9.92617 71.5827 9.8847 71.3783 9.8847H69.2026V10.1168C68.9949 9.91435 68.5331 9.8847 68.2516 9.8847H65.8166L65.2594 10.4916L64.7376 9.8847H61.1003V13.85H64.6691L65.2433 13.2335L65.7841 13.85L67.984 13.852V12.9192H68.2003C68.4921 12.9237 68.8364 12.9119 69.1401 12.7798V13.85H70.9546V12.8165H71.0421C71.1538 12.8165 71.1648 12.8211 71.1648 12.9334V13.8499H76.6769C77.0269 13.8499 77.3926 13.7597 77.5952 13.5961V13.8499H79.3436C79.7075 13.8499 80.0628 13.7985 80.3331 13.6671V12.9284ZM77.6415 11.7931C77.7729 11.9299 77.8433 12.1027 77.8433 12.3952C77.8433 13.0065 77.4638 13.2919 76.7833 13.2919H75.4691V12.6825H76.7781C76.906 12.6825 76.9968 12.6655 77.0537 12.6122C77.1001 12.5682 77.1334 12.5043 77.1334 12.4268C77.1334 12.344 77.0974 12.2783 77.051 12.2389C76.9994 12.1955 76.9283 12.1758 76.8108 12.1758C76.1797 12.1541 75.3895 12.1955 75.3895 11.2962C75.3895 10.884 75.6468 10.4501 76.3542 10.4501H77.7069V11.055H76.4691C76.3464 11.055 76.2667 11.0596 76.1988 11.1063C76.1249 11.1523 76.0975 11.2206 76.0975 11.3108C76.0975 11.418 76.1602 11.4909 76.2451 11.5224C76.3163 11.5474 76.3928 11.5547 76.5077 11.5547L76.871 11.5645C77.2373 11.5735 77.4887 11.6373 77.6415 11.7931C77.4887 11.6373 77.6415 11.7931 77.6415 11.7931ZM71.5528 11.6176C71.4626 11.6715 71.351 11.6761 71.2197 11.6761H70.3999V11.0378H71.2308C71.351 11.0378 71.4712 11.0404 71.5528 11.0892C71.6403 11.1352 71.6926 11.2232 71.6926 11.3448C71.6926 11.4664 71.6403 11.5643 71.5528 11.6176C71.6403 11.5643 71.5528 11.6176 71.5528 11.6176ZM71.9604 11.9712C72.1106 12.027 72.2333 12.127 72.2909 12.2098C72.3862 12.3486 72.4 12.478 72.4027 12.7285V13.2919H71.7253V12.9363C71.7253 12.7654 71.7416 12.5122 71.6162 12.3801C71.5176 12.2783 71.3673 12.2539 71.1211 12.2539H70.4V13.2919H69.722V10.45H71.2799C71.6215 10.45 71.8703 10.4652 72.0917 10.5841C72.3047 10.7136 72.4386 10.891 72.4386 11.2152C72.4385 11.6688 72.138 11.9003 71.9604 11.9712C72.138 11.9003 71.9604 11.9712 71.9604 11.9712ZM72.8128 10.45H75.0648V11.0377H73.4847V11.5544H75.0262V12.1342H73.4847V12.6997L75.0648 12.7022V13.2919H72.8128V10.45ZM68.2602 11.7615H67.3882V11.0378H68.268C68.5116 11.0378 68.6807 11.1377 68.6807 11.3863C68.6807 11.632 68.5195 11.7615 68.2602 11.7615ZM66.7161 13.0334L65.6802 11.8759L66.7161 10.755V13.0334ZM64.0407 12.6997H62.3817V12.1342H63.8631V11.5544H62.3817V11.0377H64.0734L64.8115 11.8659L64.0407 12.6997ZM69.4052 11.3863C69.4052 12.1757 68.82 12.3387 68.2301 12.3387H67.3882V13.2919H66.0767L65.2458 12.3511L64.3823 13.2919H61.7096V10.45H64.4235L65.2537 11.3816L66.1119 10.45H68.268C68.8035 10.45 69.4052 10.5992 69.4052 11.3863C69.4052 10.5992 69.4052 11.3863 69.4052 11.3863Z\" fill=\"white\"/>\n </svg></a>`;\n\n style = `@import url(\"<%= font.url %>\");\n\n html { padding: 0; margin: 0px; }\n body { width: 100%; margin: 0px; font-family: \"<%= font.name %>\"; font-size: 14px; font-weight: normal; }\n .row { display: flex; }\n .items-end { align-items: end; }\n .space-between { justify-content: space-between; }\n .full-width { width: 100% }\n .mt-30 { margin-top: 30px }\n .mt-25 { margin-top: 25px }\n .mt-20 { margin-top: 20px }\n .mt-10 { margin-top: 10px }\n .align-center { text-align: center; }\n .margin-auto { margin: auto; }\n .justify-center { justify-content: center; }\n table { font-size: 14px; font-style: normal; }\n\n /* Header */\n .society-informations p { margin: 0px; }\n .society-informations > div p { font-weight: bold; }\n .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}\n .logo-placeholder > svg, .logo-placeholder > img { max-width: 100%; max-height: 150px; }\n .document-reference { font-size: 20px; }\n .customer-border { border: 2px solid #EAEAEA; border-radius: 6px; padding: 7px; }\n\n /* Body */\n table { border-spacing: 1px; border-collapse: collapse; }\n table, th, td { border: 1px solid #DADCDF; }\n table tr td p { margin: 0px; }\n table tbody tr td { padding: 10px; background-color: white; vertical-align: baseline;}\n table thead tr td { background-color: <%= settings && settings.color ? settings.color : '#EAEAEA' %>; padding: 10px; }\n table thead tr td:not(:first-child) { text-align: right; }\n table .product-description { color: #838384 }\n table .product-quantity, table .product-price-without-vat, table .product-vat, table .product-total-price-without-vat, table .product-discount { text-align: right; }\n table td.product-quantity, table td.product-vat { width: 10% }\n td.product-discount { width: 12.5% }\n table td.product-total-price-without-vat, table td.product-price-without-vat { width: 15% }\n table tr.vat-detail-row td:not(:first-child) { text-align: right; }\n table.summary-prices tr td:not(:first-child) {text-align: right;}\n table.summary-prices tr td:first-child {border-right: none;}\n table .discount-percent { color: #838384; font-size: smaller }\n a.payment-button { display: flex; align-items: center; background-color: #EBF1FF; border-radius: 10px; font-weight: 450; font-size: 14px; color: #1656FF; border: none; padding: 10px 16px; text-decoration: none; }\n a.payment-button svg { margin-left: 15px; }\n <% if (settings && settings.areLinesSeparationHidden) { %>\n td { border-top: none !important; border-bottom: none !important; }\n <% } %>\n <% if (settings && settings.areColumnsSeparationHidden) { %>\n td { border-left: none !important; border-right: none !important; }\n <% } %>\n <% if (settings && settings.areExternalBordersHidden) { %>\n table { border: none !important }\n table tr:last-child td { border-bottom: none !important }\n table thead td { border-top: none !important }\n table td:first-child { border-left: none !important }\n table td:last-child { border-right: none !important }\n <% } %>`;\n}\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getAmount = getAmount;
|
|
7
|
+
exports.getById = getById;
|
|
8
|
+
exports.vatToReadVatEditing = vatToReadVatEditing;
|
|
9
|
+
|
|
10
|
+
var _lodash = require("lodash");
|
|
11
|
+
|
|
12
|
+
var _Vat = require("../../types/Enum/Vat");
|
|
13
|
+
|
|
14
|
+
var _amount2 = require("../amount");
|
|
15
|
+
|
|
16
|
+
function getAmount(amount, vatValue) {
|
|
17
|
+
const _amount = amount !== null && amount !== void 0 ? amount : 0;
|
|
18
|
+
|
|
19
|
+
return _amount * (vatValue / 100);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function getById(id) {
|
|
23
|
+
return Object.values(_Vat.Vat).find(vat => vat.id === id);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function vatToReadVatEditing(products) {
|
|
27
|
+
var _a, _b, _c, _d, _e, _f;
|
|
28
|
+
|
|
29
|
+
const {
|
|
30
|
+
idVat
|
|
31
|
+
} = products[0];
|
|
32
|
+
return {
|
|
33
|
+
id: idVat,
|
|
34
|
+
name: (_b = (_a = getById(idVat)) === null || _a === void 0 ? void 0 : _a.saleName) !== null && _b !== void 0 ? _b : '',
|
|
35
|
+
amount: (0, _lodash.sumBy)(products, p => {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
|
|
38
|
+
return getAmount(p.totalTaxExcluded, (_b = (_a = getById(idVat)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0);
|
|
39
|
+
}),
|
|
40
|
+
value: (_d = (_c = getById(idVat)) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : 0,
|
|
41
|
+
baseFormatted: (0, _amount2.integerToFormattedAmountString)((0, _lodash.sumBy)(products, p => p.totalTaxExcluded ? +p.totalTaxExcluded : 0)),
|
|
42
|
+
amountFormatted: (0, _amount2.integerToFormattedAmountString)((0, _lodash.sumBy)(products, p => p.totalTaxExcluded ? +p.totalTaxExcluded : 0) * ((_f = (_e = getById(idVat)) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : 0) / 100)
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=vat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vat.js","mappings":";;;;;QAKgBA,S,GAAAA,S;QAKAC,O,GAAAA,O;QAIAC,mB,GAAAA,mB;;AAdhB;;AACA;;AACA;;AAGM,SAAUF,SAAV,CAAoBG,MAApB,EAA2CC,QAA3C,EAA2D;EAC/D,MAAMC,OAAO,GAAGF,MAAM,SAAN,UAAM,WAAN,YAAU,CAA1B;;EACA,OAAOE,OAAO,IAAID,QAAQ,GAAG,GAAf,CAAd;AACD;;AAEK,SAAUH,OAAV,CAAkBK,EAAlB,EAA4B;EAChC,OAAOC,MAAM,CAACC,MAAP,CAAcC,QAAd,EAAmBC,IAAnB,CAAyBC,GAAD,IAASA,GAAG,CAACL,EAAJ,KAAWA,EAA5C,CAAP;AACD;;AAEK,SAAUJ,mBAAV,CAA8BU,QAA9B,EAA4D;;;EAChE,MAAM;IAAEC;EAAF,IAAYD,QAAQ,CAAC,CAAD,CAA1B;EACA,OAAO;IACLN,EAAE,EAAEO,KADC;IAELC,IAAI,EAAE,mBAAO,CAACD,KAAD,CAAP,MAAc,IAAd,IAAcE,aAAd,GAAc,MAAd,GAAcA,GAAEC,QAAhB,MAAwB,IAAxB,IAAwBC,aAAxB,GAAwBA,EAAxB,GAA4B,EAF7B;IAGLd,MAAM,EAAE,mBAAOS,QAAP,EAAkBM,CAAD,IAAM;MAAA;;MAAC,gBAAS,CAACA,CAAC,CAACC,gBAAH,EAAqB,mBAAO,CAACN,KAAD,CAAP,MAAc,IAAd,IAAcE,aAAd,GAAc,MAAd,GAAcA,GAAEK,KAAhB,MAAqB,IAArB,IAAqBH,aAArB,GAAqBA,EAArB,GAAyB,CAA9C,CAAT;IAAyD,CAAjF,CAHH;IAILG,KAAK,EAAE,mBAAO,CAACP,KAAD,CAAP,MAAc,IAAd,IAAcQ,aAAd,GAAc,MAAd,GAAcA,GAAED,KAAhB,MAAqB,IAArB,IAAqBE,aAArB,GAAqBA,EAArB,GAAyB,CAJ3B;IAKLC,aAAa,EAAE,6CAA+B,mBAAOX,QAAP,EAAkBM,CAAD,IAAQA,CAAC,CAACC,gBAAF,GAAqB,CAACD,CAAC,CAACC,gBAAxB,GAA2C,CAApE,CAA/B,CALV;IAMLK,eAAe,EAAE,6CAAgC,mBAAOZ,QAAP,EAAkBM,CAAD,IAAQA,CAAC,CAACC,gBAAF,GAAqB,CAACD,CAAC,CAACC,gBAAxB,GAA2C,CAApE,KAA4E,mBAAO,CAACN,KAAD,CAAP,MAAc,IAAd,IAAcY,aAAd,GAAc,MAAd,GAAcA,GAAEL,KAAhB,MAAqB,IAArB,IAAqBM,aAArB,GAAqBA,EAArB,GAAyB,CAArG,CAAD,GAA6G,GAA5I;EANZ,CAAP;AAQD","names":["getAmount","getById","vatToReadVatEditing","amount","vatValue","_amount","id","Object","values","Vat","find","vat","products","idVat","name","_a","saleName","_b","p","totalTaxExcluded","value","_c","_d","baseFormatted","amountFormatted","_e","_f"],"sourceRoot":"","sources":["../../../ts/utils/commercialManagement/vat.ts"],"sourcesContent":["import { sumBy as _sumBy } from 'lodash';\nimport { Vat, VatType } from '../../types/Enum/Vat';\nimport { integerToFormattedAmountString } from '../amount';\nimport { ReadProductEditing, ReadVatEditing } from '../../types';\n\nexport function getAmount(amount: number | null, vatValue: number): number {\n const _amount = amount ?? 0;\n return _amount * (vatValue / 100);\n}\n\nexport function getById(id: number): VatType | undefined {\n return Object.values(Vat).find((vat) => vat.id === id);\n}\n\nexport function vatToReadVatEditing(products: ReadProductEditing[]): ReadVatEditing {\n const { idVat } = products[0];\n return {\n id: idVat,\n name: getById(idVat)?.saleName ?? '',\n amount: _sumBy(products, (p) => getAmount(p.totalTaxExcluded, getById(idVat)?.value ?? 0)),\n value: getById(idVat)?.value ?? 0,\n baseFormatted: integerToFormattedAmountString(_sumBy(products, (p) => (p.totalTaxExcluded ? +p.totalTaxExcluded : 0))),\n amountFormatted: integerToFormattedAmountString((_sumBy(products, (p) => (p.totalTaxExcluded ? +p.totalTaxExcluded : 0)) * ((getById(idVat)?.value ?? 0))) / 100),\n };\n}"]}
|
package/js/utils/index.js
CHANGED
|
@@ -88,38 +88,50 @@ Object.keys(_siretValidation).forEach(function (key) {
|
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var _task = require("./task");
|
|
92
92
|
|
|
93
|
-
Object.keys(
|
|
93
|
+
Object.keys(_task).forEach(function (key) {
|
|
94
94
|
if (key === "default" || key === "__esModule") return;
|
|
95
95
|
Object.defineProperty(exports, key, {
|
|
96
96
|
enumerable: true,
|
|
97
97
|
get: function () {
|
|
98
|
-
return
|
|
98
|
+
return _task[key];
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
var
|
|
103
|
+
var _social = require("./social");
|
|
104
104
|
|
|
105
|
-
Object.keys(
|
|
105
|
+
Object.keys(_social).forEach(function (key) {
|
|
106
106
|
if (key === "default" || key === "__esModule") return;
|
|
107
107
|
Object.defineProperty(exports, key, {
|
|
108
108
|
enumerable: true,
|
|
109
109
|
get: function () {
|
|
110
|
-
return
|
|
110
|
+
return _social[key];
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
-
var
|
|
115
|
+
var _document = require("./commercialManagement/document");
|
|
116
116
|
|
|
117
|
-
Object.keys(
|
|
117
|
+
Object.keys(_document).forEach(function (key) {
|
|
118
118
|
if (key === "default" || key === "__esModule") return;
|
|
119
119
|
Object.defineProperty(exports, key, {
|
|
120
120
|
enumerable: true,
|
|
121
121
|
get: function () {
|
|
122
|
-
return
|
|
122
|
+
return _document[key];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
var _amount = require("./amount");
|
|
128
|
+
|
|
129
|
+
Object.keys(_amount).forEach(function (key) {
|
|
130
|
+
if (key === "default" || key === "__esModule") return;
|
|
131
|
+
Object.defineProperty(exports, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
return _amount[key];
|
|
123
135
|
}
|
|
124
136
|
});
|
|
125
137
|
});
|
package/js/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","mappings":";;;;;;;;AAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA","names":[],"sourceRoot":"","sources":["../../ts/utils/index.ts"],"sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './
|
|
1
|
+
{"version":3,"file":"index.js","mappings":";;;;;;;;AAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;AACA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA","names":[],"sourceRoot":"","sources":["../../ts/utils/index.ts"],"sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './amount';"]}
|
package/js/utils/task.js
CHANGED
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.getIdRoleUsedForManagerTask = exports.getIdRoleUsedForTask = undefined;
|
|
7
7
|
|
|
8
8
|
var _Role = require("../types/Enum/Role");
|
|
9
9
|
|
|
10
|
-
var _TaskResponseType = require("../types/Enum/TaskResponseType");
|
|
11
|
-
|
|
12
10
|
const getIdRoleUsedForTask = listRoles => {
|
|
13
11
|
let idRole = 0;
|
|
14
12
|
|
|
15
|
-
if (listRoles.includes(_Role.Role.COMMERCIAL)) {
|
|
13
|
+
if (listRoles.includes(_Role.Role.COMMERCIAL) || listRoles.includes(_Role.Role.COMMERCIAL_MANAGER)) {
|
|
16
14
|
idRole = _Role.Role.COMMERCIAL;
|
|
17
15
|
} else if (listRoles.includes(_Role.Role.JURIDIC)) {
|
|
18
16
|
idRole = _Role.Role.JURIDIC;
|
|
@@ -20,38 +18,31 @@ const getIdRoleUsedForTask = listRoles => {
|
|
|
20
18
|
idRole = _Role.Role.SOCIAL;
|
|
21
19
|
} else if (listRoles.includes(_Role.Role.FACTURATION)) {
|
|
22
20
|
idRole = _Role.Role.FACTURATION;
|
|
23
|
-
} else if (listRoles.includes(_Role.Role.CUSTOMER_SUCCESS)) {
|
|
21
|
+
} else if (listRoles.includes(_Role.Role.CUSTOMER_SUCCESS) || listRoles.includes(_Role.Role.CUSTOMER_SUCCESS_MANAGER)) {
|
|
24
22
|
idRole = _Role.Role.CUSTOMER_SUCCESS;
|
|
25
|
-
} else if (listRoles.includes(_Role.Role.FRONT_OFFICE)) {
|
|
23
|
+
} else if (listRoles.includes(_Role.Role.FRONT_OFFICE) || listRoles.includes(_Role.Role.FRONT_MANAGER)) {
|
|
26
24
|
idRole = _Role.Role.FRONT_OFFICE;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
return idRole;
|
|
30
|
-
}; // const getIdRoleUsedForManagerTask = (listRoles: number[]): number => {
|
|
31
|
-
// let idRole = 0;
|
|
32
|
-
// if (listRoles.includes(Role.COMMERCIAL)) {
|
|
33
|
-
// idRole = Role.MANAGER;
|
|
34
|
-
// } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {
|
|
35
|
-
// idRole = Role.MANAGER;
|
|
36
|
-
// } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
|
|
37
|
-
// idRole = Role.MANAGER;
|
|
38
|
-
// } else if (listRoles.includes(Role.FRONT_OFFICE)) {
|
|
39
|
-
// idRole = Role.MANAGER;
|
|
40
|
-
// }
|
|
41
|
-
// return idRole;
|
|
42
|
-
// };
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const getIdRoleUsedForAttribution = (isIntern, idTaskType) => {
|
|
46
|
-
var _a;
|
|
47
|
-
|
|
48
|
-
const taskTypeList = isIntern ? _TaskResponseType.TaskResponseType.INTERN.types : _TaskResponseType.TaskResponseType.EXTERN.types;
|
|
49
|
-
return (_a = taskTypeList.find(taskType => taskType.id === idTaskType)) === null || _a === void 0 ? void 0 : _a.role;
|
|
50
28
|
};
|
|
51
29
|
|
|
52
|
-
const
|
|
30
|
+
const getIdRoleUsedForManagerTask = listRoles => {
|
|
31
|
+
let idRole = 0;
|
|
32
|
+
|
|
33
|
+
if (listRoles.includes(_Role.Role.COMMERCIAL)) {
|
|
34
|
+
idRole = _Role.Role.COMMERCIAL_MANAGER;
|
|
35
|
+
} else if (listRoles.includes(_Role.Role.JURIDIC) || listRoles.includes(_Role.Role.SOCIAL) || listRoles.includes(_Role.Role.FACTURATION)) {
|
|
36
|
+
idRole = _Role.Role.MANAGER;
|
|
37
|
+
} else if (listRoles.includes(_Role.Role.CUSTOMER_SUCCESS)) {
|
|
38
|
+
idRole = _Role.Role.CUSTOMER_SUCCESS_MANAGER;
|
|
39
|
+
} else if (listRoles.includes(_Role.Role.FRONT_OFFICE)) {
|
|
40
|
+
idRole = _Role.Role.FRONT_MANAGER;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return idRole;
|
|
44
|
+
};
|
|
53
45
|
|
|
54
46
|
exports.getIdRoleUsedForTask = getIdRoleUsedForTask;
|
|
55
|
-
exports.
|
|
56
|
-
exports.getIdRoleUsedForGetTaskOfUser = getIdRoleUsedForGetTaskOfUser;
|
|
47
|
+
exports.getIdRoleUsedForManagerTask = getIdRoleUsedForManagerTask;
|
|
57
48
|
//# sourceMappingURL=task.js.map
|
package/js/utils/task.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.js","mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"file":"task.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,oBAAoB,GAAIC,SAAD,IAAgC;EAC3D,IAAIC,MAAM,GAAG,CAAb;;EACA,IAAID,SAAS,CAACE,QAAV,CAAmBC,WAAKC,UAAxB,KAAuCJ,SAAS,CAACE,QAAV,CAAmBC,WAAKE,kBAAxB,CAA3C,EAAwF;IACtFJ,MAAM,GAAGE,WAAKC,UAAd;EACD,CAFD,MAEO,IAAIJ,SAAS,CAACE,QAAV,CAAmBC,WAAKG,OAAxB,CAAJ,EAAsC;IAC3CL,MAAM,GAAGE,WAAKG,OAAd;EACD,CAFM,MAEA,IAAIN,SAAS,CAACE,QAAV,CAAmBC,WAAKI,MAAxB,CAAJ,EAAqC;IAC1CN,MAAM,GAAGE,WAAKI,MAAd;EACD,CAFM,MAEA,IAAIP,SAAS,CAACE,QAAV,CAAmBC,WAAKK,WAAxB,CAAJ,EAA0C;IAC/CP,MAAM,GAAGE,WAAKK,WAAd;EACD,CAFM,MAEA,IAAIR,SAAS,CAACE,QAAV,CAAmBC,WAAKM,gBAAxB,KAA6CT,SAAS,CAACE,QAAV,CAAmBC,WAAKO,wBAAxB,CAAjD,EAAoG;IACzGT,MAAM,GAAGE,WAAKM,gBAAd;EACD,CAFM,MAEA,IAAIT,SAAS,CAACE,QAAV,CAAmBC,WAAKQ,YAAxB,KAAyCX,SAAS,CAACE,QAAV,CAAmBC,WAAKS,aAAxB,CAA7C,EAAqF;IAC1FX,MAAM,GAAGE,WAAKQ,YAAd;EACD;;EACD,OAAOV,MAAP;AACD,CAhBD;;AAkBA,MAAMY,2BAA2B,GAAIb,SAAD,IAAgC;EAClE,IAAIC,MAAM,GAAG,CAAb;;EACA,IAAID,SAAS,CAACE,QAAV,CAAmBC,WAAKC,UAAxB,CAAJ,EAAyC;IACvCH,MAAM,GAAGE,WAAKE,kBAAd;EACD,CAFD,MAEO,IAAIL,SAAS,CAACE,QAAV,CAAmBC,WAAKG,OAAxB,KAAoCN,SAAS,CAACE,QAAV,CAAmBC,WAAKI,MAAxB,CAApC,IAAuEP,SAAS,CAACE,QAAV,CAAmBC,WAAKK,WAAxB,CAA3E,EAAiH;IACtHP,MAAM,GAAGE,WAAKW,OAAd;EACD,CAFM,MAEA,IAAId,SAAS,CAACE,QAAV,CAAmBC,WAAKM,gBAAxB,CAAJ,EAA+C;IACpDR,MAAM,GAAGE,WAAKO,wBAAd;EACD,CAFM,MAEA,IAAIV,SAAS,CAACE,QAAV,CAAmBC,WAAKQ,YAAxB,CAAJ,EAA2C;IAChDV,MAAM,GAAGE,WAAKS,aAAd;EACD;;EACD,OAAOX,MAAP;AACD,CAZD;;QAeEF,oB,GAAAA,oB;QAAsBc,2B,GAAAA,2B","names":["getIdRoleUsedForTask","listRoles","idRole","includes","Role","COMMERCIAL","COMMERCIAL_MANAGER","JURIDIC","SOCIAL","FACTURATION","CUSTOMER_SUCCESS","CUSTOMER_SUCCESS_MANAGER","FRONT_OFFICE","FRONT_MANAGER","getIdRoleUsedForManagerTask","MANAGER"],"sourceRoot":"","sources":["../../ts/utils/task.ts"],"sourcesContent":["import { Role } from '../types/Enum/Role';\n\nconst getIdRoleUsedForTask = (listRoles: number[]): number => {\n let idRole = 0;\n if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n } else if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.CUSTOMER_SUCCESS) || listRoles.includes(Role.CUSTOMER_SUCCESS_MANAGER)) {\n idRole = Role.CUSTOMER_SUCCESS;\n } else if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_MANAGER)) {\n idRole = Role.FRONT_OFFICE;\n }\n return idRole;\n};\n\nconst getIdRoleUsedForManagerTask = (listRoles: number[]): number => {\n let idRole = 0;\n if (listRoles.includes(Role.COMMERCIAL)) {\n idRole = Role.COMMERCIAL_MANAGER;\n } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {\n idRole = Role.MANAGER;\n } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {\n idRole = Role.CUSTOMER_SUCCESS_MANAGER;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n idRole = Role.FRONT_MANAGER;\n }\n return idRole;\n};\n\nexport {\n getIdRoleUsedForTask, getIdRoleUsedForManagerTask,\n};"]}
|
package/js/utils/webmail.js
CHANGED
|
@@ -12,11 +12,13 @@ const getIdRoleUsedForEmail = listRoles => {
|
|
|
12
12
|
|
|
13
13
|
if (listRoles.includes(_Role.Role.FACTURATION)) {
|
|
14
14
|
idRole = _Role.Role.FACTURATION;
|
|
15
|
+
} else if (listRoles.includes(_Role.Role.BACK_MANAGER)) {
|
|
16
|
+
idRole = _Role.Role.BACK_MANAGER;
|
|
15
17
|
} else if (listRoles.includes(_Role.Role.FRONT_OFFICE)) {
|
|
16
18
|
idRole = _Role.Role.FRONT_OFFICE;
|
|
17
19
|
} else if (listRoles.includes(_Role.Role.FRONT_OFFICE_EXPRESS)) {
|
|
18
20
|
idRole = _Role.Role.FRONT_OFFICE_EXPRESS;
|
|
19
|
-
} else if (listRoles.includes(_Role.Role.COMMERCIAL)) {
|
|
21
|
+
} else if (listRoles.includes(_Role.Role.COMMERCIAL) || listRoles.includes(_Role.Role.COMMERCIAL_MANAGER)) {
|
|
20
22
|
idRole = _Role.Role.COMMERCIAL;
|
|
21
23
|
} else if (listRoles.includes(_Role.Role.EXPERT_ACCOUNTANT)) {
|
|
22
24
|
idRole = _Role.Role.EXPERT_ACCOUNTANT;
|
package/js/utils/webmail.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webmail.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,qBAAqB,GAAIC,SAAD,IAAgC;EAC5D,IAAIC,MAAM,GAAGC,WAAKC,gBAAlB;;EACA,IAAIH,SAAS,CAACI,QAAV,CAAmBF,WAAKG,WAAxB,CAAJ,EAA0C;IACxCJ,MAAM,GAAGC,WAAKG,WAAd;EACD,CAFD,MAEO,IAAIL,SAAS,CAACI,QAAV,CAAmBF,WAAKI,YAAxB,CAAJ,EAA2C;IAChDL,MAAM,GAAGC,WAAKI,YAAd;EACD,CAFM,MAEA,IAAIN,SAAS,CAACI,QAAV,CAAmBF,WAAKK,
|
|
1
|
+
{"version":3,"file":"webmail.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,qBAAqB,GAAIC,SAAD,IAAgC;EAC5D,IAAIC,MAAM,GAAGC,WAAKC,gBAAlB;;EACA,IAAIH,SAAS,CAACI,QAAV,CAAmBF,WAAKG,WAAxB,CAAJ,EAA0C;IACxCJ,MAAM,GAAGC,WAAKG,WAAd;EACD,CAFD,MAEO,IAAIL,SAAS,CAACI,QAAV,CAAmBF,WAAKI,YAAxB,CAAJ,EAA2C;IAChDL,MAAM,GAAGC,WAAKI,YAAd;EACD,CAFM,MAEA,IAAIN,SAAS,CAACI,QAAV,CAAmBF,WAAKK,YAAxB,CAAJ,EAA2C;IAChDN,MAAM,GAAGC,WAAKK,YAAd;EACD,CAFM,MAEA,IAAIP,SAAS,CAACI,QAAV,CAAmBF,WAAKM,oBAAxB,CAAJ,EAAmD;IACxDP,MAAM,GAAGC,WAAKM,oBAAd;EACD,CAFM,MAEA,IAAIR,SAAS,CAACI,QAAV,CAAmBF,WAAKO,UAAxB,KAAuCT,SAAS,CAACI,QAAV,CAAmBF,WAAKQ,kBAAxB,CAA3C,EAAwF;IAC7FT,MAAM,GAAGC,WAAKO,UAAd;EACD,CAFM,MAEA,IAAIT,SAAS,CAACI,QAAV,CAAmBF,WAAKS,iBAAxB,CAAJ,EAAgD;IACrDV,MAAM,GAAGC,WAAKS,iBAAd;EACD,CAFM,MAEA,IAAIX,SAAS,CAACI,QAAV,CAAmBF,WAAKU,iBAAxB,CAAJ,EAAgD;IACrDX,MAAM,GAAGC,WAAKU,iBAAd;EACD,CAFM,MAEA,IAAIZ,SAAS,CAACI,QAAV,CAAmBF,WAAKW,OAAxB,CAAJ,EAAsC;IAC3CZ,MAAM,GAAGC,WAAKW,OAAd;EACD,CAFM,MAEA,IAAIb,SAAS,CAACI,QAAV,CAAmBF,WAAKY,MAAxB,CAAJ,EAAqC;IAC1Cb,MAAM,GAAGC,WAAKY,MAAd;EACD;;EACD,OAAOb,MAAP;AACD,CAtBD;;QAyBEF,qB,GAAAA,qB","names":["getIdRoleUsedForEmail","listRoles","idRole","Role","CUSTOMER_SUCCESS","includes","FACTURATION","BACK_MANAGER","FRONT_OFFICE","FRONT_OFFICE_EXPRESS","COMMERCIAL","COMMERCIAL_MANAGER","EXPERT_ACCOUNTANT","JURIDICAL_SUPPORT","JURIDIC","SOCIAL"],"sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"sourcesContent":["import { Role } from '../types/Enum/Role';\n\nconst getIdRoleUsedForEmail = (listRoles: number[]): number => {\n let idRole = Role.CUSTOMER_SUCCESS;\n if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.BACK_MANAGER)) {\n idRole = Role.BACK_MANAGER;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n idRole = Role.FRONT_OFFICE;\n } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {\n idRole = Role.FRONT_OFFICE_EXPRESS;\n } else if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {\n idRole = Role.EXPERT_ACCOUNTANT;\n } else if (listRoles.includes(Role.JURIDICAL_SUPPORT)) {\n idRole = Role.JURIDICAL_SUPPORT;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n }\n return idRole;\n};\n\nexport {\n getIdRoleUsedForEmail,\n};"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -76,7 +76,9 @@
|
|
|
76
76
|
"browser-or-node": "^1.3.0",
|
|
77
77
|
"class-transformer": "^0.4.0",
|
|
78
78
|
"class-validator": "^0.13.1",
|
|
79
|
+
"dayjs": "^1.10.4",
|
|
79
80
|
"eslint-config-airbnb": "^18.2.1",
|
|
81
|
+
"fs-extra": "^10.0.0",
|
|
80
82
|
"mailparser": "^3.4.0",
|
|
81
83
|
"readme-md-generator": "^1.0.0",
|
|
82
84
|
"rxjs": "^7.0.1",
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
+
import { UpdateBudgetPermanentToken } from '../../types/Interface/api/budgetInsight/UpdateBudgetPermanentToken';
|
|
3
|
+
import { IAccountingTransaction } from '../../types/Interface/models/IAccountingTransaction';
|
|
2
4
|
import { CreateOrUpdateAccessToken, IAccessToken } from '../../types';
|
|
3
5
|
|
|
4
6
|
export class BudgetInsight extends Resource {
|
|
7
|
+
// FIXME: Deprecated
|
|
8
|
+
updateUserWithNewPermanentToken(data: UpdateBudgetPermanentToken): Promise<string> {
|
|
9
|
+
return this.axios.$put('/budget/updatePermanentToken', data);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// FIXME: Deprecated
|
|
13
|
+
fetchAllUserConnection(): Promise<{ idConnection: number,
|
|
14
|
+
accountingTransactions: IAccountingTransaction[] }[]> {
|
|
15
|
+
return this.axios.$get('/budget/fetchAllUserConnection');
|
|
16
|
+
}
|
|
17
|
+
|
|
5
18
|
getTokens(): Promise<IAccessToken | null> {
|
|
6
19
|
return this.axios.$get('/connectors/budget-insight/tokens');
|
|
7
20
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CancelToken } from 'axios';
|
|
2
1
|
import {
|
|
3
2
|
CreateCalendarEventForUsers, GetAllCalendarEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent, VerifyCalendarEvent,
|
|
4
3
|
} from '../../types';
|
|
@@ -17,8 +16,8 @@ export class CalendarEvent extends Resource {
|
|
|
17
16
|
return this.axios.get(`/calendar-events/${id}`, { params });
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
getAll(params: GetAllCalendarEvent
|
|
21
|
-
return this.axios.get('/calendar-events/all', {
|
|
19
|
+
getAll(params: GetAllCalendarEvent): Promise<ReadAllCalendarEvent> {
|
|
20
|
+
return this.axios.get('/calendar-events/all', { params });
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CreateCommercialSetting, ISocietyGescom } from '../../types';
|
|
2
|
+
import { Resource } from '../Resource';
|
|
3
|
+
|
|
4
|
+
export class CommercialSetting extends Resource {
|
|
5
|
+
get(): Promise<ISocietyGescom> {
|
|
6
|
+
return this.axios.$get('/commercial-management/settings');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
updateOrCreate(payload: CreateCommercialSetting): Promise<ISocietyGescom> {
|
|
10
|
+
return this.axios.$post('/commercial-management/settings', payload);
|
|
11
|
+
}
|
|
12
|
+
}
|