@silexpert/core 2.0.125 → 2.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CL2xcnsB.d.mts → index-dbXTxwtd.d.mts} +9854 -9660
- package/dist/index-dbXTxwtd.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/product-BzXeycUV.mjs +2 -0
- package/dist/product-BzXeycUV.mjs.map +1 -0
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.mjs +1 -1
- package/dist/server/index.mjs.map +1 -1
- package/package.json +2 -2
- package/ts/api/index.ts +0 -1
- package/ts/api/resources/Acceptance.ts +1 -1
- package/ts/api/resources/Account.ts +1 -1
- package/ts/api/resources/AccountType.ts +1 -1
- package/ts/api/resources/AccountingFiles.ts +1 -1
- package/ts/api/resources/BalanceSheet.ts +1 -1
- package/ts/api/resources/BalanceSheetCompletion.ts +1 -1
- package/ts/api/resources/BalanceSheetModule.ts +1 -1
- package/ts/api/resources/BankStatement.ts +2 -2
- package/ts/api/resources/BudgetInsight.ts +1 -1
- package/ts/api/resources/BusinessPartner.ts +1 -1
- package/ts/api/resources/Card.ts +1 -1
- package/ts/api/resources/Comment.ts +1 -1
- package/ts/api/resources/Commercial.ts +1 -1
- package/ts/api/resources/CommercialConditionOfSale.ts +1 -1
- package/ts/api/resources/CommercialDocument.ts +1 -1
- package/ts/api/resources/CommercialDocumentTemplate.ts +1 -1
- package/ts/api/resources/CommercialEmail.ts +1 -1
- package/ts/api/resources/ConstitutionHistory.ts +1 -1
- package/ts/api/resources/CustomerProviderOperation.ts +1 -1
- package/ts/api/resources/Dashboard.ts +1 -1
- package/ts/api/resources/DocumentRequest.ts +1 -1
- package/ts/api/resources/DocumentSection.ts +1 -1
- package/ts/api/resources/ExercicePrestation.ts +1 -1
- package/ts/api/resources/FIle.ts +1 -1
- package/ts/api/resources/Facturation.ts +1 -1
- package/ts/api/resources/FecFile.ts +1 -1
- package/ts/api/resources/FinancialProjection.ts +1 -1
- package/ts/api/resources/FirstStep.ts +1 -1
- package/ts/api/resources/Follow.ts +1 -1
- package/ts/api/resources/Formalism.ts +1 -1
- package/ts/api/resources/HumanResourceLibrary.ts +1 -1
- package/ts/api/resources/Immobilization.ts +1 -1
- package/ts/api/resources/IncomeAllocation.ts +1 -1
- package/ts/api/resources/IncomeStatement.ts +1 -1
- package/ts/api/resources/InformationRequest.ts +1 -1
- package/ts/api/resources/Inpi.ts +1 -1
- package/ts/api/resources/Invoice.ts +1 -1
- package/ts/api/resources/Journal.ts +1 -1
- package/ts/api/resources/JuridicalMission.ts +1 -1
- package/ts/api/resources/KilometricAllowance.ts +1 -1
- package/ts/api/resources/Library.ts +1 -1
- package/ts/api/resources/Loan.ts +1 -1
- package/ts/api/resources/Log.ts +1 -1
- package/ts/api/resources/Mail.ts +1 -1
- package/ts/api/resources/Mandat.ts +1 -1
- package/ts/api/resources/OldExpertInfos.ts +1 -1
- package/ts/api/resources/OnBoarding.ts +1 -1
- package/ts/api/resources/Partner.ts +1 -1
- package/ts/api/resources/Payment.ts +2 -2
- package/ts/api/resources/PaymentExpectation.ts +1 -1
- package/ts/api/resources/PaymentExpectationCustomer.ts +2 -2
- package/ts/api/resources/PrestationComplementary.ts +1 -1
- package/ts/api/resources/Product.ts +1 -1
- package/ts/api/resources/Provision.ts +1 -1
- package/ts/api/resources/QuotesAccount.ts +1 -1
- package/ts/api/resources/Rating.ts +1 -1
- package/ts/api/resources/Recurrence.ts +2 -2
- package/ts/api/resources/Refund.ts +1 -1
- package/ts/api/resources/Registration.ts +1 -1
- package/ts/api/resources/Reminder.ts +1 -1
- package/ts/api/resources/Revenue.ts +1 -1
- package/ts/api/resources/Revision.ts +1 -1
- package/ts/api/resources/RevisionGuide.ts +1 -1
- package/ts/api/resources/SalariesFile.ts +1 -1
- package/ts/api/resources/SalesContract.ts +1 -1
- package/ts/api/resources/Sellsy.ts +1 -1
- package/ts/api/resources/Shine.ts +1 -1
- package/ts/api/resources/SlowDetection.ts +1 -1
- package/ts/api/resources/Society.ts +2 -2
- package/ts/api/resources/SocietyApproval.ts +1 -1
- package/ts/api/resources/SocietyConfigBalanceSheet.ts +1 -1
- package/ts/api/resources/Source.ts +1 -1
- package/ts/api/resources/Sources.ts +1 -1
- package/ts/api/resources/StatutsGeneration.ts +1 -1
- package/ts/api/resources/Stocks.ts +1 -1
- package/ts/api/resources/Stripe.ts +1 -1
- package/ts/api/resources/StripePurchase.ts +1 -1
- package/ts/api/resources/Subscription.ts +2 -2
- package/ts/api/resources/Survey.ts +1 -1
- package/ts/api/resources/Synchronisation.ts +1 -1
- package/ts/api/resources/Task.ts +1 -1
- package/ts/api/resources/Tax.ts +1 -1
- package/ts/api/resources/TaxDeadline.ts +1 -1
- package/ts/api/resources/Team.ts +1 -1
- package/ts/api/resources/TextMessage.ts +1 -1
- package/ts/api/resources/ThirdParty.ts +1 -1
- package/ts/api/resources/TimeRecorder.ts +1 -1
- package/ts/api/resources/ToDoBalanceSheet.ts +1 -1
- package/ts/api/resources/Transaction.ts +1 -1
- package/ts/api/resources/UpToDate.ts +1 -1
- package/ts/api/resources/User.ts +17 -1
- package/ts/api/resources/UserSocietyPermission.ts +1 -1
- package/ts/api/resources/UsersHistory.ts +1 -1
- package/ts/api/resources/VatRegimeHistory.ts +1 -1
- package/ts/api/resources/Vialink.ts +1 -1
- package/ts/api/resources/Wallet.ts +2 -2
- package/ts/api/resources/WorkingSchedule.ts +1 -1
- package/ts/api/resources/ZTicket.ts +1 -1
- package/ts/api/resources/prestation.ts +1 -1
- package/ts/api/resources/shareCapital.ts +2 -2
- package/ts/api/resources/statistic/Accountant.ts +1 -1
- package/ts/api/resources/statistic/CustomerSuccess.ts +1 -1
- package/ts/api/resources/statistic/DataOfficer.ts +1 -1
- package/ts/api/resources/statistic/Direction.ts +1 -1
- package/ts/api/resources/statistic/ExpertAccountant.ts +1 -1
- package/ts/api/resources/statistic/Legal.ts +1 -1
- package/ts/api/resources/statistic/Marketing.ts +1 -1
- package/ts/api/resources.ts +175 -177
- package/ts/types/Enum/ExternalAuthenticationLinkPurpose.ts +2 -0
- package/ts/types/Enum/PrestationType.ts +13 -12
- package/ts/types/Enum/PriceGridClementine.ts +2 -2
- package/ts/types/Enum/PriceGridLegalstart.ts +1 -1
- package/ts/types/Enum/PriceGridPourcentage.ts +1 -1
- package/ts/types/Enum/PriceGridStatutsExpress.ts +1 -1
- package/ts/types/Enum/Quality.ts +15 -1
- package/ts/types/Enum/RegistrationSource.ts +1 -0
- package/ts/types/Enum/SalesContractBrandClementine.ts +2 -2
- package/ts/types/Enum/SalesContractConfig.ts +1 -1
- package/ts/types/Enum/Signup.ts +19 -0
- package/ts/types/Form/FormAuthenticate.ts +1 -1
- package/ts/types/Form/FormConnector.ts +2 -2
- package/ts/types/Interface/api/3cx/Create3cxLog.ts +1 -1
- package/ts/types/Interface/api/3cx/Query3cxMeeting.ts +1 -1
- package/ts/types/Interface/api/3cx/Query3cxSearch.ts +1 -1
- package/ts/types/Interface/api/3cx/Update3cxMeeting.ts +1 -1
- package/ts/types/Interface/api/BasePaginate.ts +1 -1
- package/ts/types/Interface/api/IntermediateManagementRebate.ts +1 -1
- package/ts/types/Interface/api/OnBoarding.ts +1 -1
- package/ts/types/Interface/api/PaymentRecovery/Create.ts +1 -1
- package/ts/types/Interface/api/PaymentRecovery/Query.ts +2 -2
- package/ts/types/Interface/api/SocietyApproval.ts +3 -3
- package/ts/types/Interface/api/SocietyTransaction/Query.ts +1 -1
- package/ts/types/Interface/api/SocietyTransaction/QuerySocietyTransactionCount.ts +1 -1
- package/ts/types/Interface/api/absenceRequest/CreateAbsenceRequest.ts +1 -1
- package/ts/types/Interface/api/absenceRequest/QueryAbsenceRequest.ts +1 -1
- package/ts/types/Interface/api/absenceRequest/QueryCalendarAbsenceRequest.ts +1 -1
- package/ts/types/Interface/api/acceptance/CreateAcceptance.ts +2 -2
- package/ts/types/Interface/api/account/Create.ts +1 -1
- package/ts/types/Interface/api/account/Delete.ts +1 -1
- package/ts/types/Interface/api/account/Query.ts +1 -1
- package/ts/types/Interface/api/account/Update.ts +1 -1
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +2 -2
- package/ts/types/Interface/api/accountingEntry/Create.ts +2 -2
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +1 -1
- package/ts/types/Interface/api/accountingTransaction/Create.ts +1 -1
- package/ts/types/Interface/api/accountingTransaction/DeleteInvoices.ts +2 -2
- package/ts/types/Interface/api/accountingTransaction/QueryBankAccountSum.ts +1 -1
- package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +2 -2
- package/ts/types/Interface/api/accountsSectors/Create.ts +1 -1
- package/ts/types/Interface/api/accountsSectors/Query.ts +1 -1
- package/ts/types/Interface/api/adjustment/Create.ts +2 -2
- package/ts/types/Interface/api/adjustment/Query.ts +1 -1
- package/ts/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.ts +1 -1
- package/ts/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.ts +1 -1
- package/ts/types/Interface/api/ai/AskQuestionCollaborator.ts +1 -1
- package/ts/types/Interface/api/appNotification/Update.ts +1 -1
- package/ts/types/Interface/api/appointment/Appointment.ts +2 -2
- package/ts/types/Interface/api/archive/ImportSocietyArchive.ts +1 -1
- package/ts/types/Interface/api/authentification/ConnectFromSSO.ts +1 -1
- package/ts/types/Interface/api/authentification/ForgotPassword.ts +1 -1
- package/ts/types/Interface/api/authentification/ResetPassword.ts +1 -1
- package/ts/types/Interface/api/automaticRegistration/Query.ts +1 -1
- package/ts/types/Interface/api/balanceSheet/Query.ts +1 -1
- package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +2 -2
- package/ts/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.ts +1 -1
- package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +1 -1
- package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +1 -1
- package/ts/types/Interface/api/balanceSheetReport/Query.ts +1 -1
- package/ts/types/Interface/api/bankAccount/Create.ts +2 -2
- package/ts/types/Interface/api/bankAccount/Delete.ts +1 -1
- package/ts/types/Interface/api/bankAccount/Query.ts +3 -3
- package/ts/types/Interface/api/bankAccount/Update.ts +1 -1
- package/ts/types/Interface/api/bankDedup/BankDedup.ts +1 -1
- package/ts/types/Interface/api/bankStatement/QueryBankStatement.ts +1 -1
- package/ts/types/Interface/api/bankStatement/QueryTransactionBankStatement.ts +1 -1
- package/ts/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.ts +1 -1
- package/ts/types/Interface/api/brevo/BrevoElement.ts +1 -1
- package/ts/types/Interface/api/budgetInsight/Create.ts +1 -1
- package/ts/types/Interface/api/budgetInsight/Delete.ts +1 -1
- package/ts/types/Interface/api/budgetInsight/Query.ts +1 -1
- package/ts/types/Interface/api/businessPartner/CreateBusinessPartnerParams.ts +1 -1
- package/ts/types/Interface/api/businessPartner/QueryBusinessPartnerAll.ts +1 -1
- package/ts/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.ts +1 -1
- package/ts/types/Interface/api/calendarEvent/calendarEvent.ts +1 -1
- package/ts/types/Interface/api/calendarEvent/countCalendarEvent.ts +1 -1
- package/ts/types/Interface/api/calendarEvent/createCalendarEventForUsers.ts +1 -1
- package/ts/types/Interface/api/calendarEvent/interval.ts +1 -1
- package/ts/types/Interface/api/calendarEvent/query.ts +1 -1
- package/ts/types/Interface/api/card/Cron.ts +1 -1
- package/ts/types/Interface/api/card/QueryUserCards.ts +2 -2
- package/ts/types/Interface/api/card/QueryUserCardsStats.ts +1 -1
- package/ts/types/Interface/api/card/UpdateCard.ts +2 -2
- package/ts/types/Interface/api/cashAndExpense/Create.ts +4 -4
- package/ts/types/Interface/api/cashAndExpense/Query.ts +1 -1
- package/ts/types/Interface/api/cerfa/2035.ts +6 -6
- package/ts/types/Interface/api/cerfa/2050.ts +1 -1
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +4 -4
- package/ts/types/Interface/api/cerfa/das2.ts +2 -2
- package/ts/types/Interface/api/changelog/Create.ts +1 -1
- package/ts/types/Interface/api/checklist/Query.ts +1 -1
- package/ts/types/Interface/api/checklist/Update.ts +3 -3
- package/ts/types/Interface/api/collaboraterDetail/CreateCollaboraterDetail.ts +4 -4
- package/ts/types/Interface/api/commercial/Query.ts +1 -1
- package/ts/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.ts +1 -1
- package/ts/types/Interface/api/commercial/QueryGetStats.ts +30 -1
- package/ts/types/Interface/api/commercial/QueryGetStatsHistory.ts +1 -1
- package/ts/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.ts +1 -1
- package/ts/types/Interface/api/commercial/QueryPaginatedFollowProspect.ts +1 -1
- package/ts/types/Interface/api/commercial/QueryPaginatedNewProspect.ts +1 -1
- package/ts/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.ts +1 -1
- package/ts/types/Interface/api/commercialImport/Create.ts +1 -1
- package/ts/types/Interface/api/commercialManagement/Create.ts +6 -6
- package/ts/types/Interface/api/commercialManagement/CreateProductInvoice.ts +2 -2
- package/ts/types/Interface/api/commercialManagement/Query.ts +2 -2
- package/ts/types/Interface/api/commercialManagement/Read.ts +9 -9
- package/ts/types/Interface/api/commercialManagement/Update.ts +1 -1
- package/ts/types/Interface/api/commercialOffer/Query.ts +1 -1
- package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +5 -5
- package/ts/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.ts +2 -2
- package/ts/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.ts +4 -0
- package/ts/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.ts +1 -1
- package/ts/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.ts +2 -2
- package/ts/types/Interface/api/connection/Query.ts +1 -1
- package/ts/types/Interface/api/connector/CreateConnector.ts +2 -2
- package/ts/types/Interface/api/connector/QueryConnector.ts +2 -2
- package/ts/types/Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory.ts +1 -1
- package/ts/types/Interface/api/customerActivity/Create.ts +1 -1
- package/ts/types/Interface/api/customerActivity/CreateCustomerActivityReport.ts +1 -1
- package/ts/types/Interface/api/customerActivity/Query.ts +1 -1
- package/ts/types/Interface/api/customerProviderOperation/CreateCustomerProviderOperation.ts +1 -1
- package/ts/types/Interface/api/customerSignature/Query.ts +1 -1
- package/ts/types/Interface/api/dashboard/QueryTopProviders.ts +1 -1
- package/ts/types/Interface/api/dashboard/QueryVatDisbursed.ts +1 -1
- package/ts/types/Interface/api/docoon/Create.ts +2 -2
- package/ts/types/Interface/api/docoon/Query.ts +1 -1
- package/ts/types/Interface/api/documentRequest/Create.ts +3 -3
- package/ts/types/Interface/api/documentRequest/Query.ts +3 -3
- package/ts/types/Interface/api/documentRequest/Update.ts +3 -3
- package/ts/types/Interface/api/documentSection/Update.ts +1 -1
- package/ts/types/Interface/api/dubiousCustomer/Create.ts +1 -1
- package/ts/types/Interface/api/dubiousCustomer/Update.ts +1 -1
- package/ts/types/Interface/api/employee/QueryEmployeeSearch.ts +1 -1
- package/ts/types/Interface/api/equipment/Query.ts +1 -1
- package/ts/types/Interface/api/exercice/Create.ts +2 -2
- package/ts/types/Interface/api/exercice/QueryExercice.ts +1 -1
- package/ts/types/Interface/api/exercice/UpdateExercice.ts +1 -1
- package/ts/types/Interface/api/exercicePrestation/Query.ts +1 -1
- package/ts/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.ts +1 -1
- package/ts/types/Interface/api/exerciceQuestion/QueryQuestion.ts +1 -1
- package/ts/types/Interface/api/expertAnnuary/Query.ts +1 -1
- package/ts/types/Interface/api/facturation/CreateRebilling.ts +1 -1
- package/ts/types/Interface/api/facturation/Query.ts +1 -1
- package/ts/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturation.ts +1 -1
- package/ts/types/Interface/api/fecFile/CreateFecFile.ts +2 -2
- package/ts/types/Interface/api/file/Create.ts +2 -2
- package/ts/types/Interface/api/file/Query.ts +1 -1
- package/ts/types/Interface/api/financialCharge/CreateNonDeductibleInterests.ts +1 -1
- package/ts/types/Interface/api/firstStep/Create.ts +1 -1
- package/ts/types/Interface/api/formalism/Create.ts +1 -1
- package/ts/types/Interface/api/fusion/FusionSocieties.ts +1 -1
- package/ts/types/Interface/api/gedFile/createFileAndGed.ts +2 -2
- package/ts/types/Interface/api/gedFile/updateGedFile.ts +1 -1
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +3 -3
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +1 -1
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +1 -1
- package/ts/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.ts +2 -2
- package/ts/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.ts +1 -1
- package/ts/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.ts +1 -1
- package/ts/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.ts +2 -2
- package/ts/types/Interface/api/iDocus/CreateExport.ts +1 -1
- package/ts/types/Interface/api/immobilization/CreateImmobilization.ts +2 -2
- package/ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts +1 -1
- package/ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts +1 -1
- package/ts/types/Interface/api/informationRequest/Create.ts +3 -3
- package/ts/types/Interface/api/informationRequest/Query.ts +2 -2
- package/ts/types/Interface/api/informationRequest/Update.ts +4 -4
- package/ts/types/Interface/api/inpiPayment/Query.ts +1 -1
- package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +1 -1
- package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing2in.ts +1 -1
- package/ts/types/Interface/api/internalInvoicing/GenerateCutOff.ts +1 -1
- package/ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts +1 -1
- package/ts/types/Interface/api/jeDeclare/CreateDocumentsParams.ts +1 -1
- package/ts/types/Interface/api/juridicalMission/Query.ts +1 -1
- package/ts/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.ts +1 -1
- package/ts/types/Interface/api/kyc/Create.ts +1 -1
- package/ts/types/Interface/api/kyc/Query.ts +1 -1
- package/ts/types/Interface/api/legalNotice/QueryLegalNotice.ts +1 -1
- package/ts/types/Interface/api/legalNotice/UpdateLegalNotice.ts +1 -1
- package/ts/types/Interface/api/letter/CreateLetter.ts +2 -2
- package/ts/types/Interface/api/letter/Query.ts +1 -1
- package/ts/types/Interface/api/lettering/QueryRegroupLettering.ts +1 -1
- package/ts/types/Interface/api/library/MergeContentPayload.ts +1 -1
- package/ts/types/Interface/api/library/QueryLibrary.ts +3 -3
- package/ts/types/Interface/api/loan/CreateLoan.ts +1 -1
- package/ts/types/Interface/api/loan/UpdateLoan.ts +1 -1
- package/ts/types/Interface/api/log/QueryLogPagination.ts +1 -1
- package/ts/types/Interface/api/machineLearning/CreateMachineLearningAnnotation.ts +1 -1
- package/ts/types/Interface/api/mail/QueryCountMail.ts +1 -1
- package/ts/types/Interface/api/mail/QueryCountProcessedByUser.ts +1 -1
- package/ts/types/Interface/api/mail/QueryGetAnsweringTimeByUser.ts +1 -1
- package/ts/types/Interface/api/mail/QueryGetSignature.ts +1 -1
- package/ts/types/Interface/api/mail/QueryMail.ts +1 -1
- package/ts/types/Interface/api/mail/QueryMailBySociety.ts +1 -1
- package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -1
- package/ts/types/Interface/api/mail/UpdateMail.ts +1 -1
- package/ts/types/Interface/api/mailSociety/QueryMailSociety.ts +1 -1
- package/ts/types/Interface/api/mealExpense/CreateMealExpense.ts +1 -1
- package/ts/types/Interface/api/mobile/QueryMobileMigration.ts +1 -1
- package/ts/types/Interface/api/mobile/UpdateMobile.ts +1 -1
- package/ts/types/Interface/api/notification/CreateNotification.ts +2 -2
- package/ts/types/Interface/api/notification/Update.ts +1 -1
- package/ts/types/Interface/api/notificationSetting/CreateNotificationSetting.ts +1 -1
- package/ts/types/Interface/api/notificationSetting/UpdateNotificationSetting.ts +1 -1
- package/ts/types/Interface/api/ocr/OcrTransactions.ts +1 -1
- package/ts/types/Interface/api/oldExportInfo/OldExpertInfos.ts +1 -1
- package/ts/types/Interface/api/partner/CreatePartner.ts +2 -2
- package/ts/types/Interface/api/partner/Query.ts +1 -1
- package/ts/types/Interface/api/partner/UpdatePartner.ts +2 -2
- package/ts/types/Interface/api/partners/CreatePartner.ts +1 -1
- package/ts/types/Interface/api/payment/CreateNotifyCustomer.ts +1 -1
- package/ts/types/Interface/api/payment/CreateNotifyCustomerInvoice.ts +1 -1
- package/ts/types/Interface/api/payment/Params.ts +1 -1
- package/ts/types/Interface/api/payment/Query.ts +1 -1
- package/ts/types/Interface/api/payment/QueryMonthlyPayment.ts +1 -1
- package/ts/types/Interface/api/payment/QueryPayment.ts +1 -1
- package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +2 -2
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +1 -1
- package/ts/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.ts +1 -1
- package/ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts +2 -2
- package/ts/types/Interface/api/paymentExpectationCustomer/UpdatePaymentExpectationCustomer.ts +1 -1
- package/ts/types/Interface/api/prestation/BodyCreatePrestationSocieties.ts +1 -1
- package/ts/types/Interface/api/prestation/CreatePrestation.ts +1 -1
- package/ts/types/Interface/api/prestation/Query.ts +4 -4
- package/ts/types/Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation.ts +1 -1
- package/ts/types/Interface/api/prestation/QueryPrestation.ts +1 -1
- package/ts/types/Interface/api/prestations/QueryCreate.ts +1 -1
- package/ts/types/Interface/api/prestations/QueryGetAllPrestations.ts +2 -2
- package/ts/types/Interface/api/prestations/QueryUpdate.ts +1 -1
- package/ts/types/Interface/api/previsionalForm/CreatePrevisionalForm.ts +4 -4
- package/ts/types/Interface/api/product/CreateProduct.ts +1 -1
- package/ts/types/Interface/api/product/ProductLineInputs.ts +2 -2
- package/ts/types/Interface/api/product/QueryProduct.ts +2 -2
- package/ts/types/Interface/api/provision/CreateProvisionForm.ts +1 -1
- package/ts/types/Interface/api/provision/QueryGetProvisions.ts +1 -1
- package/ts/types/Interface/api/provision/QueryProvisions.ts +1 -1
- package/ts/types/Interface/api/provision/UpdateProvisionForm.ts +1 -1
- package/ts/types/Interface/api/qonto/Create.ts +1 -1
- package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +1 -1
- package/ts/types/Interface/api/qonto/UpdateConnection.ts +1 -1
- package/ts/types/Interface/api/rating/CreateRating.ts +1 -1
- package/ts/types/Interface/api/rating/QueryRatingPaginated.ts +1 -1
- package/ts/types/Interface/api/rating/UpdateRating.ts +1 -1
- package/ts/types/Interface/api/ratingHistory/CreateRatingHistory.ts +1 -1
- package/ts/types/Interface/api/recurrence/Query.ts +1 -1
- package/ts/types/Interface/api/refund/QueryRefundPaginated.ts +1 -1
- package/ts/types/Interface/api/registration/CreateRegistration.ts +5 -5
- package/ts/types/Interface/api/registration/DeclareRegistration.ts +1 -1
- package/ts/types/Interface/api/registration/QueryRegistration.ts +2 -2
- package/ts/types/Interface/api/registration/ReadRegistration.ts +1 -1
- package/ts/types/Interface/api/registration/UpdateRegistration.ts +1 -1
- package/ts/types/Interface/api/regulate/DestroyRegulate.ts +1 -1
- package/ts/types/Interface/api/regulate/QueryGetAll.ts +1 -1
- package/ts/types/Interface/api/regulation/Create.ts +1 -1
- package/ts/types/Interface/api/regulation/Query.ts +2 -2
- package/ts/types/Interface/api/report/CreateReport.ts +1 -1
- package/ts/types/Interface/api/report/DeleteReport.ts +1 -1
- package/ts/types/Interface/api/report/ExternalReport.ts +1 -1
- package/ts/types/Interface/api/report/QueryReports.ts +1 -1
- package/ts/types/Interface/api/report/QueryReportsForLetter.ts +1 -1
- package/ts/types/Interface/api/reportMessage/Query.ts +1 -1
- package/ts/types/Interface/api/revenue/revenueMovement.ts +2 -2
- package/ts/types/Interface/api/revision/Create.ts +1 -1
- package/ts/types/Interface/api/revision/Query.ts +2 -2
- package/ts/types/Interface/api/revisionGuide/CreateRevisionGuide.ts +1 -1
- package/ts/types/Interface/api/rule/Create.ts +1 -1
- package/ts/types/Interface/api/rule/Update.ts +1 -1
- package/ts/types/Interface/api/salariesFile/CreateSalariesFile.ts +1 -1
- package/ts/types/Interface/api/salesContract/GenerateSalesContractParams.ts +1 -1
- package/ts/types/Interface/api/salesContract/SendSalesContractParams.ts +1 -1
- package/ts/types/Interface/api/sellsy/CreateInvoicesSellsy.ts +1 -1
- package/ts/types/Interface/api/sellsy/SellsyOauthCallback.ts +1 -1
- package/ts/types/Interface/api/shareCapital/CreateInKindContribution.ts +1 -1
- package/ts/types/Interface/api/shareCapital/CreateShareCapital.ts +1 -1
- package/ts/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.ts +1 -1
- package/ts/types/Interface/api/shine/CreateShineTransactions.ts +1 -1
- package/ts/types/Interface/api/shopify/InvoicesShopify.ts +1 -1
- package/ts/types/Interface/api/shopify/ShopifyOrder.ts +9 -9
- package/ts/types/Interface/api/shopify/line_item.ts +2 -2
- package/ts/types/Interface/api/shopify/refund.ts +1 -1
- package/ts/types/Interface/api/shopify/shipping_line.ts +1 -1
- package/ts/types/Interface/api/signFile/CreateFileToSign.ts +1 -1
- package/ts/types/Interface/api/society/CreateTestSociety.ts +6 -6
- package/ts/types/Interface/api/society/CreateUserToSocietyWithPermission.ts +1 -1
- package/ts/types/Interface/api/society/DataCustomersCsv.ts +1 -1
- package/ts/types/Interface/api/society/Export.ts +1 -1
- package/ts/types/Interface/api/society/GetSocietyDetail.ts +1 -1
- package/ts/types/Interface/api/society/ListUserSociety.ts +1 -1
- package/ts/types/Interface/api/society/QueryAdvancedSearchSociety.ts +1 -1
- package/ts/types/Interface/api/society/QueryArchived.ts +1 -1
- package/ts/types/Interface/api/society/QueryPaginatedSociety.ts +1 -1
- package/ts/types/Interface/api/society/QuerySociety.ts +2 -2
- package/ts/types/Interface/api/society/QueryToArchived.ts +1 -1
- package/ts/types/Interface/api/society/QueryUnpaid.ts +1 -1
- package/ts/types/Interface/api/society/UpdateSociety.ts +2 -2
- package/ts/types/Interface/api/society/UpdateUserToSocietyWithPermission.ts +1 -1
- package/ts/types/Interface/api/societyConfig/update.ts +1 -1
- package/ts/types/Interface/api/societyConfigBalanceSheet/QueryGetAllSocietyConfigBalanceSheet.ts +2 -2
- package/ts/types/Interface/api/societyConfigBalanceSheet/QueryPaginatedSocietyConfigBalanceSheet.ts +1 -1
- package/ts/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.ts +1 -1
- package/ts/types/Interface/api/societyFollow/Query.ts +1 -1
- package/ts/types/Interface/api/stateBankAccount/Query.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryAccountant.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryCustomerSuccess.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryDataOfficer.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryDirection.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryGetDirection.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryInternal.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryLegal.ts +1 -1
- package/ts/types/Interface/api/statistic/QueryMarketing.ts +1 -1
- package/ts/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.ts +2 -2
- package/ts/types/Interface/api/statutsGeneration/IntentToPayPrestationParams.ts +1 -1
- package/ts/types/Interface/api/statutsGeneration/SendInviteMailParams.ts +1 -1
- package/ts/types/Interface/api/statutsGeneration/UpdateExercice.ts +1 -1
- package/ts/types/Interface/api/statutsGeneration/UpdateExerciceParams.ts +1 -1
- package/ts/types/Interface/api/stripe/Create.ts +2 -2
- package/ts/types/Interface/api/stripe/QueryStripe.ts +1 -1
- package/ts/types/Interface/api/stripe/Update.ts +1 -1
- package/ts/types/Interface/api/supervision/Query.ts +1 -1
- package/ts/types/Interface/api/survey/QuerySurvey.ts +1 -1
- package/ts/types/Interface/api/survey/QuerySurveys.ts +1 -1
- package/ts/types/Interface/api/survey/UpdateSurvey.ts +1 -1
- package/ts/types/Interface/api/synchronisation/Query.ts +1 -1
- package/ts/types/Interface/api/task/QueryCountTask.ts +1 -2
- package/ts/types/Interface/api/task/QueryCreateTask.ts +1 -1
- package/ts/types/Interface/api/task/QueryGetAllTask.ts +1 -1
- package/ts/types/Interface/api/task/QueryGetTask.ts +1 -1
- package/ts/types/Interface/api/task/QueryPaginatedTask.ts +1 -1
- package/ts/types/Interface/api/task/QueryStatsByRolesInCsv.ts +1 -1
- package/ts/types/Interface/api/task/QueryStatsByServiceInCsv.ts +1 -1
- package/ts/types/Interface/api/task/QueryStatsByTaskTypeInCsv.ts +1 -1
- package/ts/types/Interface/api/tax/CreateTax.ts +2 -2
- package/ts/types/Interface/api/tax/QueryTax.ts +1 -1
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +6 -6
- package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +7 -7
- package/ts/types/Interface/api/team/QueryCreate.ts +1 -1
- package/ts/types/Interface/api/team/QueryGetAllWithIncludes.ts +1 -1
- package/ts/types/Interface/api/team/QueryUpdate.ts +1 -1
- package/ts/types/Interface/api/team/UpdateTeamsForUser.ts +1 -1
- package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +1 -1
- package/ts/types/Interface/api/terminationList/DestroyTerminationList.ts +1 -1
- package/ts/types/Interface/api/terminationList/QueryPaginateTerminationList.ts +1 -1
- package/ts/types/Interface/api/terminationList/QueryTerminationList.ts +1 -1
- package/ts/types/Interface/api/terminationList/TerminationList.ts +1 -1
- package/ts/types/Interface/api/textMessage/Create.ts +2 -2
- package/ts/types/Interface/api/textMessage/Query.ts +1 -1
- package/ts/types/Interface/api/textMessage/Update.ts +1 -1
- package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +2 -2
- package/ts/types/Interface/api/thirdParty/QueryThirdParty.ts +1 -1
- package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +2 -2
- package/ts/types/Interface/api/timeRecorder/CreateRecorder.ts +1 -1
- package/ts/types/Interface/api/timeRecorder/Query.ts +1 -1
- package/ts/types/Interface/api/timeRecorder/QueryAttendance.ts +1 -1
- package/ts/types/Interface/api/timeRecorder/QueryPaginatedDelays.ts +1 -1
- package/ts/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.ts +1 -1
- package/ts/types/Interface/api/timeRecorder/UpdateRecorder.ts +1 -1
- package/ts/types/Interface/api/timeTracking/Create.ts +1 -1
- package/ts/types/Interface/api/timeTracking/Query.ts +1 -1
- package/ts/types/Interface/api/toDoExpress/Query.ts +2 -2
- package/ts/types/Interface/api/transactions/Query.ts +2 -2
- package/ts/types/Interface/api/user/CreateCoworker.ts +2 -2
- package/ts/types/Interface/api/user/CreateUser.ts +1 -1
- package/ts/types/Interface/api/user/ParamsGetAll.ts +1 -1
- package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +1 -1
- package/ts/types/Interface/api/user/ParamsGetAllUserWithRoles.ts +1 -1
- package/ts/types/Interface/api/user/Query.ts +4 -4
- package/ts/types/Interface/api/user/RegisterProspect.ts +6 -6
- package/ts/types/Interface/api/user/RegisterWebhook.ts +1 -1
- package/ts/types/Interface/api/user/Signup.ts +185 -0
- package/ts/types/Interface/api/user/UpdateCoworker.ts +2 -2
- package/ts/types/Interface/api/userRoomEquipment/BulkUpdate.ts +1 -1
- package/ts/types/Interface/api/userRoomEquipment/CreateSignature.ts +1 -1
- package/ts/types/Interface/api/userRoomEquipment/Query.ts +2 -2
- package/ts/types/Interface/api/userSocietyPermission/CreateSocietyPermission.ts +2 -2
- package/ts/types/Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser.ts +1 -1
- package/ts/types/Interface/api/userSocietyPermission/GetAllSocietyPermission.ts +2 -2
- package/ts/types/Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission.ts +1 -1
- package/ts/types/Interface/api/userSocietyPermission/QueryDeleteSocietyPermission.ts +1 -1
- package/ts/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.ts +2 -2
- package/ts/types/Interface/api/userTimeSlot/QueryUserTimeSlot.ts +1 -1
- package/ts/types/Interface/api/usersHistory/Create.ts +2 -2
- package/ts/types/Interface/api/usersHistory/Update.ts +2 -2
- package/ts/types/Interface/api/vatControl/CreateVatControl.ts +1 -1
- package/ts/types/Interface/api/vatControl/QueryVatControl.ts +1 -1
- package/ts/types/Interface/api/vatDeclaration/CreateVatDeclaration.ts +1 -1
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -2
- package/ts/types/Interface/api/vehicle/CreateSocietyVehicle.ts +1 -1
- package/ts/types/Interface/api/vehicle/UpdateSocietyVehicle.ts +1 -1
- package/ts/types/Interface/api/visualizedInformation/Query.ts +2 -2
- package/ts/types/Interface/api/visualizedInformation/Update.ts +2 -2
- package/ts/types/Interface/api/wallet/QueryWallet.ts +1 -1
- package/ts/types/Interface/api/wallet/UpdateAttribution.ts +1 -1
- package/ts/types/Interface/api/webex/GetWebinarsParams.ts +1 -1
- package/ts/types/Interface/api/webex/WebexRegistrant.ts +1 -1
- package/ts/types/Interface/api/webmail/ExportEmails.ts +1 -1
- package/ts/types/Interface/api/webmail/GetPaginatedWhereObjectParams.ts +1 -1
- package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +1 -1
- package/ts/types/Interface/api/woocommerce/InvoicesWoocommerce.ts +1 -1
- package/ts/types/Interface/api/workingSchedule/Query.ts +1 -1
- package/ts/types/Interface/api/workingSchedule/QueryAvailableTimeSlot.ts +1 -1
- package/ts/types/Interface/api/zendesk/QueryTicket.ts +2 -2
- package/ts/types/Interface/api/zendesk/ReadTicket.ts +1 -1
- package/ts/types/Interface/models/IAbsenceRequest.ts +2 -2
- package/ts/types/Interface/models/IAccount.ts +9 -9
- package/ts/types/Interface/models/IAccountDetail.ts +2 -2
- package/ts/types/Interface/models/IAccountingEntry.ts +2 -2
- package/ts/types/Interface/models/IAccountingFile.ts +3 -3
- package/ts/types/Interface/models/IAccountingTransaction.ts +9 -9
- package/ts/types/Interface/models/IAnnotation.ts +1 -1
- package/ts/types/Interface/models/IAttestation.ts +5 -5
- package/ts/types/Interface/models/IAttributionHistory.ts +2 -2
- package/ts/types/Interface/models/IBalanceSheet.ts +6 -6
- package/ts/types/Interface/models/IBankAccount.ts +7 -7
- package/ts/types/Interface/models/IBillingHistory.ts +1 -1
- package/ts/types/Interface/models/IBusinessPartner.ts +1 -1
- package/ts/types/Interface/models/ICalendarEvent.ts +3 -3
- package/ts/types/Interface/models/ICard.ts +4 -4
- package/ts/types/Interface/models/ICardHistory.ts +1 -1
- package/ts/types/Interface/models/IChecklist.ts +3 -3
- package/ts/types/Interface/models/IChecklistDetail.ts +1 -1
- package/ts/types/Interface/models/IComment.ts +3 -3
- package/ts/types/Interface/models/ICustomerIsRegime.ts +1 -1
- package/ts/types/Interface/models/ICustomerSignature.ts +4 -4
- package/ts/types/Interface/models/ICustomerVat.ts +2 -2
- package/ts/types/Interface/models/IDocumentRequest.ts +4 -4
- package/ts/types/Interface/models/IEInvoicing.ts +2 -2
- package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +1 -1
- package/ts/types/Interface/models/IEInvoicingStatus.ts +2 -2
- package/ts/types/Interface/models/IEmployee.ts +4 -4
- package/ts/types/Interface/models/IEstimateInvoice.ts +7 -7
- package/ts/types/Interface/models/IExercice.ts +12 -12
- package/ts/types/Interface/models/IExercicePrestation.ts +2 -2
- package/ts/types/Interface/models/IFecFile.ts +2 -2
- package/ts/types/Interface/models/IFile.ts +2 -2
- package/ts/types/Interface/models/IFormalism.ts +3 -3
- package/ts/types/Interface/models/IGedFile.ts +8 -8
- package/ts/types/Interface/models/IHumanResourceLibrary.ts +2 -2
- package/ts/types/Interface/models/IImmobilization.ts +2 -2
- package/ts/types/Interface/models/IInformationRequest.ts +4 -4
- package/ts/types/Interface/models/IInpiPayment.ts +3 -3
- package/ts/types/Interface/models/IInvoiceRecurrence.ts +1 -1
- package/ts/types/Interface/models/ILeadsToPartners.ts +1 -1
- package/ts/types/Interface/models/ILetter.ts +5 -5
- package/ts/types/Interface/models/ILoan.ts +3 -3
- package/ts/types/Interface/models/ILog.ts +2 -2
- package/ts/types/Interface/models/IMail.ts +6 -6
- package/ts/types/Interface/models/IPayment.ts +5 -5
- package/ts/types/Interface/models/IPaymentExpectation.ts +2 -2
- package/ts/types/Interface/models/IPaymentSchedule.ts +1 -1
- package/ts/types/Interface/models/IPrestation.ts +4 -4
- package/ts/types/Interface/models/IPrestationComplementary.ts +3 -3
- package/ts/types/Interface/models/IProduct.ts +2 -2
- package/ts/types/Interface/models/IProductInvoice.ts +2 -2
- package/ts/types/Interface/models/IRating.ts +1 -1
- package/ts/types/Interface/models/IRefund.ts +1 -1
- package/ts/types/Interface/models/IRegistration.ts +5 -5
- package/ts/types/Interface/models/IRegulation.ts +2 -2
- package/ts/types/Interface/models/IRule.ts +3 -3
- package/ts/types/Interface/models/ISalariesFile.ts +2 -2
- package/ts/types/Interface/models/ISaleDocumentTemplate.ts +1 -1
- package/ts/types/Interface/models/ISms.ts +2 -2
- package/ts/types/Interface/models/ISociety.ts +43 -43
- package/ts/types/Interface/models/ISocietyConfigBalanceSheet.ts +5 -5
- package/ts/types/Interface/models/ISocietyDetail.ts +1 -1
- package/ts/types/Interface/models/ISocietyPartner.ts +1 -1
- package/ts/types/Interface/models/ISocietyProceding.ts +1 -1
- package/ts/types/Interface/models/ISocietyVehicle.ts +2 -2
- package/ts/types/Interface/models/ITask.ts +2 -2
- package/ts/types/Interface/models/ITerminationList.ts +3 -3
- package/ts/types/Interface/models/IThirdParty.ts +3 -3
- package/ts/types/Interface/models/ITimeTracking.ts +2 -2
- package/ts/types/Interface/models/IUpToDateBankAccount.ts +1 -1
- package/ts/types/Interface/models/IUser.ts +15 -15
- package/ts/types/Interface/models/IUserFile.ts +1 -1
- package/ts/types/Interface/models/IUserHumanResourceLibrary.ts +1 -1
- package/ts/types/Interface/models/IUserTeam.ts +1 -1
- package/ts/types/Interface/models/IUsersHistory.ts +1 -1
- package/ts/types/Interface/models/IVatRegimeHistory.ts +3 -3
- package/ts/types/Interface/models/IWorkingSchedule.ts +2 -2
- package/ts/types/Interface/models/IZTicket.ts +1 -1
- package/ts/types/Interface/schemas/IRegistrationDetail.ts +1 -1
- package/ts/types/index.ts +2 -0
- package/ts/utils/acdVat.ts +3 -3
- package/ts/utils/bankAccount.ts +2 -2
- package/ts/utils/brands.ts +3 -3
- package/ts/utils/cerfa.ts +2 -2
- package/ts/utils/checkup.ts +1 -1
- package/ts/utils/commercialManagement/document.ts +15 -15
- package/ts/utils/commercialManagement/internationalization/choices.ts +1 -1
- package/ts/utils/commercialManagement/product.ts +3 -3
- package/ts/utils/commercialManagement/recurrence.ts +2 -2
- package/ts/utils/commercialManagement/saleEmail.ts +1 -1
- package/ts/utils/commercialManagement/templates/common.ts +1 -1
- package/ts/utils/commercialManagement/thirdParty.ts +1 -1
- package/ts/utils/commercialManagement/vat.ts +1 -1
- package/ts/utils/commercialOffer.ts +4 -4
- package/ts/utils/date.ts +3 -3
- package/ts/utils/decorators/isE164PhoneNumber.decorator.ts +3 -1
- package/ts/utils/documents.ts +2 -2
- package/ts/utils/email.ts +1 -1
- package/ts/utils/exercice.ts +1 -1
- package/ts/utils/payment.ts +1 -1
- package/ts/utils/prestation.ts +10 -11
- package/ts/utils/quotation.ts +3 -3
- package/ts/utils/siretValidation.ts +2 -2
- package/ts/utils/societyApproval.ts +198 -9
- package/ts/utils/tests/document.spec.ts +4 -4
- package/ts/utils/tests/payment.spec.ts +2 -2
- package/ts/utils/tests/societyApproval.spec.ts +237 -0
- package/ts/utils/validators/nestedArray.validator.ts +2 -2
- package/ts/utils/vat/3310/century24.ts +6 -6
- package/ts/utils/vat/3310/century25.ts +6 -6
- package/ts/utils/vat/3310/century26.ts +6 -6
- package/ts/utils/vat/3517/century25.ts +3 -3
- package/ts/utils/vat/3517/century26.ts +9 -9
- package/ts/utils/vat/3519/century17.ts +3 -3
- package/ts/utils/vat/centuries.ts +18 -18
- package/ts/utils/vat/registration.ts +1 -1
- package/ts/utils/vat/utils.ts +1 -1
- package/dist/index-CL2xcnsB.d.mts.map +0 -1
- package/dist/product-q6BjuQqT.mjs +0 -2
- package/dist/product-q6BjuQqT.mjs.map +0 -1
package/ts/utils/date.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import timezone from 'dayjs/plugin/timezone.js';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* @param dateStart Date format YYYY-MM-DD HH:mm:ss
|
|
3
6
|
* @param dateEnd Date format YYYY-MM-DD HH:mm:ss
|
|
4
7
|
* @returns object of time (09:00-10:00, 12:00-13:00 et 14:00-17:00)
|
|
5
8
|
*/
|
|
6
9
|
import { DateInterval, TimeInterval } from '../types/index.js';
|
|
7
|
-
import dayjs from 'dayjs';
|
|
8
|
-
|
|
9
|
-
import timezone from 'dayjs/plugin/timezone.js';
|
|
10
10
|
dayjs.extend(timezone);
|
|
11
11
|
|
|
12
12
|
// TODO:UT
|
|
@@ -3,7 +3,9 @@ import { parsePhoneNumberFromString } from 'libphonenumber-js';
|
|
|
3
3
|
|
|
4
4
|
@ValidatorConstraint({ name: 'isE164Phone', async: false })
|
|
5
5
|
export class IsE164PhoneNumber implements ValidatorConstraintInterface {
|
|
6
|
-
validate(text:
|
|
6
|
+
validate(text: unknown): boolean {
|
|
7
|
+
// class-validator runs every validator of the property: a missing or non-string value must not throw
|
|
8
|
+
if (typeof text !== 'string') return false;
|
|
7
9
|
const phoneNumber = parsePhoneNumberFromString(text);
|
|
8
10
|
return isDefined(phoneNumber) && phoneNumber.number === text && phoneNumber.isValid();
|
|
9
11
|
}
|
package/ts/utils/documents.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
2
|
import { GedFileType } from '../types/Enum/Ged.js';
|
|
3
3
|
import { LegalForm } from '../types/Enum/LegalForm.js';
|
|
4
|
-
import
|
|
4
|
+
import { RequiredDocsType } from '../types/index.js';
|
|
5
5
|
|
|
6
6
|
const requiredListDocs = (params: RequiredDocsType): GedFileType[] => {
|
|
7
7
|
const { society, oldExpertInfo, isOnlyPrevi, isOnlyJuridic, isOnlySocial, isCreation, isConsultingHour, goToClient } =
|
package/ts/utils/email.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ejs from 'ejs';
|
|
2
2
|
import { Role } from '../types/Enum/Role.js';
|
|
3
|
+
import { IRole } from '../types/Interface/models/IRole.js';
|
|
3
4
|
import { IUser } from '../types/Interface/models/IUser.js';
|
|
4
5
|
import { getBrand, getBrandConfig } from './brands.js';
|
|
5
6
|
import { signatureTemplate } from './email/templates/signature.js';
|
|
6
7
|
import { intersection } from './noLodash.js';
|
|
7
|
-
import { IRole } from '../types/Interface/models/IRole.js';
|
|
8
8
|
|
|
9
9
|
function getRoleSignature(user: any) {
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
package/ts/utils/exercice.ts
CHANGED
package/ts/utils/payment.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
import { IPayment, IRegulation, ParamsForPaymentsAuto, PaymentMethod, PaymentAuto } from '../types/index.js';
|
|
4
3
|
import dayjs from 'dayjs';
|
|
4
|
+
import { IPayment, IRegulation, ParamsForPaymentsAuto, PaymentMethod, PaymentAuto } from '../types/index.js';
|
|
5
5
|
import { PartialExercicePrestationExpress } from '../types/Interface/api/payment/Util.js';
|
|
6
6
|
import { getPriceGrid } from './prestation.js';
|
|
7
7
|
import { getTaxesIncludedAmount } from './vat/utils.js';
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { intersection } from './noLodash.js';
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import { ClosingType } from '../types/Enum/ClosingType.js';
|
|
3
|
+
import { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption.js';
|
|
5
4
|
import {
|
|
6
5
|
ClementineSubscriptionAccountancySoftwarePrestations,
|
|
7
6
|
PrestationDetail,
|
|
8
7
|
PrestationType,
|
|
9
8
|
} from '../types/Enum/PrestationType.js';
|
|
10
|
-
import { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption.js';
|
|
11
9
|
import { PriceGridClementine } from '../types/Enum/PriceGridClementine.js';
|
|
12
|
-
import { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage.js';
|
|
13
10
|
import { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart.js';
|
|
11
|
+
import { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage.js';
|
|
14
12
|
import { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress.js';
|
|
15
|
-
import {
|
|
13
|
+
import { ReasonTerminationType } from '../types/Enum/ReasonTerminationType.js';
|
|
14
|
+
import { Vat } from '../types/Enum/Vat.js';
|
|
15
|
+
import { IExercice, IPrestation, IPrestationList } from '../types/index.js';
|
|
16
16
|
import { getBrandNameByNodeEnv } from './brands.js';
|
|
17
|
-
import dayjs from 'dayjs';
|
|
18
17
|
import { exerciceNumber } from './exercice.js';
|
|
18
|
+
import { intersection } from './noLodash.js';
|
|
19
19
|
|
|
20
20
|
type priceGridBrand = {
|
|
21
21
|
idTypeBrand: number;
|
|
@@ -262,9 +262,8 @@ const calculateScoringOfPrestation = (
|
|
|
262
262
|
const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);
|
|
263
263
|
const prestationHalfPriceAlreadyDoneIds = prestationsExistIds.filter((id) => prestationHalfPriceIds.includes(id));
|
|
264
264
|
|
|
265
|
-
// If one of the prestations already done is in the list of prestations that are half price and if the idPrestationType is in prestationHalfPriceIds, return
|
|
266
|
-
if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType))
|
|
267
|
-
return Math.floor(numberPoint * 0.3);
|
|
265
|
+
// If one of the prestations already done is in the list of prestations that are half price and if the idPrestationType is in prestationHalfPriceIds, return upsell points (250)
|
|
266
|
+
if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType)) return 250;
|
|
268
267
|
|
|
269
268
|
return numberPoint;
|
|
270
269
|
};
|
package/ts/utils/quotation.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
import { ForbidenDomain, BasicDomain } from '../types/Enum/MailDomainType.js';
|
|
3
2
|
import { Activity } from '../types/Enum/Activity.js';
|
|
4
3
|
import { ComptaType } from '../types/Enum/ComptaType.js';
|
|
5
|
-
import {
|
|
6
|
-
import { ICotation } from '../types/Interface/models/ICotation.js';
|
|
4
|
+
import { ForbidenDomain, BasicDomain } from '../types/Enum/MailDomainType.js';
|
|
7
5
|
import { BasePaginate, IPayment, IRating, IReport, ISocietyProceding, ReadClientQuotation } from '../types/index.js';
|
|
6
|
+
import { ICotation } from '../types/Interface/models/ICotation.js';
|
|
7
|
+
import { ISociety } from '../types/Interface/models/ISociety.js';
|
|
8
8
|
|
|
9
9
|
type getLeadQuotationParams = {
|
|
10
10
|
firstname: string;
|
|
@@ -52,8 +52,8 @@ export function validateSiret(siret: string) {
|
|
|
52
52
|
|
|
53
53
|
export function getVatCodeBySiren(siren: string, countryCode = 'FR'): string {
|
|
54
54
|
const validSiren = siren.replace(/\s/g, '');
|
|
55
|
-
|
|
56
|
-
return `${countryCode}${
|
|
55
|
+
const vatKey = (12 + 3 * (Number(validSiren) % 97)) % 97;
|
|
56
|
+
return `${countryCode}${String(vatKey).padStart(2, '0')}${validSiren}`;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export function siretToSiren(siret: string, idCountry?: number): string | null {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe.js';
|
|
3
|
+
import { Civility } from '../types/Enum/Civility.js';
|
|
1
4
|
import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm.js';
|
|
5
|
+
import { Quality, QualityList } from '../types/Enum/Quality.js';
|
|
2
6
|
import {
|
|
3
7
|
AdditionalMentionType,
|
|
4
8
|
SocietyApprovalDocumentType,
|
|
@@ -7,11 +11,8 @@ import {
|
|
|
7
11
|
SocietyApprovalDocumentTemplate,
|
|
8
12
|
} from '../types/Enum/SocietyApproval.js';
|
|
9
13
|
import { ISocietyApproval } from '../types/Interface/models/ISocietyApproval.js';
|
|
10
|
-
import { QualityList } from '../types/Enum/Quality.js';
|
|
11
|
-
import { getBrand } from './brands.js';
|
|
12
14
|
import { convertDayOfMonthToLetter, convertNumberToLetter } from './amount.js';
|
|
13
|
-
import
|
|
14
|
-
import { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe.js';
|
|
15
|
+
import { getBrand } from './brands.js';
|
|
15
16
|
import { siretToSiren } from './siretValidation.js';
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -59,6 +60,158 @@ export function getApprovalDocumentInfos(
|
|
|
59
60
|
return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
|
|
60
61
|
}
|
|
61
62
|
|
|
63
|
+
type ApprovalPerson = {
|
|
64
|
+
idCivility?: number | null;
|
|
65
|
+
firstname?: string | null;
|
|
66
|
+
lastname?: string | null;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
type ApprovalPartner = {
|
|
70
|
+
idQuality?: number | null;
|
|
71
|
+
society?: { name?: string | null } | null;
|
|
72
|
+
user?: ApprovalPerson | null;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Gets the grammatical gender from a civility (masculine when the civility is unknown)
|
|
77
|
+
* @param idCivility - The civility id
|
|
78
|
+
* @returns Civility.FEMALE for a woman, Civility.MALE otherwise
|
|
79
|
+
*/
|
|
80
|
+
export function getGenderFromCivility(idCivility: number | null | undefined): Civility {
|
|
81
|
+
return idCivility === Civility.FEMALE ? Civility.FEMALE : Civility.MALE;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Gets the grammatical gender of a group of partners: feminine only when all of them are women
|
|
86
|
+
* (natural persons), masculine as soon as a man, a legal entity or an unknown civility is present
|
|
87
|
+
* @param partners - The partners
|
|
88
|
+
* @returns The grammatical gender of the group
|
|
89
|
+
*/
|
|
90
|
+
export function getPartnersGender(partners: ApprovalPartner[]): Civility {
|
|
91
|
+
const isOnlyWomen =
|
|
92
|
+
partners.length > 0 &&
|
|
93
|
+
partners.every((partner) => !partner.society && partner.user?.idCivility === Civility.FEMALE);
|
|
94
|
+
return isOnlyWomen ? Civility.FEMALE : Civility.MALE;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Picks the masculine or feminine form of a text
|
|
99
|
+
* @param gender - The grammatical gender
|
|
100
|
+
* @param masculine - The masculine form
|
|
101
|
+
* @param feminine - The feminine form
|
|
102
|
+
* @returns The inflected form
|
|
103
|
+
*/
|
|
104
|
+
export function inflectByGender(gender: Civility, masculine: string, feminine: string): string {
|
|
105
|
+
return gender === Civility.FEMALE ? feminine : masculine;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Gets the quality label inflected by gender
|
|
110
|
+
* @param idQuality - The quality id
|
|
111
|
+
* @param gender - The grammatical gender
|
|
112
|
+
* @returns The inflected label, or an empty string when the quality is unknown
|
|
113
|
+
*/
|
|
114
|
+
export function getQualityLabel(idQuality: Quality | number | null | undefined, gender: Civility): string {
|
|
115
|
+
const quality = QualityList.find((ql) => ql.id === idQuality);
|
|
116
|
+
if (!quality) return '';
|
|
117
|
+
return inflectByGender(gender, quality.label, quality.labelFeminine);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Picks the masculine or feminine form of a text from a civility (masculine when the civility is unknown)
|
|
122
|
+
* @param idCivility - The civility id
|
|
123
|
+
* @param masculine - The masculine form
|
|
124
|
+
* @param feminine - The feminine form
|
|
125
|
+
* @returns The inflected form
|
|
126
|
+
*/
|
|
127
|
+
export function inflectByCivility(idCivility: number | null | undefined, masculine: string, feminine: string): string {
|
|
128
|
+
return inflectByGender(getGenderFromCivility(idCivility), masculine, feminine);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
type GenderTemplateHelpers = {
|
|
132
|
+
getCivilityTitle: (idCivility: number | null | undefined, isShort?: boolean) => string;
|
|
133
|
+
inflectByCivility: (idCivility: number | null | undefined, masculine: string, feminine: string) => string;
|
|
134
|
+
byOwnerGender: (masculine: string, feminine: string) => string;
|
|
135
|
+
byPartnersGender: (masculine: string, feminine: string) => string;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Builds the gender agreement functions injected into the EJS templates
|
|
140
|
+
* @param ownerCivility - The owner civility
|
|
141
|
+
* @param partners - The partners (a legal entity has `society` set, a natural person has an empty `society`)
|
|
142
|
+
* @returns The agreement functions
|
|
143
|
+
*/
|
|
144
|
+
export function buildGenderTemplateHelpers(
|
|
145
|
+
ownerCivility: number | null | undefined,
|
|
146
|
+
partners: ApprovalPartner[],
|
|
147
|
+
): GenderTemplateHelpers {
|
|
148
|
+
const ownerGender = getGenderFromCivility(ownerCivility);
|
|
149
|
+
const partnersGender = getPartnersGender(partners);
|
|
150
|
+
return {
|
|
151
|
+
getCivilityTitle,
|
|
152
|
+
inflectByCivility,
|
|
153
|
+
byOwnerGender: (masculine: string, feminine: string): string => inflectByGender(ownerGender, masculine, feminine),
|
|
154
|
+
byPartnersGender: (masculine: string, feminine: string): string =>
|
|
155
|
+
inflectByGender(partnersGender, masculine, feminine),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const ELIDED_ARTICLE_REGEXP = /^[aeiouyàâäéèêëîïôöùûü]/i;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Prefixes a label with its inflected definite article, elided before a vowel (« l'associée », « la présidente »)
|
|
163
|
+
* @param label - The label
|
|
164
|
+
* @param gender - The grammatical gender
|
|
165
|
+
* @returns The label preceded by its article
|
|
166
|
+
*/
|
|
167
|
+
export function formatWithDefiniteArticle(label: string, gender: Civility): string {
|
|
168
|
+
if (ELIDED_ARTICLE_REGEXP.test(label)) return `l'${label}`;
|
|
169
|
+
return `${inflectByGender(gender, 'le', 'la')} ${label}`;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Gets the civility title (empty when the civility is unknown)
|
|
174
|
+
* @param idCivility - The civility id
|
|
175
|
+
* @param isShort - true for the abbreviation (M. / Mme)
|
|
176
|
+
* @returns The civility title
|
|
177
|
+
*/
|
|
178
|
+
export function getCivilityTitle(idCivility: number | null | undefined, isShort: boolean = false): string {
|
|
179
|
+
if (idCivility === Civility.MALE) return isShort ? 'M.' : 'Monsieur';
|
|
180
|
+
if (idCivility === Civility.FEMALE) return isShort ? 'Mme' : 'Madame';
|
|
181
|
+
return '';
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Builds a person identity: civility, firstname and lastname, without extra spaces
|
|
186
|
+
* @param person - The person
|
|
187
|
+
* @param isShort - true for the abbreviated civility
|
|
188
|
+
* @returns The formatted identity
|
|
189
|
+
*/
|
|
190
|
+
export function formatPersonIdentity(person: ApprovalPerson | null | undefined, isShort: boolean = false): string {
|
|
191
|
+
return [getCivilityTitle(person?.idCivility, isShort), person?.firstname, person?.lastname].filter(Boolean).join(' ');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Builds a partner identity: company name for a legal entity, person identity otherwise
|
|
196
|
+
* @param partner - The partner
|
|
197
|
+
* @param isShort - true for the abbreviated civility
|
|
198
|
+
* @returns The partner identity
|
|
199
|
+
*/
|
|
200
|
+
export function formatPartnerIdentity(partner: ApprovalPartner, isShort: boolean = false): string {
|
|
201
|
+
if (partner.society) return partner.society.name ?? '';
|
|
202
|
+
return formatPersonIdentity(partner.user, isShort);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Gets the partner quality label inflected by the partner gender
|
|
207
|
+
* @param partner - The partner
|
|
208
|
+
* @returns The inflected label or an empty string
|
|
209
|
+
*/
|
|
210
|
+
export function getPartnerQualityLabel(partner: ApprovalPartner): string {
|
|
211
|
+
const gender = partner.society ? Civility.MALE : getGenderFromCivility(partner.user?.idCivility);
|
|
212
|
+
return getQualityLabel(partner.idQuality, gender);
|
|
213
|
+
}
|
|
214
|
+
|
|
62
215
|
function createApprovalDecisionTitleGenerator(idLegalForm?: LegalFormTypeEnum): () => string {
|
|
63
216
|
const decisionOrdinals = ['PREMIERE', 'DEUXIEME', 'TROISIEME', 'QUATRIEME', 'CINQUIEME', 'SIXIEME'];
|
|
64
217
|
const decisionLabel =
|
|
@@ -71,6 +224,24 @@ function createApprovalDecisionTitleGenerator(idLegalForm?: LegalFormTypeEnum):
|
|
|
71
224
|
};
|
|
72
225
|
}
|
|
73
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Gets the default quality of the company manager, used when no quality is stored for the owner
|
|
229
|
+
* @param idLegalForm - The legal form id
|
|
230
|
+
* @returns The default quality, or null when the legal form has no default
|
|
231
|
+
*/
|
|
232
|
+
export function getDefaultOwnerQuality(idLegalForm: LegalFormTypeEnum | null | undefined): Quality | null {
|
|
233
|
+
switch (idLegalForm) {
|
|
234
|
+
case LegalFormTypeEnum.EURL:
|
|
235
|
+
case LegalFormTypeEnum.SARL:
|
|
236
|
+
return Quality.GERANT;
|
|
237
|
+
case LegalFormTypeEnum.SAS:
|
|
238
|
+
case LegalFormTypeEnum.SASU:
|
|
239
|
+
return Quality.PRESIDENT;
|
|
240
|
+
default:
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
74
245
|
/**
|
|
75
246
|
* Construit les données formatées pour le template d'approbation
|
|
76
247
|
* @param existingApproval - Les données d'approbation de la société
|
|
@@ -91,9 +262,17 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
|
|
|
91
262
|
existingApproval?.exercice?.society?.totalSharesHeld ?? 0,
|
|
92
263
|
).toLowerCase();
|
|
93
264
|
const brand = getBrand();
|
|
265
|
+
const owner = existingApproval?.exercice?.society?.users?.[0];
|
|
266
|
+
const ownerGender = getGenderFromCivility(owner?.idCivility);
|
|
267
|
+
const ownerQualityLabel =
|
|
268
|
+
getQualityLabel(owner?.businessPartners?.[0]?.idQuality, ownerGender) ||
|
|
269
|
+
getQualityLabel(getDefaultOwnerQuality(existingApproval?.exercice?.society?.idLegalForm), ownerGender);
|
|
270
|
+
const partners = existingApproval?.exercice?.society?.businessPartners ?? [];
|
|
271
|
+
const partnersGender = getPartnersGender(partners);
|
|
94
272
|
return {
|
|
95
273
|
// Variables globales
|
|
96
274
|
AdditionalMentionType,
|
|
275
|
+
Civility,
|
|
97
276
|
nextDecisionTitle: createApprovalDecisionTitleGenerator(
|
|
98
277
|
existingApproval?.exercice?.society?.idLegalForm ?? undefined,
|
|
99
278
|
),
|
|
@@ -120,12 +299,22 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
|
|
|
120
299
|
ECOrderCity: brand?.companyInformation?.ECOrderCity,
|
|
121
300
|
},
|
|
122
301
|
owner: {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
302
|
+
idCivility: owner?.idCivility ?? null,
|
|
303
|
+
isFemale: ownerGender === Civility.FEMALE,
|
|
304
|
+
identity: formatPersonIdentity(owner),
|
|
305
|
+
quality: ownerQualityLabel,
|
|
306
|
+
qualityWithArticle: ownerQualityLabel
|
|
307
|
+
? formatWithDefiniteArticle(ownerQualityLabel.toLowerCase(), ownerGender)
|
|
308
|
+
: '',
|
|
309
|
+
},
|
|
310
|
+
partners: {
|
|
311
|
+
count: partners.length,
|
|
312
|
+
isPlural: partners.length > 1,
|
|
313
|
+
isFemale: partnersGender === Civility.FEMALE,
|
|
128
314
|
},
|
|
315
|
+
...buildGenderTemplateHelpers(owner?.idCivility, partners),
|
|
316
|
+
formatPartnerIdentity,
|
|
317
|
+
getPartnerQualityLabel,
|
|
129
318
|
// Variables stockées en base
|
|
130
319
|
...existingApproval,
|
|
131
320
|
generatingDatas: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { describe, expect, test } from 'vitest';
|
|
2
|
-
import { generateCommercialDocument } from '../commercialManagement/document.js';
|
|
3
|
-
import { isHtmlEmpty } from '../isHtml.js';
|
|
4
|
-
import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice.js';
|
|
5
|
-
import { CreateInvoiceDocument } from '../../types/Interface/api/commercialManagement/Create.js';
|
|
6
2
|
import { DiscountType } from '../../types/Enum/CommercialManagement.js';
|
|
3
|
+
import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice.js';
|
|
7
4
|
import { Unit } from '../../types/Enum/Unit.js';
|
|
8
5
|
import { Vat } from '../../types/Enum/Vat.js';
|
|
6
|
+
import { CreateInvoiceDocument } from '../../types/Interface/api/commercialManagement/Create.js';
|
|
7
|
+
import { generateCommercialDocument } from '../commercialManagement/document.js';
|
|
8
|
+
import { isHtmlEmpty } from '../isHtml.js';
|
|
9
9
|
|
|
10
10
|
// Payload reproducing a real-world case where the seller address fields (`name`, `street`,
|
|
11
11
|
// `number`, `zipCode`, `city`) are entirely absent from the object, not just `null`.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
import { IRegulation, Vat, PaymentMethod } from '../../types/index.js';
|
|
3
2
|
import MockDate from 'mockdate';
|
|
4
|
-
import {
|
|
3
|
+
import { IRegulation, Vat, PaymentMethod } from '../../types/index.js';
|
|
5
4
|
import { PartialExercicePrestationExpress } from '../../types/Interface/api/payment/Util.js';
|
|
5
|
+
import { calculatePaymentsAuto } from '../payment.js';
|
|
6
6
|
import { getTaxesIncludedAmount } from '../vat/utils.js';
|
|
7
7
|
|
|
8
8
|
// @ts-ignore
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { Civility } from '../../types/Enum/Civility.js';
|
|
3
|
+
import { LegalFormTypeEnum } from '../../types/Enum/LegalForm.js';
|
|
4
|
+
import { Quality } from '../../types/Enum/Quality.js';
|
|
5
|
+
import { ISocietyApproval } from '../../types/Interface/models/ISocietyApproval.js';
|
|
6
|
+
import {
|
|
7
|
+
buildApprovalTemplateData,
|
|
8
|
+
buildGenderTemplateHelpers,
|
|
9
|
+
formatPartnerIdentity,
|
|
10
|
+
formatPersonIdentity,
|
|
11
|
+
formatWithDefiniteArticle,
|
|
12
|
+
getDefaultOwnerQuality,
|
|
13
|
+
getGenderFromCivility,
|
|
14
|
+
getPartnerQualityLabel,
|
|
15
|
+
getPartnersGender,
|
|
16
|
+
getQualityLabel,
|
|
17
|
+
inflectByCivility,
|
|
18
|
+
} from '../societyApproval.js';
|
|
19
|
+
|
|
20
|
+
const WOMAN = { user: { idCivility: Civility.FEMALE, firstname: 'Marie', lastname: 'Curie' } };
|
|
21
|
+
const MAN = { user: { idCivility: Civility.MALE, firstname: 'Pierre', lastname: 'Curie' } };
|
|
22
|
+
const UNKNOWN = { user: { idCivility: null, firstname: 'Camille', lastname: 'Dupont' } };
|
|
23
|
+
const COMPANY = { society: { name: 'Holding' } };
|
|
24
|
+
|
|
25
|
+
const buildApproval = (params: {
|
|
26
|
+
ownerCivility: Civility | null;
|
|
27
|
+
ownerQuality: Quality | null;
|
|
28
|
+
partners: Array<typeof WOMAN | typeof MAN | typeof UNKNOWN | typeof COMPANY>;
|
|
29
|
+
idLegalForm?: LegalFormTypeEnum;
|
|
30
|
+
}): ISocietyApproval =>
|
|
31
|
+
({
|
|
32
|
+
exercice: {
|
|
33
|
+
society: {
|
|
34
|
+
idLegalForm: params.idLegalForm,
|
|
35
|
+
users: [
|
|
36
|
+
{
|
|
37
|
+
idCivility: params.ownerCivility,
|
|
38
|
+
firstname: 'Ada',
|
|
39
|
+
lastname: 'Lovelace',
|
|
40
|
+
businessPartners: [{ idQuality: params.ownerQuality }],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
businessPartners: params.partners,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
}) as ISocietyApproval;
|
|
47
|
+
|
|
48
|
+
describe('societyApproval gender utils', () => {
|
|
49
|
+
test.each([
|
|
50
|
+
{ idCivility: Civility.FEMALE, expected: Civility.FEMALE },
|
|
51
|
+
{ idCivility: Civility.MALE, expected: Civility.MALE },
|
|
52
|
+
{ idCivility: null, expected: Civility.MALE },
|
|
53
|
+
{ idCivility: undefined, expected: Civility.MALE },
|
|
54
|
+
])('should get gender $expected from civility $idCivility', ({ idCivility, expected }) => {
|
|
55
|
+
expect(getGenderFromCivility(idCivility)).toBe(expected);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
test.each([
|
|
59
|
+
{ case: 'only women', partners: [WOMAN, WOMAN], expected: Civility.FEMALE },
|
|
60
|
+
{ case: 'a single woman', partners: [WOMAN], expected: Civility.FEMALE },
|
|
61
|
+
{ case: 'women and men', partners: [WOMAN, MAN], expected: Civility.MALE },
|
|
62
|
+
{ case: 'a woman and a company', partners: [WOMAN, COMPANY], expected: Civility.MALE },
|
|
63
|
+
{ case: 'a woman and an unknown civility', partners: [WOMAN, UNKNOWN], expected: Civility.MALE },
|
|
64
|
+
{ case: 'no partner', partners: [], expected: Civility.MALE },
|
|
65
|
+
])('should get the partners gender with $case', ({ partners, expected }) => {
|
|
66
|
+
expect(getPartnersGender(partners)).toBe(expected);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
test.each([
|
|
70
|
+
{ idQuality: Quality.GERANT, gender: Civility.FEMALE, expected: 'Gérante' },
|
|
71
|
+
{ idQuality: Quality.GERANT, gender: Civility.MALE, expected: 'Gérant' },
|
|
72
|
+
{ idQuality: Quality.PRESIDENT, gender: Civility.FEMALE, expected: 'Présidente' },
|
|
73
|
+
{ idQuality: Quality.EI, gender: Civility.FEMALE, expected: 'Entrepreneuse individuelle' },
|
|
74
|
+
{ idQuality: Quality.AE, gender: Civility.FEMALE, expected: 'Auto-entrepreneuse' },
|
|
75
|
+
{ idQuality: Quality.PDG, gender: Civility.FEMALE, expected: 'PDG' },
|
|
76
|
+
{ idQuality: null, gender: Civility.FEMALE, expected: '' },
|
|
77
|
+
])('should get the quality label $expected', ({ idQuality, gender, expected }) => {
|
|
78
|
+
expect(getQualityLabel(idQuality, gender)).toBe(expected);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
test.each([
|
|
82
|
+
{ person: WOMAN.user, isShort: false, expected: 'Madame Marie Curie' },
|
|
83
|
+
{ person: MAN.user, isShort: true, expected: 'M. Pierre Curie' },
|
|
84
|
+
{ person: WOMAN.user, isShort: true, expected: 'Mme Marie Curie' },
|
|
85
|
+
{ person: UNKNOWN.user, isShort: false, expected: 'Camille Dupont' },
|
|
86
|
+
{ person: { idCivility: Civility.MALE, firstname: '', lastname: 'Seul' }, isShort: true, expected: 'M. Seul' },
|
|
87
|
+
])('should format the identity $expected', ({ person, isShort, expected }) => {
|
|
88
|
+
expect(formatPersonIdentity(person, isShort)).toBe(expected);
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
test.each([
|
|
92
|
+
{ label: 'présidente', gender: Civility.FEMALE, expected: 'la présidente' },
|
|
93
|
+
{ label: 'président', gender: Civility.MALE, expected: 'le président' },
|
|
94
|
+
{ label: 'associée', gender: Civility.FEMALE, expected: "l'associée" },
|
|
95
|
+
{ label: 'associé', gender: Civility.MALE, expected: "l'associé" },
|
|
96
|
+
{ label: 'entrepreneuse individuelle', gender: Civility.FEMALE, expected: "l'entrepreneuse individuelle" },
|
|
97
|
+
{ label: 'pdg', gender: Civility.FEMALE, expected: 'la pdg' },
|
|
98
|
+
])('should prefix $label with its definite article', ({ label, gender, expected }) => {
|
|
99
|
+
expect(formatWithDefiniteArticle(label, gender)).toBe(expected);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
test.each([
|
|
103
|
+
{ idCivility: Civility.FEMALE, expected: 'née' },
|
|
104
|
+
{ idCivility: Civility.MALE, expected: 'né' },
|
|
105
|
+
{ idCivility: null, expected: 'né' },
|
|
106
|
+
])('should inflect by civility $idCivility', ({ idCivility, expected }) => {
|
|
107
|
+
expect(inflectByCivility(idCivility, 'né', 'née')).toBe(expected);
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
test('should build the gender template helpers from the owner and the partners', () => {
|
|
111
|
+
const helpers = buildGenderTemplateHelpers(Civility.FEMALE, [WOMAN, MAN]);
|
|
112
|
+
|
|
113
|
+
expect(helpers.byOwnerGender('le soussigné', 'la soussignée')).toBe('la soussignée');
|
|
114
|
+
expect(helpers.byPartnersGender('Les soussignés', 'Les soussignées')).toBe('Les soussignés');
|
|
115
|
+
expect(helpers.inflectByCivility(Civility.FEMALE, 'né', 'née')).toBe('née');
|
|
116
|
+
expect(helpers.getCivilityTitle(Civility.FEMALE, true)).toBe('Mme');
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
test('should format a company partner with its name', () => {
|
|
120
|
+
expect(formatPartnerIdentity(COMPANY)).toBe('Holding');
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
test.each([
|
|
124
|
+
{ partner: { ...WOMAN, idQuality: Quality.GERANT }, expected: 'Gérante' },
|
|
125
|
+
{ partner: { ...MAN, idQuality: Quality.GERANT }, expected: 'Gérant' },
|
|
126
|
+
{ partner: { ...COMPANY, idQuality: Quality.ASSOCIE }, expected: 'Associé' },
|
|
127
|
+
])('should get the partner quality label $expected', ({ partner, expected }) => {
|
|
128
|
+
expect(getPartnerQualityLabel(partner)).toBe(expected);
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
describe('buildApprovalTemplateData gender data', () => {
|
|
133
|
+
test('should expose a feminine owner and partners', () => {
|
|
134
|
+
const data = buildApprovalTemplateData(
|
|
135
|
+
buildApproval({ ownerCivility: Civility.FEMALE, ownerQuality: Quality.PRESIDENT, partners: [WOMAN, WOMAN] }),
|
|
136
|
+
'',
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
expect(data.owner).toEqual(
|
|
140
|
+
expect.objectContaining({ isFemale: true, identity: 'Madame Ada Lovelace', quality: 'Présidente' }),
|
|
141
|
+
);
|
|
142
|
+
expect(data.partners).toEqual({ count: 2, isPlural: true, isFemale: true });
|
|
143
|
+
expect(data.byOwnerGender('il', 'elle')).toBe('elle');
|
|
144
|
+
expect(data.byPartnersGender('associés', 'associées')).toBe('associées');
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
test('should fall back to the masculine without title when the owner civility is unknown', () => {
|
|
148
|
+
const data = buildApprovalTemplateData(
|
|
149
|
+
buildApproval({ ownerCivility: null, ownerQuality: Quality.GERANT, partners: [WOMAN, COMPANY] }),
|
|
150
|
+
'',
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
expect(data.owner).toEqual(
|
|
154
|
+
expect.objectContaining({ isFemale: false, identity: 'Ada Lovelace', quality: 'Gérant' }),
|
|
155
|
+
);
|
|
156
|
+
expect(data.partners).toEqual({ count: 2, isPlural: true, isFemale: false });
|
|
157
|
+
expect(data.byOwnerGender('il', 'elle')).toBe('il');
|
|
158
|
+
expect(data.byPartnersGender('associés', 'associées')).toBe('associés');
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
test.each([
|
|
162
|
+
{ idLegalForm: LegalFormTypeEnum.EURL, civility: Civility.MALE, quality: 'Gérant', withArticle: 'le gérant' },
|
|
163
|
+
{ idLegalForm: LegalFormTypeEnum.SARL, civility: Civility.FEMALE, quality: 'Gérante', withArticle: 'la gérante' },
|
|
164
|
+
{ idLegalForm: LegalFormTypeEnum.SASU, civility: Civility.MALE, quality: 'Président', withArticle: 'le président' },
|
|
165
|
+
{
|
|
166
|
+
idLegalForm: LegalFormTypeEnum.SAS,
|
|
167
|
+
civility: Civility.FEMALE,
|
|
168
|
+
quality: 'Présidente',
|
|
169
|
+
withArticle: 'la présidente',
|
|
170
|
+
},
|
|
171
|
+
])(
|
|
172
|
+
'should fall back to the default quality of a $idLegalForm owner without stored quality',
|
|
173
|
+
({ idLegalForm, civility, quality, withArticle }) => {
|
|
174
|
+
const data = buildApprovalTemplateData(
|
|
175
|
+
buildApproval({ ownerCivility: civility, ownerQuality: null, partners: [], idLegalForm }),
|
|
176
|
+
'',
|
|
177
|
+
);
|
|
178
|
+
|
|
179
|
+
expect(data.owner).toEqual(expect.objectContaining({ quality, qualityWithArticle: withArticle }));
|
|
180
|
+
},
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
test('should keep the stored quality over the default one of the legal form', () => {
|
|
184
|
+
const data = buildApprovalTemplateData(
|
|
185
|
+
buildApproval({
|
|
186
|
+
ownerCivility: Civility.MALE,
|
|
187
|
+
ownerQuality: Quality.GERANT,
|
|
188
|
+
partners: [],
|
|
189
|
+
idLegalForm: LegalFormTypeEnum.SAS,
|
|
190
|
+
}),
|
|
191
|
+
'',
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
expect(data.owner).toEqual(expect.objectContaining({ quality: 'Gérant', qualityWithArticle: 'le gérant' }));
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
test('should fall back to the default quality when the stored quality has no label', () => {
|
|
198
|
+
const data = buildApprovalTemplateData(
|
|
199
|
+
buildApproval({
|
|
200
|
+
ownerCivility: Civility.MALE,
|
|
201
|
+
ownerQuality: 11 as Quality,
|
|
202
|
+
partners: [],
|
|
203
|
+
idLegalForm: LegalFormTypeEnum.SARL,
|
|
204
|
+
}),
|
|
205
|
+
'',
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
expect(data.owner).toEqual(expect.objectContaining({ quality: 'Gérant', qualityWithArticle: 'le gérant' }));
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
test('should leave the owner quality empty when neither stored nor default quality exists', () => {
|
|
212
|
+
const data = buildApprovalTemplateData(
|
|
213
|
+
buildApproval({
|
|
214
|
+
ownerCivility: Civility.MALE,
|
|
215
|
+
ownerQuality: null,
|
|
216
|
+
partners: [],
|
|
217
|
+
idLegalForm: LegalFormTypeEnum.SCI,
|
|
218
|
+
}),
|
|
219
|
+
'',
|
|
220
|
+
);
|
|
221
|
+
|
|
222
|
+
expect(data.owner).toEqual(expect.objectContaining({ quality: '', qualityWithArticle: '' }));
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
describe('getDefaultOwnerQuality', () => {
|
|
227
|
+
test.each([
|
|
228
|
+
{ idLegalForm: LegalFormTypeEnum.EURL, expected: Quality.GERANT },
|
|
229
|
+
{ idLegalForm: LegalFormTypeEnum.SARL, expected: Quality.GERANT },
|
|
230
|
+
{ idLegalForm: LegalFormTypeEnum.SASU, expected: Quality.PRESIDENT },
|
|
231
|
+
{ idLegalForm: LegalFormTypeEnum.SAS, expected: Quality.PRESIDENT },
|
|
232
|
+
{ idLegalForm: LegalFormTypeEnum.SCI, expected: null },
|
|
233
|
+
{ idLegalForm: undefined, expected: null },
|
|
234
|
+
])('should get the default quality of legal form $idLegalForm', ({ idLegalForm, expected }) => {
|
|
235
|
+
expect(getDefaultOwnerQuality(idLegalForm)).toBe(expected);
|
|
236
|
+
});
|
|
237
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { plainToInstance } from 'class-transformer';
|
|
2
1
|
import type { ClassConstructor } from 'class-transformer';
|
|
3
|
-
import { registerDecorator, validateSync } from 'class-validator';
|
|
4
2
|
import type { ValidationArguments, ValidationError, ValidationOptions } from 'class-validator';
|
|
3
|
+
import { plainToInstance } from 'class-transformer';
|
|
4
|
+
import { registerDecorator, validateSync } from 'class-validator';
|
|
5
5
|
|
|
6
6
|
function getItemErrors<T extends object>(cls: ClassConstructor<T>, item: unknown): string[] {
|
|
7
7
|
if (typeof item !== 'object' || item === null) return ['must be an object'];
|