@silexpert/core 2.0.125 → 2.0.126-beta.0
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-CvxgpFhm.d.mts} +9763 -9655
- package/dist/index-CvxgpFhm.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 +1 -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/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/SalesContractBrandClementine.ts +2 -2
- package/ts/types/Enum/SalesContractConfig.ts +1 -1
- 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/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 +11 -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 +5 -5
- package/ts/types/Interface/api/user/RegisterWebhook.ts +1 -1
- 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/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/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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TermOfPayment } from '../../Enum/EstimateInvoice.js';
|
|
2
|
+
import { ThirdPartyType } from '../../Enum/ThirdPartyType.js';
|
|
2
3
|
import { IAccount } from './IAccount.js';
|
|
3
4
|
import { ICountry } from './ICountry.js';
|
|
5
|
+
import { ISociety } from './ISociety.js';
|
|
4
6
|
import { IThirdPartyType } from './IThirdPartyType.js';
|
|
5
|
-
import { ThirdPartyType } from '../../Enum/ThirdPartyType.js';
|
|
6
|
-
import { TermOfPayment } from '../../Enum/EstimateInvoice.js';
|
|
7
7
|
|
|
8
8
|
// ThirdParty
|
|
9
9
|
export class IThirdParty {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ISociety } from './ISociety.js';
|
|
2
|
-
import { IUser } from './IUser.js';
|
|
3
1
|
import { IExercice } from './IExercice.js';
|
|
2
|
+
import { ISociety } from './ISociety.js';
|
|
4
3
|
import { ITimeTrackingSource } from './ITimeTrackingSource.js';
|
|
4
|
+
import { IUser } from './IUser.js';
|
|
5
5
|
|
|
6
6
|
// timeTraking
|
|
7
7
|
export class ITimeTracking {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
+
import { EntityType } from '../../Enum/EntityType.js';
|
|
2
|
+
import { IAccountingStatementHistory } from './IAccountingStatementHistory.js';
|
|
3
|
+
import { IAllowedIp } from './IAllowedIp.js';
|
|
4
|
+
import { IBusinessPartner } from './IBusinessPartner.js';
|
|
1
5
|
import { ICalendarEvent } from './ICalendarEvent.js';
|
|
2
|
-
import { IRole } from './IRole.js';
|
|
3
6
|
import { ICivility } from './ICivility.js';
|
|
7
|
+
import { ICollaboraterDetail } from './ICollaboraterDetail.js';
|
|
8
|
+
import { ICountry } from './ICountry.js';
|
|
4
9
|
import { IFile } from './IFile.js';
|
|
5
|
-
import { IUserSocietyPermission } from './IUserSocietyPermission.js';
|
|
6
|
-
import { IWorkingSchedule } from './IWorkingSchedule.js';
|
|
7
|
-
import { IRecontactHistory } from './IRecontactHistory.js';
|
|
8
|
-
import { IAllowedIp } from './IAllowedIp.js';
|
|
9
|
-
import { IBusinessPartner } from './IBusinessPartner.js';
|
|
10
10
|
import { ILog } from './ILog.js';
|
|
11
|
+
import { IMailAddress } from './IMailAddress.js';
|
|
12
|
+
import { IMobile } from './IMobile.js';
|
|
13
|
+
import { INationality } from './INationality.js';
|
|
11
14
|
import { INotification } from './INotification.js';
|
|
15
|
+
import { IRecontactHistory } from './IRecontactHistory.js';
|
|
16
|
+
import { IRole } from './IRole.js';
|
|
17
|
+
import { IRoleUser } from './IRoleUser.js';
|
|
12
18
|
import { ISociety } from './ISociety.js';
|
|
13
19
|
import { ITeam } from './ITeam.js';
|
|
14
|
-
import { IMobile } from './IMobile.js';
|
|
15
|
-
import { IRoleUser } from './IRoleUser.js';
|
|
16
20
|
import { ITimeRecorder } from './ITimeRecorder.js';
|
|
17
|
-
import { EntityType } from '../../Enum/EntityType.js';
|
|
18
|
-
import { IMailAddress } from './IMailAddress.js';
|
|
19
|
-
import { IAccountingStatementHistory } from './IAccountingStatementHistory.js';
|
|
20
|
-
import { ICountry } from './ICountry.js';
|
|
21
|
-
import { INationality } from './INationality.js';
|
|
22
21
|
import { IUserBrand } from './IUserBrand.js';
|
|
23
|
-
import {
|
|
24
|
-
import { IUserTimeSlot } from './IUserTimeSlot.js';
|
|
22
|
+
import { IUserSocietyPermission } from './IUserSocietyPermission.js';
|
|
25
23
|
import { IUserTeam } from './IUserTeam.js';
|
|
24
|
+
import { IUserTimeSlot } from './IUserTimeSlot.js';
|
|
25
|
+
import { IWorkingSchedule } from './IWorkingSchedule.js';
|
|
26
26
|
|
|
27
27
|
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
|
28
28
|
type isAny<T> = T | any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IVatRegime } from './IVatRegime.js';
|
|
2
|
-
import { IUser } from './IUser.js';
|
|
3
|
-
import { ISociety } from './ISociety.js';
|
|
4
1
|
import { IExercice } from './IExercice.js';
|
|
2
|
+
import { ISociety } from './ISociety.js';
|
|
3
|
+
import { IUser } from './IUser.js';
|
|
4
|
+
import { IVatRegime } from './IVatRegime.js';
|
|
5
5
|
|
|
6
6
|
export class IVatRegimeHistory {
|
|
7
7
|
id?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IUser } from './IUser.js';
|
|
2
|
-
import { IEmployee } from './IEmployee.js';
|
|
3
1
|
import { RemoteType } from '../../Enum/RemoteType.js';
|
|
2
|
+
import { IEmployee } from './IEmployee.js';
|
|
3
|
+
import { IUser } from './IUser.js';
|
|
4
4
|
|
|
5
5
|
// workingSchedule
|
|
6
6
|
export class IWorkingSchedule {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IAccountingEntry } from '../models/IAccountingEntry.js';
|
|
2
1
|
import { CerfaFormValue } from '../api/cerfa/ReadCerfa.js';
|
|
3
2
|
import { UpdatedAnnotation } from '../api/registration/ReadRegistration.js';
|
|
3
|
+
import { IAccountingEntry } from '../models/IAccountingEntry.js';
|
|
4
4
|
|
|
5
5
|
export class IRegistrationDetail {
|
|
6
6
|
idRegistration: number;
|
package/ts/utils/acdVat.ts
CHANGED
|
@@ -20,7 +20,7 @@ export function idVatToAcdVatCode(
|
|
|
20
20
|
if (vat.isVatIntracom) {
|
|
21
21
|
const intracomEntry = acdVatAccounts.find((vatAccount) => vatAccount.code === AcdVatCode.INTRACOM);
|
|
22
22
|
if (intracomEntry) {
|
|
23
|
-
return intracomEntry.code
|
|
23
|
+
return intracomEntry.code;
|
|
24
24
|
}
|
|
25
25
|
return AcdVatCode.INTRACOM;
|
|
26
26
|
}
|
|
@@ -28,7 +28,7 @@ export function idVatToAcdVatCode(
|
|
|
28
28
|
if (vat.isVatImportation) {
|
|
29
29
|
const autolEntry = acdVatAccounts.find((vatAccount) => vatAccount.code === AcdVatCode.AUTOL);
|
|
30
30
|
if (autolEntry) {
|
|
31
|
-
return autolEntry.code
|
|
31
|
+
return autolEntry.code;
|
|
32
32
|
}
|
|
33
33
|
return AcdVatCode.AUTOL;
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ export function idVatToAcdVatCode(
|
|
|
40
40
|
);
|
|
41
41
|
|
|
42
42
|
if (matchingRateEntry) {
|
|
43
|
-
return matchingRateEntry.code
|
|
43
|
+
return matchingRateEntry.code;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
package/ts/utils/bankAccount.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isDefined } from 'class-validator';
|
|
1
2
|
import dayjs from 'dayjs';
|
|
3
|
+
import { PartnerTransactionType } from '../types/Enum/PartnerTransactionType.js';
|
|
2
4
|
import { StateSynchro } from '../types/Enum/StateSynchro.js';
|
|
3
5
|
import { IBankAccount, IBankConnection } from '../types/index.js';
|
|
4
|
-
import { PartnerTransactionType } from '../types/Enum/PartnerTransactionType.js';
|
|
5
|
-
import { isDefined } from 'class-validator';
|
|
6
6
|
|
|
7
7
|
export function getSynchronizationState(
|
|
8
8
|
params: IBankAccount,
|
package/ts/utils/brands.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { get } from 'lodash-es';
|
|
2
|
+
import { BrandAnytime } from '../types/Enum/BrandAnytime.js';
|
|
2
3
|
import { BrandClementine } from '../types/Enum/BrandClementine.js';
|
|
3
|
-
import { BrandLegalstart } from '../types/Enum/BrandLegalstart.js';
|
|
4
4
|
import { BrandComptalib } from '../types/Enum/BrandComptalib.js';
|
|
5
|
+
import { BrandLegalstart } from '../types/Enum/BrandLegalstart.js';
|
|
5
6
|
import { BrandPourcentage } from '../types/Enum/BrandPourcentage.js';
|
|
6
7
|
import { BrandStatutsExpress } from '../types/Enum/BrandStatutsExpress.js';
|
|
7
|
-
import { BrandAnytime } from '../types/Enum/BrandAnytime.js';
|
|
8
|
-
import { SaleContract } from '../types/index.js';
|
|
9
8
|
import { BrandTeamsystemFacture } from '../types/Enum/BrandTeamsytemFacture.js';
|
|
9
|
+
import { SaleContract } from '../types/index.js';
|
|
10
10
|
|
|
11
11
|
export type Brand = {
|
|
12
12
|
idTypeBrand: number;
|
package/ts/utils/cerfa.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isDefined } from 'class-validator';
|
|
2
2
|
import { GlobalRegime, GlobalRegimeTypeContent } from '../types/Enum/GlobalRegime.js';
|
|
3
3
|
import { ProfitsType, FiscalRegime, TaxSystem, Code, ErrorType } from '../types/index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { ReadCerfaToComplete } from '../types/Interface/api/cerfa/ReadCerfa.js';
|
|
5
5
|
|
|
6
6
|
type ErrorParams = { code: Code; type: ErrorType; message?: string } | string;
|
|
7
7
|
|
package/ts/utils/checkup.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
2
2
|
|
|
3
|
+
import dayjs from 'dayjs';
|
|
3
4
|
import { SelectYesNoStatementBool } from '../types/Enum/Constants.js';
|
|
4
5
|
import { QualityList } from '../types/Enum/Quality.js';
|
|
5
|
-
import dayjs from 'dayjs';
|
|
6
6
|
|
|
7
7
|
export const setRangeItems = (maxRange: number) => {
|
|
8
8
|
const res = [];
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ReadVatEditing,
|
|
6
|
-
} from '../../types/Interface/api/commercialManagement/Read.js';
|
|
2
|
+
import ejs from 'ejs';
|
|
3
|
+
import { orderBy, groupBy, sumBy, round, uniq } from 'lodash-es';
|
|
4
|
+
import sanitize from 'sanitize-html';
|
|
7
5
|
import {
|
|
8
6
|
AccountingCategoryList,
|
|
9
7
|
CommercialVatMentionList,
|
|
@@ -13,25 +11,27 @@ import {
|
|
|
13
11
|
} from '../../types/Enum/CommercialManagement.js';
|
|
14
12
|
import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice.js';
|
|
15
13
|
import { Vat } from '../../types/Enum/Vat.js';
|
|
16
|
-
import { integerToFormattedAmountString, integerToFormattedAmountObject } from '../amount.js';
|
|
17
|
-
import { CommercialDocumentCommonHTML, CommercialDocumentMailHTML } from './templates/common.js';
|
|
18
|
-
import { bodyTemplate } from './templates/body.js';
|
|
19
|
-
import { productToReadProductEditing } from './product.js';
|
|
20
|
-
import { getById, vatToReadVatEditing } from './vat.js';
|
|
21
14
|
import {
|
|
22
15
|
CreateInvoiceDocument,
|
|
23
16
|
CreateMailHeader,
|
|
24
17
|
CreatePreSaleDocument,
|
|
25
18
|
ReadCommercialMailTemplate,
|
|
26
19
|
} from '../../types/index.js';
|
|
27
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
ReadCommercialDocumentTemplate,
|
|
22
|
+
ReadDocumentEditing,
|
|
23
|
+
ReadVatEditing,
|
|
24
|
+
} from '../../types/Interface/api/commercialManagement/Read.js';
|
|
25
|
+
import { integerToFormattedAmountString, integerToFormattedAmountObject } from '../amount.js';
|
|
28
26
|
import { getBrandConfig } from '../brands.js';
|
|
27
|
+
import { isHtmlEmpty } from '../isHtml.js';
|
|
29
28
|
import { internationalizationChoices, internationalizationConsistency } from './internationalization/choices.js';
|
|
30
|
-
import
|
|
29
|
+
import { productToReadProductEditing } from './product.js';
|
|
30
|
+
import { bodyTemplate } from './templates/body.js';
|
|
31
31
|
import 'dayjs/locale/fr.js';
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
32
|
+
import { CommercialDocumentCommonHTML, CommercialDocumentMailHTML } from './templates/common.js';
|
|
33
|
+
import { thirdPartyToReadThirdPartyEditing } from './thirdParty.js';
|
|
34
|
+
import { getById, vatToReadVatEditing } from './vat.js';
|
|
35
35
|
|
|
36
36
|
type brandColorType = {
|
|
37
37
|
primary: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TermOfPaymentList } from '../../../types/Enum/EstimateInvoice.js';
|
|
2
1
|
import {
|
|
3
2
|
AccountingCategoryId,
|
|
4
3
|
AccountingCategoryList,
|
|
@@ -8,6 +7,7 @@ import {
|
|
|
8
7
|
CommercialVatMentionList,
|
|
9
8
|
InvoiceLanguage,
|
|
10
9
|
} from '../../../types/Enum/CommercialManagement.js';
|
|
10
|
+
import { TermOfPaymentList } from '../../../types/Enum/EstimateInvoice.js';
|
|
11
11
|
import { InternationalizationChoicesType } from './type.js';
|
|
12
12
|
|
|
13
13
|
type InternationalizationConsistencyKey =
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isDefined } from 'class-validator';
|
|
2
|
-
import { IProductInvoice, ReadProductEditing } from '../../types/index.js';
|
|
3
|
-
import { Unit } from '../../types/Enum/Unit.js';
|
|
4
2
|
import { DiscountType, VatMarginCategyList } from '../../types/Enum/CommercialManagement.js';
|
|
5
|
-
import {
|
|
3
|
+
import { Unit } from '../../types/Enum/Unit.js';
|
|
4
|
+
import { IProductInvoice, ReadProductEditing } from '../../types/index.js';
|
|
6
5
|
import { integerToFormattedAmountString, roundAmountToInteger } from '../amount.js';
|
|
6
|
+
import { getById } from './vat.js';
|
|
7
7
|
|
|
8
8
|
export function getDiscount(product: IProductInvoice): number {
|
|
9
9
|
if (product.discount2 === null || product.discount2 === undefined || product.discount2 <= 0) return 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
import { RecurrenceType } from '../../types/Enum/RecurrenceType.js';
|
|
3
|
-
import quarterOfYear from 'dayjs/plugin/quarterOfYear.js';
|
|
4
2
|
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore.js';
|
|
3
|
+
import quarterOfYear from 'dayjs/plugin/quarterOfYear.js';
|
|
4
|
+
import { RecurrenceType } from '../../types/Enum/RecurrenceType.js';
|
|
5
5
|
|
|
6
6
|
dayjs.extend(quarterOfYear);
|
|
7
7
|
dayjs.extend(isSameOrBefore);
|
|
@@ -16,7 +16,7 @@ export function transformModelWithCharcodeToString(datas: InfoToUseType, templat
|
|
|
16
16
|
|
|
17
17
|
const charcodesFound: RegExpMatchArray | [] = template.match(reg) ?? [];
|
|
18
18
|
const charcodesFoundWithoutBrackets: string[] = [];
|
|
19
|
-
charcodesFound.forEach((f) => charcodesFoundWithoutBrackets.push(
|
|
19
|
+
charcodesFound.forEach((f) => charcodesFoundWithoutBrackets.push(f.replace(/[\[\]']+/g, '')));
|
|
20
20
|
|
|
21
21
|
// we get the list of matching key template with key data
|
|
22
22
|
const charcodesDetected = emailTemplateVariableAffiliatedData.filter((data) =>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice.js';
|
|
2
1
|
import { DiscountType, FontIds } from '../../../types/Enum/CommercialManagement.js';
|
|
2
|
+
import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice.js';
|
|
3
3
|
|
|
4
4
|
export class CommercialDocumentCommonHTML {
|
|
5
5
|
header = `<style>html {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isDefined } from 'class-validator';
|
|
2
|
-
import { IThirdParty, ReadThirdPartyEditing } from '../../types/index.js';
|
|
3
2
|
import { CountryList } from '../../types/Enum/Country.js';
|
|
3
|
+
import { IThirdParty, ReadThirdPartyEditing } from '../../types/index.js';
|
|
4
4
|
|
|
5
5
|
export function thirdPartyToReadThirdPartyEditing(payload: IThirdParty): ReadThirdPartyEditing {
|
|
6
6
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sumBy } from 'lodash-es';
|
|
2
2
|
import { Vat, VatType } from '../../types/Enum/Vat.js';
|
|
3
|
-
import { integerToFormattedAmountString, roundAmountToInteger } from '../amount.js';
|
|
4
3
|
import { ReadProductEditing, ReadVatEditing } from '../../types/index.js';
|
|
4
|
+
import { integerToFormattedAmountString, roundAmountToInteger } from '../amount.js';
|
|
5
5
|
|
|
6
6
|
export function getAmount(amount: number | null, vatValue: number): number {
|
|
7
7
|
const _amount = amount ?? 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ICommercialOffer } from '../types/index.js';
|
|
2
|
-
import { CommercialOfferTypeType, CommercialOfferTypeDetail } from '../types/Enum/CommercialOfferType.js';
|
|
3
|
-
import { PrestationDetail } from '../types/Enum/PrestationType.js';
|
|
4
|
-
import { ComptaType } from '../types/Enum/ComptaType.js';
|
|
5
1
|
import dayjs from 'dayjs';
|
|
6
2
|
import isBetween from 'dayjs/plugin/isBetween.js';
|
|
3
|
+
import { CommercialOfferTypeType, CommercialOfferTypeDetail } from '../types/Enum/CommercialOfferType.js';
|
|
4
|
+
import { ComptaType } from '../types/Enum/ComptaType.js';
|
|
5
|
+
import { PrestationDetail } from '../types/Enum/PrestationType.js';
|
|
6
|
+
import { ICommercialOffer } from '../types/index.js';
|
|
7
7
|
|
|
8
8
|
dayjs.extend(isBetween);
|
|
9
9
|
|
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
|
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 {
|