@silexpert/core 1.3.157-cutoff.2 → 1.3.157
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/DocumentRequest.d.ts +1 -2
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/cjs/api/resources/DocumentRequest.js +0 -3
- package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/cjs/api/resources/ExercicePrestation.d.ts +0 -6
- package/dist/cjs/api/resources/ExercicePrestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/ExercicePrestation.js +0 -8
- package/dist/cjs/api/resources/ExercicePrestation.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/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 -6
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -6
- 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 +6 -67
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts +0 -2
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.js +1 -23
- package/dist/cjs/types/Enum/BalanceSheetModule.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 +1 -17
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +2 -22
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +1 -10
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +0 -69
- package/dist/cjs/types/Enum/Ged.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/PrestationType.js +16 -16
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/Proceding.d.ts +0 -8
- package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Proceding.js +2 -10
- package/dist/cjs/types/Enum/Proceding.js.map +1 -1
- package/dist/cjs/types/Enum/Revenue.d.ts +0 -6
- package/dist/cjs/types/Enum/Revenue.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Revenue.js +0 -9
- package/dist/cjs/types/Enum/Revenue.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/Query.d.ts +0 -3
- package/dist/cjs/types/Interface/api/card/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/Query.js +1 -10
- package/dist/cjs/types/Interface/api/card/Query.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/documentRequest/Create.d.ts +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.js +0 -8
- package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +0 -3
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +0 -12
- package/dist/cjs/types/Interface/api/documentRequest/Query.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 -2
- package/dist/cjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.js +1 -9
- package/dist/cjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.d.ts +5 -43
- package/dist/cjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.js +0 -272
- package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshot.d.ts +1 -2
- package/dist/cjs/types/Interface/api/revenueSnapshot.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshot.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -3
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +2 -15
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.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/IBalanceSheetModule.d.ts +0 -4
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +1 -7
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.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/IRevenueMovement.d.ts +1 -3
- package/dist/cjs/types/Interface/models/IRevenueMovement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IRevenueMovement.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/Interface/models/IUser.d.ts +0 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -10
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -10
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/checkup.d.ts.map +1 -1
- package/dist/cjs/utils/checkup.js +17 -19
- package/dist/cjs/utils/checkup.js.map +1 -1
- package/dist/cjs/utils/documents.d.ts.map +1 -1
- package/dist/cjs/utils/documents.js +0 -6
- package/dist/cjs/utils/documents.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/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/DocumentRequest.d.ts +1 -2
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.js +0 -3
- package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/mjs/api/resources/ExercicePrestation.d.ts +0 -6
- package/dist/mjs/api/resources/ExercicePrestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/ExercicePrestation.js +0 -8
- package/dist/mjs/api/resources/ExercicePrestation.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/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 -6
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -6
- 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 +6 -67
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts +0 -2
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.js +0 -22
- package/dist/mjs/types/Enum/BalanceSheetModule.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 +1 -17
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +1 -21
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +1 -10
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +0 -69
- package/dist/mjs/types/Enum/Ged.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/PrestationType.js +16 -16
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/Proceding.d.ts +0 -8
- package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Proceding.js +2 -10
- package/dist/mjs/types/Enum/Proceding.js.map +1 -1
- package/dist/mjs/types/Enum/Revenue.d.ts +0 -6
- package/dist/mjs/types/Enum/Revenue.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Revenue.js +0 -8
- package/dist/mjs/types/Enum/Revenue.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/Query.d.ts +0 -3
- package/dist/mjs/types/Interface/api/card/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/Query.js +2 -10
- package/dist/mjs/types/Interface/api/card/Query.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/documentRequest/Create.d.ts +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.js +1 -10
- package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +0 -3
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +1 -15
- package/dist/mjs/types/Interface/api/documentRequest/Query.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 -2
- package/dist/mjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.js +2 -10
- package/dist/mjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.d.ts +5 -43
- package/dist/mjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.js +1 -303
- package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshot.d.ts +1 -2
- package/dist/mjs/types/Interface/api/revenueSnapshot.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshot.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -3
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +3 -23
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.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/IBalanceSheetModule.d.ts +0 -4
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +1 -7
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.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/IRevenueMovement.d.ts +1 -3
- package/dist/mjs/types/Interface/models/IRevenueMovement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IRevenueMovement.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/Interface/models/IUser.d.ts +0 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/index.d.ts +0 -10
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -10
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/checkup.d.ts.map +1 -1
- package/dist/mjs/utils/checkup.js +17 -19
- package/dist/mjs/utils/checkup.js.map +1 -1
- package/dist/mjs/utils/documents.d.ts.map +1 -1
- package/dist/mjs/utils/documents.js +0 -6
- package/dist/mjs/utils/documents.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/package.json +17 -17
- package/ts/api/resources/BalanceSheet.ts +2 -4
- package/ts/api/resources/Card.ts +3 -2
- package/ts/api/resources/DocumentRequest.ts +1 -5
- package/ts/api/resources/ExercicePrestation.ts +0 -9
- package/ts/api/resources/GeneralLedger.ts +0 -11
- package/ts/api/resources/Revenue.ts +0 -8
- package/ts/api/resources.ts +0 -6
- package/ts/types/Enum/AutomaticRegistration.ts +0 -45
- package/ts/types/Enum/BalanceSheet.ts +11 -80
- package/ts/types/Enum/BalanceSheetModule.ts +1 -24
- package/ts/types/Enum/BrandClementine.ts +0 -6
- package/ts/types/Enum/Card.ts +1 -22
- package/ts/types/Enum/Ged.ts +0 -69
- package/ts/types/Enum/IncomeStatement.ts +0 -47
- package/ts/types/Enum/PrestationType.ts +16 -16
- package/ts/types/Enum/Proceding.ts +2 -10
- package/ts/types/Enum/Revenue.ts +9 -18
- 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/Query.ts +2 -9
- package/ts/types/Interface/api/card/UpdateCard.ts +1 -6
- package/ts/types/Interface/api/documentRequest/Create.ts +1 -8
- package/ts/types/Interface/api/documentRequest/Query.ts +1 -12
- 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 -9
- package/ts/types/Interface/api/revenueMovement.ts +5 -188
- package/ts/types/Interface/api/revenueSnapshot.ts +1 -3
- package/ts/types/Interface/api/revenueSnapshotGenerate.ts +3 -22
- 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/IBalanceSheetModule.ts +1 -7
- package/ts/types/Interface/models/IDocumentRequest.ts +2 -8
- package/ts/types/Interface/models/IImmobilization.ts +0 -1
- package/ts/types/Interface/models/IRevenueMovement.ts +1 -4
- package/ts/types/Interface/models/ISociety.ts +1 -1
- package/ts/types/Interface/models/IUser.ts +0 -1
- package/ts/types/index.ts +1 -10
- package/ts/utils/checkup.ts +17 -19
- package/ts/utils/documents.ts +0 -7
- package/ts/utils/exercice.ts +1 -11
- package/ts/utils/prestation.ts +1 -3
- 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/api/resources/InformationRequest.d.ts +0 -11
- package/dist/cjs/api/resources/InformationRequest.d.ts.map +0 -1
- package/dist/cjs/api/resources/InformationRequest.js +0 -26
- package/dist/cjs/api/resources/InformationRequest.js.map +0 -1
- package/dist/cjs/api/resources/Mfa.d.ts +0 -19
- package/dist/cjs/api/resources/Mfa.d.ts.map +0 -1
- package/dist/cjs/api/resources/Mfa.js +0 -27
- package/dist/cjs/api/resources/Mfa.js.map +0 -1
- package/dist/cjs/types/Enum/BalanceSheetRequest.d.ts +0 -9
- package/dist/cjs/types/Enum/BalanceSheetRequest.d.ts.map +0 -1
- package/dist/cjs/types/Enum/BalanceSheetRequest.js +0 -13
- package/dist/cjs/types/Enum/BalanceSheetRequest.js.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestState.d.ts +0 -6
- package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestState.js +0 -10
- package/dist/cjs/types/Enum/InformationRequestState.js.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestType.d.ts +0 -15
- package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestType.js +0 -46
- package/dist/cjs/types/Enum/InformationRequestType.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/authentification/AuthenticationResponse.d.ts +0 -7
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js +0 -3
- package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.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 +0 -3
- package/dist/cjs/types/Interface/api/automaticRegistration/Read.js.map +0 -1
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts +0 -7
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.js +0 -29
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Create.js.map +0 -1
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts +0 -6
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.js +0 -31
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Query.js.map +0 -1
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts +0 -7
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.js +0 -31
- package/dist/cjs/types/Interface/api/balanceSheetModuleRequest/Update.js.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts +0 -12
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Update.js +0 -63
- package/dist/cjs/types/Interface/api/documentRequest/Update.js.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts +0 -10
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Create.js +0 -49
- package/dist/cjs/types/Interface/api/informationRequest/Create.js.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts +0 -11
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Query.js +0 -54
- package/dist/cjs/types/Interface/api/informationRequest/Query.js.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +0 -12
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Update.js +0 -58
- package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.d.ts +0 -4
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.js +0 -22
- package/dist/cjs/types/Interface/api/mfa/DisableMfa.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/SetupInit.d.ts +0 -5
- package/dist/cjs/types/Interface/api/mfa/SetupInit.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/SetupInit.js +0 -27
- package/dist/cjs/types/Interface/api/mfa/SetupInit.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.d.ts +0 -5
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.js +0 -27
- package/dist/cjs/types/Interface/api/mfa/SetupVerify.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.d.ts +0 -5
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.js +0 -27
- package/dist/cjs/types/Interface/api/mfa/VerifyCode.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts +0 -5
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.js +0 -27
- package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.js.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/mfa.d.ts +0 -19
- package/dist/cjs/types/Interface/api/mfa/mfa.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/mfa/mfa.js +0 -3
- package/dist/cjs/types/Interface/api/mfa/mfa.js.map +0 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts +0 -14
- package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.js +0 -3
- package/dist/cjs/types/Interface/models/IBalanceSheetModuleRequest.js.map +0 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts +0 -25
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.js +0 -3
- package/dist/cjs/types/Interface/models/IInformationRequest.js.map +0 -1
- package/dist/cjs/types/Interface/models/IUserMfa.d.ts +0 -12
- package/dist/cjs/types/Interface/models/IUserMfa.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IUserMfa.js +0 -3
- package/dist/cjs/types/Interface/models/IUserMfa.js.map +0 -1
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +0 -9
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js +0 -3
- package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.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/api/resources/InformationRequest.d.ts +0 -11
- package/dist/mjs/api/resources/InformationRequest.d.ts.map +0 -1
- package/dist/mjs/api/resources/InformationRequest.js +0 -30
- package/dist/mjs/api/resources/InformationRequest.js.map +0 -1
- package/dist/mjs/api/resources/Mfa.d.ts +0 -19
- package/dist/mjs/api/resources/Mfa.d.ts.map +0 -1
- package/dist/mjs/api/resources/Mfa.js +0 -23
- package/dist/mjs/api/resources/Mfa.js.map +0 -1
- package/dist/mjs/types/Enum/BalanceSheetRequest.d.ts +0 -9
- package/dist/mjs/types/Enum/BalanceSheetRequest.d.ts.map +0 -1
- package/dist/mjs/types/Enum/BalanceSheetRequest.js +0 -10
- package/dist/mjs/types/Enum/BalanceSheetRequest.js.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestState.d.ts +0 -6
- package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestState.js +0 -7
- package/dist/mjs/types/Enum/InformationRequestState.js.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestType.d.ts +0 -15
- package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestType.js +0 -43
- package/dist/mjs/types/Enum/InformationRequestType.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/authentification/AuthenticationResponse.d.ts +0 -7
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js +0 -2
- package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.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/balanceSheetModuleRequest/Create.d.ts +0 -7
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Create.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Create.js +0 -27
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Create.js.map +0 -1
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts +0 -6
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.js +0 -29
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Query.js.map +0 -1
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts +0 -7
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.js +0 -29
- package/dist/mjs/types/Interface/api/balanceSheetModuleRequest/Update.js.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts +0 -12
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Update.js +0 -66
- package/dist/mjs/types/Interface/api/documentRequest/Update.js.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts +0 -10
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Create.js +0 -50
- package/dist/mjs/types/Interface/api/informationRequest/Create.js.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts +0 -11
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Query.js +0 -56
- package/dist/mjs/types/Interface/api/informationRequest/Query.js.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +0 -12
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Update.js +0 -60
- package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.d.ts +0 -4
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.js +0 -19
- package/dist/mjs/types/Interface/api/mfa/DisableMfa.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/SetupInit.d.ts +0 -5
- package/dist/mjs/types/Interface/api/mfa/SetupInit.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/SetupInit.js +0 -25
- package/dist/mjs/types/Interface/api/mfa/SetupInit.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.d.ts +0 -5
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.js +0 -25
- package/dist/mjs/types/Interface/api/mfa/SetupVerify.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.d.ts +0 -5
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.js +0 -25
- package/dist/mjs/types/Interface/api/mfa/VerifyCode.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts +0 -5
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.js +0 -25
- package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.js.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/mfa.d.ts +0 -19
- package/dist/mjs/types/Interface/api/mfa/mfa.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/mfa/mfa.js +0 -2
- package/dist/mjs/types/Interface/api/mfa/mfa.js.map +0 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts +0 -14
- package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.js +0 -2
- package/dist/mjs/types/Interface/models/IBalanceSheetModuleRequest.js.map +0 -1
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts +0 -25
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IInformationRequest.js +0 -2
- package/dist/mjs/types/Interface/models/IInformationRequest.js.map +0 -1
- package/dist/mjs/types/Interface/models/IUserMfa.d.ts +0 -12
- package/dist/mjs/types/Interface/models/IUserMfa.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IUserMfa.js +0 -2
- package/dist/mjs/types/Interface/models/IUserMfa.js.map +0 -1
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +0 -9
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js +0 -2
- package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js.map +0 -1
- package/ts/api/resources/AutomaticRegistration.ts +0 -8
- package/ts/api/resources/InformationRequest.ts +0 -36
- package/ts/api/resources/Mfa.ts +0 -29
- package/ts/types/Enum/BalanceSheetRequest.ts +0 -8
- package/ts/types/Enum/InformationRequestState.ts +0 -5
- package/ts/types/Enum/InformationRequestType.ts +0 -50
- package/ts/types/Enum/TransactionRangeFilter.ts +0 -6
- package/ts/types/Interface/api/authentification/AuthenticationResponse.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/balanceSheetModuleRequest/Create.ts +0 -14
- package/ts/types/Interface/api/balanceSheetModuleRequest/Query.ts +0 -15
- package/ts/types/Interface/api/balanceSheetModuleRequest/Update.ts +0 -16
- package/ts/types/Interface/api/documentRequest/Update.ts +0 -43
- package/ts/types/Interface/api/informationRequest/Create.ts +0 -31
- package/ts/types/Interface/api/informationRequest/Query.ts +0 -36
- package/ts/types/Interface/api/informationRequest/Update.ts +0 -39
- package/ts/types/Interface/api/mfa/DisableMfa.ts +0 -7
- package/ts/types/Interface/api/mfa/SetupInit.ts +0 -11
- package/ts/types/Interface/api/mfa/SetupVerify.ts +0 -11
- package/ts/types/Interface/api/mfa/VerifyCode.ts +0 -11
- package/ts/types/Interface/api/mfa/VerifyRecoveryCode.ts +0 -11
- package/ts/types/Interface/api/mfa/mfa.ts +0 -21
- package/ts/types/Interface/models/IBalanceSheetModuleRequest.ts +0 -16
- package/ts/types/Interface/models/IInformationRequest.ts +0 -27
- package/ts/types/Interface/models/IUserMfa.ts +0 -11
- package/ts/types/Interface/models/IUserMfaRecoveryCode.ts +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AACxC,+EAA4E;AAC5E,uCAAqD;AACrD,yCAA0C;AAC1C,iEAIsC;AACtC,uDAA4D;AAC5D,qEAAwF;AACxF,2EAAwE;AACxE,6EAA0E;AAC1E,2EAAwE;AACxE,mFAAgF;AAChF,2DAAwD;AACxD,qCAAiD;AACjD,+BAA+B;AAC/B,yCAA4C;AA4E5C,MAAM,yBAAyB,GAAG,CAAC,gBAAwB,EAAW,EAAE,CACtE;IACE,+BAAc,CAAC,YAAY;IAC3B,+BAAc,CAAC,mBAAmB;IAClC,+BAAc,CAAC,wCAAwC;IACvD,+BAAc,CAAC,uBAAuB;IACtC,+BAAc,CAAC,GAAG;IAClB,+BAAc,CAAC,aAAa;IAC5B,+BAAc,CAAC,kBAAkB;CAClC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAqiB7B,8DAAyB;AAniB3B,MAAM,wBAAwB,GAAG,CAAC,WAAoB,EAAE,SAAkB,EAAE,gBAAwB,EAAW,EAAE,CAC/G,gBAAgB,KAAK,+BAAc,CAAC,iBAAiB,IAAI,SAAS,IAAI,WAAW,CAAC;AAmiBlF,4DAAwB;AAjiB1B,MAAM,oBAAoB,GAAG,CAAC,gBAAwB,EAAW,EAAE,CACjE,gBAAgB,KAAK,+BAAc,CAAC,+BAA+B,CAAC;AAkiBpE,oDAAoB;AAhiBtB,MAAM,kBAAkB,GAAG,CAAC,MAAe,EAAE,SAAkB,EAAW,EAAE,CAAC,CAAC,MAAM,IAAI,SAAS,CAAC;AA+hBhG,gDAAkB;AA7hBpB,MAAM,WAAW,GAAG,CAAC,gBAA0B,EAAW,EAAE,CAC1D,CAAC,gBAAgB,CAAC,MAAM,CACtB,CAAC,IAAY,EAAE,EAAE,CACf,CAAC,CAAC,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;YAEtG,OAAO,IAAI,CAAC;aACT,IACH,CAAC,+BAAc,CAAC,kBAAkB,EAAE,+BAAc,CAAC,0BAA0B,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YACzG,8CAA8C;YAC9C,gBAAgB,CAAC,eAAe,CAAC,gBAAgB,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAEtG,OAAO,IAAI,CAAC;aACT,IACH,CAAC,+BAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAC9D,CAAC,gBAAgB;YACjB,8CAA8C;YAC9C,gBAAgB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAE9G,OAAO,IAAI,CAAC;aACT,IACH,CAAC,+BAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAC9D,gBAAgB;YAChB,8CAA8C;YAC9C,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAExG,OAAO,IAAI,CAAC;;YACT,OAAO,KAAK,CAAC;IACpB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAuBA,kDAAmB;AArBrB,MAAM,2BAA2B,GAAG,CAAC,gBAAwB,EAA4B,EAAE;IACzF,IAAI,qEAAoD,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAAE,OAAO,UAAU,CAAC;IACvG,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAqBA,kEAA2B","sourcesContent":["import { IExercice, IPrestation, IPrestationList } from '../types';\nimport { Vat } from '../types/Enum/Vat';\nimport { ReasonTerminationType } from '../types/Enum/ReasonTerminationType';\nimport { getTaxesIncludedAmount } from './vat/utils';\nimport { intersection } from './noLodash';\nimport {\n ClementineSubscriptionAccountancySoftwarePrestations,\n PrestationDetail,\n PrestationType,\n} from '../types/Enum/PrestationType';\nimport { LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';\nimport { PriceGridClementine } from '../types/Enum/PriceGridClementine';\nimport { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';\nimport { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';\nimport { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress';\nimport { ClosingType } from '../types/Enum/ClosingType';\nimport { getBrandNameByNodeEnv } from './brands';\nimport * as dayjs from 'dayjs';\nimport { exerciceNumber } from './exercice';\n\ntype priceGridBrand = {\n idTypeBrand: number;\n price: priceGrid[];\n};\n\ntype priceGrid = {\n idPrestationList: number[];\n priceWithTaxesIncluded: boolean;\n applicationCost: number;\n monthlyNbr?: monthlyNbr[];\n exerciceNbr?: exerciceNbr[];\n turnoverCreatedYear?: turnover[];\n turnoverPastYear?: turnover[];\n turnoverMonthly?: turnover[];\n turnoverYearly?: turnover[];\n employee?: employee[];\n partner?: employee[];\n properties?: propertie[];\n vatRegimeMonthly?: vatRegime[];\n vatRegimeYearly?: vatRegime[];\n taxSystem?: taxSystem[];\n legalForm?: legalForm[];\n employeeByLegalForm?: employeeByLegalForm[];\n};\n\ntype monthlyNbr = {\n minimum: number;\n maximum: number;\n value: number;\n closingType: number[];\n};\n\ntype exerciceNbr = {\n minimum: number;\n maximum: number;\n price: number;\n};\n\ntype turnover = {\n turnoverValue: number;\n price: number;\n};\n\ntype legalForm = {\n idLegalForm: number;\n price: number;\n};\n\ntype employee = {\n amountMinimum: number;\n amountMaximum: number;\n price: number;\n};\n\ntype employeeByLegalForm = {\n idLegalForm: number;\n price: number;\n};\n\ntype propertie = {\n amount: number;\n price: number;\n};\n\ntype vatRegime = {\n type: number;\n price: number;\n};\n\ntype taxSystem = {\n id: number;\n price: number;\n};\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean =>\n [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL,\n ].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique: boolean, isCatalog: boolean, idPrestationList: number): boolean =>\n idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean =>\n idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden: boolean, isCatalog: boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]): boolean =>\n !idPrestationList.filter(\n (idPL: number) =>\n ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL),\n ).length;\n\nconst isOnlySocial = (idPrestationList: number[]): boolean =>\n !idPrestationList.filter((idPL: number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]): boolean =>\n !idPrestationList.filter((idPL: number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]): boolean =>\n !!intersection(idPrestationList, [\n PrestationType.CREATION_SOCIETE,\n PrestationType.STATUTS_FREE,\n PrestationType.STATUTS_OPTION_1,\n PrestationType.STATUTS_OPTION_2,\n PrestationType.STATUTS_OPTION_AE,\n ]).length;\n\nconst isFromStatutsExpress = (idPrestationList: number[]): boolean =>\n !idPrestationList.filter(\n (idPL: number) =>\n ![\n PrestationType.STATUTS_FREE,\n PrestationType.STATUTS_OPTION_1,\n PrestationType.STATUTS_OPTION_2,\n PrestationType.STATUTS_OPTION_AE,\n ].includes(idPL),\n ).length;\n\nconst isExpress = (idPrestationList: number): boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr: any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nconst isConsultingHour = (idPrestationList: number[]): boolean =>\n !!intersection(idPrestationList, [PrestationType.CONSULTING_HOUR]).length;\n\nconst isSoftwarePrestation = (idPrestationList: number[]): boolean =>\n !!intersection(idPrestationList, [PrestationType.STEERING, PrestationType.VAT, PrestationType.BALANCESHEET])\n .length; /* &&\n idPrestationList.length === 1 */ // Commenté car si un client résilie un software pour un utre software, condition non prise en charge\n\nconst calculateScoringOfPrestation = (\n idPrestationType: PrestationType,\n prestations: IPrestation[],\n currentIdPrestation: number,\n): number => {\n const prestationsSignedPaid = prestations.filter(\n (prestation) =>\n prestation.paid &&\n prestation.signed &&\n (prestation.terminationList === null ||\n prestation.terminationList?.idReasonTermination?.includes(ReasonTerminationType.CHANGES_NEW_OFFERS)) &&\n prestation.id !== currentIdPrestation,\n );\n\n const currentPrestation = prestations.find(\n (el) => el.idPrestationList === idPrestationType && el.terminationList === null,\n );\n\n // SPECIAL CASE:\n // If current prestation is a software prestation\n // and the current prestation is an annual payment, return 0 point\n if (\n isSoftwarePrestation([idPrestationType]) &&\n currentPrestation?.exercices?.length &&\n //@ts-expect-error\n (currentPrestation?.exercices[0].ExercicePrestation?.totalPrestation < 80 ||\n //@ts-expect-error\n currentPrestation?.exercices[0].ExercicePrestation?.monthNumber !== 1)\n ) {\n return 0;\n }\n\n // Get the list of prestations that are half price\n const prestationHalfPriceList = Object.values(PrestationDetail).filter(\n (p) =>\n p.isComptable &&\n !p.isCatalog &&\n p.id &&\n ![PrestationType.BALANCESHEET, PrestationType.VAT, PrestationType.STEERING].includes(p.id),\n );\n const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);\n\n // Get the number of points for the new prestation\n const prestaDetails = Object.values(PrestationDetail).find((prestaDetail) => prestaDetail.id === idPrestationType);\n let numberPoint = prestaDetails?.point || 0;\n\n // For each back exercices, add 100 points\n // -> for new prestations only\n if (\n [\n PrestationType.EXPERTISE,\n PrestationType.SUPPORT,\n PrestationType.PREMIUM,\n PrestationType.CUSTOM_MADE,\n PrestationType.GESTION_IMMO,\n PrestationType.EI,\n PrestationType.MICRO,\n ].includes(idPrestationType) &&\n currentPrestation?.exercices?.length &&\n currentPrestation?.exercices.find((el) => el.isBack)\n ) {\n numberPoint += (currentPrestation?.exercices.filter((el) => el.isBack).length ?? 1) * 100;\n }\n\n // Get list of prestations that are already done\n // and check if one of them is in the list of prestations that are half price\n const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);\n const prestationHalfPriceAlreadyDoneIds = prestationsExistIds.filter((id) => prestationHalfPriceIds.includes(id));\n\n // 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 50% of points\n if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType))\n return Math.floor(numberPoint * 0.3);\n\n return numberPoint;\n};\n\nexport const calculateMonthlyAmount = (params: {\n monthlyPrice: number;\n monthNumber: number;\n monthOffer: number;\n idVatForInternalInvoicing?: number | null;\n returnTaxesIncludedValue?: boolean;\n}): number => {\n const { monthlyPrice, monthNumber, monthOffer, idVatForInternalInvoicing, returnTaxesIncludedValue = true } = params;\n\n if (!idVatForInternalInvoicing && returnTaxesIncludedValue)\n throw new Error('Taux de TVA manquant pour calculer le montant TTC');\n\n if (!idVatForInternalInvoicing || !returnTaxesIncludedValue) return monthlyPrice * (monthNumber - monthOffer);\n\n return (\n monthlyPrice *\n (monthNumber - monthOffer) *\n (1 + Object.values(Vat).find((el) => el.id === idVatForInternalInvoicing).value / 100)\n );\n};\n\nexport const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid | undefined => {\n let currentBrandPriceGrid: priceGridBrand | undefined;\n let currentPriceGrid: priceGrid | undefined;\n\n const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);\n const listEnvEnum = {\n PriceGridClementine,\n PriceGridPourcentage,\n PriceGridLegalstart,\n PriceGridStatutsExpress,\n };\n // @ts-ignore\n const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];\n if (currentPriceGridFile)\n currentBrandPriceGrid = currentPriceGridFile.find(\n (priceGrid: priceGridBrand) => priceGrid.idTypeBrand === idTypeBrand,\n );\n if (currentBrandPriceGrid)\n currentPriceGrid = currentBrandPriceGrid?.price.find((price: priceGrid) =>\n price.idPrestationList.includes(idPrestationList),\n );\n return currentPriceGrid;\n};\n\nconst calculatePrestationPriceWithPriceGrid = (\n idPrestationList: number,\n endDate: string,\n NbrMonth: number /* Nbr de mois dans l'exercice */,\n turnover: number,\n rentsNumber: number,\n employeesNumber: number,\n associatesNumber: number,\n idTypeBrand: number,\n idVatRegime: number,\n pastBalanceSheet: boolean,\n isYearly: boolean /* Prestation annuel ou mensuel */,\n totalMonth: number /* Nbr de moiis offer */,\n idTaxSystem: number,\n idLegalForm: number,\n exerciceNbr: number,\n balanceSheetOffered: number = 0 /* montant du bilan offer */,\n): {\n totalPrestation: number;\n reduceMonth: number;\n canBeCreated: boolean;\n monthNbr: number;\n price: number;\n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let monthNbr: number = NbrMonth;\n let yearlyPrice: number | undefined;\n let finalMonthlyPrice: number | undefined;\n const canBeCreated: boolean = true;\n let recalculateMonthly: boolean = false;\n\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n\n if (currentPriceGrid) {\n let monthlyPrice: number | undefined;\n let vatRegimePrice: number | undefined;\n let taxSystemPrice: number | undefined;\n\n /* Gestion du régime de TVA */\n if (currentPriceGrid.vatRegimeMonthly && !isYearly)\n vatRegimePrice = currentPriceGrid.vatRegimeMonthly?.find((regime) => regime.type === idVatRegime)?.price;\n else if (currentPriceGrid.vatRegimeYearly && isYearly)\n vatRegimePrice = currentPriceGrid.vatRegimeYearly?.find((regime) => regime.type === idVatRegime)?.price;\n\n /* Gestion du Régime d'imposition */\n if (currentPriceGrid.taxSystem && idTaxSystem)\n taxSystemPrice = currentPriceGrid.taxSystem?.find((tax) => tax.id === idTaxSystem)?.price;\n\n /* Gestion des montants */\n /* Récupératioin des prix mensuels */\n if (currentPriceGrid.turnoverMonthly && !isYearly)\n monthlyPrice = currentPriceGrid.turnoverMonthly?.find((turn) => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.properties)\n monthlyPrice = currentPriceGrid.properties?.find((property) => property.amount === rentsNumber)?.price;\n else if (currentPriceGrid.employee) {\n monthlyPrice = currentPriceGrid.employee?.find(\n (emp) => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber,\n )?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n } else if (currentPriceGrid.employeeByLegalForm) {\n monthlyPrice = currentPriceGrid.employeeByLegalForm?.find((emp) => emp.idLegalForm === idLegalForm)?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n /* Récupération des prix annuels */\n } else if (currentPriceGrid.turnoverYearly && isYearly)\n yearlyPrice = currentPriceGrid.turnoverYearly?.find((turn) => turnover < turn.turnoverValue)?.price;\n else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear)\n yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find((turn) => turnover < turn.turnoverValue)?.price;\n else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear)\n yearlyPrice = currentPriceGrid.turnoverPastYear?.find((turn) => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.partner)\n yearlyPrice = currentPriceGrid.partner?.find(\n (part) => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber,\n )?.price;\n else if (currentPriceGrid.legalForm)\n yearlyPrice = currentPriceGrid.legalForm?.find((form) => form.idLegalForm === idLegalForm)?.price;\n else if (currentPriceGrid.exerciceNbr)\n yearlyPrice = currentPriceGrid.exerciceNbr?.find(\n (el) => el.minimum <= exerciceNbr && exerciceNbr <= el.maximum,\n )?.price;\n /* Calcul du prix mensuel final */\n finalMonthlyPrice =\n (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);\n\n /* Gestion des mois */\n let cloturedPast: boolean = false;\n if (dayjs(endDate, 'YYYY-MM-DD').subtract(15, 'day').isBefore(dayjs())) cloturedPast = true;\n let monthlyNbrList: monthlyNbr[] | undefined;\n let monthlyNbr: monthlyNbr | undefined;\n if (currentPriceGrid.monthlyNbr) {\n monthlyNbrList = currentPriceGrid.monthlyNbr?.filter((el) =>\n el.closingType.includes(cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS),\n );\n if (monthlyNbrList) {\n monthlyNbr = monthlyNbrList.find((el) => el.minimum <= monthNbr && monthNbr <= el.maximum);\n if (monthlyNbr) {\n monthNbr = monthlyNbr.value;\n }\n }\n }\n\n /* Gestion des offres, mois offer */\n if (totalMonth > 0) {\n if (isYearly) {\n yearlyPrice = (10 - totalMonth) * (yearlyPrice ? yearlyPrice / 10 : 0);\n } else {\n monthNbr = monthNbr - totalMonth;\n }\n }\n\n /* Calcul du nombre de mois soustraient */\n reduceMonth = monthNbr === NbrMonth - totalMonth ? totalMonth : 0;\n\n /* Gestion des offres, bilan offer */\n if (balanceSheetOffered > 0) {\n yearlyPrice = undefined;\n recalculateMonthly = false;\n finalMonthlyPrice = balanceSheetOffered / monthNbr;\n }\n\n /* Prix Final */\n totalPrestation = yearlyPrice ? yearlyPrice : finalMonthlyPrice * monthNbr;\n }\n return {\n totalPrestation,\n reduceMonth,\n canBeCreated,\n monthNbr: yearlyPrice ? 0 : recalculateMonthly ? NbrMonth : monthNbr,\n price: yearlyPrice\n ? yearlyPrice\n : recalculateMonthly\n ? totalPrestation / monthNbr\n : finalMonthlyPrice\n ? finalMonthlyPrice\n : 0,\n };\n};\n\nconst calculatePrestationPriceWithPrestationList = (prestationList: IPrestationList): number => {\n let totalPrestation: number = 0;\n\n totalPrestation = prestationList?.price || 0;\n\n return totalPrestation;\n};\n\n/**\n * From idLegalForm, get application fees amount (without taxes included if no idVat passed, or with taxes included calculated by given idVat)\n * @param idLegalForm\n * @param idVat\n * @returns amount of application fees, without taxes included\n * @deprecated Application fees are not charged anymore\n */\nconst getApplicationFeesAmount = (idLegalForm: number, idVat?: number) => {\n let applicationFeesAmount = 50;\n if (idLegalForm === LegalFormTypeEnum.SCI) applicationFeesAmount = 150;\n\n //Sans tva, on envoie le montant HT\n if (!idVat) return applicationFeesAmount;\n\n //Avec tva, on envoie le montant TTC\n return getTaxesIncludedAmount(applicationFeesAmount, idVat);\n};\n\nconst calculatePrestationPrice = (\n idPrestationList: number,\n prestationList: IPrestationList,\n endDate: string,\n NbrMonth: number /* Nbr de mois dans l'exercice */,\n turnover: number,\n rentsNumber: number,\n employeesNumber: number,\n associatesNumber: number,\n idTypeBrand: number,\n idVatRegime: number,\n pastBalanceSheet: boolean,\n optionsList: number[],\n totalPercentage: number /* total pourcentage offer (%) */,\n totalAmount: number /* total montant offer (€) */,\n totalMonth: number /* total mois offer (mois) */,\n isWithApplicationFees: boolean /* frais de dossier */,\n idTaxSystem: number,\n idLegalForm: number,\n isYearly: boolean = false /* prestation annuel ou mensuel */,\n isSubPrestation: boolean = false,\n balanceSheetOffered: number = 0,\n exerciceList: IExercice[] = [],\n): {\n totalPrestation: number;\n reduceMonth: number;\n canBeCreated: boolean;\n calculDetail: string;\n monthlyPrice: string;\n price: number;\n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let canBeCreated: boolean = true;\n let monthNbr: number = 0;\n let price: number = 0;\n let totalWithReduce: {\n totalPrestation: number;\n reduceMonth: number;\n canBeCreated: boolean;\n monthNbr: number;\n price: number;\n } = { totalPrestation: 0, reduceMonth: 0, canBeCreated: true, monthNbr: 0, price: 0 };\n\n /* Gestion du prix en fonction de la prestation */\n if (\n [\n PrestationType.COMPTA_PRO,\n PrestationType.COMPTA_PRO_EXPRESS,\n PrestationType.COMPTA_ENTREPRISE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS,\n PrestationType.COMPTA_SCI,\n PrestationType.COMPTA_SCI_EXPRESS,\n PrestationType.BILAN_PREVISIONNEL,\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n PrestationType.COMPTA_POURCENTAGE,\n PrestationType.COMPTA_POURCENTAGE_EXPRESS,\n PrestationType.SOCIAL,\n PrestationType.GESTION_JURIDIQUE,\n PrestationType.COMPTA_PRO_COMPTASTART,\n PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,\n PrestationType.COMPTA_EI_KLEMS,\n PrestationType.COMPTA_EI_KLEMS_EXPRESS,\n PrestationType.COMPTA_MICRO_KLEMS,\n PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,\n PrestationType.STATUTS_OPTION_2,\n PrestationType.EXPERTISE,\n PrestationType.SUPPORT,\n PrestationType.PREMIUM,\n PrestationType.CUSTOM_MADE,\n PrestationType.EI,\n PrestationType.MICRO,\n PrestationType.GESTION_IMMO,\n ].includes(idPrestationList)\n ) {\n let exerciceNbr: number = 0;\n if (exerciceList.length) exerciceNbr = exerciceNumber(dayjs(endDate, 'YYYY-MM-DD').toDate(), exerciceList);\n totalWithReduce = calculatePrestationPriceWithPriceGrid(\n idPrestationList,\n endDate,\n NbrMonth,\n turnover,\n rentsNumber,\n employeesNumber,\n associatesNumber,\n idTypeBrand,\n idVatRegime,\n pastBalanceSheet,\n isYearly,\n totalMonth,\n idTaxSystem,\n idLegalForm,\n exerciceNbr,\n balanceSheetOffered,\n );\n totalPrestation = totalWithReduce.totalPrestation;\n reduceMonth = totalWithReduce.reduceMonth;\n canBeCreated = totalWithReduce.canBeCreated;\n monthNbr = totalWithReduce.monthNbr;\n price = totalWithReduce.price;\n } else {\n totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);\n if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList) && !isSubPrestation) {\n // totalPrestation += 50;\n // La création est offerte désormais\n // inutile d'ajouter les frais de greffe et d'annonce légale,\n // car ne compte pas dans le calcul pour les sales\n }\n }\n /* Gestion des offres */\n /* Offre montant offer */\n if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;\n /* Offre pourcentage offer */\n if (totalPercentage > 0) totalPrestation = totalPrestation - totalPrestation * (totalPercentage / 100);\n /* Gesstioin du prix minimum acceptable pour la prestation */\n if (prestationList && prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice)\n totalPrestation = prestationList.minimumPrice;\n /* Gestion des options */\n let OptionTotalPrice: number = 0;\n if (optionsList.length) {\n optionsList.forEach((optionId) => {\n const optionPrice: number | undefined = Object.values(PrestationOption).find(\n (option) => option.id === optionId,\n )?.price;\n if (optionPrice) OptionTotalPrice += optionPrice;\n });\n }\n totalPrestation += OptionTotalPrice ? OptionTotalPrice : 0;\n /* Gestion des frais de dossier */\n // if (isWithApplicationFees) {\n // const applicationFeesAmount = getApplicationFeesAmount(idLegalForm);\n // totalPrestation += applicationFeesAmount;\n // }\n\n const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + Math.round(price * 100) / 100 + '€' : Math.round(price * 100) / 100 + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;\n\n return {\n totalPrestation,\n reduceMonth,\n canBeCreated,\n calculDetail,\n monthlyPrice: monthNbr > 0 ? Math.round(price * 100) / 100 + '€/mois' : Math.round(price * 100) / 100 + '€',\n price,\n };\n};\n\nconst getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {\n const PrestationOptionList: PrestationOptionType[] = Object.values(PrestationOption).filter((option) =>\n option.brand.includes(getBrandNameByNodeEnv(process.env.NODE_ENV)),\n );\n return PrestationOptionList.filter((option) => option.prestationList.includes(idPrestationList));\n};\n\nconst isAbleToUpdatePrice = (\n idTypeBrand: number,\n idPrestationList: number,\n turnover: number,\n pastBalanceSheet: boolean,\n): boolean => {\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n if (currentPriceGrid) {\n if (\n [\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n ].includes(idPrestationList) &&\n // @ts-ignore: error after prettier formatting\n currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 2].turnoverValue < turnover\n )\n return true;\n else if (\n [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS].includes(idPrestationList) &&\n // @ts-ignore: error after prettier formatting\n currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 1].turnoverValue < turnover\n )\n return true;\n else if (\n [PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) &&\n !pastBalanceSheet &&\n // @ts-ignore: error after prettier formatting\n currentPriceGrid.turnoverCreatedYear[currentPriceGrid.turnoverCreatedYear.length - 1].turnoverValue < turnover\n )\n return true;\n else if (\n [PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) &&\n pastBalanceSheet &&\n // @ts-ignore: error after prettier formatting\n currentPriceGrid.turnoverPastYear[currentPriceGrid.turnoverPastYear.length - 1].turnoverValue < turnover\n )\n return true;\n else return false;\n }\n return false;\n};\n\nconst idPrestationListToOfferType = (idPrestationList: number): 'software' | 'expertise' => {\n if (ClementineSubscriptionAccountancySoftwarePrestations.includes(idPrestationList)) return 'software';\n return 'expertise';\n};\n\nexport {\n isOtherAccountingMissions,\n isOtherJuridicalMissions,\n isAdditionalPresta,\n isOtherSocialMission,\n isOnlyPrevi,\n isOnlySocial,\n isOnlyJuridic,\n isCreation,\n isFromStatutsExpress,\n isExpress,\n isConsultingHour,\n isSoftwarePrestation,\n calculateScoringOfPrestation,\n calculatePrestationPrice,\n getPrestationOptions,\n isAbleToUpdatePrice,\n calculatePrestationPriceWithPriceGrid,\n getApplicationFeesAmount,\n idPrestationListToOfferType,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AACxC,uCAAqD;AACrD,yCAA0C;AAC1C,iEAIsC;AACtC,uDAA4D;AAC5D,qEAAwF;AACxF,2EAAwE;AACxE,6EAA0E;AAC1E,2EAAwE;AACxE,mFAAgF;AAChF,2DAAwD;AACxD,qCAAiD;AACjD,+BAA+B;AAC/B,yCAA4C;AA4E5C,MAAM,yBAAyB,GAAG,CAAC,gBAAwB,EAAW,EAAE,CACtE;IACE,+BAAc,CAAC,YAAY;IAC3B,+BAAc,CAAC,mBAAmB;IAClC,+BAAc,CAAC,wCAAwC;IACvD,+BAAc,CAAC,uBAAuB;IACtC,+BAAc,CAAC,GAAG;IAClB,+BAAc,CAAC,aAAa;IAC5B,+BAAc,CAAC,kBAAkB;CAClC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAoiB7B,8DAAyB;AAliB3B,MAAM,wBAAwB,GAAG,CAAC,WAAoB,EAAE,SAAkB,EAAE,gBAAwB,EAAW,EAAE,CAC/G,gBAAgB,KAAK,+BAAc,CAAC,iBAAiB,IAAI,SAAS,IAAI,WAAW,CAAC;AAkiBlF,4DAAwB;AAhiB1B,MAAM,oBAAoB,GAAG,CAAC,gBAAwB,EAAW,EAAE,CACjE,gBAAgB,KAAK,+BAAc,CAAC,+BAA+B,CAAC;AAiiBpE,oDAAoB;AA/hBtB,MAAM,kBAAkB,GAAG,CAAC,MAAe,EAAE,SAA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,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAEtG,OAAO,IAAI,CAAC;aACT,IACH,CAAC,+BAAc,CAAC,kBAAkB,EAAE,+BAAc,CAAC,0BAA0B,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YACzG,8CAA8C;YAC9C,gBAAgB,CAAC,eAAe,CAAC,gBAAgB,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAEtG,OAAO,IAAI,CAAC;aACT,IACH,CAAC,+BAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAC9D,CAAC,gBAAgB;YACjB,8CAA8C;YAC9C,gBAAgB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAE9G,OAAO,IAAI,CAAC;aACT,IACH,CAAC,+BAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAC9D,gBAAgB;YAChB,8CAA8C;YAC9C,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAExG,OAAO,IAAI,CAAC;;YACT,OAAO,KAAK,CAAC;IACpB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAuBA,kDAAmB;AArBrB,MAAM,2BAA2B,GAAG,CAAC,gBAAwB,EAA4B,EAAE;IACzF,IAAI,qEAAoD,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAAE,OAAO,UAAU,CAAC;IACvG,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAqBA,kEAA2B","sourcesContent":["import { IExercice, IPrestation, IPrestationList } from '../types';\nimport { Vat } from '../types/Enum/Vat';\nimport { getTaxesIncludedAmount } from './vat/utils';\nimport { intersection } from './noLodash';\nimport {\n ClementineSubscriptionAccountancySoftwarePrestations,\n PrestationDetail,\n PrestationType,\n} from '../types/Enum/PrestationType';\nimport { LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';\nimport { PriceGridClementine } from '../types/Enum/PriceGridClementine';\nimport { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';\nimport { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';\nimport { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress';\nimport { ClosingType } from '../types/Enum/ClosingType';\nimport { getBrandNameByNodeEnv } from './brands';\nimport * as dayjs from 'dayjs';\nimport { exerciceNumber } from './exercice';\n\ntype priceGridBrand = {\n idTypeBrand: number;\n price: priceGrid[];\n};\n\ntype priceGrid = {\n idPrestationList: number[];\n priceWithTaxesIncluded: boolean;\n applicationCost: number;\n monthlyNbr?: monthlyNbr[];\n exerciceNbr?: exerciceNbr[];\n turnoverCreatedYear?: turnover[];\n turnoverPastYear?: turnover[];\n turnoverMonthly?: turnover[];\n turnoverYearly?: turnover[];\n employee?: employee[];\n partner?: employee[];\n properties?: propertie[];\n vatRegimeMonthly?: vatRegime[];\n vatRegimeYearly?: vatRegime[];\n taxSystem?: taxSystem[];\n legalForm?: legalForm[];\n employeeByLegalForm?: employeeByLegalForm[];\n};\n\ntype monthlyNbr = {\n minimum: number;\n maximum: number;\n value: number;\n closingType: number[];\n};\n\ntype exerciceNbr = {\n minimum: number;\n maximum: number;\n price: number;\n};\n\ntype turnover = {\n turnoverValue: number;\n price: number;\n};\n\ntype legalForm = {\n idLegalForm: number;\n price: number;\n};\n\ntype employee = {\n amountMinimum: number;\n amountMaximum: number;\n price: number;\n};\n\ntype employeeByLegalForm = {\n idLegalForm: number;\n price: number;\n};\n\ntype propertie = {\n amount: number;\n price: number;\n};\n\ntype vatRegime = {\n type: number;\n price: number;\n};\n\ntype taxSystem = {\n id: number;\n price: number;\n};\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean =>\n [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL,\n ].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique: boolean, isCatalog: boolean, idPrestationList: number): boolean =>\n idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean =>\n idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden: boolean, isCatalog: boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]): boolean =>\n !idPrestationList.filter(\n (idPL: number) =>\n ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL),\n ).length;\n\nconst isOnlySocial = (idPrestationList: number[]): boolean =>\n !idPrestationList.filter((idPL: number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]): boolean =>\n !idPrestationList.filter((idPL: number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]): boolean =>\n !!intersection(idPrestationList, [\n PrestationType.CREATION_SOCIETE,\n PrestationType.STATUTS_FREE,\n PrestationType.STATUTS_OPTION_1,\n PrestationType.STATUTS_OPTION_2,\n PrestationType.STATUTS_OPTION_AE,\n ]).length;\n\nconst isFromStatutsExpress = (idPrestationList: number[]): boolean =>\n !idPrestationList.filter(\n (idPL: number) =>\n ![\n PrestationType.STATUTS_FREE,\n PrestationType.STATUTS_OPTION_1,\n PrestationType.STATUTS_OPTION_2,\n PrestationType.STATUTS_OPTION_AE,\n ].includes(idPL),\n ).length;\n\nconst isExpress = (idPrestationList: number): boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr: any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nconst isConsultingHour = (idPrestationList: number[]): boolean =>\n !!intersection(idPrestationList, [PrestationType.CONSULTING_HOUR]).length;\n\nconst isSoftwarePrestation = (idPrestationList: number[]): boolean =>\n !!intersection(idPrestationList, [PrestationType.STEERING, PrestationType.VAT, PrestationType.BALANCESHEET])\n .length; /* &&\n idPrestationList.length === 1 */ // Commenté car si un client résilie un software pour un utre software, condition non prise en charge\n\nconst calculateScoringOfPrestation = (\n idPrestationType: PrestationType,\n prestations: IPrestation[],\n currentIdPrestation: number,\n): number => {\n const prestationsSignedPaid = prestations.filter(\n (prestation) =>\n prestation.paid &&\n prestation.signed &&\n prestation.terminationList === null &&\n prestation.id !== currentIdPrestation,\n );\n\n const currentPrestation = prestations.find(\n (el) => el.idPrestationList === idPrestationType && el.terminationList === null,\n );\n\n // SPECIAL CASE:\n // If current prestation is a software prestation\n // and the current prestation is an annual payment, return 0 point\n if (\n isSoftwarePrestation([idPrestationType]) &&\n currentPrestation?.exercices?.length &&\n //@ts-expect-error\n (currentPrestation?.exercices[0].ExercicePrestation?.totalPrestation < 80 ||\n //@ts-expect-error\n currentPrestation?.exercices[0].ExercicePrestation?.monthNumber !== 1)\n ) {\n return 0;\n }\n\n // Get the list of prestations that are half price\n const prestationHalfPriceList = Object.values(PrestationDetail).filter(\n (p) =>\n p.isComptable &&\n !p.isCatalog &&\n p.id &&\n ![PrestationType.BALANCESHEET, PrestationType.VAT, PrestationType.STEERING].includes(p.id),\n );\n const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);\n\n // Get the number of points for the new prestation\n const prestaDetails = Object.values(PrestationDetail).find((prestaDetail) => prestaDetail.id === idPrestationType);\n let numberPoint = prestaDetails?.point || 0;\n\n // For each back exercices, add 100 points\n // -> for new prestations only\n if (\n [\n PrestationType.EXPERTISE,\n PrestationType.SUPPORT,\n PrestationType.PREMIUM,\n PrestationType.CUSTOM_MADE,\n PrestationType.GESTION_IMMO,\n PrestationType.EI,\n PrestationType.MICRO,\n ].includes(idPrestationType) &&\n currentPrestation?.exercices?.length &&\n currentPrestation?.exercices.find((el) => el.isBack)\n ) {\n numberPoint += (currentPrestation?.exercices.filter((el) => el.isBack).length ?? 1) * 100;\n }\n\n // Get list of prestations that are already done\n // and check if one of them is in the list of prestations that are half price\n const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);\n const prestationHalfPriceAlreadyDoneIds = prestationsExistIds.filter((id) => prestationHalfPriceIds.includes(id));\n\n // 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 50% of points\n if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType))\n return Math.floor(numberPoint * 0.3);\n\n return numberPoint;\n};\n\nexport const calculateMonthlyAmount = (params: {\n monthlyPrice: number;\n monthNumber: number;\n monthOffer: number;\n idVatForInternalInvoicing?: number | null;\n returnTaxesIncludedValue?: boolean;\n}): number => {\n const { monthlyPrice, monthNumber, monthOffer, idVatForInternalInvoicing, returnTaxesIncludedValue = true } = params;\n\n if (!idVatForInternalInvoicing && returnTaxesIncludedValue)\n throw new Error('Taux de TVA manquant pour calculer le montant TTC');\n\n if (!idVatForInternalInvoicing || !returnTaxesIncludedValue) return monthlyPrice * (monthNumber - monthOffer);\n\n return (\n monthlyPrice *\n (monthNumber - monthOffer) *\n (1 + Object.values(Vat).find((el) => el.id === idVatForInternalInvoicing).value / 100)\n );\n};\n\nexport const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid | undefined => {\n let currentBrandPriceGrid: priceGridBrand | undefined;\n let currentPriceGrid: priceGrid | undefined;\n\n const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);\n const listEnvEnum = {\n PriceGridClementine,\n PriceGridPourcentage,\n PriceGridLegalstart,\n PriceGridStatutsExpress,\n };\n // @ts-ignore\n const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];\n if (currentPriceGridFile)\n currentBrandPriceGrid = currentPriceGridFile.find(\n (priceGrid: priceGridBrand) => priceGrid.idTypeBrand === idTypeBrand,\n );\n if (currentBrandPriceGrid)\n currentPriceGrid = currentBrandPriceGrid?.price.find((price: priceGrid) =>\n price.idPrestationList.includes(idPrestationList),\n );\n return currentPriceGrid;\n};\n\nconst calculatePrestationPriceWithPriceGrid = (\n idPrestationList: number,\n endDate: string,\n NbrMonth: number /* Nbr de mois dans l'exercice */,\n turnover: number,\n rentsNumber: number,\n employeesNumber: number,\n associatesNumber: number,\n idTypeBrand: number,\n idVatRegime: number,\n pastBalanceSheet: boolean,\n isYearly: boolean /* Prestation annuel ou mensuel */,\n totalMonth: number /* Nbr de moiis offer */,\n idTaxSystem: number,\n idLegalForm: number,\n exerciceNbr: number,\n balanceSheetOffered: number = 0 /* montant du bilan offer */,\n): {\n totalPrestation: number;\n reduceMonth: number;\n canBeCreated: boolean;\n monthNbr: number;\n price: number;\n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let monthNbr: number = NbrMonth;\n let yearlyPrice: number | undefined;\n let finalMonthlyPrice: number | undefined;\n const canBeCreated: boolean = true;\n let recalculateMonthly: boolean = false;\n\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n\n if (currentPriceGrid) {\n let monthlyPrice: number | undefined;\n let vatRegimePrice: number | undefined;\n let taxSystemPrice: number | undefined;\n\n /* Gestion du régime de TVA */\n if (currentPriceGrid.vatRegimeMonthly && !isYearly)\n vatRegimePrice = currentPriceGrid.vatRegimeMonthly?.find((regime) => regime.type === idVatRegime)?.price;\n else if (currentPriceGrid.vatRegimeYearly && isYearly)\n vatRegimePrice = currentPriceGrid.vatRegimeYearly?.find((regime) => regime.type === idVatRegime)?.price;\n\n /* Gestion du Régime d'imposition */\n if (currentPriceGrid.taxSystem && idTaxSystem)\n taxSystemPrice = currentPriceGrid.taxSystem?.find((tax) => tax.id === idTaxSystem)?.price;\n\n /* Gestion des montants */\n /* Récupératioin des prix mensuels */\n if (currentPriceGrid.turnoverMonthly && !isYearly)\n monthlyPrice = currentPriceGrid.turnoverMonthly?.find((turn) => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.properties)\n monthlyPrice = currentPriceGrid.properties?.find((property) => property.amount === rentsNumber)?.price;\n else if (currentPriceGrid.employee) {\n monthlyPrice = currentPriceGrid.employee?.find(\n (emp) => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber,\n )?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n } else if (currentPriceGrid.employeeByLegalForm) {\n monthlyPrice = currentPriceGrid.employeeByLegalForm?.find((emp) => emp.idLegalForm === idLegalForm)?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n /* Récupération des prix annuels */\n } else if (currentPriceGrid.turnoverYearly && isYearly)\n yearlyPrice = currentPriceGrid.turnoverYearly?.find((turn) => turnover < turn.turnoverValue)?.price;\n else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear)\n yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find((turn) => turnover < turn.turnoverValue)?.price;\n else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear)\n yearlyPrice = currentPriceGrid.turnoverPastYear?.find((turn) => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.partner)\n yearlyPrice = currentPriceGrid.partner?.find(\n (part) => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber,\n )?.price;\n else if (currentPriceGrid.legalForm)\n yearlyPrice = currentPriceGrid.legalForm?.find((form) => form.idLegalForm === idLegalForm)?.price;\n else if (currentPriceGrid.exerciceNbr)\n yearlyPrice = currentPriceGrid.exerciceNbr?.find(\n (el) => el.minimum <= exerciceNbr && exerciceNbr <= el.maximum,\n )?.price;\n /* Calcul du prix mensuel final */\n finalMonthlyPrice =\n (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);\n\n /* Gestion des mois */\n let cloturedPast: boolean = false;\n if (dayjs(endDate, 'YYYY-MM-DD').subtract(15, 'day').isBefore(dayjs())) cloturedPast = true;\n let monthlyNbrList: monthlyNbr[] | undefined;\n let monthlyNbr: monthlyNbr | undefined;\n if (currentPriceGrid.monthlyNbr) {\n monthlyNbrList = currentPriceGrid.monthlyNbr?.filter((el) =>\n el.closingType.includes(cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS),\n );\n if (monthlyNbrList) {\n monthlyNbr = monthlyNbrList.find((el) => el.minimum <= monthNbr && monthNbr <= el.maximum);\n if (monthlyNbr) {\n monthNbr = monthlyNbr.value;\n }\n }\n }\n\n /* Gestion des offres, mois offer */\n if (totalMonth > 0) {\n if (isYearly) {\n yearlyPrice = (10 - totalMonth) * (yearlyPrice ? yearlyPrice / 10 : 0);\n } else {\n monthNbr = monthNbr - totalMonth;\n }\n }\n\n /* Calcul du nombre de mois soustraient */\n reduceMonth = monthNbr === NbrMonth - totalMonth ? totalMonth : 0;\n\n /* Gestion des offres, bilan offer */\n if (balanceSheetOffered > 0) {\n yearlyPrice = undefined;\n recalculateMonthly = false;\n finalMonthlyPrice = balanceSheetOffered / monthNbr;\n }\n\n /* Prix Final */\n totalPrestation = yearlyPrice ? yearlyPrice : finalMonthlyPrice * monthNbr;\n }\n return {\n totalPrestation,\n reduceMonth,\n canBeCreated,\n monthNbr: yearlyPrice ? 0 : recalculateMonthly ? NbrMonth : monthNbr,\n price: yearlyPrice\n ? yearlyPrice\n : recalculateMonthly\n ? totalPrestation / monthNbr\n : finalMonthlyPrice\n ? finalMonthlyPrice\n : 0,\n };\n};\n\nconst calculatePrestationPriceWithPrestationList = (prestationList: IPrestationList): number => {\n let totalPrestation: number = 0;\n\n totalPrestation = prestationList?.price || 0;\n\n return totalPrestation;\n};\n\n/**\n * From idLegalForm, get application fees amount (without taxes included if no idVat passed, or with taxes included calculated by given idVat)\n * @param idLegalForm\n * @param idVat\n * @returns amount of application fees, without taxes included\n * @deprecated Application fees are not charged anymore\n */\nconst getApplicationFeesAmount = (idLegalForm: number, idVat?: number) => {\n let applicationFeesAmount = 50;\n if (idLegalForm === LegalFormTypeEnum.SCI) applicationFeesAmount = 150;\n\n //Sans tva, on envoie le montant HT\n if (!idVat) return applicationFeesAmount;\n\n //Avec tva, on envoie le montant TTC\n return getTaxesIncludedAmount(applicationFeesAmount, idVat);\n};\n\nconst calculatePrestationPrice = (\n idPrestationList: number,\n prestationList: IPrestationList,\n endDate: string,\n NbrMonth: number /* Nbr de mois dans l'exercice */,\n turnover: number,\n rentsNumber: number,\n employeesNumber: number,\n associatesNumber: number,\n idTypeBrand: number,\n idVatRegime: number,\n pastBalanceSheet: boolean,\n optionsList: number[],\n totalPercentage: number /* total pourcentage offer (%) */,\n totalAmount: number /* total montant offer (€) */,\n totalMonth: number /* total mois offer (mois) */,\n isWithApplicationFees: boolean /* frais de dossier */,\n idTaxSystem: number,\n idLegalForm: number,\n isYearly: boolean = false /* prestation annuel ou mensuel */,\n isSubPrestation: boolean = false,\n balanceSheetOffered: number = 0,\n exerciceList: IExercice[] = [],\n): {\n totalPrestation: number;\n reduceMonth: number;\n canBeCreated: boolean;\n calculDetail: string;\n monthlyPrice: string;\n price: number;\n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let canBeCreated: boolean = true;\n let monthNbr: number = 0;\n let price: number = 0;\n let totalWithReduce: {\n totalPrestation: number;\n reduceMonth: number;\n canBeCreated: boolean;\n monthNbr: number;\n price: number;\n } = { totalPrestation: 0, reduceMonth: 0, canBeCreated: true, monthNbr: 0, price: 0 };\n\n /* Gestion du prix en fonction de la prestation */\n if (\n [\n PrestationType.COMPTA_PRO,\n PrestationType.COMPTA_PRO_EXPRESS,\n PrestationType.COMPTA_ENTREPRISE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS,\n PrestationType.COMPTA_SCI,\n PrestationType.COMPTA_SCI_EXPRESS,\n PrestationType.BILAN_PREVISIONNEL,\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n PrestationType.COMPTA_POURCENTAGE,\n PrestationType.COMPTA_POURCENTAGE_EXPRESS,\n PrestationType.SOCIAL,\n PrestationType.GESTION_JURIDIQUE,\n PrestationType.COMPTA_PRO_COMPTASTART,\n PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,\n PrestationType.COMPTA_EI_KLEMS,\n PrestationType.COMPTA_EI_KLEMS_EXPRESS,\n PrestationType.COMPTA_MICRO_KLEMS,\n PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,\n PrestationType.STATUTS_OPTION_2,\n PrestationType.EXPERTISE,\n PrestationType.SUPPORT,\n PrestationType.PREMIUM,\n PrestationType.CUSTOM_MADE,\n PrestationType.EI,\n PrestationType.MICRO,\n PrestationType.GESTION_IMMO,\n ].includes(idPrestationList)\n ) {\n let exerciceNbr: number = 0;\n if (exerciceList.length) exerciceNbr = exerciceNumber(dayjs(endDate, 'YYYY-MM-DD').toDate(), exerciceList);\n totalWithReduce = calculatePrestationPriceWithPriceGrid(\n idPrestationList,\n endDate,\n NbrMonth,\n turnover,\n rentsNumber,\n employeesNumber,\n associatesNumber,\n idTypeBrand,\n idVatRegime,\n pastBalanceSheet,\n isYearly,\n totalMonth,\n idTaxSystem,\n idLegalForm,\n exerciceNbr,\n balanceSheetOffered,\n );\n totalPrestation = totalWithReduce.totalPrestation;\n reduceMonth = totalWithReduce.reduceMonth;\n canBeCreated = totalWithReduce.canBeCreated;\n monthNbr = totalWithReduce.monthNbr;\n price = totalWithReduce.price;\n } else {\n totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);\n if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList) && !isSubPrestation) {\n // totalPrestation += 50;\n // La création est offerte désormais\n // inutile d'ajouter les frais de greffe et d'annonce légale,\n // car ne compte pas dans le calcul pour les sales\n }\n }\n /* Gestion des offres */\n /* Offre montant offer */\n if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;\n /* Offre pourcentage offer */\n if (totalPercentage > 0) totalPrestation = totalPrestation - totalPrestation * (totalPercentage / 100);\n /* Gesstioin du prix minimum acceptable pour la prestation */\n if (prestationList && prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice)\n totalPrestation = prestationList.minimumPrice;\n /* Gestion des options */\n let OptionTotalPrice: number = 0;\n if (optionsList.length) {\n optionsList.forEach((optionId) => {\n const optionPrice: number | undefined = Object.values(PrestationOption).find(\n (option) => option.id === optionId,\n )?.price;\n if (optionPrice) OptionTotalPrice += optionPrice;\n });\n }\n totalPrestation += OptionTotalPrice ? OptionTotalPrice : 0;\n /* Gestion des frais de dossier */\n // if (isWithApplicationFees) {\n // const applicationFeesAmount = getApplicationFeesAmount(idLegalForm);\n // totalPrestation += applicationFeesAmount;\n // }\n\n const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + Math.round(price * 100) / 100 + '€' : Math.round(price * 100) / 100 + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;\n\n return {\n totalPrestation,\n reduceMonth,\n canBeCreated,\n calculDetail,\n monthlyPrice: monthNbr > 0 ? Math.round(price * 100) / 100 + '€/mois' : Math.round(price * 100) / 100 + '€',\n price,\n };\n};\n\nconst getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {\n const PrestationOptionList: PrestationOptionType[] = Object.values(PrestationOption).filter((option) =>\n option.brand.includes(getBrandNameByNodeEnv(process.env.NODE_ENV)),\n );\n return PrestationOptionList.filter((option) => option.prestationList.includes(idPrestationList));\n};\n\nconst isAbleToUpdatePrice = (\n idTypeBrand: number,\n idPrestationList: number,\n turnover: number,\n pastBalanceSheet: boolean,\n): boolean => {\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n if (currentPriceGrid) {\n if (\n [\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n ].includes(idPrestationList) &&\n // @ts-ignore: error after prettier formatting\n currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 2].turnoverValue < turnover\n )\n return true;\n else if (\n [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS].includes(idPrestationList) &&\n // @ts-ignore: error after prettier formatting\n currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 1].turnoverValue < turnover\n )\n return true;\n else if (\n [PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) &&\n !pastBalanceSheet &&\n // @ts-ignore: error after prettier formatting\n currentPriceGrid.turnoverCreatedYear[currentPriceGrid.turnoverCreatedYear.length - 1].turnoverValue < turnover\n )\n return true;\n else if (\n [PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) &&\n pastBalanceSheet &&\n // @ts-ignore: error after prettier formatting\n currentPriceGrid.turnoverPastYear[currentPriceGrid.turnoverPastYear.length - 1].turnoverValue < turnover\n )\n return true;\n else return false;\n }\n return false;\n};\n\nconst idPrestationListToOfferType = (idPrestationList: number): 'software' | 'expertise' => {\n if (ClementineSubscriptionAccountancySoftwarePrestations.includes(idPrestationList)) return 'software';\n return 'expertise';\n};\n\nexport {\n isOtherAccountingMissions,\n isOtherJuridicalMissions,\n isAdditionalPresta,\n isOtherSocialMission,\n isOnlyPrevi,\n isOnlySocial,\n isOnlyJuridic,\n isCreation,\n isFromStatutsExpress,\n isExpress,\n isConsultingHour,\n isSoftwarePrestation,\n calculateScoringOfPrestation,\n calculatePrestationPrice,\n getPrestationOptions,\n isAbleToUpdatePrice,\n calculatePrestationPriceWithPriceGrid,\n getApplicationFeesAmount,\n idPrestationListToOfferType,\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation, QueryBalanceSheetGenerateUnpaid, ReadBalanceSheetConsistency, QueryBalanceSheetSupervisedStatistic, QueryValidateBalanceSheetByImport
|
|
1
|
+
import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation, QueryBalanceSheetGenerateUnpaid, ReadBalanceSheetConsistency, QueryBalanceSheetSupervisedStatistic, QueryValidateBalanceSheetByImport } from '../..';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
import { AxiosResponse } from 'axios';
|
|
4
4
|
export declare class BalanceSheet extends Resource {
|
|
@@ -9,7 +9,9 @@ export declare class BalanceSheet extends Resource {
|
|
|
9
9
|
getSupervisedStatistics(params: QueryBalanceSheetSupervisedStatistic, signal?: AbortSignal): Promise<IBalanceSheet[]>;
|
|
10
10
|
createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer>;
|
|
11
11
|
getAttestation(params: QueryBalanceSheetAttestation): Promise<string>;
|
|
12
|
-
getPdf(
|
|
12
|
+
getPdf(params: {
|
|
13
|
+
idExercice: number;
|
|
14
|
+
}): Promise<Buffer>;
|
|
13
15
|
getIntermediateManagementRebatePdf(params: {
|
|
14
16
|
idExercice: number;
|
|
15
17
|
}): Promise<Buffer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheet.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,iCAAiC,EACjC,0BAA0B,EAC1B,4BAA4B,EAC5B,gCAAgC,EAChC,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,+BAA+B,EAC/B,2BAA2B,EAC3B,oCAAoC,EACpC,iCAAiC,
|
|
1
|
+
{"version":3,"file":"BalanceSheet.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,iCAAiC,EACjC,0BAA0B,EAC1B,4BAA4B,EAC5B,gCAAgC,EAChC,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,+BAA+B,EAC/B,2BAA2B,EAC3B,oCAAoC,EACpC,iCAAiC,EAClC,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,qBAAa,YAAa,SAAQ,QAAQ;IACxC,aAAa,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAIrF,cAAc,CAAC,MAAM,EAAE,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;IAItE,oBAAoB,CAAC,MAAM,EAAE,iCAAiC,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAI1G,uBAAuB,CAAC,MAAM,EAAE,iCAAiC,GAAG,OAAO,CAAC,aAAa,CAAC;IAI1F,uBAAuB,CACrB,MAAM,EAAE,oCAAoC,EAC5C,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,aAAa,EAAE,CAAC;IAO3B,iBAAiB,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,MAAM,CAAC;IASjG,cAAc,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrE,MAAM,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAWvD,kCAAkC,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IASnF,oBAAoB,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIpF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAItE,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAIhE,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,EAAE,CAAC;IAI1E,4BAA4B,CAAC,OAAO,EAAE,iCAAiC,GAAG,OAAO,CAAC,aAAa,CAAC;CAGjG"}
|
|
@@ -29,9 +29,8 @@ export class BalanceSheet extends Resource {
|
|
|
29
29
|
getAttestation(params) {
|
|
30
30
|
return this.axios.$get('/exercice/balanceSheet/attestations', { params });
|
|
31
31
|
}
|
|
32
|
-
getPdf(
|
|
33
|
-
return this.axios.$get(`/exercice/${idExercice}/balanceSheet/pdf`, {
|
|
34
|
-
params,
|
|
32
|
+
getPdf(params) {
|
|
33
|
+
return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/pdf`, {
|
|
35
34
|
responseType: 'arraybuffer',
|
|
36
35
|
headers: {
|
|
37
36
|
Accept: 'application/pdf',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheet.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BalanceSheet.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,aAAa,CAAC,MAAkC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,cAAc,CAAC,MAAuC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wCAAwC,EAAE,MAAM,CAAC,CAAC;IAC5E,CAAC;IAED,oBAAoB,CAAC,MAAyC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2CAA2C,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,uBAAuB,CAAC,MAAyC;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+CAA+C,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,uBAAuB,CACrB,MAA4C,EAC5C,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,8CAA8C,EAAE;YACrE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,iBAAiB,CAAC,cAAsB,EAAE,MAAqC;QAC7E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,cAAc,eAAe,EAAE,MAAM,EAAE;YACvF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC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;CACF","sourcesContent":["import {\n IBalanceSheet,\n QueryBalanceSheetMonthlyStatistic,\n QueryBalanceSheetStatistic,\n QueryBalanceSheetAttestation,\n ReadBalanceSheetMonthlyStatistic,\n ReadBalanceSheetStatistic,\n ReadFreelanceTurnover,\n UpdateBalanceSheet,\n CreateBalanceSheetAttestation,\n QueryBalanceSheetGenerateUnpaid,\n ReadBalanceSheetConsistency,\n QueryBalanceSheetSupervisedStatistic,\n QueryValidateBalanceSheetByImport,\n} from '../..';\nimport { Resource } from '../Resource';\nimport { AxiosResponse } from 'axios';\n\nexport class BalanceSheet extends Resource {\n getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic> {\n return this.axios.$get('/exercice/balanceSheet/statistics', { params });\n }\n\n generateUnpaid(params: QueryBalanceSheetGenerateUnpaid): Promise<void> {\n return this.axios.$post('/exercice/balanceSheet/generate-unpaid', params);\n }\n\n getMonthlyStatistics(params: QueryBalanceSheetMonthlyStatistic): Promise<ReadBalanceSheetMonthlyStatistic> {\n return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });\n }\n\n getMonthlyStatisticsCsv(params: QueryBalanceSheetMonthlyStatistic): Promise<AxiosResponse> {\n return this.axios.$get('/exercice/balanceSheet/monthly-statistics-csv', { params });\n }\n\n getSupervisedStatistics(\n params: QueryBalanceSheetSupervisedStatistic,\n signal?: AbortSignal,\n ): Promise<IBalanceSheet[]> {\n return this.axios.$get('/exercice/balanceSheet/supervised-statistics', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer> {\n return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAttestation(params: QueryBalanceSheetAttestation): Promise<string> {\n return this.axios.$get('/exercice/balanceSheet/attestations', { params });\n }\n\n getPdf(params: { idExercice: number }): Promise<Buffer> {\n return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/pdf`, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n // cette route a été créée pour des tests sur l'envoi de project client (juste pour vérifier le retour du SIG)\n // ce sera supprimé par la suite.\n getIntermediateManagementRebatePdf(params: { idExercice: number }): Promise<Buffer> {\n return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/intermediate-management-rebate/pdf`, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getFreelanceTurnover(params: { idExercice: number }): Promise<ReadFreelanceTurnover> {\n return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/freelanceTurnover`);\n }\n\n update(id: number, params: UpdateBalanceSheet): Promise<IBalanceSheet> {\n return this.axios.$put(`/exercice/balanceSheet/${id}`, params);\n }\n\n getByExercice(idExercice: number): Promise<IBalanceSheet | null> {\n return this.axios.$get(`/exercice/${idExercice}/balance-sheets`);\n }\n\n getConsistency(idExercice: number): Promise<ReadBalanceSheetConsistency[]> {\n return this.axios.$get(`/exercices/${idExercice}/consistency`);\n }\n\n validateBalanceSheetByImport(payload: QueryValidateBalanceSheetByImport): Promise<AxiosResponse> {\n return this.axios.$post('/exercice/validation/import', payload);\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { ICard, QueryUserCards, QueryUserCardsPaginated, QueryUserCardsStats, CardsStatsGroup, UpdateCard, ModifyTeamPlanning, ModifyExercisePlanning, OrganizeBalanceSheets, OrganizeBalanceSheetsResponse, QueryInternalCardsStats, InternalCardStats, BasePaginate, UpdateCardV2,
|
|
2
|
+
import { ICard, QueryUserCards, QueryUserCardsPaginated, QueryUserCardsStats, CardsStatsGroup, UpdateCard, ModifyTeamPlanning, ModifyExercisePlanning, OrganizeBalanceSheets, OrganizeBalanceSheetsResponse, QueryInternalCardsStats, InternalCardStats, BasePaginate, UpdateCardV2, CardType } from '../../types';
|
|
3
3
|
export declare class Card extends Resource {
|
|
4
4
|
getById(id: number, signal?: AbortSignal): Promise<ICard>;
|
|
5
5
|
getAll(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]>;
|
|
@@ -28,6 +28,8 @@ export declare class Card extends Resource {
|
|
|
28
28
|
*/
|
|
29
29
|
organizeFutureBalanceSheets(data: OrganizeBalanceSheets): Promise<OrganizeBalanceSheetsResponse>;
|
|
30
30
|
updateV2(idCard: number, data: UpdateCardV2): Promise<ICard>;
|
|
31
|
-
assignCard(payload:
|
|
31
|
+
assignCard(payload: {
|
|
32
|
+
type: CardType;
|
|
33
|
+
}): Promise<ICard>;
|
|
32
34
|
}
|
|
33
35
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EACL,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,6BAA6B,EAC7B,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EACL,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,6BAA6B,EAC7B,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACT,MAAM,aAAa,CAAC;AAErB,qBAAa,IAAK,SAAQ,QAAQ;IAChC,OAAO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C;IACxD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n ICard,\n QueryUserCards,\n QueryUserCardsPaginated,\n QueryUserCardsStats,\n CardsStatsGroup,\n UpdateCard,\n ModifyTeamPlanning,\n ModifyExercisePlanning,\n OrganizeBalanceSheets,\n OrganizeBalanceSheetsResponse,\n QueryInternalCardsStats,\n InternalCardStats,\n BasePaginate,\n UpdateCardV2,\n CardType,\n} from '../../types';\n\nexport class Card extends Resource {\n getById(id: number, signal?: AbortSignal): Promise<ICard> {\n return this.axios.$get(`/cards/${id}`, {\n ...(signal ? { signal } : {}),\n });\n }\n\n getAll(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]> {\n return this.axios.$get('/cards', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n getAllPaginated(params: QueryUserCardsPaginated, signal?: AbortSignal): Promise<BasePaginate<ICard>> {\n return this.axios.$get('/cards/paginated', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n /**\n * @deprecated Use getAll instead\n */\n getAllAdmin(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]> {\n return this.axios.$get('/cards', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n getStats(params: QueryUserCardsStats, signal?: AbortSignal): Promise<CardsStatsGroup[]> {\n return this.axios.$get('/cards/stats', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n getInternalStats(params: QueryInternalCardsStats, signal?: AbortSignal): Promise<InternalCardStats[]> {\n return this.axios.$get('/cards/internal/stats', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n /**\n * @deprecated Use updateV2 instead\n */\n update(id: number, data: UpdateCard): Promise<ICard> {\n return this.axios.$put(`/cards/${id}`, data);\n }\n\n delete(id: number): Promise<void> {\n return this.axios.$delete(`/cards/${id}`);\n }\n\n /**\n * @deprecated comptallo v1 endpoint\n */\n modifyTeamPlanning(data: ModifyTeamPlanning): Promise<true> {\n return this.axios.$put('/cards/assign/modify-team-planning', data);\n }\n\n /**\n * @deprecated comptallo v1 endpoint\n */\n modifyExercisePlanning(data: ModifyExercisePlanning): Promise<true> {\n return this.axios.$put('/cards/assign/modify-exercise-planning', data);\n }\n\n /**\n * @deprecated comptallo v1 endpoint\n */\n organizeFutureBalanceSheets(data: OrganizeBalanceSheets): Promise<OrganizeBalanceSheetsResponse> {\n return this.axios.$post('/cards/accountant/organize/future-balance-sheets', data);\n }\n\n updateV2(idCard: number, data: UpdateCardV2): Promise<ICard> {\n return this.axios.$put(`/cards/${idCard}/v2`, data);\n }\n\n // TODO: improve types\n assignCard(payload: { type: CardType }): Promise<ICard> {\n return this.axios.$post('/cards/assignment', payload);\n }\n}\n"]}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest
|
|
2
|
+
import { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest } from '../../types';
|
|
3
3
|
export declare class DocumentRequest extends Resource {
|
|
4
4
|
create(body: CreateDocumentRequest): Promise<IDocumentRequest>;
|
|
5
|
-
update(id: number, body: UpdateDocumentRequest): Promise<IDocumentRequest>;
|
|
6
5
|
getAllBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]>;
|
|
7
6
|
getPendingBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]>;
|
|
8
7
|
getById(id: number, signal?: AbortSignal): Promise<IDocumentRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentRequest.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"DocumentRequest.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE5F,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,MAAM,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI9D,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAOnH,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAOvH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAMpE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlC"}
|
|
@@ -3,9 +3,6 @@ export class DocumentRequest extends Resource {
|
|
|
3
3
|
create(body) {
|
|
4
4
|
return this.axios.$post('/documents-requests', body);
|
|
5
5
|
}
|
|
6
|
-
update(id, body) {
|
|
7
|
-
return this.axios.$put(`/documents-requests/${id}`, body);
|
|
8
|
-
}
|
|
9
6
|
getAllBySociety(idSociety, query, signal) {
|
|
10
7
|
return this.axios.$get(`/documents-requests/society/${idSociety}`, {
|
|
11
8
|
...signal && { signal },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentRequest.js","sourceRoot":"","sources":["../../../../ts/api/resources/DocumentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC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ourcesContent":["import { Resource } from '../Resource';\nimport { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest } from '../../types';\n\nexport class DocumentRequest extends Resource {\n create(body: CreateDocumentRequest): Promise<IDocumentRequest> {\n return this.axios.$post('/documents-requests', body);\n }\n\n getAllBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]> {\n return this.axios.$get(`/documents-requests/society/${idSociety}`, {\n ...signal && { signal },\n ...query && { params: query },\n });\n }\n\n getPendingBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]> {\n return this.axios.$get(`/documents-requests/pending/${idSociety}`, {\n ...signal && { signal },\n ...query && { params: query },\n });\n }\n\n getById(id: number, signal?: AbortSignal): Promise<IDocumentRequest> {\n return this.axios.$get(`/documents-requests/${id}`, {\n ...signal && { signal },\n });\n }\n\n delete(id: number): Promise<void> {\n return this.axios.$delete(`/documents-requests/${id}`);\n }\n}\n"]}
|
|
@@ -13,12 +13,6 @@ export declare class ExercicePrestation extends Resource {
|
|
|
13
13
|
* @returns { IExercicePrestation }
|
|
14
14
|
*/
|
|
15
15
|
get(params: QueryGetExercicePrestation): Promise<IExercicePrestation>;
|
|
16
|
-
/**
|
|
17
|
-
* Récupère toutes les prestations d'un exercice
|
|
18
|
-
* @param { QueryGetExercicePrestation } params
|
|
19
|
-
* @returns { IExercicePrestation[] }
|
|
20
|
-
*/
|
|
21
|
-
getAll(params: QueryGetExercicePrestation): Promise<IExercicePrestation[]>;
|
|
22
16
|
/**
|
|
23
17
|
* Update un exercicePrestation tous les éléments lié à celle-ci.
|
|
24
18
|
* @param { number } params
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExercicePrestation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/ExercicePrestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE7G,qBAAa,kBAAmB,SAAQ,QAAQ;IAC9C;;;;OAIG;IACI,MAAM,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIlF;;;;OAIG;IACI,GAAG,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI5E
|
|
1
|
+
{"version":3,"file":"ExercicePrestation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/ExercicePrestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE7G,qBAAa,kBAAmB,SAAQ,QAAQ;IAC9C;;;;OAIG;IACI,MAAM,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIlF;;;;OAIG;IACI,GAAG,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI5E;;;;;OAKG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAG9F"}
|
|
@@ -16,14 +16,6 @@ export class ExercicePrestation extends Resource {
|
|
|
16
16
|
get(params) {
|
|
17
17
|
return this.axios.$get('/exercice-prestation', { params });
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Récupère toutes les prestations d'un exercice
|
|
21
|
-
* @param { QueryGetExercicePrestation } params
|
|
22
|
-
* @returns { IExercicePrestation[] }
|
|
23
|
-
*/
|
|
24
|
-
getAll(params) {
|
|
25
|
-
return this.axios.$get('/exercice-prestation/all', { params });
|
|
26
|
-
}
|
|
27
19
|
/**
|
|
28
20
|
* Update un exercicePrestation tous les éléments lié à celle-ci.
|
|
29
21
|
* @param { number } params
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExercicePrestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/ExercicePrestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IAC9C;;;;OAIG;IACI,MAAM,CAAC,MAAqC;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,MAAkC;QAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"ExercicePrestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/ExercicePrestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IAC9C;;;;OAIG;IACI,MAAM,CAAC,MAAqC;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,MAAkC;QAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,EAAU,EAAE,MAAoC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACtE,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { IExercicePrestation, QueryCreateExercicePrestation, QueryGetExercicePrestation } from '../../types';\n\nexport class ExercicePrestation extends Resource {\n /**\n * Crée un exercicePrestation tous les éléments lié à celle-ci.\n * @param { QueryCreateExercicePrestation } params\n * @returns { IExercicePrestation }\n */\n public create(params: QueryCreateExercicePrestation): Promise<IExercicePrestation> {\n return this.axios.$post('/exercice-prestation', params);\n }\n\n /**\n * Récupère un exercicePrestation\n * @param { QueryGetExercicePrestation } params\n * @returns { IExercicePrestation }\n */\n public get(params: QueryGetExercicePrestation): Promise<IExercicePrestation> {\n return this.axios.$get('/exercice-prestation', { params });\n }\n\n /**\n * Update un exercicePrestation tous les éléments lié à celle-ci.\n * @param { number } params\n * @param { Partial<IExercicePrestation> } params\n * @returns { IExercicePrestation }\n */\n public update(id: number, params: Partial<IExercicePrestation>): Promise<IExercicePrestation> {\n return this.axios.$put(`/exercice-prestation/${id}`, { ...params });\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary,
|
|
1
|
+
import { BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary, ReadIGeneralLedgerThirdPartyPaginated } from '../../types';
|
|
2
2
|
import { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';
|
|
3
3
|
import { Resource } from '../Resource';
|
|
4
4
|
export declare class GeneralLedger extends Resource {
|
|
@@ -15,6 +15,5 @@ export declare class GeneralLedger extends Resource {
|
|
|
15
15
|
getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>>;
|
|
16
16
|
getAuxiliarySummaries(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<ReadGeneralLedgerSummary[]>>;
|
|
17
17
|
getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated>;
|
|
18
|
-
getAuxiliaryPdf(params: QueryGeneralLedgerAuxiliaryPdf): Promise<Buffer>;
|
|
19
18
|
}
|
|
20
19
|
//# sourceMappingURL=GeneralLedger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralLedger.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,
|
|
1
|
+
{"version":3,"file":"GeneralLedger.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,qCAAqC,EACtC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,aAAc,SAAQ,QAAQ;IACzC,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMjG,mBAAmB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMxG;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUnD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUxE,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhF,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUtE,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhF,YAAY,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAI7G,qBAAqB,CACnB,MAAM,EAAE,2BAA2B,GAClC,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAI7D,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,qCAAqC,CAAC;CAGhH"}
|
|
@@ -67,14 +67,5 @@ export class GeneralLedger extends Resource {
|
|
|
67
67
|
getThirdParty(id, params) {
|
|
68
68
|
return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });
|
|
69
69
|
}
|
|
70
|
-
getAuxiliaryPdf(params) {
|
|
71
|
-
return this.axios.$get('/general-ledger/auxiliary/pdf', {
|
|
72
|
-
params,
|
|
73
|
-
responseType: 'arraybuffer',
|
|
74
|
-
headers: {
|
|
75
|
-
Accept: 'application/pdf',
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
70
|
}
|
|
80
71
|
//# sourceMappingURL=GeneralLedger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralLedger.js","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GeneralLedger.js","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,YAAY,CAAC,MAA0B;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE;YAC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AE;YACpF,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,MAAmC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,qBAAqB,CACnB,MAAmC;QAEnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,aAAa,CAAC,EAAU,EAAE,MAAoC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF","sourcesContent":["import {\n BasePaginateInterface,\n IGeneralLedgerAccount,\n IGeneralLedgerThirdParty,\n QueryGeneralLedgerAuxiliary,\n QueryGeneralLedgerThirdParty,\n ReadGeneralLedgerSummary,\n ReadIGeneralLedgerThirdPartyPaginated,\n} from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n /**\n * @deprecated use exportCsv instead\n */\n getCsv(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportCsv(idSociety: number, query: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/csv`, null, {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportBalanceCsv(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/csv`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getPdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get(`/societies/${idSociety}/general-ledger/pdf`, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n exportBalancePdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/pdf`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>> {\n return this.axios.$get('/generalLedger/auxiliary', { params });\n }\n\n getAuxiliarySummaries(\n params: QueryGeneralLedgerAuxiliary,\n ): Promise<BasePaginateInterface<ReadGeneralLedgerSummary[]>> {\n return this.axios.$get('/general-ledger/auxiliary/summaries', { params });\n }\n\n getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated> {\n return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });\n }\n}\n"]}
|
|
@@ -10,13 +10,6 @@ export declare class Revenue extends Resource {
|
|
|
10
10
|
create: (data: ICreateRevenueMovementRequest) => Promise<import("axios").AxiosResponse<ICreateRevenueMovementRequest>>;
|
|
11
11
|
update: (id: number, data: IUpdateRevenueMovementRequest) => Promise<import("axios").AxiosResponse<IUpdateRevenueMovementRequest>>;
|
|
12
12
|
delete: (id: number) => Promise<import("axios").AxiosResponse<never>>;
|
|
13
|
-
generateRetroactive: (idSociety: number, params: {
|
|
14
|
-
startDate?: string;
|
|
15
|
-
endDate?: string;
|
|
16
|
-
}) => Promise<import("axios").AxiosResponse<{
|
|
17
|
-
startDate?: string;
|
|
18
|
-
endDate?: string;
|
|
19
|
-
}>>;
|
|
20
13
|
};
|
|
21
14
|
/**
|
|
22
15
|
* Récupérer les snapshots de revenu
|
|
@@ -41,7 +34,6 @@ export declare class Revenue extends Resource {
|
|
|
41
34
|
}) => Promise<import("axios").AxiosResponse<{
|
|
42
35
|
date?: string;
|
|
43
36
|
}>>;
|
|
44
|
-
generateRetroactiveSnapshots: (idSociety: number) => Promise<import("axios").AxiosResponse<never>>;
|
|
45
37
|
};
|
|
46
38
|
/**
|
|
47
39
|
* Récupérer le résumé ARR
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Revenue.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Revenue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC;;OAEG;IACI,SAAS;yBACG,2BAA2B;kBAIlC,MAAM;uBAID,6BAA6B;qBAI/B,MAAM,QAAQ,6BAA6B;qBAI3C,MAAM;
|
|
1
|
+
{"version":3,"file":"Revenue.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Revenue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC;;OAEG;IACI,SAAS;yBACG,2BAA2B;kBAIlC,MAAM;uBAID,6BAA6B;qBAI/B,MAAM,QAAQ,6BAA6B;qBAI3C,MAAM;MAGnB;IAEF;;OAEG;IACI,SAAS;yBACG,2BAA2B;4BAIxB;YAAE,SAAS,CAAC,EAAE,MAAM,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE;yBAI9C;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,SAAS,CAAC,EAAE,MAAM,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE;mBAAjD,MAAM;wBAAc,MAAM;yBAAe,MAAM;;4BAIrD;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE;mBAAR,MAAM;;MAGnC;IAEF;;OAEG;IACI,UAAU;sBACD;YACZ,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,KAAG,OAAO,CAAC,sBAAsB,CAAC;gCAKtB,MAAM,UACT;YACN,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,KACA,OAAO,CAAC,sBAAsB,CAAC;MAGlC;CACH"}
|
|
@@ -19,9 +19,6 @@ export class Revenue extends Resource {
|
|
|
19
19
|
delete: (id) => {
|
|
20
20
|
return this.axios.$delete(`/revenue/movements/${id}`);
|
|
21
21
|
},
|
|
22
|
-
generateRetroactive: (idSociety, params) => {
|
|
23
|
-
return this.axios.$post(`/revenue/societies/${idSociety}/retroactivity`, params);
|
|
24
|
-
},
|
|
25
22
|
};
|
|
26
23
|
/**
|
|
27
24
|
* Récupérer les snapshots de revenu
|
|
@@ -39,9 +36,6 @@ export class Revenue extends Resource {
|
|
|
39
36
|
generateAll: (data) => {
|
|
40
37
|
return this.axios.$post('/revenue/snapshots/generate-all', data);
|
|
41
38
|
},
|
|
42
|
-
generateRetroactiveSnapshots: (idSociety) => {
|
|
43
|
-
return this.axios.$post(`/revenue/societies/${idSociety}/snapshots/generate-retroactive`);
|
|
44
|
-
},
|
|
45
39
|
};
|
|
46
40
|
/**
|
|
47
41
|
* Récupérer le résumé ARR
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Revenue.js","sourceRoot":"","sources":["../../../../ts/api/resources/Revenue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AASvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC;;OAEG;IACI,SAAS,GAAG;QACjB,MAAM,EAAE,CAAC,MAAmC,EAAE,EAAE;YAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAC3D,CAAC;QAED,GAAG,EAAE,CAAC,EAAU,EAAE,EAAE;YAClB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;QACrD,CAAC;QAED,MAAM,EAAE,CAAC,IAAmC,EAAE,EAAE;YAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC;QAED,MAAM,EAAE,CAAC,EAAU,EAAE,IAAmC,EAAE,EAAE;YAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAC3D,CAAC;QAED,MAAM,EAAE,CAAC,EAAU,EAAE,EAAE;YACrB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;QACxD,CAAC;
|
|
1
|
+
{"version":3,"file":"Revenue.js","sourceRoot":"","sources":["../../../../ts/api/resources/Revenue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AASvC,MAAM,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AC;QAC/D,CAAC;QAED,WAAW,EAAE,CAAC,IAAuB,EAAE,EAAE;YACvC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,IAAI,CAAC,CAAC;QACnE,CAAC;KACF,CAAC;IAEF;;OAEG;IACI,UAAU,GAAG;QAClB,GAAG,EAAE,CAAC,MAKL,EAAmC,EAAE;YACpC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAC7D,CAAC;QAED,UAAU,EAAE,CACV,SAAiB,EACjB,MAIC,EACgC,EAAE;YACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,SAAS,cAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACpF,CAAC;KACF,CAAC;CACH","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IGetRevenueMovementsRequest,\n IGetRevenueSnapshotsRequest,\n IGetArrSummaryResponse,\n ICreateRevenueMovementRequest,\n IUpdateRevenueMovementRequest,\n} from '../../types';\n\nexport class Revenue extends Resource {\n /**\n * Récupérer les mouvements de revenu\n */\n public movements = {\n getAll: (params: IGetRevenueMovementsRequest) => {\n return this.axios.$get('/revenue/movements', { params });\n },\n\n get: (id: number) => {\n return this.axios.$get(`/revenue/movements/${id}`);\n },\n\n create: (data: ICreateRevenueMovementRequest) => {\n return this.axios.$post('/revenue/movements', data);\n },\n\n update: (id: number, data: IUpdateRevenueMovementRequest) => {\n return this.axios.$put(`/revenue/movements/${id}`, data);\n },\n\n delete: (id: number) => {\n return this.axios.$delete(`/revenue/movements/${id}`);\n },\n };\n\n /**\n * Récupérer les snapshots de revenu\n */\n public snapshots = {\n getAll: (params: IGetRevenueSnapshotsRequest) => {\n return this.axios.$get('/revenue/snapshots', { params });\n },\n\n getLatest: (params: { idSociety?: number; idExercice?: number }) => {\n return this.axios.$get('/revenue/snapshots/latest', { params });\n },\n\n generate: (data: { date?: string; idSociety?: number; idExercice?: number }) => {\n return this.axios.$post('/revenue/snapshots/generate', data);\n },\n\n generateAll: (data: { date?: string }) => {\n return this.axios.$post('/revenue/snapshots/generate-all', data);\n },\n };\n\n /**\n * Récupérer le résumé ARR\n */\n public arrSummary = {\n get: (params: {\n idSociety?: number;\n idExercice?: number;\n startDate?: string;\n endDate?: string;\n }): Promise<IGetArrSummaryResponse> => {\n return this.axios.$get('/revenue/arr-summary', { params });\n },\n\n getSociety: (\n idSociety: number,\n params: {\n idExercice?: number;\n startDate?: string;\n endDate?: string;\n },\n ): Promise<IGetArrSummaryResponse> => {\n return this.axios.$get(`/revenue/societies/${idSociety}/arr-summary`, { params });\n },\n };\n}\n"]}
|