@silexpert/core 1.3.158-18 → 1.3.158-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/resources/BalanceSheet.d.ts +4 -2
- package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/api/resources/BalanceSheet.js +2 -3
- package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/cjs/api/resources/Card.d.ts +4 -2
- package/dist/cjs/api/resources/Card.d.ts.map +1 -1
- package/dist/cjs/api/resources/Card.js +1 -0
- package/dist/cjs/api/resources/Card.js.map +1 -1
- package/dist/cjs/api/resources/Comment.d.ts +2 -2
- package/dist/cjs/api/resources/Comment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Comment.js.map +1 -1
- package/dist/cjs/api/resources/GeneralLedger.d.ts +1 -2
- package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
- package/dist/cjs/api/resources/GeneralLedger.js +0 -9
- package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
- package/dist/cjs/api/resources/Report.d.ts +4 -4
- package/dist/cjs/api/resources/Report.d.ts.map +1 -1
- package/dist/cjs/api/resources/Report.js +1 -12
- package/dist/cjs/api/resources/Report.js.map +1 -1
- package/dist/cjs/api/resources/Revenue.d.ts +0 -8
- package/dist/cjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/cjs/api/resources/Revenue.js +0 -6
- package/dist/cjs/api/resources/Revenue.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/AutomaticRegistration.d.ts +0 -7
- package/dist/cjs/types/Enum/AutomaticRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Enum/AutomaticRegistration.js +1 -39
- package/dist/cjs/types/Enum/AutomaticRegistration.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts +0 -7
- package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +0 -61
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +0 -6
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +0 -10
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +2 -15
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/IncomeStatement.d.ts +0 -7
- package/dist/cjs/types/Enum/IncomeStatement.d.ts.map +1 -1
- package/dist/cjs/types/Enum/IncomeStatement.js +0 -39
- package/dist/cjs/types/Enum/IncomeStatement.js.map +1 -1
- package/dist/cjs/types/Enum/LetterType.js +2 -2
- package/dist/cjs/types/Enum/LetterType.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +6 -6
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts +1 -2
- package/dist/cjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.js +0 -1
- package/dist/cjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/cjs/types/Enum/ReportService.d.ts +1 -4
- package/dist/cjs/types/Enum/ReportService.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReportService.js +18 -39
- package/dist/cjs/types/Enum/ReportService.js.map +1 -1
- package/dist/cjs/types/Enum/ReportSource.d.ts +1 -2
- package/dist/cjs/types/Enum/ReportSource.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReportSource.js +0 -5
- package/dist/cjs/types/Enum/ReportSource.js.map +1 -1
- package/dist/cjs/types/Enum/ReportType.d.ts +1 -9
- package/dist/cjs/types/Enum/ReportType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReportType.js +1 -41
- package/dist/cjs/types/Enum/ReportType.js.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.js +0 -33
- package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts +0 -3
- package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/Query.js +1 -11
- package/dist/cjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +0 -2
- package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js +12 -12
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +1 -2
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.js +0 -6
- package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +0 -4
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.d.ts +0 -1
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.js +0 -6
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +0 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +0 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +0 -9
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -30
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts +0 -1
- package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js +0 -9
- package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.d.ts +1 -4
- package/dist/cjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.js +1 -23
- package/dist/cjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/CreateReport.d.ts +0 -2
- package/dist/cjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/CreateReport.js +1 -10
- package/dist/cjs/types/Interface/api/report/CreateReport.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/ExternalReport.d.ts +1 -1
- package/dist/cjs/types/Interface/api/report/ExternalReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/ExternalReport.js +5 -5
- package/dist/cjs/types/Interface/api/report/ExternalReport.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.d.ts +0 -4
- package/dist/cjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.js +0 -20
- package/dist/cjs/types/Interface/api/report/QueryReports.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts +6 -14
- package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/UpdateReport.js +0 -120
- package/dist/cjs/types/Interface/api/report/UpdateReport.js.map +1 -1
- package/dist/{mjs/types/Interface/api/revenue → cjs/types/Interface/api}/revenueMovement.d.ts +10 -11
- package/dist/cjs/types/Interface/api/revenueMovement.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{automaticRegistration/Read.js → revenueMovement.js} +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -0
- package/dist/{mjs/types/Interface/api/revenue → cjs/types/Interface/api}/revenueSnapshot.d.ts +1 -2
- package/dist/cjs/types/Interface/api/revenueSnapshot.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/revenueSnapshot.js.map +1 -0
- package/dist/{mjs/types/Interface/api/revenue → cjs/types/Interface/api}/revenueSnapshotGenerate.d.ts +1 -0
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{revenue/revenueSnapshotGenerate.js → revenueSnapshotGenerate.js} +12 -3
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -0
- package/dist/cjs/types/Interface/api/society/ReadSociety.d.ts +0 -1
- package/dist/cjs/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/ReadSociety.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts +0 -4
- package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/RegisterProspect.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/RegisterWebhook.d.ts +0 -6
- package/dist/cjs/types/Interface/api/user/RegisterWebhook.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/RegisterWebhook.js +0 -22
- package/dist/cjs/types/Interface/api/user/RegisterWebhook.js.map +1 -1
- package/dist/cjs/types/Interface/models/IImmobilization.d.ts +0 -1
- package/dist/cjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IImmobilization.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.d.ts +0 -1
- package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/cjs/types/Interface/models/IReport.d.ts +0 -3
- package/dist/cjs/types/Interface/models/IReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IReport.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/index.d.ts +6 -8
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +7 -8
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/checkup.d.ts +20 -0
- package/dist/cjs/utils/checkup.d.ts.map +1 -1
- package/dist/cjs/utils/checkup.js +1 -0
- package/dist/cjs/utils/checkup.js.map +1 -1
- package/dist/cjs/utils/exercice.d.ts +1 -8
- package/dist/cjs/utils/exercice.d.ts.map +1 -1
- package/dist/cjs/utils/exercice.js +1 -11
- package/dist/cjs/utils/exercice.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +4 -9
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century25.js +53 -53
- package/dist/cjs/utils/vat/3517/century25.js.map +1 -1
- package/dist/mjs/api/resources/BalanceSheet.d.ts +4 -2
- package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/api/resources/BalanceSheet.js +2 -3
- package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/mjs/api/resources/Card.d.ts +4 -2
- package/dist/mjs/api/resources/Card.d.ts.map +1 -1
- package/dist/mjs/api/resources/Card.js +1 -0
- package/dist/mjs/api/resources/Card.js.map +1 -1
- package/dist/mjs/api/resources/Comment.d.ts +2 -2
- package/dist/mjs/api/resources/Comment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Comment.js.map +1 -1
- package/dist/mjs/api/resources/GeneralLedger.d.ts +1 -2
- package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
- package/dist/mjs/api/resources/GeneralLedger.js +0 -9
- package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
- package/dist/mjs/api/resources/Report.d.ts +4 -4
- package/dist/mjs/api/resources/Report.d.ts.map +1 -1
- package/dist/mjs/api/resources/Report.js +1 -12
- package/dist/mjs/api/resources/Report.js.map +1 -1
- package/dist/mjs/api/resources/Revenue.d.ts +0 -8
- package/dist/mjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/mjs/api/resources/Revenue.js +0 -6
- package/dist/mjs/api/resources/Revenue.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/AutomaticRegistration.d.ts +0 -7
- package/dist/mjs/types/Enum/AutomaticRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Enum/AutomaticRegistration.js +0 -38
- package/dist/mjs/types/Enum/AutomaticRegistration.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts +0 -7
- package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +0 -61
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +0 -6
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +0 -10
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +1 -14
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/IncomeStatement.d.ts +0 -7
- package/dist/mjs/types/Enum/IncomeStatement.d.ts.map +1 -1
- package/dist/mjs/types/Enum/IncomeStatement.js +0 -39
- package/dist/mjs/types/Enum/IncomeStatement.js.map +1 -1
- package/dist/mjs/types/Enum/LetterType.js +2 -2
- package/dist/mjs/types/Enum/LetterType.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +6 -6
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts +1 -2
- package/dist/mjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.js +0 -1
- package/dist/mjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/mjs/types/Enum/ReportService.d.ts +1 -4
- package/dist/mjs/types/Enum/ReportService.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReportService.js +18 -39
- package/dist/mjs/types/Enum/ReportService.js.map +1 -1
- package/dist/mjs/types/Enum/ReportSource.d.ts +1 -2
- package/dist/mjs/types/Enum/ReportSource.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReportSource.js +0 -5
- package/dist/mjs/types/Enum/ReportSource.js.map +1 -1
- package/dist/mjs/types/Enum/ReportType.d.ts +1 -9
- package/dist/mjs/types/Enum/ReportType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReportType.js +1 -41
- package/dist/mjs/types/Enum/ReportType.js.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.js +0 -33
- package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts +0 -3
- package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/Query.js +0 -10
- package/dist/mjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +0 -2
- package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js +1 -1
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +1 -2
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.js +1 -8
- package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +0 -4
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.d.ts +0 -1
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.js +0 -7
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +0 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +0 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +0 -9
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -34
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts +0 -1
- package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js +1 -11
- package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.d.ts +1 -4
- package/dist/mjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.js +2 -25
- package/dist/mjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/CreateReport.d.ts +0 -2
- package/dist/mjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/CreateReport.js +1 -12
- package/dist/mjs/types/Interface/api/report/CreateReport.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/ExternalReport.d.ts +1 -1
- package/dist/mjs/types/Interface/api/report/ExternalReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/ExternalReport.js +7 -5
- package/dist/mjs/types/Interface/api/report/ExternalReport.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.d.ts +0 -4
- package/dist/mjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.js +1 -23
- package/dist/mjs/types/Interface/api/report/QueryReports.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts +6 -14
- package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/UpdateReport.js +1 -135
- package/dist/mjs/types/Interface/api/report/UpdateReport.js.map +1 -1
- package/dist/{cjs/types/Interface/api/revenue → mjs/types/Interface/api}/revenueMovement.d.ts +10 -11
- package/dist/mjs/types/Interface/api/revenueMovement.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/revenueMovement.js +2 -0
- package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -0
- package/dist/{cjs/types/Interface/api/revenue → mjs/types/Interface/api}/revenueSnapshot.d.ts +1 -2
- package/dist/mjs/types/Interface/api/revenueSnapshot.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/revenueSnapshot.js.map +1 -0
- package/dist/{cjs/types/Interface/api/revenue → mjs/types/Interface/api}/revenueSnapshotGenerate.d.ts +1 -0
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{revenue/revenueSnapshotGenerate.js → revenueSnapshotGenerate.js} +14 -11
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -0
- package/dist/mjs/types/Interface/api/society/ReadSociety.d.ts +0 -1
- package/dist/mjs/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/ReadSociety.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts +0 -4
- package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/RegisterProspect.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/RegisterWebhook.d.ts +0 -6
- package/dist/mjs/types/Interface/api/user/RegisterWebhook.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/RegisterWebhook.js +1 -26
- package/dist/mjs/types/Interface/api/user/RegisterWebhook.js.map +1 -1
- package/dist/mjs/types/Interface/models/IImmobilization.d.ts +0 -1
- package/dist/mjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IImmobilization.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.d.ts +0 -1
- package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/mjs/types/Interface/models/IReport.d.ts +0 -3
- package/dist/mjs/types/Interface/models/IReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IReport.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/index.d.ts +6 -8
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +7 -8
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/checkup.d.ts +20 -0
- package/dist/mjs/utils/checkup.d.ts.map +1 -1
- package/dist/mjs/utils/checkup.js +1 -0
- package/dist/mjs/utils/checkup.js.map +1 -1
- package/dist/mjs/utils/exercice.d.ts +1 -8
- package/dist/mjs/utils/exercice.d.ts.map +1 -1
- package/dist/mjs/utils/exercice.js +1 -10
- package/dist/mjs/utils/exercice.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +1 -3
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century25.js +53 -53
- package/dist/mjs/utils/vat/3517/century25.js.map +1 -1
- package/package.json +16 -16
- package/ts/api/resources/BalanceSheet.ts +2 -4
- package/ts/api/resources/Card.ts +3 -2
- package/ts/api/resources/Comment.ts +2 -2
- package/ts/api/resources/GeneralLedger.ts +0 -11
- package/ts/api/resources/Report.ts +5 -15
- package/ts/api/resources/Revenue.ts +0 -8
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/AutomaticRegistration.ts +0 -45
- package/ts/types/Enum/BalanceSheet.ts +0 -69
- package/ts/types/Enum/BrandClementine.ts +0 -6
- package/ts/types/Enum/Card.ts +1 -15
- package/ts/types/Enum/IncomeStatement.ts +0 -47
- package/ts/types/Enum/LetterType.ts +2 -2
- package/ts/types/Enum/PrestationType.ts +6 -6
- package/ts/types/Enum/RegistrationSource.ts +0 -1
- package/ts/types/Enum/ReportService.ts +3 -24
- package/ts/types/Enum/ReportSource.ts +0 -5
- package/ts/types/Enum/ReportType.ts +1 -41
- package/ts/types/Enum/TaskResponseType.ts +0 -33
- package/ts/types/Interface/api/balanceSheet/Query.ts +0 -8
- package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +0 -3
- package/ts/types/Interface/api/brevo/EmailSendOptions.dto.ts +1 -1
- package/ts/types/Interface/api/card/UpdateCard.ts +1 -6
- package/ts/types/Interface/api/config/ConfigType.ts +0 -1
- package/ts/types/Interface/api/gedFile/createFileAndGed.ts +0 -5
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +0 -1
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +0 -1
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +1 -26
- package/ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts +1 -9
- package/ts/types/Interface/api/payment/Params.ts +3 -20
- package/ts/types/Interface/api/report/CreateReport.ts +1 -8
- package/ts/types/Interface/api/report/ExternalReport.ts +4 -4
- package/ts/types/Interface/api/report/QueryReports.ts +1 -17
- package/ts/types/Interface/api/report/UpdateReport.ts +6 -86
- package/ts/types/Interface/api/revenueMovement.ts +113 -0
- package/ts/types/Interface/api/{revenue/revenueSnapshot.ts → revenueSnapshot.ts} +1 -3
- package/ts/types/Interface/api/{revenue/revenueSnapshotGenerate.ts → revenueSnapshotGenerate.ts} +11 -11
- package/ts/types/Interface/api/society/ReadSociety.ts +0 -1
- package/ts/types/Interface/api/user/RegisterProspect.ts +0 -4
- package/ts/types/Interface/api/user/RegisterWebhook.ts +1 -19
- package/ts/types/Interface/models/IImmobilization.ts +0 -1
- package/ts/types/Interface/models/IPayment.ts +0 -1
- package/ts/types/Interface/models/IReport.ts +0 -3
- package/ts/types/Interface/models/ISociety.ts +1 -1
- package/ts/types/index.ts +9 -8
- package/ts/utils/checkup.ts +1 -0
- package/ts/utils/exercice.ts +1 -11
- package/ts/utils/prestation.ts +1 -3
- package/ts/utils/vat/3517/century25.ts +53 -53
- package/dist/cjs/api/resources/AutomaticRegistration.d.ts +0 -6
- package/dist/cjs/api/resources/AutomaticRegistration.d.ts.map +0 -1
- package/dist/cjs/api/resources/AutomaticRegistration.js +0 -22
- package/dist/cjs/api/resources/AutomaticRegistration.js.map +0 -1
- package/dist/cjs/types/Enum/TransactionRangeFilter.d.ts +0 -7
- package/dist/cjs/types/Enum/TransactionRangeFilter.d.ts.map +0 -1
- package/dist/cjs/types/Enum/TransactionRangeFilter.js +0 -11
- package/dist/cjs/types/Enum/TransactionRangeFilter.js.map +0 -1
- package/dist/cjs/types/Interface/api/automaticRegistration/Query.d.ts +0 -6
- package/dist/cjs/types/Interface/api/automaticRegistration/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/automaticRegistration/Query.js +0 -36
- package/dist/cjs/types/Interface/api/automaticRegistration/Query.js.map +0 -1
- package/dist/cjs/types/Interface/api/automaticRegistration/Read.d.ts +0 -9
- package/dist/cjs/types/Interface/api/automaticRegistration/Read.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/automaticRegistration/Read.js.map +0 -1
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.js +0 -275
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.js.map +0 -1
- package/dist/cjs/types/Interface/api/revenue/revenueSnapshot.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/revenue/revenueSnapshot.js.map +0 -1
- package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/revenue/revenueSnapshotGenerate.js.map +0 -1
- package/dist/mjs/api/resources/AutomaticRegistration.d.ts +0 -6
- package/dist/mjs/api/resources/AutomaticRegistration.d.ts.map +0 -1
- package/dist/mjs/api/resources/AutomaticRegistration.js +0 -7
- package/dist/mjs/api/resources/AutomaticRegistration.js.map +0 -1
- package/dist/mjs/types/Enum/TransactionRangeFilter.d.ts +0 -7
- package/dist/mjs/types/Enum/TransactionRangeFilter.d.ts.map +0 -1
- package/dist/mjs/types/Enum/TransactionRangeFilter.js +0 -8
- package/dist/mjs/types/Enum/TransactionRangeFilter.js.map +0 -1
- package/dist/mjs/types/Interface/api/automaticRegistration/Query.d.ts +0 -6
- package/dist/mjs/types/Interface/api/automaticRegistration/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/automaticRegistration/Query.js +0 -35
- package/dist/mjs/types/Interface/api/automaticRegistration/Query.js.map +0 -1
- package/dist/mjs/types/Interface/api/automaticRegistration/Read.d.ts +0 -9
- package/dist/mjs/types/Interface/api/automaticRegistration/Read.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/automaticRegistration/Read.js +0 -2
- package/dist/mjs/types/Interface/api/automaticRegistration/Read.js.map +0 -1
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.js +0 -304
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.js.map +0 -1
- package/dist/mjs/types/Interface/api/revenue/revenueSnapshot.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/revenue/revenueSnapshot.js.map +0 -1
- package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/revenue/revenueSnapshotGenerate.js.map +0 -1
- package/ts/api/resources/AutomaticRegistration.ts +0 -8
- package/ts/types/Enum/TransactionRangeFilter.ts +0 -6
- package/ts/types/Interface/api/automaticRegistration/Query.ts +0 -19
- package/ts/types/Interface/api/automaticRegistration/Read.ts +0 -8
- package/ts/types/Interface/api/revenue/revenueMovement.ts +0 -257
- /package/dist/cjs/types/Interface/api/{revenue/revenueSnapshot.js → revenueSnapshot.js} +0 -0
- /package/dist/mjs/types/Interface/api/{revenue/revenueSnapshot.js → revenueSnapshot.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString, Matches
|
|
1
|
+
import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString, Matches } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
@@ -9,10 +9,9 @@ export class CreatePaymentsAutoBilling {
|
|
|
9
9
|
idSociety?: number;
|
|
10
10
|
}
|
|
11
11
|
export class CreatePaymentsRebilling {
|
|
12
|
-
@
|
|
13
|
-
@IsOptional()
|
|
12
|
+
@ApiProperty()
|
|
14
13
|
@IsInt()
|
|
15
|
-
idSociety
|
|
14
|
+
idSociety: number;
|
|
16
15
|
|
|
17
16
|
@ApiPropertyOptional()
|
|
18
17
|
@IsOptional()
|
|
@@ -26,17 +25,6 @@ export class CreatePaymentsRebilling {
|
|
|
26
25
|
@IsOptional()
|
|
27
26
|
@IsInt()
|
|
28
27
|
nbExercicesToGenerate?: number = 1;
|
|
29
|
-
|
|
30
|
-
@ApiProperty({ default: 10 })
|
|
31
|
-
@IsInt()
|
|
32
|
-
@Min(1)
|
|
33
|
-
limit?: number = 10;
|
|
34
|
-
|
|
35
|
-
@ApiPropertyOptional({ default: false })
|
|
36
|
-
@IsOptional()
|
|
37
|
-
@IsBoolean()
|
|
38
|
-
@ToBoolean()
|
|
39
|
-
debug?: boolean = false;
|
|
40
28
|
}
|
|
41
29
|
|
|
42
30
|
export class UpdateCollectable {
|
|
@@ -127,9 +115,4 @@ export class UpdatePayment {
|
|
|
127
115
|
@IsOptional()
|
|
128
116
|
@IsDate()
|
|
129
117
|
datePayment?: Date;
|
|
130
|
-
|
|
131
|
-
@ApiPropertyOptional()
|
|
132
|
-
@IsOptional()
|
|
133
|
-
@IsDate()
|
|
134
|
-
creditLossAt?: Date;
|
|
135
118
|
}
|
|
@@ -4,12 +4,9 @@ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
|
4
4
|
import { TFile } from '../file/TFile';
|
|
5
5
|
|
|
6
6
|
export class CreateReport implements IReport {
|
|
7
|
-
@ApiProperty()
|
|
8
|
-
@IsInt()
|
|
9
|
-
idSource: number;
|
|
10
|
-
|
|
11
7
|
@ApiPropertyOptional()
|
|
12
8
|
@IsOptional()
|
|
9
|
+
@IsInt({ each: true })
|
|
13
10
|
idReportType?: number[];
|
|
14
11
|
|
|
15
12
|
@ApiPropertyOptional()
|
|
@@ -71,10 +68,6 @@ export class CreateReport implements IReport {
|
|
|
71
68
|
@IsOptional()
|
|
72
69
|
letterDate?: Date;
|
|
73
70
|
|
|
74
|
-
@ApiPropertyOptional()
|
|
75
|
-
@IsOptional()
|
|
76
|
-
receivedAt?: Date;
|
|
77
|
-
|
|
78
71
|
@ApiPropertyOptional()
|
|
79
72
|
@IsOptional()
|
|
80
73
|
receivedFile?: TFile;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsEnum, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { IssueTypeEnum } from '../../../Enum/IssueType';
|
|
4
|
-
import { ReportTypeEnum } from '../../../Enum/ReportType';
|
|
4
|
+
//import { ReportTypeEnum } from '../../../Enum/ReportType';
|
|
5
5
|
import { TFile } from '../file/TFile';
|
|
6
6
|
|
|
7
7
|
export class CreateExternalReport {
|
|
@@ -13,9 +13,9 @@ export class CreateExternalReport {
|
|
|
13
13
|
|
|
14
14
|
@ApiPropertyOptional()
|
|
15
15
|
@IsOptional()
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
idReportType?: number;
|
|
16
|
+
//@IsInt({ each: true })
|
|
17
|
+
//@IsEnum(ReportTypeEnum)
|
|
18
|
+
idReportType?: number[];
|
|
19
19
|
|
|
20
20
|
@ApiProperty()
|
|
21
21
|
@IsNumber()
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { IsBoolean,
|
|
1
|
+
import { IsBoolean, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
5
5
|
export class QueryReports {
|
|
6
|
-
@ApiPropertyOptional()
|
|
7
|
-
idSource?: number[];
|
|
8
|
-
|
|
9
6
|
@ApiPropertyOptional()
|
|
10
7
|
idReportType?: number[];
|
|
11
8
|
|
|
@@ -15,9 +12,6 @@ export class QueryReports {
|
|
|
15
12
|
@ApiPropertyOptional()
|
|
16
13
|
idService?: number;
|
|
17
14
|
|
|
18
|
-
@ApiPropertyOptional()
|
|
19
|
-
idUserConcerned?: number;
|
|
20
|
-
|
|
21
15
|
@ApiPropertyOptional()
|
|
22
16
|
idServiceConcerned?: number;
|
|
23
17
|
|
|
@@ -41,14 +35,4 @@ export class QueryReports {
|
|
|
41
35
|
@IsBoolean()
|
|
42
36
|
@ToBoolean()
|
|
43
37
|
onlyClient?: boolean;
|
|
44
|
-
|
|
45
|
-
@ApiPropertyOptional()
|
|
46
|
-
@IsOptional()
|
|
47
|
-
@IsDateString()
|
|
48
|
-
declare startDate?: string;
|
|
49
|
-
|
|
50
|
-
@ApiPropertyOptional()
|
|
51
|
-
@IsOptional()
|
|
52
|
-
@IsDateString()
|
|
53
|
-
declare endDate?: string;
|
|
54
38
|
}
|
|
@@ -1,93 +1,13 @@
|
|
|
1
|
-
import { IReport } from '../../..';
|
|
2
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import { IsBoolean, IsDateString, IsInt, IsOptional, IsString } from 'class-validator';
|
|
4
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
1
|
+
import { IReport, IUser } from '../../..';
|
|
5
2
|
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@IsInt()
|
|
10
|
-
idSource: number;
|
|
11
|
-
|
|
12
|
-
@ApiPropertyOptional()
|
|
13
|
-
@IsOptional()
|
|
14
|
-
idReportType?: number[];
|
|
15
|
-
|
|
16
|
-
@ApiPropertyOptional()
|
|
17
|
-
@IsOptional()
|
|
18
|
-
@IsInt()
|
|
19
|
-
idSociety?: number;
|
|
20
|
-
|
|
21
|
-
@ApiPropertyOptional()
|
|
22
|
-
@IsOptional()
|
|
23
|
-
@IsInt()
|
|
24
|
-
idFile?: number;
|
|
25
|
-
|
|
26
|
-
@ApiPropertyOptional()
|
|
27
|
-
@IsOptional()
|
|
28
|
-
@IsInt()
|
|
29
|
-
idUser: number;
|
|
30
|
-
|
|
31
|
-
@ApiPropertyOptional()
|
|
32
|
-
@IsOptional()
|
|
33
|
-
@IsInt()
|
|
34
|
-
idServiceConcerned?: number;
|
|
35
|
-
|
|
36
|
-
@ApiPropertyOptional()
|
|
37
|
-
@IsOptional()
|
|
38
|
-
@IsString()
|
|
39
|
-
comment: string;
|
|
40
|
-
|
|
41
|
-
@ApiPropertyOptional()
|
|
42
|
-
@IsOptional()
|
|
43
|
-
@IsString()
|
|
44
|
-
search?: string;
|
|
45
|
-
|
|
46
|
-
@ApiPropertyOptional()
|
|
47
|
-
@IsOptional()
|
|
48
|
-
@IsBoolean()
|
|
49
|
-
@ToBoolean()
|
|
3
|
+
export interface UpdateReport extends IReport {
|
|
4
|
+
comment?: string;
|
|
5
|
+
note?: string;
|
|
50
6
|
declareSoupcons?: boolean;
|
|
51
|
-
|
|
52
|
-
@ApiPropertyOptional()
|
|
53
|
-
@IsOptional()
|
|
54
|
-
@IsInt()
|
|
55
7
|
state?: number;
|
|
56
|
-
|
|
57
|
-
@ApiPropertyOptional()
|
|
58
|
-
@IsOptional()
|
|
59
|
-
@IsBoolean()
|
|
60
|
-
@ToBoolean()
|
|
61
8
|
informerjlb?: boolean;
|
|
62
|
-
|
|
63
|
-
@ApiPropertyOptional()
|
|
64
|
-
@IsOptional()
|
|
65
|
-
@IsInt()
|
|
66
9
|
ressenti?: number;
|
|
67
|
-
|
|
68
|
-
@ApiPropertyOptional()
|
|
69
|
-
@IsOptional()
|
|
70
|
-
@IsInt()
|
|
71
10
|
action?: number;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
@IsOptional()
|
|
75
|
-
@IsBoolean()
|
|
76
|
-
@ToBoolean()
|
|
77
|
-
processed?: boolean;
|
|
78
|
-
|
|
79
|
-
@ApiPropertyOptional()
|
|
80
|
-
@IsOptional()
|
|
81
|
-
@IsDateString()
|
|
82
|
-
letterDate?: Date;
|
|
83
|
-
|
|
84
|
-
@ApiPropertyOptional()
|
|
85
|
-
@IsOptional()
|
|
86
|
-
@IsDateString()
|
|
87
|
-
receivedAt?: Date;
|
|
88
|
-
|
|
89
|
-
@ApiPropertyOptional()
|
|
90
|
-
@IsOptional()
|
|
91
|
-
@IsString()
|
|
92
|
-
token?: string;
|
|
11
|
+
idReport?: number;
|
|
12
|
+
societyUsers?: IUser[];
|
|
93
13
|
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { RevenueMovementType } from '../../Enum/Revenue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* DTO pour créer un mouvement de revenu
|
|
5
|
+
*/
|
|
6
|
+
export interface ICreateRevenueMovementRequest {
|
|
7
|
+
type: RevenueMovementType;
|
|
8
|
+
idSociety: number;
|
|
9
|
+
idExercice?: number;
|
|
10
|
+
idPrestation?: number;
|
|
11
|
+
idTerminationList?: number;
|
|
12
|
+
idChurnMovement?: number;
|
|
13
|
+
amount: number;
|
|
14
|
+
mrr: number;
|
|
15
|
+
arr: number;
|
|
16
|
+
movementDate: Date;
|
|
17
|
+
description?: string;
|
|
18
|
+
metadata?: Record<string, any>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* DTO pour mettre à jour un mouvement de revenu
|
|
23
|
+
*/
|
|
24
|
+
export interface IUpdateRevenueMovementRequest {
|
|
25
|
+
type?: RevenueMovementType;
|
|
26
|
+
idTerminationList?: number;
|
|
27
|
+
idChurnMovement?: number;
|
|
28
|
+
amount?: number;
|
|
29
|
+
mrr?: number;
|
|
30
|
+
arr?: number;
|
|
31
|
+
movementDate?: Date | string;
|
|
32
|
+
description?: string;
|
|
33
|
+
metadata?: Record<string, any>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Filtres pour récupérer les mouvements de revenu
|
|
38
|
+
*/
|
|
39
|
+
export interface IGetRevenueMovementsRequest {
|
|
40
|
+
idSociety?: number;
|
|
41
|
+
idExercice?: number;
|
|
42
|
+
idPrestation?: number;
|
|
43
|
+
idTerminationList?: number;
|
|
44
|
+
idChurnMovement?: number;
|
|
45
|
+
type?: RevenueMovementType[];
|
|
46
|
+
startDate?: Date | string;
|
|
47
|
+
endDate?: Date | string;
|
|
48
|
+
page?: number;
|
|
49
|
+
limit?: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Réponse paginée pour les mouvements de revenu
|
|
54
|
+
*/
|
|
55
|
+
export interface IGetRevenueMovementsResponse {
|
|
56
|
+
movements: any[]; // IRevenueMovement[]
|
|
57
|
+
total: number;
|
|
58
|
+
page: number;
|
|
59
|
+
limit: number;
|
|
60
|
+
totalPages: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* DTO pour générer un snapshot de revenu
|
|
65
|
+
*/
|
|
66
|
+
export interface IGenerateSnapshotRequest {
|
|
67
|
+
date?: string;
|
|
68
|
+
idSociety?: number;
|
|
69
|
+
idExercice?: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* DTO pour générer tous les snapshots de revenu
|
|
74
|
+
*/
|
|
75
|
+
export interface IGenerateAllSnapshotsRequest {
|
|
76
|
+
date?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* DTO pour gérer la rétroactivité des mouvements de revenu
|
|
81
|
+
*/
|
|
82
|
+
export interface IManageRetroactivityRequest {
|
|
83
|
+
idSociety: number;
|
|
84
|
+
idExercice?: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Réponse pour la gestion de la rétroactivité
|
|
89
|
+
*/
|
|
90
|
+
export interface IManageRetroactivityResponse {
|
|
91
|
+
idSociety: number;
|
|
92
|
+
idExercice: number;
|
|
93
|
+
exerciceStartDate: Date;
|
|
94
|
+
exerciceEndDate: Date;
|
|
95
|
+
movementsCreated: {
|
|
96
|
+
bookings: number;
|
|
97
|
+
churns: number;
|
|
98
|
+
recognitions: number;
|
|
99
|
+
provisions: number;
|
|
100
|
+
mothballingBookings: number;
|
|
101
|
+
};
|
|
102
|
+
prestationsProcessed: number;
|
|
103
|
+
monthsProcessed: number;
|
|
104
|
+
details: {
|
|
105
|
+
type: string;
|
|
106
|
+
idPrestation?: number;
|
|
107
|
+
prestationName?: string;
|
|
108
|
+
date: Date;
|
|
109
|
+
amount: number;
|
|
110
|
+
mrr: number;
|
|
111
|
+
arr: number;
|
|
112
|
+
}[];
|
|
113
|
+
}
|
package/ts/types/Interface/api/{revenue/revenueSnapshotGenerate.ts → revenueSnapshotGenerate.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiProperty
|
|
2
|
-
import { IsOptional, IsString, IsNumber
|
|
1
|
+
import { ApiProperty } from '../../../utils';
|
|
2
|
+
import { IsOptional, IsString, IsNumber } from 'class-validator';
|
|
3
3
|
|
|
4
4
|
export class GenerateSnapshot {
|
|
5
5
|
@ApiProperty({
|
|
@@ -42,20 +42,20 @@ export class GenerateAllSnapshots {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export class ManageRetroactivity {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
@ApiProperty({
|
|
46
|
+
required: true,
|
|
47
|
+
description: 'ID de la société',
|
|
48
|
+
example: 60170,
|
|
49
|
+
})
|
|
50
|
+
@IsNumber()
|
|
51
|
+
idSociety: number;
|
|
52
52
|
|
|
53
|
-
@
|
|
53
|
+
@ApiProperty({
|
|
54
54
|
required: false,
|
|
55
55
|
description: "ID de l'exercice (si non fourni, utilise l'exercice courant)",
|
|
56
56
|
example: 123456,
|
|
57
57
|
})
|
|
58
58
|
@IsOptional()
|
|
59
|
-
@
|
|
59
|
+
@IsNumber()
|
|
60
60
|
idExercice?: number;
|
|
61
61
|
}
|
|
@@ -15,7 +15,6 @@ import { Civility } from '../../../Enum/Civility';
|
|
|
15
15
|
import { IAnalyticsUtm } from '../../models/IAnalyticsUtm';
|
|
16
16
|
import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
|
|
17
17
|
import { UpdateOrCreateVisualizedInformation } from '../visualizedInformation/Update';
|
|
18
|
-
import { IPermission } from '../../models/IPermission';
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
20
|
* Response of the register prospect endpoint
|
|
@@ -45,8 +44,6 @@ export interface ProspectSocietyInfo {
|
|
|
45
44
|
idLegalForm?: LegalFormTypeEnum;
|
|
46
45
|
zipCode?: string;
|
|
47
46
|
turnover?: number;
|
|
48
|
-
siret?: string;
|
|
49
|
-
idNafCode?: number;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
export interface ReferalProgram {
|
|
@@ -64,7 +61,6 @@ export interface RegisterProspect {
|
|
|
64
61
|
idSource?: number;
|
|
65
62
|
sourceAlias?: string;
|
|
66
63
|
idTypeBrand: number;
|
|
67
|
-
permissions?: IPermission;
|
|
68
64
|
analyticsUtm?: Omit<Partial<IAnalyticsUtm>, 'idSociety'>;
|
|
69
65
|
comment?: string;
|
|
70
66
|
}
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsEmail, IsOptional, IsPhoneNumber, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
3
|
|
|
5
|
-
class RegisterReadablePermission {
|
|
6
|
-
@ApiPropertyOptional()
|
|
7
|
-
@IsOptional()
|
|
8
|
-
@IsBoolean()
|
|
9
|
-
@ToBoolean()
|
|
10
|
-
social?: boolean;
|
|
11
|
-
|
|
12
|
-
@ApiPropertyOptional()
|
|
13
|
-
@IsOptional()
|
|
14
|
-
@IsBoolean()
|
|
15
|
-
@ToBoolean()
|
|
16
|
-
vat?: boolean;
|
|
17
|
-
}
|
|
18
4
|
export class RegisterWebhookBody {
|
|
19
5
|
@ApiProperty()
|
|
20
6
|
@IsEmail()
|
|
@@ -51,8 +37,4 @@ export class RegisterWebhookBody {
|
|
|
51
37
|
@IsOptional()
|
|
52
38
|
@IsString()
|
|
53
39
|
nafCode?: string;
|
|
54
|
-
|
|
55
|
-
@ApiPropertyOptional()
|
|
56
|
-
@ValidateNested()
|
|
57
|
-
permissions?: RegisterReadablePermission;
|
|
58
40
|
}
|
|
@@ -12,7 +12,6 @@ export interface IImmobilization {
|
|
|
12
12
|
quantitySelled?: number;
|
|
13
13
|
amountOfSellTaxIncluded?: number | null;
|
|
14
14
|
sellingDate?: Date | null;
|
|
15
|
-
trashingDate?: Date | null;
|
|
16
15
|
acquisitionDate?: Date; // si il n'y a pas d'acquisition date, c'est un acompte
|
|
17
16
|
duration: number;
|
|
18
17
|
provider: string;
|
|
@@ -20,7 +20,6 @@ export interface IReport {
|
|
|
20
20
|
idServiceConcerned?: number | null;
|
|
21
21
|
idService?: number | null;
|
|
22
22
|
idFile?: number | null;
|
|
23
|
-
fileLink?: string;
|
|
24
23
|
idLetterType?: number | null;
|
|
25
24
|
declareSoupcons?: boolean | null;
|
|
26
25
|
token?: string | null;
|
|
@@ -32,10 +31,8 @@ export interface IReport {
|
|
|
32
31
|
ressenti?: number | null;
|
|
33
32
|
action?: number | null;
|
|
34
33
|
processed?: boolean | null;
|
|
35
|
-
receivedAt?: Date | null;
|
|
36
34
|
createdAt?: Date | null;
|
|
37
35
|
updatedAt?: Date | null;
|
|
38
|
-
deletedAt?: Date | null;
|
|
39
36
|
|
|
40
37
|
// Associations
|
|
41
38
|
society?: ISociety;
|
|
@@ -181,7 +181,7 @@ export interface ISociety {
|
|
|
181
181
|
/** @deprecated */
|
|
182
182
|
hidePartneredAccountantsBubbleLink?: boolean | null;
|
|
183
183
|
cancelCompleteCreationModal?: Date | null;
|
|
184
|
-
isCreatedInApp?:
|
|
184
|
+
isCreatedInApp?: boolean;
|
|
185
185
|
passwordIsuite?: string | null;
|
|
186
186
|
unpaidState?: number | null;
|
|
187
187
|
|
package/ts/types/index.ts
CHANGED
|
@@ -325,8 +325,6 @@ export * from './Interface/models/IAIQuestion';
|
|
|
325
325
|
export * from './Interface/models/IAIConversation';
|
|
326
326
|
export * from './Interface/models/IPaymentAttempt';
|
|
327
327
|
export * from './Interface/models/IDocumentRequest';
|
|
328
|
-
export * from './Interface/models/IRevenueMovement';
|
|
329
|
-
export * from './Interface/models/IRevenueSnapshot';
|
|
330
328
|
|
|
331
329
|
// Schemas
|
|
332
330
|
export * from './Interface/schemas/IRegistrationDetail';
|
|
@@ -559,7 +557,6 @@ export * from './Enum/TeamType';
|
|
|
559
557
|
export * from './Enum/PartneredAccountantServiceType';
|
|
560
558
|
export * from './Enum/PartneredAccountantServiceTypeId';
|
|
561
559
|
export * from './Enum/PaymentAttempt';
|
|
562
|
-
export * from './Enum/Revenue';
|
|
563
560
|
|
|
564
561
|
// Interfaces API
|
|
565
562
|
export * from './Interface/api/authentification/AuthenticationResponse';
|
|
@@ -882,6 +879,7 @@ export * from './Interface/api/humanResourceLibrary/CreateHumanResourceLibrary';
|
|
|
882
879
|
export * from './Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary';
|
|
883
880
|
export * from './Interface/api/report/ExternalReport';
|
|
884
881
|
export * from './Interface/api/collaboraterDetail/CreateCollaboraterDetail';
|
|
882
|
+
|
|
885
883
|
export * from './Interface/api/library/QueryLibrary';
|
|
886
884
|
export * from './Interface/api/library/ReadLibraryFile';
|
|
887
885
|
export * from './Interface/api/taxDeadline/QueryTaxDeadline';
|
|
@@ -1146,8 +1144,6 @@ export * from './Interface/api/recurrence/Query';
|
|
|
1146
1144
|
export * from './Interface/api/recurrence/Read';
|
|
1147
1145
|
export * from './Interface/api/documentRequest/Query';
|
|
1148
1146
|
export * from './Interface/api/documentRequest/Create';
|
|
1149
|
-
export * from './Interface/api/automaticRegistration/Query';
|
|
1150
|
-
export * from './Interface/api/automaticRegistration/Read';
|
|
1151
1147
|
|
|
1152
1148
|
// Enums types
|
|
1153
1149
|
export * from './Interface/enum/Util';
|
|
@@ -1187,6 +1183,11 @@ export * from './Interface/api/regulation/Create';
|
|
|
1187
1183
|
export * from './Interface/api/marketing/NewLeadSheet';
|
|
1188
1184
|
export * from './Interface/api/ai/AskQuestionCollaborator';
|
|
1189
1185
|
export * from './Interface/api/refund/QueryRefundPaginated';
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
export * from './Interface/
|
|
1186
|
+
|
|
1187
|
+
// Revenue tracking interfaces
|
|
1188
|
+
export * from './Interface/models/IRevenueMovement';
|
|
1189
|
+
export * from './Interface/models/IRevenueSnapshot';
|
|
1190
|
+
export * from './Interface/api/revenueMovement';
|
|
1191
|
+
export * from './Interface/api/revenueSnapshot';
|
|
1192
|
+
export * from './Interface/api/revenueSnapshotGenerate';
|
|
1193
|
+
export * from './Enum/Revenue';
|
package/ts/utils/checkup.ts
CHANGED
|
@@ -287,6 +287,7 @@ export const getCheckupDetailForm = (
|
|
|
287
287
|
text: 'Quels sont les modes de réglements dont vous disposez ?',
|
|
288
288
|
value: 'collectionSystem',
|
|
289
289
|
meta: {
|
|
290
|
+
multiple: true,
|
|
290
291
|
items: [
|
|
291
292
|
//TODO: ajouter PayPal et Stripe ?
|
|
292
293
|
{ text: 'Chèque', value: 'cheque' },
|
package/ts/utils/exercice.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { IExercice } from '../types';
|
|
2
2
|
import * as dayjs from 'dayjs';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Check if the recovery date is before the exercice start date (with a 3 month tolerance)
|
|
6
|
-
* @param recoveryDate - The recovery date from old expert info
|
|
7
|
-
* @param exercice - The exercice to check
|
|
8
|
-
* @returns true if the recovery date is before the exercice start date + 3 months
|
|
9
|
-
*/
|
|
10
|
-
const isExerciceAfterRecoveryDate = (recoveryDate: Date, exercice: IExercice): boolean => {
|
|
11
|
-
return dayjs(recoveryDate).isBefore(dayjs(exercice.startDate).add(3, 'month'), 'day');
|
|
12
|
-
};
|
|
13
|
-
|
|
14
4
|
const exerciceNumber = (endDate: Date, exerciceList: IExercice[]): number => {
|
|
15
5
|
let currentExercice: number = 0;
|
|
16
6
|
exerciceList
|
|
@@ -31,4 +21,4 @@ const exerciceNumber = (endDate: Date, exerciceList: IExercice[]): number => {
|
|
|
31
21
|
return currentExercice;
|
|
32
22
|
};
|
|
33
23
|
|
|
34
|
-
export { exerciceNumber
|
|
24
|
+
export { exerciceNumber };
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IExercice, IPrestation, IPrestationList } from '../types';
|
|
2
2
|
import { Vat } from '../types/Enum/Vat';
|
|
3
|
-
import { ReasonTerminationType } from '../types/Enum/ReasonTerminationType';
|
|
4
3
|
import { getTaxesIncludedAmount } from './vat/utils';
|
|
5
4
|
import { intersection } from './noLodash';
|
|
6
5
|
import {
|
|
@@ -167,8 +166,7 @@ const calculateScoringOfPrestation = (
|
|
|
167
166
|
(prestation) =>
|
|
168
167
|
prestation.paid &&
|
|
169
168
|
prestation.signed &&
|
|
170
|
-
|
|
171
|
-
prestation.terminationList?.idReasonTermination?.includes(ReasonTerminationType.CHANGES_NEW_OFFERS)) &&
|
|
169
|
+
prestation.terminationList === null &&
|
|
172
170
|
prestation.id !== currentIdPrestation,
|
|
173
171
|
);
|
|
174
172
|
|