@silexpert/core 1.0.205 → 1.1.1
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/es/api/resources/AccountingFiles.d.ts +2 -3
- package/es/api/resources/AccountingFiles.d.ts.map +1 -1
- package/es/api/resources/AccountingFiles.js +1 -7
- package/es/api/resources/AccountingFiles.js.map +1 -1
- package/es/api/resources/CommercialSetting.d.ts +2 -1
- package/es/api/resources/CommercialSetting.d.ts.map +1 -1
- package/es/api/resources/CommercialSetting.js +3 -0
- package/es/api/resources/CommercialSetting.js.map +1 -1
- package/es/api/resources/FIle.d.ts +1 -3
- package/es/api/resources/FIle.d.ts.map +1 -1
- package/es/api/resources/FIle.js +0 -3
- package/es/api/resources/FIle.js.map +1 -1
- package/es/api/resources/Invoice.d.ts +0 -2
- package/es/api/resources/Invoice.d.ts.map +1 -1
- package/es/api/resources/Invoice.js +0 -6
- package/es/api/resources/Invoice.js.map +1 -1
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +0 -5
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/Notification.d.ts +0 -3
- package/es/api/resources/Notification.d.ts.map +1 -1
- package/es/api/resources/Notification.js +1 -7
- package/es/api/resources/Notification.js.map +1 -1
- package/es/api/resources/Prestations.d.ts +0 -6
- package/es/api/resources/Prestations.d.ts.map +1 -1
- package/es/api/resources/Prestations.js +0 -8
- package/es/api/resources/Prestations.js.map +1 -1
- package/es/api/resources/Registration.d.ts +2 -1
- package/es/api/resources/Registration.d.ts.map +1 -1
- package/es/api/resources/Registration.js +3 -0
- package/es/api/resources/Registration.js.map +1 -1
- package/es/api/resources/Report.d.ts +1 -2
- package/es/api/resources/Report.d.ts.map +1 -1
- package/es/api/resources/Report.js +0 -3
- package/es/api/resources/Report.js.map +1 -1
- package/es/api/resources/Rule.d.ts +0 -1
- package/es/api/resources/Rule.d.ts.map +1 -1
- package/es/api/resources/Rule.js +0 -3
- package/es/api/resources/Rule.js.map +1 -1
- package/es/api/resources/Tax.d.ts +2 -1
- package/es/api/resources/Tax.d.ts.map +1 -1
- package/es/api/resources/Tax.js +3 -0
- package/es/api/resources/Tax.js.map +1 -1
- package/es/api/resources/TaxDeadline.d.ts +2 -1
- package/es/api/resources/TaxDeadline.d.ts.map +1 -1
- package/es/api/resources/TaxDeadline.js +3 -0
- package/es/api/resources/TaxDeadline.js.map +1 -1
- package/es/api/resources/TimeRecorder.d.ts +1 -2
- package/es/api/resources/TimeRecorder.d.ts.map +1 -1
- package/es/api/resources/TimeRecorder.js +0 -3
- package/es/api/resources/TimeRecorder.js.map +1 -1
- package/es/api/resources/User.d.ts +1 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +3 -2
- package/es/api/resources/User.js.map +1 -1
- package/es/api/resources/VatDeclaration.d.ts +19 -4
- package/es/api/resources/VatDeclaration.d.ts.map +1 -1
- package/es/api/resources/VatDeclaration.js +63 -7
- package/es/api/resources/VatDeclaration.js.map +1 -1
- package/es/api/resources/statistic/CustomerSuccess.js +1 -1
- package/es/api/resources/statistic/CustomerSuccess.js.map +1 -1
- package/es/api/resources.d.ts +0 -6
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +0 -6
- package/es/api/resources.js.map +1 -1
- package/es/index.d.ts.map +1 -1
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/es/types/Enum/Account.d.ts +0 -8
- package/es/types/Enum/Account.d.ts.map +1 -1
- package/es/types/Enum/Account.js +0 -8
- package/es/types/Enum/Account.js.map +1 -1
- package/es/types/Enum/Activity.d.ts +0 -50
- package/es/types/Enum/Activity.d.ts.map +1 -1
- package/es/types/Enum/Activity.js +0 -50
- package/es/types/Enum/Activity.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +1 -1
- package/es/types/Enum/BalanceSheet.js +1 -1
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +126 -24
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +111 -24
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandComptalib.d.ts +83 -16
- package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/es/types/Enum/BrandComptalib.js +77 -14
- package/es/types/Enum/BrandComptalib.js.map +1 -1
- package/es/types/Enum/BrandLegalstart.d.ts +0 -22
- package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/es/types/Enum/BrandLegalstart.js +23 -45
- package/es/types/Enum/BrandLegalstart.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.d.ts +2 -115
- package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +1 -462
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- package/es/types/Enum/ConnectorType.d.ts +1 -0
- package/es/types/Enum/ConnectorType.d.ts.map +1 -1
- package/es/types/Enum/ConnectorType.js +1 -1
- package/es/types/Enum/ConnectorType.js.map +1 -1
- package/es/types/Enum/ConstitutionState.d.ts +2 -0
- package/es/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/es/types/Enum/ConstitutionState.js +10 -10
- package/es/types/Enum/ConstitutionState.js.map +1 -1
- package/es/types/Enum/Country.d.ts +0 -200
- package/es/types/Enum/Country.d.ts.map +1 -1
- package/es/types/Enum/Country.js +0 -393
- package/es/types/Enum/Country.js.map +1 -1
- package/es/types/Enum/Ged.d.ts +0 -1
- package/es/types/Enum/Ged.d.ts.map +1 -1
- package/es/types/Enum/Ged.js +1 -1
- package/es/types/Enum/Ged.js.map +1 -1
- package/es/types/Enum/InternalService.d.ts +0 -12
- package/es/types/Enum/InternalService.d.ts.map +1 -1
- package/es/types/Enum/InternalService.js +0 -12
- package/es/types/Enum/InternalService.js.map +1 -1
- package/es/types/Enum/JobTitle.d.ts +1 -8
- package/es/types/Enum/JobTitle.d.ts.map +1 -1
- package/es/types/Enum/JobTitle.js +0 -42
- package/es/types/Enum/JobTitle.js.map +1 -1
- package/es/types/Enum/Log.d.ts +1 -201
- package/es/types/Enum/Log.d.ts.map +1 -1
- package/es/types/Enum/Log.js +0 -200
- package/es/types/Enum/Log.js.map +1 -1
- package/es/types/Enum/MealExpenseThresholds.d.ts.map +1 -1
- package/es/types/Enum/MealExpenseThresholds.js +2 -6
- package/es/types/Enum/MealExpenseThresholds.js.map +1 -1
- package/es/types/Enum/MimeType.d.ts +0 -1
- package/es/types/Enum/MimeType.d.ts.map +1 -1
- package/es/types/Enum/MimeType.js +0 -1
- package/es/types/Enum/MimeType.js.map +1 -1
- package/es/types/Enum/NafCode.d.ts +22 -0
- package/es/types/Enum/NafCode.d.ts.map +1 -0
- package/es/types/Enum/NafCode.js +23 -0
- package/es/types/Enum/NafCode.js.map +1 -0
- package/es/types/Enum/NotificationType.d.ts +2 -15
- package/es/types/Enum/NotificationType.d.ts.map +1 -1
- package/es/types/Enum/NotificationType.js +5 -41
- package/es/types/Enum/NotificationType.js.map +1 -1
- package/es/types/Enum/Office.d.ts +19 -0
- package/es/types/Enum/Office.d.ts.map +1 -0
- package/es/types/Enum/Office.js +20 -0
- package/es/types/Enum/Office.js.map +1 -0
- package/es/types/Enum/Phone.js +1 -1
- package/es/types/Enum/Phone.js.map +1 -1
- package/es/types/Enum/PrestationType.d.ts +1 -5
- package/es/types/Enum/PrestationType.d.ts.map +1 -1
- package/es/types/Enum/PrestationType.js +0 -72
- package/es/types/Enum/PrestationType.js.map +1 -1
- package/es/types/Enum/Registration.d.ts +5 -0
- package/es/types/Enum/Registration.d.ts.map +1 -1
- package/es/types/Enum/Registration.js +6 -0
- package/es/types/Enum/Registration.js.map +1 -1
- package/es/types/Enum/RegistrationSource.d.ts +0 -1
- package/es/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/es/types/Enum/RegistrationSource.js +0 -1
- package/es/types/Enum/RegistrationSource.js.map +1 -1
- package/es/types/Enum/ReportService.d.ts +4 -9
- package/es/types/Enum/ReportService.d.ts.map +1 -1
- package/es/types/Enum/ReportService.js +6 -17
- package/es/types/Enum/ReportService.js.map +1 -1
- package/es/types/Enum/Role.d.ts +1 -3
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +0 -2
- package/es/types/Enum/Role.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +0 -22
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +1 -23
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/TaskResponseType.d.ts +1 -3
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +0 -57
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Enum/Tax.d.ts +5 -0
- package/es/types/Enum/Tax.d.ts.map +1 -1
- package/es/types/Enum/Tax.js +6 -0
- package/es/types/Enum/Tax.js.map +1 -1
- package/es/types/Enum/TaxSystem.d.ts +0 -2
- package/es/types/Enum/TaxSystem.d.ts.map +1 -1
- package/es/types/Enum/TaxSystem.js +0 -14
- package/es/types/Enum/TaxSystem.js.map +1 -1
- package/es/types/Enum/TimeRecorderLocation.d.ts +23 -0
- package/es/types/Enum/TimeRecorderLocation.d.ts.map +1 -0
- package/es/types/Enum/TimeRecorderLocation.js +6 -0
- package/es/types/Enum/TimeRecorderLocation.js.map +1 -0
- package/es/types/Enum/Unit.d.ts +1 -2
- package/es/types/Enum/Unit.d.ts.map +1 -1
- package/es/types/Enum/Unit.js +0 -11
- package/es/types/Enum/Unit.js.map +1 -1
- package/es/types/Enum/VatDeclarationType.js +40 -40
- package/es/types/Enum/VatDeclarationType.js.map +1 -1
- package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +1 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts.map +1 -1
- package/es/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +0 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -5
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.d.ts +5 -7
- package/es/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/es/types/Interface/api/cerfa/3310.d.ts +249 -0
- package/es/types/Interface/api/cerfa/3310.d.ts.map +1 -0
- package/es/types/Interface/api/cerfa/3310.js +2 -0
- package/es/types/Interface/api/cerfa/3310.js.map +1 -0
- package/es/types/Interface/api/cerfa/3514.d.ts +65 -0
- package/es/types/Interface/api/cerfa/3514.d.ts.map +1 -0
- package/es/types/Interface/api/cerfa/3514.js +2 -0
- package/es/types/Interface/api/cerfa/3514.js.map +1 -0
- package/es/types/Interface/api/cerfa/3517.d.ts +364 -0
- package/es/types/Interface/api/cerfa/3517.d.ts.map +1 -0
- package/es/types/Interface/api/cerfa/3517.js +6 -0
- package/es/types/Interface/api/cerfa/3517.js.map +1 -0
- package/es/types/Interface/api/cerfa/3519.d.ts +70 -0
- package/es/types/Interface/api/cerfa/3519.d.ts.map +1 -0
- package/es/types/Interface/api/cerfa/3519.js +2 -0
- package/es/types/Interface/api/cerfa/3519.js.map +1 -0
- package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +43 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.js +2 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/es/types/Interface/api/exercice/CreateExercice.d.ts +0 -1
- package/es/types/Interface/api/exercice/CreateExercice.d.ts.map +1 -1
- package/es/types/Interface/api/exercice/CreateExercice.js +0 -7
- package/es/types/Interface/api/exercice/CreateExercice.js.map +1 -1
- package/es/types/Interface/api/exercice/QueryExercice.d.ts +0 -1
- package/es/types/Interface/api/exercice/QueryExercice.d.ts.map +1 -1
- package/es/types/Interface/api/exercice/QueryExercice.js +0 -7
- package/es/types/Interface/api/exercice/QueryExercice.js.map +1 -1
- package/es/types/Interface/api/exercice/UpdateExercice.d.ts +0 -2
- package/es/types/Interface/api/exercice/UpdateExercice.d.ts.map +1 -1
- package/es/types/Interface/api/exercice/UpdateExercice.js +0 -14
- package/es/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccount.d.ts +0 -2
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccount.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccount.js.map +1 -1
- package/es/types/Interface/api/notification/CreateNotification.d.ts +2 -2
- package/es/types/Interface/api/notification/CreateNotification.d.ts.map +1 -1
- package/es/types/Interface/api/notification/CreateNotification.js +2 -2
- package/es/types/Interface/api/notification/CreateNotification.js.map +1 -1
- package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.d.ts +2 -2
- package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.d.ts.map +1 -1
- package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.js +2 -2
- package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.js.map +1 -1
- package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.d.ts +2 -2
- package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.d.ts.map +1 -1
- package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.js +2 -2
- package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.js.map +1 -1
- package/es/types/Interface/api/registration/CreateRegistration.d.ts +35 -0
- package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
- package/es/types/Interface/api/registration/CreateRegistration.js +130 -1
- package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/es/types/Interface/api/registration/DeclareRegistration.d.ts +10 -0
- package/es/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -1
- package/es/types/Interface/api/registration/DeclareRegistration.js +39 -2
- package/es/types/Interface/api/registration/DeclareRegistration.js.map +1 -1
- package/es/types/Interface/api/registration/QueryRegistration.d.ts +7 -0
- package/es/types/Interface/api/registration/QueryRegistration.d.ts.map +1 -1
- package/es/types/Interface/api/registration/QueryRegistration.js +31 -2
- package/es/types/Interface/api/registration/QueryRegistration.js.map +1 -1
- package/es/types/Interface/api/registration/ReadRegistration.d.ts +24 -1
- package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
- package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -1
- package/es/types/Interface/api/registration/UpdateRegistration.d.ts +10 -0
- package/es/types/Interface/api/registration/UpdateRegistration.d.ts.map +1 -0
- package/es/types/Interface/api/{statutsGeneration/CreateBusinessPartnersAndUsersParams.js → registration/UpdateRegistration.js} +24 -38
- package/es/types/Interface/api/registration/UpdateRegistration.js.map +1 -0
- package/es/types/Interface/api/report/ReadReportStats.d.ts +0 -1
- package/es/types/Interface/api/report/ReadReportStats.d.ts.map +1 -1
- package/es/types/Interface/api/report/ReadReportStats.js.map +1 -1
- package/es/types/Interface/api/society/CreateSociety.d.ts +0 -1
- package/es/types/Interface/api/society/CreateSociety.d.ts.map +1 -1
- package/es/types/Interface/api/society/CreateSociety.js +0 -4
- package/es/types/Interface/api/society/CreateSociety.js.map +1 -1
- package/es/types/Interface/api/statistic/QueryInternal.d.ts +0 -2
- package/es/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
- package/es/types/Interface/api/statistic/QueryInternal.js +1 -3
- package/es/types/Interface/api/statistic/QueryInternal.js.map +1 -1
- package/es/types/Interface/api/tax/QueryTax.d.ts +6 -0
- package/es/types/Interface/api/tax/QueryTax.d.ts.map +1 -0
- package/es/types/Interface/api/{file/Query.js → tax/QueryTax.js} +15 -3
- package/es/types/Interface/api/tax/QueryTax.js.map +1 -0
- package/es/types/Interface/api/tax/ReadTax.d.ts +24 -0
- package/es/types/Interface/api/tax/ReadTax.d.ts.map +1 -1
- package/es/types/Interface/api/tax/ReadTax.js +2 -1
- package/es/types/Interface/api/tax/ReadTax.js.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +19 -4
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +61 -11
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +25 -3
- package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
- package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.js +2 -0
- package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts +0 -1
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts.map +1 -1
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +0 -6
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts +0 -5
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts.map +1 -1
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +11 -11
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +27 -48
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/es/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +14 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +3 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -0
- package/es/types/Interface/models/IAccountingEntry.d.ts +2 -0
- package/es/types/Interface/models/IAccountingEntry.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingEntry.js.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -2
- package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction_new.d.ts +18 -0
- package/es/types/Interface/models/IAccountingTransaction_new.d.ts.map +1 -0
- package/es/types/Interface/models/IAccountingTransaction_new.js +2 -0
- package/es/types/Interface/models/IAccountingTransaction_new.js.map +1 -0
- package/es/types/Interface/models/IAccountsSocieties.d.ts +0 -2
- package/es/types/Interface/models/IAccountsSocieties.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountsSocieties.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +1 -7
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +0 -8
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IAreasInvoice.d.ts +1 -0
- package/es/types/Interface/models/IAreasInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IAreasInvoice.js.map +1 -1
- package/es/types/Interface/models/IAutoLoginToken.d.ts +10 -0
- package/es/types/Interface/models/IAutoLoginToken.d.ts.map +1 -0
- package/es/types/Interface/models/IAutoLoginToken.js +2 -0
- package/es/types/Interface/models/IAutoLoginToken.js.map +1 -0
- package/es/types/Interface/models/IBalanceSheet.d.ts +0 -4
- package/es/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/es/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/es/types/Interface/models/IBankTransaction.d.ts +34 -0
- package/es/types/Interface/models/IBankTransaction.d.ts.map +1 -0
- package/es/types/Interface/models/IBankTransaction.js +2 -0
- package/es/types/Interface/models/IBankTransaction.js.map +1 -0
- package/es/types/Interface/models/ICallDirectly.d.ts +26 -0
- package/es/types/Interface/models/ICallDirectly.d.ts.map +1 -0
- package/es/types/Interface/models/ICallDirectly.js +2 -0
- package/es/types/Interface/models/ICallDirectly.js.map +1 -0
- package/es/types/Interface/models/ICustomerTva.d.ts +8 -7
- package/es/types/Interface/models/ICustomerTva.d.ts.map +1 -1
- package/es/types/Interface/models/ICustomerTva.js.map +1 -1
- package/es/types/Interface/models/IEngagementAccountingEntry.d.ts +27 -0
- package/es/types/Interface/models/IEngagementAccountingEntry.d.ts.map +1 -0
- package/es/types/Interface/models/IEngagementAccountingEntry.js +2 -0
- package/es/types/Interface/models/IEngagementAccountingEntry.js.map +1 -0
- package/es/types/Interface/models/IEngagementAccountingFile.d.ts +43 -0
- package/es/types/Interface/models/IEngagementAccountingFile.d.ts.map +1 -0
- package/es/types/Interface/models/IEngagementAccountingFile.js +2 -0
- package/es/types/Interface/models/IEngagementAccountingFile.js.map +1 -0
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts +33 -0
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -0
- package/es/types/Interface/models/IEngagementBankTransaction.js +2 -0
- package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -0
- package/es/types/Interface/models/IEstimateInvoice.d.ts +0 -1
- package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/es/types/Interface/models/IExercice.d.ts +0 -5
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/Interface/models/IFaq.d.ts +15 -0
- package/es/types/Interface/models/IFaq.d.ts.map +1 -0
- package/es/types/Interface/models/IFaq.js +2 -0
- package/es/types/Interface/models/IFaq.js.map +1 -0
- package/es/types/Interface/models/IFaqCategory.d.ts +5 -0
- package/es/types/Interface/models/IFaqCategory.d.ts.map +1 -0
- package/es/types/Interface/models/IFaqCategory.js +2 -0
- package/es/types/Interface/models/IFaqCategory.js.map +1 -0
- package/es/types/Interface/models/IFollowedQualityMail.d.ts +13 -0
- package/es/types/Interface/models/IFollowedQualityMail.d.ts.map +1 -0
- package/es/types/Interface/models/IFollowedQualityMail.js +2 -0
- package/es/types/Interface/models/IFollowedQualityMail.js.map +1 -0
- package/es/types/Interface/models/IFollowedQualityMailType.d.ts +7 -0
- package/es/types/Interface/models/IFollowedQualityMailType.d.ts.map +1 -0
- package/es/types/Interface/models/IFollowedQualityMailType.js +2 -0
- package/es/types/Interface/models/IFollowedQualityMailType.js.map +1 -0
- package/es/types/Interface/models/IGedFile.d.ts +0 -3
- package/es/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/es/types/Interface/models/IGedFile.js.map +1 -1
- package/es/types/Interface/models/IIdentification.d.ts +18 -0
- package/es/types/Interface/models/IIdentification.d.ts.map +1 -0
- package/es/types/Interface/models/IIdentification.js +2 -0
- package/es/types/Interface/models/IIdentification.js.map +1 -0
- package/es/types/Interface/models/IImmobilization.d.ts +0 -2
- package/es/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/es/types/Interface/models/IImmobilization.js.map +1 -1
- package/es/types/Interface/models/IInterestedByFeature.d.ts +11 -0
- package/es/types/Interface/models/IInterestedByFeature.d.ts.map +1 -0
- package/es/types/Interface/models/IInterestedByFeature.js +2 -0
- package/es/types/Interface/models/IInterestedByFeature.js.map +1 -0
- package/es/types/Interface/models/IJob.d.ts +12 -0
- package/es/types/Interface/models/IJob.d.ts.map +1 -0
- package/es/types/Interface/models/IJob.js +2 -0
- package/es/types/Interface/models/IJob.js.map +1 -0
- package/es/types/Interface/models/IJobCategory.d.ts +9 -0
- package/es/types/Interface/models/IJobCategory.d.ts.map +1 -0
- package/es/types/Interface/models/IJobCategory.js +2 -0
- package/es/types/Interface/models/IJobCategory.js.map +1 -0
- package/es/types/Interface/models/IKilometricAllowanceScale.d.ts +0 -1
- package/es/types/Interface/models/IKilometricAllowanceScale.d.ts.map +1 -1
- package/es/types/Interface/models/IKilometricAllowanceScale.js.map +1 -1
- package/es/types/Interface/models/ILettering.d.ts +4 -0
- package/es/types/Interface/models/ILettering.d.ts.map +1 -1
- package/es/types/Interface/models/ILettering.js.map +1 -1
- package/es/types/Interface/models/ILog.d.ts +2 -0
- package/es/types/Interface/models/ILog.d.ts.map +1 -1
- package/es/types/Interface/models/ILog.js.map +1 -1
- package/es/types/Interface/models/IMobileNotificationLog.d.ts +2 -2
- package/es/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -1
- package/es/types/Interface/models/IMobileNotificationLog.js.map +1 -1
- package/es/types/Interface/models/IMobileNotificationSetting.d.ts +2 -2
- package/es/types/Interface/models/IMobileNotificationSetting.d.ts.map +1 -1
- package/es/types/Interface/models/IMobileNotificationSetting.js.map +1 -1
- package/es/types/Interface/models/IPageView.d.ts +10 -0
- package/es/types/Interface/models/IPageView.d.ts.map +1 -0
- package/es/types/Interface/models/IPageView.js +2 -0
- package/es/types/Interface/models/IPageView.js.map +1 -0
- package/es/types/Interface/models/IPayment.d.ts +0 -1
- package/es/types/Interface/models/IPayment.d.ts.map +1 -1
- package/es/types/Interface/models/IPayment.js.map +1 -1
- package/es/types/Interface/models/IPenalty.d.ts +27 -0
- package/es/types/Interface/models/IPenalty.d.ts.map +1 -0
- package/es/types/Interface/models/IPenalty.js +2 -0
- package/es/types/Interface/models/IPenalty.js.map +1 -0
- package/es/types/Interface/models/IPenaltyType.d.ts +7 -0
- package/es/types/Interface/models/IPenaltyType.d.ts.map +1 -0
- package/es/types/Interface/models/IPenaltyType.js +2 -0
- package/es/types/Interface/models/IPenaltyType.js.map +1 -0
- package/es/types/Interface/models/IRegistration.d.ts +12 -1
- package/es/types/Interface/models/IRegistration.d.ts.map +1 -1
- package/es/types/Interface/models/IRegistration.js.map +1 -1
- package/es/types/Interface/models/{IVatDeclarationCertificate.d.ts → IRegistrationCertificate.d.ts} +6 -3
- package/es/types/Interface/models/IRegistrationCertificate.d.ts.map +1 -0
- package/es/types/Interface/models/IRegistrationCertificate.js +2 -0
- package/es/types/Interface/models/IRegistrationCertificate.js.map +1 -0
- package/es/types/Interface/models/IRegulate.d.ts +3 -5
- package/es/types/Interface/models/IRegulate.d.ts.map +1 -1
- package/es/types/Interface/models/IRegulate.js.map +1 -1
- package/es/types/Interface/models/IReport.d.ts +0 -3
- package/es/types/Interface/models/IReport.d.ts.map +1 -1
- package/es/types/Interface/models/IReport.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +3 -6
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/Interface/models/ISocietyApproval.d.ts +2 -4
- package/es/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyApproval.js.map +1 -1
- package/es/types/Interface/models/ISocietyDetail.d.ts +97 -97
- package/es/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/es/types/Interface/models/ISuggestion.d.ts +14 -0
- package/es/types/Interface/models/ISuggestion.d.ts.map +1 -0
- package/es/types/Interface/models/ISuggestion.js +2 -0
- package/es/types/Interface/models/ISuggestion.js.map +1 -0
- package/es/types/Interface/models/ISupervision.d.ts +4 -0
- package/es/types/Interface/models/ISupervision.d.ts.map +1 -1
- package/es/types/Interface/models/ISupervision.js.map +1 -1
- package/es/types/Interface/models/ISupervisionJob.d.ts +8 -0
- package/es/types/Interface/models/ISupervisionJob.d.ts.map +1 -0
- package/es/types/Interface/models/ISupervisionJob.js +2 -0
- package/es/types/Interface/models/ISupervisionJob.js.map +1 -0
- package/es/types/Interface/models/IThirdPartySociety.d.ts +0 -2
- package/es/types/Interface/models/IThirdPartySociety.d.ts.map +1 -1
- package/es/types/Interface/models/IThirdPartySociety.js.map +1 -1
- package/es/types/Interface/models/ITmpValidationToken.d.ts +11 -0
- package/es/types/Interface/models/ITmpValidationToken.d.ts.map +1 -0
- package/es/types/Interface/models/ITmpValidationToken.js +2 -0
- package/es/types/Interface/models/ITmpValidationToken.js.map +1 -0
- package/es/types/Interface/models/IUser.d.ts +0 -6
- package/es/types/Interface/models/IUser.d.ts.map +1 -1
- package/es/types/Interface/models/IUser.js.map +1 -1
- package/es/types/Interface/models/IUserSocietyTicketSupport.d.ts +9 -0
- package/es/types/Interface/models/IUserSocietyTicketSupport.d.ts.map +1 -0
- package/es/types/Interface/models/IUserSocietyTicketSupport.js +2 -0
- package/es/types/Interface/models/IUserSocietyTicketSupport.js.map +1 -0
- package/es/types/Interface/models/IVatDeclaration.d.ts +3 -2
- package/es/types/Interface/models/IVatDeclaration.d.ts.map +1 -1
- package/es/types/Interface/models/IVatDeclaration.js.map +1 -1
- package/es/types/Interface/models/IVatMargin.d.ts +7 -0
- package/es/types/Interface/models/IVatMargin.d.ts.map +1 -0
- package/es/types/Interface/models/IVatMargin.js +2 -0
- package/es/types/Interface/models/IVatMargin.js.map +1 -0
- package/es/types/Interface/models/IWebMailSpam.d.ts +8 -0
- package/es/types/Interface/models/IWebMailSpam.d.ts.map +1 -0
- package/es/types/Interface/models/IWebMailSpam.js +2 -0
- package/es/types/Interface/models/IWebMailSpam.js.map +1 -0
- package/es/types/Interface/models/IWebMailSpamType.d.ts +7 -0
- package/es/types/Interface/models/IWebMailSpamType.d.ts.map +1 -0
- package/es/types/Interface/models/IWebMailSpamType.js +2 -0
- package/es/types/Interface/models/IWebMailSpamType.js.map +1 -0
- package/es/types/Interface/models/IWorkingSchedule.d.ts +0 -2
- package/es/types/Interface/models/IWorkingSchedule.d.ts.map +1 -1
- package/es/types/Interface/models/IWorkingSchedule.js.map +1 -1
- package/es/types/Interface/schemas/IRegistrationDetail.d.ts +11 -0
- package/es/types/Interface/schemas/IRegistrationDetail.d.ts.map +1 -0
- package/es/types/Interface/schemas/IRegistrationDetail.js +2 -0
- package/es/types/Interface/schemas/IRegistrationDetail.js.map +1 -0
- package/es/types/Interface/schemas/ITransactionHistory.d.ts +11 -0
- package/es/types/Interface/schemas/ITransactionHistory.d.ts.map +1 -0
- package/es/types/Interface/schemas/ITransactionHistory.js +2 -0
- package/es/types/Interface/schemas/ITransactionHistory.js.map +1 -0
- package/es/types/index.d.ts +38 -29
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +39 -29
- package/es/types/index.js.map +1 -1
- package/es/utils/amount.d.ts +0 -1
- package/es/utils/amount.d.ts.map +1 -1
- package/es/utils/amount.js +0 -300
- package/es/utils/amount.js.map +1 -1
- package/es/utils/brands.d.ts +0 -8
- package/es/utils/brands.d.ts.map +1 -1
- package/es/utils/brands.js.map +1 -1
- package/es/utils/email/templates/signature.d.ts.map +1 -1
- package/es/utils/email/templates/signature.js +7 -6
- package/es/utils/email/templates/signature.js.map +1 -1
- package/es/utils/email.js +2 -2
- package/es/utils/email.js.map +1 -1
- package/es/utils/phone.d.ts +1 -1
- package/es/utils/phone.d.ts.map +1 -1
- package/es/utils/phone.js +8 -8
- package/es/utils/phone.js.map +1 -1
- package/es/utils/quotation.d.ts.map +1 -1
- package/es/utils/quotation.js +3 -5
- package/es/utils/quotation.js.map +1 -1
- package/es/utils/vat/3310/century23.d.ts +7 -0
- package/es/utils/vat/3310/century23.d.ts.map +1 -0
- package/es/utils/vat/3310/century23.js +1396 -0
- package/es/utils/vat/3310/century23.js.map +1 -0
- package/es/utils/vat/3514/century22.d.ts +5 -0
- package/es/utils/vat/3514/century22.d.ts.map +1 -0
- package/es/utils/vat/3514/century22.js +100 -0
- package/es/utils/vat/3514/century22.js.map +1 -0
- package/es/utils/vat/3514/century23.d.ts +4 -0
- package/es/utils/vat/3514/century23.d.ts.map +1 -0
- package/es/utils/vat/3514/century23.js +116 -0
- package/es/utils/vat/3514/century23.js.map +1 -0
- package/es/utils/vat/3517/century23.d.ts +40 -0
- package/es/utils/vat/3517/century23.d.ts.map +1 -0
- package/es/utils/vat/3517/century23.js +1741 -0
- package/es/utils/vat/3517/century23.js.map +1 -0
- package/es/utils/vat/3519/century17.d.ts +5 -0
- package/es/utils/vat/3519/century17.d.ts.map +1 -0
- package/es/utils/vat/3519/century17.js +86 -0
- package/es/utils/vat/3519/century17.js.map +1 -0
- package/es/utils/vat/3519/century23.d.ts +4 -0
- package/es/utils/vat/3519/century23.d.ts.map +1 -0
- package/es/utils/vat/3519/century23.js +145 -0
- package/es/utils/vat/3519/century23.js.map +1 -0
- package/es/utils/vat/centuries.d.ts +4 -0
- package/es/utils/vat/centuries.d.ts.map +1 -0
- package/es/utils/vat/centuries.js +57 -0
- package/es/utils/vat/centuries.js.map +1 -0
- package/es/utils/vat/index.d.ts +4 -0
- package/es/utils/vat/index.d.ts.map +1 -0
- package/es/utils/vat/index.js +4 -0
- package/es/utils/vat/index.js.map +1 -0
- package/es/utils/vat/registration.d.ts +9 -0
- package/es/utils/vat/registration.d.ts.map +1 -0
- package/es/utils/vat/registration.js +118 -0
- package/es/utils/vat/registration.js.map +1 -0
- package/es/utils/vat/utils.d.ts +5 -0
- package/es/utils/vat/utils.d.ts.map +1 -0
- package/es/utils/vat/utils.js +46 -0
- package/es/utils/vat/utils.js.map +1 -0
- package/export-models.json +28811 -0
- package/importInterfaces.ts +91 -0
- package/js/api/resources/AccountingFiles.js +1 -7
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/api/resources/CommercialSetting.js +3 -0
- package/js/api/resources/CommercialSetting.js.map +1 -1
- package/js/api/resources/FIle.js +0 -6
- package/js/api/resources/FIle.js.map +1 -1
- package/js/api/resources/Invoice.js +0 -6
- package/js/api/resources/Invoice.js.map +1 -1
- package/js/api/resources/Mail.js +0 -5
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/Notification.js +1 -7
- package/js/api/resources/Notification.js.map +1 -1
- package/js/api/resources/Prestations.js +0 -8
- package/js/api/resources/Prestations.js.map +1 -1
- package/js/api/resources/Registration.js +3 -0
- package/js/api/resources/Registration.js.map +1 -1
- package/js/api/resources/Report.js +0 -7
- package/js/api/resources/Report.js.map +1 -1
- package/js/api/resources/Rule.js +0 -3
- package/js/api/resources/Rule.js.map +1 -1
- package/js/api/resources/Tax.js +5 -0
- package/js/api/resources/Tax.js.map +1 -1
- package/js/api/resources/TaxDeadline.js +7 -0
- package/js/api/resources/TaxDeadline.js.map +1 -1
- package/js/api/resources/TimeRecorder.js +0 -5
- package/js/api/resources/TimeRecorder.js.map +1 -1
- package/js/api/resources/User.js +3 -2
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources/VatDeclaration.js +91 -7
- package/js/api/resources/VatDeclaration.js.map +1 -1
- package/js/api/resources/statistic/CustomerSuccess.js +1 -1
- package/js/api/resources/statistic/CustomerSuccess.js.map +1 -1
- package/js/api/resources.js +1 -7
- package/js/api/resources.js.map +1 -1
- package/js/index.js.map +1 -1
- package/js/types/Enum/Account.js +0 -8
- package/js/types/Enum/Account.js.map +1 -1
- package/js/types/Enum/Activity.js +0 -50
- package/js/types/Enum/Activity.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +1 -1
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +109 -24
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandComptalib.js +76 -14
- package/js/types/Enum/BrandComptalib.js.map +1 -1
- package/js/types/Enum/BrandLegalstart.js +23 -45
- package/js/types/Enum/BrandLegalstart.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +1 -457
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- package/js/types/Enum/ConnectorType.js +1 -1
- package/js/types/Enum/ConnectorType.js.map +1 -1
- package/js/types/Enum/ConstitutionState.js +6 -6
- package/js/types/Enum/ConstitutionState.js.map +1 -1
- package/js/types/Enum/Country.js +0 -780
- package/js/types/Enum/Country.js.map +1 -1
- package/js/types/Enum/Ged.js +1 -1
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Enum/InternalService.js +0 -12
- package/js/types/Enum/InternalService.js.map +1 -1
- package/js/types/Enum/JobTitle.js +0 -35
- package/js/types/Enum/JobTitle.js.map +1 -1
- package/js/types/Enum/Log.js +0 -200
- package/js/types/Enum/Log.js.map +1 -1
- package/js/types/Enum/MealExpenseThresholds.js +2 -6
- package/js/types/Enum/MealExpenseThresholds.js.map +1 -1
- package/js/types/Enum/MimeType.js +0 -1
- package/js/types/Enum/MimeType.js.map +1 -1
- package/js/types/Enum/NafCode.js +28 -0
- package/js/types/Enum/NafCode.js.map +1 -0
- package/js/types/Enum/NotificationType.js +5 -41
- package/js/types/Enum/NotificationType.js.map +1 -1
- package/js/types/Enum/Office.js +25 -0
- package/js/types/Enum/Office.js.map +1 -0
- package/js/types/Enum/Phone.js +1 -1
- package/js/types/Enum/Phone.js.map +1 -1
- package/js/types/Enum/PrestationType.js +0 -72
- package/js/types/Enum/PrestationType.js.map +1 -1
- package/js/types/Enum/Registration.js +6 -0
- package/js/types/Enum/Registration.js.map +1 -1
- package/js/types/Enum/RegistrationSource.js +0 -1
- package/js/types/Enum/RegistrationSource.js.map +1 -1
- package/js/types/Enum/ReportService.js +9 -21
- package/js/types/Enum/ReportService.js.map +1 -1
- package/js/types/Enum/Role.js +0 -2
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +8 -30
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/TaskResponseType.js +0 -52
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Enum/Tax.js +6 -0
- package/js/types/Enum/Tax.js.map +1 -1
- package/js/types/Enum/TaxSystem.js +0 -10
- package/js/types/Enum/TaxSystem.js.map +1 -1
- package/js/types/Enum/TimeRecorderLocation.js +14 -0
- package/js/types/Enum/TimeRecorderLocation.js.map +1 -0
- package/js/types/Enum/Unit.js +0 -10
- package/js/types/Enum/Unit.js.map +1 -1
- package/js/types/Enum/VatDeclarationType.js +40 -40
- package/js/types/Enum/VatDeclarationType.js.map +1 -1
- package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +0 -1
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/js/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/js/types/Interface/api/{accountingFiles/Read.js → cerfa/3310.js} +1 -1
- package/js/types/Interface/api/cerfa/3310.js.map +1 -0
- package/js/types/Interface/api/{commercialImport/Read.js → cerfa/3514.js} +1 -1
- package/js/types/Interface/api/cerfa/3514.js.map +1 -0
- package/js/types/Interface/api/cerfa/3517.js +8 -0
- package/js/types/Interface/api/cerfa/3517.js.map +1 -0
- package/js/types/Interface/api/{companeo/CompaneoReturn.js → cerfa/3519.js} +1 -1
- package/js/types/Interface/api/cerfa/3519.js.map +1 -0
- package/js/types/Interface/api/cerfa/ReadCerfa.js +2 -0
- package/js/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/js/types/Interface/api/exercice/CreateExercice.js +0 -1
- package/js/types/Interface/api/exercice/CreateExercice.js.map +1 -1
- package/js/types/Interface/api/exercice/QueryExercice.js +0 -1
- package/js/types/Interface/api/exercice/QueryExercice.js.map +1 -1
- package/js/types/Interface/api/exercice/UpdateExercice.js +0 -2
- package/js/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
- package/js/types/Interface/api/generalLedger/IGeneralLedgerAccount.js.map +1 -1
- package/js/types/Interface/api/notification/CreateNotification.js +1 -1
- package/js/types/Interface/api/notification/CreateNotification.js.map +1 -1
- package/js/types/Interface/api/notificationSetting/CreateNotificationSetting.js +1 -1
- package/js/types/Interface/api/notificationSetting/CreateNotificationSetting.js.map +1 -1
- package/js/types/Interface/api/notificationSetting/UpdateNotificationSetting.js +1 -1
- package/js/types/Interface/api/notificationSetting/UpdateNotificationSetting.js.map +1 -1
- package/js/types/Interface/api/registration/CreateRegistration.js +34 -1
- package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/js/types/Interface/api/registration/DeclareRegistration.js +11 -1
- package/js/types/Interface/api/registration/DeclareRegistration.js.map +1 -1
- package/js/types/Interface/api/registration/QueryRegistration.js +11 -3
- package/js/types/Interface/api/registration/QueryRegistration.js.map +1 -1
- package/js/types/Interface/api/registration/ReadRegistration.js.map +1 -1
- package/js/types/Interface/api/registration/UpdateRegistration.js +29 -0
- package/js/types/Interface/api/registration/UpdateRegistration.js.map +1 -0
- package/js/types/Interface/api/report/ReadReportStats.js.map +1 -1
- package/js/types/Interface/api/society/CreateSociety.js +0 -1
- package/js/types/Interface/api/society/CreateSociety.js.map +1 -1
- package/js/types/Interface/api/statistic/QueryInternal.js +2 -4
- package/js/types/Interface/api/statistic/QueryInternal.js.map +1 -1
- package/js/types/Interface/api/{team/QueryCreate.js → tax/QueryTax.js} +7 -6
- package/js/types/Interface/api/tax/QueryTax.js.map +1 -0
- package/js/types/Interface/api/tax/ReadTax.js +2 -0
- package/js/types/Interface/api/tax/ReadTax.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +21 -6
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/ReadTaxDeadline.js +2 -0
- package/js/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +0 -1
- package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
- package/js/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +15 -16
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/js/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +8 -0
- package/js/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -0
- package/js/types/Interface/models/IAccountingEntry.js.map +1 -1
- package/js/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/js/types/Interface/models/IAccountingTransaction_new.js +6 -0
- package/js/types/Interface/models/IAccountingTransaction_new.js.map +1 -0
- package/js/types/Interface/models/IAccountsSocieties.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +0 -8
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IAreasInvoice.js.map +1 -1
- package/js/types/Interface/models/{IAppNotification.js → IAutoLoginToken.js} +1 -1
- package/js/types/Interface/models/IAutoLoginToken.js.map +1 -0
- package/js/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/js/types/Interface/models/IBankTransaction.js +6 -0
- package/js/types/Interface/models/IBankTransaction.js.map +1 -0
- package/js/types/Interface/models/ICallDirectly.js +6 -0
- package/js/types/Interface/models/ICallDirectly.js.map +1 -0
- package/js/types/Interface/models/ICustomerTva.js.map +1 -1
- package/js/types/Interface/models/IEngagementAccountingEntry.js +6 -0
- package/js/types/Interface/models/IEngagementAccountingEntry.js.map +1 -0
- package/js/types/Interface/models/IEngagementAccountingFile.js +6 -0
- package/js/types/Interface/models/IEngagementAccountingFile.js.map +1 -0
- package/js/types/Interface/models/IEngagementBankTransaction.js +6 -0
- package/js/types/Interface/models/IEngagementBankTransaction.js.map +1 -0
- package/js/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/js/types/Interface/models/IExercice.js.map +1 -1
- package/js/types/Interface/models/IFaq.js +6 -0
- package/js/types/Interface/models/IFaq.js.map +1 -0
- package/js/types/Interface/models/IFaqCategory.js +6 -0
- package/js/types/Interface/models/IFaqCategory.js.map +1 -0
- package/js/types/Interface/models/IFollowedQualityMail.js +6 -0
- package/js/types/Interface/models/IFollowedQualityMail.js.map +1 -0
- package/js/types/Interface/models/IFollowedQualityMailType.js +6 -0
- package/js/types/Interface/models/IFollowedQualityMailType.js.map +1 -0
- package/js/types/Interface/models/IGedFile.js.map +1 -1
- package/js/types/Interface/models/IIdentification.js +6 -0
- package/js/types/Interface/models/IIdentification.js.map +1 -0
- package/js/types/Interface/models/IImmobilization.js.map +1 -1
- package/js/types/Interface/models/IInterestedByFeature.js +6 -0
- package/js/types/Interface/models/IInterestedByFeature.js.map +1 -0
- package/js/types/Interface/models/IJob.js +6 -0
- package/js/types/Interface/models/IJob.js.map +1 -0
- package/js/types/Interface/models/IJobCategory.js +6 -0
- package/js/types/Interface/models/IJobCategory.js.map +1 -0
- package/js/types/Interface/models/IKilometricAllowanceScale.js.map +1 -1
- package/js/types/Interface/models/ILettering.js.map +1 -1
- package/js/types/Interface/models/ILog.js.map +1 -1
- package/js/types/Interface/models/IMobileNotificationLog.js.map +1 -1
- package/js/types/Interface/models/IMobileNotificationSetting.js.map +1 -1
- package/js/types/Interface/models/IPageView.js +6 -0
- package/js/types/Interface/models/IPageView.js.map +1 -0
- package/js/types/Interface/models/IPayment.js.map +1 -1
- package/js/types/Interface/models/IPenalty.js +6 -0
- package/js/types/Interface/models/IPenalty.js.map +1 -0
- package/js/types/Interface/models/IPenaltyType.js +6 -0
- package/js/types/Interface/models/IPenaltyType.js.map +1 -0
- package/js/types/Interface/models/IRegistration.js.map +1 -1
- package/js/types/Interface/models/IRegistrationCertificate.js +6 -0
- package/js/types/Interface/models/IRegistrationCertificate.js.map +1 -0
- package/js/types/Interface/models/IRegulate.js.map +1 -1
- package/js/types/Interface/models/IReport.js.map +1 -1
- package/js/types/Interface/models/ISociety.js.map +1 -1
- package/js/types/Interface/models/ISocietyApproval.js.map +1 -1
- package/js/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/js/types/Interface/models/ISuggestion.js +6 -0
- package/js/types/Interface/models/ISuggestion.js.map +1 -0
- package/js/types/Interface/models/ISupervision.js.map +1 -1
- package/js/types/Interface/models/ISupervisionJob.js +6 -0
- package/js/types/Interface/models/ISupervisionJob.js.map +1 -0
- package/js/types/Interface/models/IThirdPartySociety.js.map +1 -1
- package/js/types/Interface/models/ITmpValidationToken.js +6 -0
- package/js/types/Interface/models/ITmpValidationToken.js.map +1 -0
- package/js/types/Interface/models/IUser.js.map +1 -1
- package/js/types/Interface/models/IUserSocietyTicketSupport.js +6 -0
- package/js/types/Interface/models/IUserSocietyTicketSupport.js.map +1 -0
- package/js/types/Interface/models/IVatDeclaration.js.map +1 -1
- package/js/types/Interface/models/IVatMargin.js +6 -0
- package/js/types/Interface/models/IVatMargin.js.map +1 -0
- package/js/types/Interface/models/IWebMailSpam.js +6 -0
- package/js/types/Interface/models/IWebMailSpam.js.map +1 -0
- package/js/types/Interface/models/IWebMailSpamType.js +6 -0
- package/js/types/Interface/models/IWebMailSpamType.js.map +1 -0
- package/js/types/Interface/models/IWorkingSchedule.js.map +1 -1
- package/js/types/Interface/schemas/IRegistrationDetail.js +6 -0
- package/js/types/Interface/schemas/IRegistrationDetail.js.map +1 -0
- package/js/types/Interface/schemas/ITransactionHistory.js +6 -0
- package/js/types/Interface/schemas/ITransactionHistory.js.map +1 -0
- package/js/types/index.js +403 -313
- package/js/types/index.js.map +1 -1
- package/js/utils/amount.js +0 -238
- package/js/utils/amount.js.map +1 -1
- package/js/utils/brands.js.map +1 -1
- package/js/utils/email/templates/signature.js +7 -6
- package/js/utils/email/templates/signature.js.map +1 -1
- package/js/utils/email.js +2 -2
- package/js/utils/email.js.map +1 -1
- package/js/utils/phone.js +8 -8
- package/js/utils/phone.js.map +1 -1
- package/js/utils/quotation.js +3 -5
- package/js/utils/quotation.js.map +1 -1
- package/js/utils/vat/3310/century23.js +1241 -0
- package/js/utils/vat/3310/century23.js.map +1 -0
- package/js/utils/vat/3514/century22.js +104 -0
- package/js/utils/vat/3514/century22.js.map +1 -0
- package/js/utils/vat/3514/century23.js +106 -0
- package/js/utils/vat/3514/century23.js.map +1 -0
- package/js/utils/vat/3517/century23.js +1814 -0
- package/js/utils/vat/3517/century23.js.map +1 -0
- package/js/utils/vat/3519/century17.js +91 -0
- package/js/utils/vat/3519/century17.js.map +1 -0
- package/js/utils/vat/3519/century23.js +134 -0
- package/js/utils/vat/3519/century23.js.map +1 -0
- package/js/utils/vat/centuries.js +64 -0
- package/js/utils/vat/centuries.js.map +1 -0
- package/js/utils/vat/index.js +36 -0
- package/js/utils/vat/index.js.map +1 -0
- package/js/utils/vat/registration.js +165 -0
- package/js/utils/vat/registration.js.map +1 -0
- package/js/utils/vat/utils.js +53 -0
- package/js/utils/vat/utils.js.map +1 -0
- package/package.json +1 -1
- package/table.json +264 -0
- package/ts/api/resources/AccountingFiles.ts +3 -10
- package/ts/api/resources/CommercialSetting.ts +5 -1
- package/ts/api/resources/FIle.ts +0 -5
- package/ts/api/resources/Invoice.ts +0 -8
- package/ts/api/resources/Mail.ts +0 -5
- package/ts/api/resources/Notification.ts +1 -10
- package/ts/api/resources/Prestations.ts +0 -9
- package/ts/api/resources/Registration.ts +5 -0
- package/ts/api/resources/Report.ts +1 -4
- package/ts/api/resources/Rule.ts +0 -4
- package/ts/api/resources/Tax.ts +5 -1
- package/ts/api/resources/TaxDeadline.ts +7 -1
- package/ts/api/resources/TimeRecorder.ts +1 -4
- package/ts/api/resources/User.ts +3 -2
- package/ts/api/resources/VatDeclaration.ts +69 -9
- package/ts/api/resources/statistic/CustomerSuccess.ts +1 -1
- package/ts/api/resources.ts +0 -6
- package/ts/index.ts +1 -0
- package/ts/types/Enum/Account.ts +0 -8
- package/ts/types/Enum/Activity.ts +1 -52
- package/ts/types/Enum/BalanceSheet.ts +1 -1
- package/ts/types/Enum/BrandClementine.ts +111 -24
- package/ts/types/Enum/BrandComptalib.ts +77 -14
- package/ts/types/Enum/BrandLegalstart.ts +23 -45
- package/ts/types/Enum/BrandPourcentage.ts +1 -462
- package/ts/types/Enum/ConnectorType.ts +1 -1
- package/ts/types/Enum/ConstitutionState.ts +4 -4
- package/ts/types/Enum/Country.ts +0 -394
- package/ts/types/Enum/Ged.ts +1 -1
- package/ts/types/Enum/InternalService.ts +0 -12
- package/ts/types/Enum/JobTitle.ts +0 -42
- package/ts/types/Enum/Log.ts +1 -202
- package/ts/types/Enum/MealExpenseThresholds.ts +2 -6
- package/ts/types/Enum/MimeType.ts +0 -1
- package/ts/types/Enum/NafCode.ts +21 -0
- package/ts/types/Enum/NotificationType.ts +2 -49
- package/ts/types/Enum/Office.ts +19 -0
- package/ts/types/Enum/Phone.ts +1 -1
- package/ts/types/Enum/PrestationType.ts +0 -72
- package/ts/types/Enum/Registration.ts +6 -0
- package/ts/types/Enum/RegistrationSource.ts +0 -1
- package/ts/types/Enum/ReportService.ts +8 -20
- package/ts/types/Enum/Role.ts +0 -2
- package/ts/types/Enum/RoleDetail.ts +1 -23
- package/ts/types/Enum/TaskResponseType.ts +0 -57
- package/ts/types/Enum/Tax.ts +6 -0
- package/ts/types/Enum/TaxSystem.ts +1 -18
- package/ts/types/Enum/TimeRecorderLocation.ts +9 -0
- package/ts/types/Enum/Unit.ts +0 -11
- package/ts/types/Enum/VatDeclarationType.ts +40 -40
- package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +1 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +1 -4
- package/ts/types/Interface/api/aspone/ReadInterchange.ts +6 -4
- package/ts/types/Interface/api/cerfa/3310.ts +247 -0
- package/ts/types/Interface/api/cerfa/3514.ts +67 -0
- package/ts/types/Interface/api/cerfa/3517.ts +334 -0
- package/ts/types/Interface/api/cerfa/3519.ts +53 -0
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +47 -2
- package/ts/types/Interface/api/exercice/CreateExercice.ts +0 -6
- package/ts/types/Interface/api/exercice/QueryExercice.ts +0 -6
- package/ts/types/Interface/api/exercice/UpdateExercice.ts +0 -12
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccount.ts +1 -3
- package/ts/types/Interface/api/notification/CreateNotification.ts +3 -3
- package/ts/types/Interface/api/notificationSetting/CreateNotificationSetting.ts +3 -3
- package/ts/types/Interface/api/notificationSetting/UpdateNotificationSetting.ts +3 -3
- package/ts/types/Interface/api/registration/CreateRegistration.ts +112 -1
- package/ts/types/Interface/api/registration/DeclareRegistration.ts +34 -2
- package/ts/types/Interface/api/registration/QueryRegistration.ts +27 -2
- package/ts/types/Interface/api/registration/ReadRegistration.ts +29 -2
- package/ts/types/Interface/api/registration/UpdateRegistration.ts +42 -0
- package/ts/types/Interface/api/report/ReadReportStats.ts +1 -2
- package/ts/types/Interface/api/society/CreateSociety.ts +0 -3
- package/ts/types/Interface/api/statistic/QueryInternal.ts +0 -2
- package/ts/types/Interface/api/tax/QueryTax.ts +16 -0
- package/ts/types/Interface/api/tax/ReadTax.ts +25 -0
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +52 -10
- package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +18 -3
- package/ts/types/Interface/api/timeRecorder/QueryPaginatedDelays.ts +0 -5
- package/ts/types/Interface/api/timeRecorder/ReadPaginatedDelays.ts +2 -8
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +23 -42
- package/ts/types/Interface/api/vatDeclaration/ReadVatDeclaration.ts +14 -0
- package/ts/types/Interface/models/IAccountingEntry.ts +2 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +1 -2
- package/ts/types/Interface/models/IAccountingTransaction_new.ts +20 -0
- package/ts/types/Interface/models/IAccountsSocieties.ts +0 -4
- package/ts/types/Interface/models/IApiError.ts +0 -10
- package/ts/types/Interface/models/IAreasInvoice.ts +1 -0
- package/ts/types/Interface/models/IAutoLoginToken.ts +10 -0
- package/ts/types/Interface/models/IBalanceSheet.ts +0 -4
- package/ts/types/Interface/models/IBankTransaction.ts +37 -0
- package/ts/types/Interface/models/ICallDirectly.ts +29 -0
- package/ts/types/Interface/models/ICustomerTva.ts +8 -7
- package/ts/types/Interface/models/IEngagementAccountingEntry.ts +30 -0
- package/ts/types/Interface/models/IEngagementAccountingFile.ts +46 -0
- package/ts/types/Interface/models/IEngagementBankTransaction.ts +36 -0
- package/ts/types/Interface/models/IEstimateInvoice.ts +0 -1
- package/ts/types/Interface/models/IExercice.ts +0 -5
- package/ts/types/Interface/models/IFaq.ts +18 -0
- package/ts/types/Interface/models/IFaqCategory.ts +5 -0
- package/ts/types/Interface/models/IFollowedQualityMail.ts +16 -0
- package/ts/types/Interface/models/IFollowedQualityMailType.ts +7 -0
- package/ts/types/Interface/models/IGedFile.ts +0 -3
- package/ts/types/Interface/models/IIdentification.ts +21 -0
- package/ts/types/Interface/models/IImmobilization.ts +0 -2
- package/ts/types/Interface/models/IInterestedByFeature.ts +14 -0
- package/ts/types/Interface/models/IJob.ts +15 -0
- package/ts/types/Interface/models/IJobCategory.ts +12 -0
- package/ts/types/Interface/models/IKilometricAllowanceScale.ts +0 -1
- package/ts/types/Interface/models/ILettering.ts +8 -0
- package/ts/types/Interface/models/ILog.ts +2 -0
- package/ts/types/Interface/models/IMobileNotificationLog.ts +2 -2
- package/ts/types/Interface/models/IMobileNotificationSetting.ts +2 -2
- package/ts/types/Interface/models/IPageView.ts +13 -0
- package/ts/types/Interface/models/IPayment.ts +0 -1
- package/ts/types/Interface/models/IPenalty.ts +30 -0
- package/ts/types/Interface/models/IPenaltyType.ts +7 -0
- package/ts/types/Interface/models/IRegistration.ts +12 -1
- package/ts/types/Interface/models/{IVatDeclarationCertificate.ts → IRegistrationCertificate.ts} +5 -3
- package/ts/types/Interface/models/IRegulate.ts +3 -5
- package/ts/types/Interface/models/IReport.ts +0 -3
- package/ts/types/Interface/models/ISociety.ts +2 -8
- package/ts/types/Interface/models/ISocietyApproval.ts +2 -4
- package/ts/types/Interface/models/ISocietyDetail.ts +97 -97
- package/ts/types/Interface/models/ISuggestion.ts +17 -0
- package/ts/types/Interface/models/ISupervision.ts +4 -0
- package/ts/types/Interface/models/ISupervisionJob.ts +8 -0
- package/ts/types/Interface/models/IThirdPartySociety.ts +0 -5
- package/ts/types/Interface/models/ITmpValidationToken.ts +14 -0
- package/ts/types/Interface/models/IUser.ts +0 -6
- package/ts/types/Interface/models/IUserSocietyTicketSupport.ts +9 -0
- package/ts/types/Interface/models/IVatDeclaration.ts +4 -3
- package/ts/types/Interface/models/IVatMargin.ts +7 -0
- package/ts/types/Interface/models/IWebMailSpam.ts +8 -0
- package/ts/types/Interface/models/IWebMailSpamType.ts +7 -0
- package/ts/types/Interface/models/IWorkingSchedule.ts +0 -2
- package/ts/types/Interface/schemas/IRegistrationDetail.ts +11 -0
- package/ts/types/Interface/schemas/ITransactionHistory.ts +11 -0
- package/ts/types/index.ts +42 -30
- package/ts/utils/amount.ts +0 -171
- package/ts/utils/brands.ts +0 -8
- package/ts/utils/email/templates/signature.ts +7 -6
- package/ts/utils/email.ts +2 -2
- package/ts/utils/phone.ts +8 -8
- package/ts/utils/quotation.ts +3 -5
- package/ts/utils/vat/3310/century23.ts +1408 -0
- package/ts/utils/vat/3514/century22.ts +107 -0
- package/ts/utils/vat/3514/century23.ts +118 -0
- package/ts/utils/vat/3517/century23.ts +1763 -0
- package/ts/utils/vat/3519/century17.ts +88 -0
- package/ts/utils/vat/3519/century23.ts +147 -0
- package/ts/utils/vat/centuries.ts +66 -0
- package/ts/utils/vat/index.ts +3 -0
- package/ts/utils/vat/registration.ts +124 -0
- package/ts/utils/vat/utils.ts +47 -0
- package/es/api/resources/CashAndExpense.d.ts +0 -8
- package/es/api/resources/CashAndExpense.d.ts.map +0 -1
- package/es/api/resources/CashAndExpense.js +0 -27
- package/es/api/resources/CashAndExpense.js.map +0 -1
- package/es/api/resources/CommercialImport.d.ts +0 -9
- package/es/api/resources/CommercialImport.d.ts.map +0 -1
- package/es/api/resources/CommercialImport.js +0 -24
- package/es/api/resources/CommercialImport.js.map +0 -1
- package/es/api/resources/Team.d.ts +0 -30
- package/es/api/resources/Team.d.ts.map +0 -1
- package/es/api/resources/Team.js +0 -37
- package/es/api/resources/Team.js.map +0 -1
- package/es/types/Enum/BrandClems.d.ts +0 -164
- package/es/types/Enum/BrandClems.d.ts.map +0 -1
- package/es/types/Enum/BrandClems.js +0 -155
- package/es/types/Enum/BrandClems.js.map +0 -1
- package/es/types/Enum/CashDeskTransactionType.d.ts +0 -7
- package/es/types/Enum/CashDeskTransactionType.d.ts.map +0 -1
- package/es/types/Enum/CashDeskTransactionType.js +0 -8
- package/es/types/Enum/CashDeskTransactionType.js.map +0 -1
- package/es/types/Enum/CommercialImportHeader.d.ts +0 -12
- package/es/types/Enum/CommercialImportHeader.d.ts.map +0 -1
- package/es/types/Enum/CommercialImportHeader.js +0 -109
- package/es/types/Enum/CommercialImportHeader.js.map +0 -1
- package/es/types/Enum/Compensation.d.ts +0 -15
- package/es/types/Enum/Compensation.d.ts.map +0 -1
- package/es/types/Enum/Compensation.js +0 -15
- package/es/types/Enum/Compensation.js.map +0 -1
- package/es/types/Enum/EntityType.d.ts +0 -18
- package/es/types/Enum/EntityType.d.ts.map +0 -1
- package/es/types/Enum/EntityType.js +0 -66
- package/es/types/Enum/EntityType.js.map +0 -1
- package/es/types/Enum/PaymentExpectation.d.ts +0 -18
- package/es/types/Enum/PaymentExpectation.d.ts.map +0 -1
- package/es/types/Enum/PaymentExpectation.js +0 -66
- package/es/types/Enum/PaymentExpectation.js.map +0 -1
- package/es/types/Enum/ReasonTerminationType.d.ts +0 -23
- package/es/types/Enum/ReasonTerminationType.d.ts.map +0 -1
- package/es/types/Enum/ReasonTerminationType.js +0 -86
- package/es/types/Enum/ReasonTerminationType.js.map +0 -1
- package/es/types/Enum/RemoteType.d.ts +0 -10
- package/es/types/Enum/RemoteType.d.ts.map +0 -1
- package/es/types/Enum/RemoteType.js +0 -21
- package/es/types/Enum/RemoteType.js.map +0 -1
- package/es/types/Enum/ThirdParty.d.ts +0 -7
- package/es/types/Enum/ThirdParty.d.ts.map +0 -1
- package/es/types/Enum/ThirdParty.js +0 -7
- package/es/types/Enum/ThirdParty.js.map +0 -1
- package/es/types/Interface/api/accountingFiles/Read.d.ts +0 -6
- package/es/types/Interface/api/accountingFiles/Read.d.ts.map +0 -1
- package/es/types/Interface/api/accountingFiles/Read.js +0 -2
- package/es/types/Interface/api/accountingFiles/Read.js.map +0 -1
- package/es/types/Interface/api/appNotification/Update.d.ts +0 -5
- package/es/types/Interface/api/appNotification/Update.d.ts.map +0 -1
- package/es/types/Interface/api/appNotification/Update.js +0 -25
- package/es/types/Interface/api/appNotification/Update.js.map +0 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts +0 -4
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts.map +0 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.js +0 -19
- package/es/types/Interface/api/archive/ImportSocietyArchive.js.map +0 -1
- package/es/types/Interface/api/cashAndExpense/Create.d.ts +0 -27
- package/es/types/Interface/api/cashAndExpense/Create.d.ts.map +0 -1
- package/es/types/Interface/api/cashAndExpense/Create.js +0 -91
- package/es/types/Interface/api/cashAndExpense/Create.js.map +0 -1
- package/es/types/Interface/api/commercialImport/Create.d.ts +0 -11
- package/es/types/Interface/api/commercialImport/Create.d.ts.map +0 -1
- package/es/types/Interface/api/commercialImport/Create.js +0 -34
- package/es/types/Interface/api/commercialImport/Create.js.map +0 -1
- package/es/types/Interface/api/commercialImport/Query.d.ts +0 -12
- package/es/types/Interface/api/commercialImport/Query.d.ts.map +0 -1
- package/es/types/Interface/api/commercialImport/Query.js +0 -23
- package/es/types/Interface/api/commercialImport/Query.js.map +0 -1
- package/es/types/Interface/api/commercialImport/Read.d.ts +0 -41
- package/es/types/Interface/api/commercialImport/Read.d.ts.map +0 -1
- package/es/types/Interface/api/commercialImport/Read.js +0 -2
- package/es/types/Interface/api/commercialImport/Read.js.map +0 -1
- package/es/types/Interface/api/companeo/CompaneoReturn.d.ts +0 -46
- package/es/types/Interface/api/companeo/CompaneoReturn.d.ts.map +0 -1
- package/es/types/Interface/api/companeo/CompaneoReturn.js +0 -2
- package/es/types/Interface/api/companeo/CompaneoReturn.js.map +0 -1
- package/es/types/Interface/api/file/Query.d.ts +0 -4
- package/es/types/Interface/api/file/Query.d.ts.map +0 -1
- package/es/types/Interface/api/file/Query.js.map +0 -1
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts +0 -7
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts.map +0 -1
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js +0 -39
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +0 -1
- package/es/types/Interface/api/report/QueryReportsForLetter.d.ts +0 -5
- package/es/types/Interface/api/report/QueryReportsForLetter.d.ts.map +0 -1
- package/es/types/Interface/api/report/QueryReportsForLetter.js +0 -24
- package/es/types/Interface/api/report/QueryReportsForLetter.js.map +0 -1
- package/es/types/Interface/api/society/CreateSocietyDetail.d.ts +0 -6
- package/es/types/Interface/api/society/CreateSocietyDetail.d.ts.map +0 -1
- package/es/types/Interface/api/society/CreateSocietyDetail.js +0 -32
- package/es/types/Interface/api/society/CreateSocietyDetail.js.map +0 -1
- package/es/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.d.ts +0 -15
- package/es/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.d.ts.map +0 -1
- package/es/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js.map +0 -1
- package/es/types/Interface/api/statutsGeneration/SendInviteMailParams.d.ts +0 -4
- package/es/types/Interface/api/statutsGeneration/SendInviteMailParams.d.ts.map +0 -1
- package/es/types/Interface/api/statutsGeneration/SendInviteMailParams.js +0 -19
- package/es/types/Interface/api/statutsGeneration/SendInviteMailParams.js.map +0 -1
- package/es/types/Interface/api/statutsGeneration/UpdateExercice.d.ts +0 -5
- package/es/types/Interface/api/statutsGeneration/UpdateExercice.d.ts.map +0 -1
- package/es/types/Interface/api/statutsGeneration/UpdateExercice.js +0 -26
- package/es/types/Interface/api/statutsGeneration/UpdateExercice.js.map +0 -1
- package/es/types/Interface/api/statutsGeneration/UpdateExerciceParams.d.ts +0 -5
- package/es/types/Interface/api/statutsGeneration/UpdateExerciceParams.d.ts.map +0 -1
- package/es/types/Interface/api/statutsGeneration/UpdateExerciceParams.js +0 -26
- package/es/types/Interface/api/statutsGeneration/UpdateExerciceParams.js.map +0 -1
- package/es/types/Interface/api/team/QueryCreate.d.ts +0 -5
- package/es/types/Interface/api/team/QueryCreate.d.ts.map +0 -1
- package/es/types/Interface/api/team/QueryCreate.js +0 -25
- package/es/types/Interface/api/team/QueryCreate.js.map +0 -1
- package/es/types/Interface/api/team/QueryGetAllWithIncludes.d.ts +0 -5
- package/es/types/Interface/api/team/QueryGetAllWithIncludes.d.ts.map +0 -1
- package/es/types/Interface/api/team/QueryGetAllWithIncludes.js +0 -28
- package/es/types/Interface/api/team/QueryGetAllWithIncludes.js.map +0 -1
- package/es/types/Interface/api/team/QueryUpdate.d.ts +0 -7
- package/es/types/Interface/api/team/QueryUpdate.d.ts.map +0 -1
- package/es/types/Interface/api/team/QueryUpdate.js +0 -38
- package/es/types/Interface/api/team/QueryUpdate.js.map +0 -1
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts +0 -5
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts.map +0 -1
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +0 -25
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +0 -1
- package/es/types/Interface/models/IAppNotification.d.ts +0 -20
- package/es/types/Interface/models/IAppNotification.d.ts.map +0 -1
- package/es/types/Interface/models/IAppNotification.js +0 -2
- package/es/types/Interface/models/IAppNotification.js.map +0 -1
- package/es/types/Interface/models/IVatDeclarationCertificate.d.ts.map +0 -1
- package/es/types/Interface/models/IVatDeclarationCertificate.js +0 -2
- package/es/types/Interface/models/IVatDeclarationCertificate.js.map +0 -1
- package/js/api/resources/CashAndExpense.js +0 -37
- package/js/api/resources/CashAndExpense.js.map +0 -1
- package/js/api/resources/CommercialImport.js +0 -38
- package/js/api/resources/CommercialImport.js.map +0 -1
- package/js/api/resources/Team.js +0 -46
- package/js/api/resources/Team.js.map +0 -1
- package/js/types/Enum/BrandClems.js +0 -157
- package/js/types/Enum/BrandClems.js.map +0 -1
- package/js/types/Enum/CashDeskTransactionType.js +0 -13
- package/js/types/Enum/CashDeskTransactionType.js.map +0 -1
- package/js/types/Enum/CommercialImportHeader.js +0 -114
- package/js/types/Enum/CommercialImportHeader.js.map +0 -1
- package/js/types/Enum/Compensation.js +0 -20
- package/js/types/Enum/Compensation.js.map +0 -1
- package/js/types/Enum/EntityType.js +0 -64
- package/js/types/Enum/EntityType.js.map +0 -1
- package/js/types/Enum/PaymentExpectation.js +0 -60
- package/js/types/Enum/PaymentExpectation.js.map +0 -1
- package/js/types/Enum/ReasonTerminationType.js +0 -74
- package/js/types/Enum/ReasonTerminationType.js.map +0 -1
- package/js/types/Enum/RemoteType.js +0 -22
- package/js/types/Enum/RemoteType.js.map +0 -1
- package/js/types/Enum/ThirdParty.js +0 -12
- package/js/types/Enum/ThirdParty.js.map +0 -1
- package/js/types/Interface/api/accountingFiles/Read.js.map +0 -1
- package/js/types/Interface/api/appNotification/Update.js +0 -24
- package/js/types/Interface/api/appNotification/Update.js.map +0 -1
- package/js/types/Interface/api/archive/ImportSocietyArchive.js +0 -22
- package/js/types/Interface/api/archive/ImportSocietyArchive.js.map +0 -1
- package/js/types/Interface/api/cashAndExpense/Create.js +0 -44
- package/js/types/Interface/api/cashAndExpense/Create.js.map +0 -1
- package/js/types/Interface/api/commercialImport/Create.js +0 -27
- package/js/types/Interface/api/commercialImport/Create.js.map +0 -1
- package/js/types/Interface/api/commercialImport/Query.js +0 -24
- package/js/types/Interface/api/commercialImport/Query.js.map +0 -1
- package/js/types/Interface/api/commercialImport/Read.js.map +0 -1
- package/js/types/Interface/api/companeo/CompaneoReturn.js.map +0 -1
- package/js/types/Interface/api/file/Query.js +0 -21
- package/js/types/Interface/api/file/Query.js.map +0 -1
- package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js +0 -30
- package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +0 -1
- package/js/types/Interface/api/report/QueryReportsForLetter.js +0 -23
- package/js/types/Interface/api/report/QueryReportsForLetter.js.map +0 -1
- package/js/types/Interface/api/society/CreateSocietyDetail.js +0 -24
- package/js/types/Interface/api/society/CreateSocietyDetail.js.map +0 -1
- package/js/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js +0 -34
- package/js/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js.map +0 -1
- package/js/types/Interface/api/statutsGeneration/SendInviteMailParams.js +0 -22
- package/js/types/Interface/api/statutsGeneration/SendInviteMailParams.js.map +0 -1
- package/js/types/Interface/api/statutsGeneration/UpdateExercice.js +0 -23
- package/js/types/Interface/api/statutsGeneration/UpdateExercice.js.map +0 -1
- package/js/types/Interface/api/statutsGeneration/UpdateExerciceParams.js +0 -23
- package/js/types/Interface/api/statutsGeneration/UpdateExerciceParams.js.map +0 -1
- package/js/types/Interface/api/team/QueryCreate.js.map +0 -1
- package/js/types/Interface/api/team/QueryGetAllWithIncludes.js +0 -24
- package/js/types/Interface/api/team/QueryGetAllWithIncludes.js.map +0 -1
- package/js/types/Interface/api/team/QueryUpdate.js +0 -25
- package/js/types/Interface/api/team/QueryUpdate.js.map +0 -1
- package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +0 -23
- package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +0 -1
- package/js/types/Interface/models/IAppNotification.js.map +0 -1
- package/js/types/Interface/models/IVatDeclarationCertificate.js +0 -6
- package/js/types/Interface/models/IVatDeclarationCertificate.js.map +0 -1
- package/ts/api/resources/CashAndExpense.ts +0 -31
- package/ts/api/resources/CommercialImport.ts +0 -32
- package/ts/api/resources/Team.ts +0 -43
- package/ts/types/Enum/BrandClems.ts +0 -154
- package/ts/types/Enum/CashDeskTransactionType.ts +0 -6
- package/ts/types/Enum/CommercialImportHeader.ts +0 -119
- package/ts/types/Enum/Compensation.ts +0 -14
- package/ts/types/Enum/EntityType.ts +0 -65
- package/ts/types/Enum/PaymentExpectation.ts +0 -65
- package/ts/types/Enum/ReasonTerminationType.ts +0 -85
- package/ts/types/Enum/RemoteType.ts +0 -20
- package/ts/types/Enum/ThirdParty.ts +0 -6
- package/ts/types/Interface/api/accountingFiles/Read.ts +0 -6
- package/ts/types/Interface/api/appNotification/Update.ts +0 -13
- package/ts/types/Interface/api/archive/ImportSocietyArchive.ts +0 -8
- package/ts/types/Interface/api/cashAndExpense/Create.ts +0 -67
- package/ts/types/Interface/api/commercialImport/Create.ts +0 -22
- package/ts/types/Interface/api/commercialImport/Query.ts +0 -35
- package/ts/types/Interface/api/commercialImport/Read.ts +0 -41
- package/ts/types/Interface/api/companeo/CompaneoReturn.ts +0 -47
- package/ts/types/Interface/api/file/Query.ts +0 -6
- package/ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts +0 -27
- package/ts/types/Interface/api/report/QueryReportsForLetter.ts +0 -12
- package/ts/types/Interface/api/society/CreateSocietyDetail.ts +0 -19
- package/ts/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.ts +0 -54
- package/ts/types/Interface/api/statutsGeneration/SendInviteMailParams.ts +0 -10
- package/ts/types/Interface/api/statutsGeneration/UpdateExercice.ts +0 -16
- package/ts/types/Interface/api/statutsGeneration/UpdateExerciceParams.ts +0 -16
- package/ts/types/Interface/api/team/QueryCreate.ts +0 -13
- package/ts/types/Interface/api/team/QueryGetAllWithIncludes.ts +0 -16
- package/ts/types/Interface/api/team/QueryUpdate.ts +0 -26
- package/ts/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.ts +0 -15
- package/ts/types/Interface/models/IAppNotification.ts +0 -22
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getCerfa3519Century23RegistrationFields = getCerfa3519Century23RegistrationFields;
|
|
7
|
+
var _dayjs = require("dayjs");
|
|
8
|
+
var dayjs = _interopRequireWildcard(_dayjs);
|
|
9
|
+
var _utils = require("../utils");
|
|
10
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
+
function getCerfa3519Century23RegistrationFields(data) {
|
|
13
|
+
var _a, _b, _c, _d;
|
|
14
|
+
const comment = (0, _utils.textFormatting)(data.comment);
|
|
15
|
+
return [{
|
|
16
|
+
name: '3519',
|
|
17
|
+
fields: [{
|
|
18
|
+
key: 'DD',
|
|
19
|
+
tag: 'Valeur',
|
|
20
|
+
isMultiple: false,
|
|
21
|
+
description: 'Entreprise française',
|
|
22
|
+
value: data.declaration.nationality.isFrench ? 'X' : null
|
|
23
|
+
}, {
|
|
24
|
+
key: 'DN',
|
|
25
|
+
tag: 'Valeur',
|
|
26
|
+
isMultiple: false,
|
|
27
|
+
description: 'Remboursement demandé',
|
|
28
|
+
value: data.refund.amount
|
|
29
|
+
}, {
|
|
30
|
+
key: 'DG',
|
|
31
|
+
tag: 'Designation',
|
|
32
|
+
isMultiple: false,
|
|
33
|
+
description: 'Soussigné',
|
|
34
|
+
value: (0, _utils.textFormatting)(data.refund.name, 35)
|
|
35
|
+
}, {
|
|
36
|
+
key: 'DG',
|
|
37
|
+
tag: 'DesignationSuite1',
|
|
38
|
+
isMultiple: false,
|
|
39
|
+
description: 'Titre',
|
|
40
|
+
value: (0, _utils.textFormatting)(data.refund.quality, 35)
|
|
41
|
+
}, {
|
|
42
|
+
key: 'DG',
|
|
43
|
+
tag: 'DesignationSuite2',
|
|
44
|
+
isMultiple: false,
|
|
45
|
+
description: 'Qualité',
|
|
46
|
+
value: (0, _utils.textFormatting)(data.refund.quality, 35)
|
|
47
|
+
}, {
|
|
48
|
+
key: 'DG',
|
|
49
|
+
tag: 'AdresseVille',
|
|
50
|
+
isMultiple: false,
|
|
51
|
+
description: 'Lieu',
|
|
52
|
+
value: (0, _utils.textFormatting)(data.refund.place, 35)
|
|
53
|
+
}, {
|
|
54
|
+
key: 'FK',
|
|
55
|
+
tag: 'Valeur',
|
|
56
|
+
isMultiple: false,
|
|
57
|
+
description: 'A créditer au compte désigné',
|
|
58
|
+
value: data.declaration.shouldCredit ? 'X' : null
|
|
59
|
+
}, {
|
|
60
|
+
key: 'AA',
|
|
61
|
+
tag: 'Iban',
|
|
62
|
+
isMultiple: false,
|
|
63
|
+
description: 'IBAN',
|
|
64
|
+
value: data.bankAccount.iban ? (_a = (0, _utils.textFormatting)(data.bankAccount.iban.toUpperCase())) === null || _a === void 0 ? void 0 : _a.replace(/\s/g, '') : null
|
|
65
|
+
}, {
|
|
66
|
+
key: 'AA',
|
|
67
|
+
tag: 'Bic',
|
|
68
|
+
isMultiple: false,
|
|
69
|
+
description: 'BIC',
|
|
70
|
+
value: data.bankAccount.bic ? (0, _utils.textFormatting)(data.bankAccount.bic.toUpperCase()) : null
|
|
71
|
+
}, {
|
|
72
|
+
key: 'AA',
|
|
73
|
+
tag: 'TitulaireDesignation',
|
|
74
|
+
isMultiple: false,
|
|
75
|
+
description: 'Désignation du titulaire',
|
|
76
|
+
value: null
|
|
77
|
+
}, {
|
|
78
|
+
key: 'DI',
|
|
79
|
+
tag: 'Valeur',
|
|
80
|
+
isMultiple: false,
|
|
81
|
+
description: 'Première demande',
|
|
82
|
+
value: data.refund.firstTime.is ? 'X' : null
|
|
83
|
+
}, {
|
|
84
|
+
key: 'DL',
|
|
85
|
+
tag: 'Valeur',
|
|
86
|
+
isMultiple: false,
|
|
87
|
+
description: 'Création le',
|
|
88
|
+
value: data.refund.firstTime.is && data.refund.firstTime.date ? dayjs(data.refund.firstTime.date).format('YYYYMMDD') : null
|
|
89
|
+
}, {
|
|
90
|
+
key: 'DJ',
|
|
91
|
+
tag: 'Valeur',
|
|
92
|
+
isMultiple: false,
|
|
93
|
+
description: 'Cession, cessation, décès, entrée dans un groupe TVA',
|
|
94
|
+
value: data.refund.closing.is ? 'X' : null
|
|
95
|
+
}, {
|
|
96
|
+
key: 'DM',
|
|
97
|
+
tag: 'Valeur',
|
|
98
|
+
isMultiple: false,
|
|
99
|
+
description: 'Le :',
|
|
100
|
+
value: data.refund.closing.is && data.refund.closing.date ? dayjs(data.refund.closing.date).format('YYYYMMDD') : null
|
|
101
|
+
}, {
|
|
102
|
+
key: 'DK',
|
|
103
|
+
tag: 'Valeur',
|
|
104
|
+
isMultiple: false,
|
|
105
|
+
description: 'Autres',
|
|
106
|
+
value: data.refund.other ? 'X' : null
|
|
107
|
+
}, {
|
|
108
|
+
key: 'FJ',
|
|
109
|
+
tag: 'TexteLibre1',
|
|
110
|
+
isMultiple: false,
|
|
111
|
+
description: 'Commentaires',
|
|
112
|
+
value: (0, _utils.textFormatting)(comment, 512)
|
|
113
|
+
}, {
|
|
114
|
+
key: 'FJ',
|
|
115
|
+
tag: 'TexteLibre2',
|
|
116
|
+
isMultiple: false,
|
|
117
|
+
description: 'Commentaires',
|
|
118
|
+
value: comment && ((_b = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _b !== void 0 ? _b : 0) > 512 ? (0, _utils.textFormatting)(comment.slice(512, 1024)) : null
|
|
119
|
+
}, {
|
|
120
|
+
key: 'FJ',
|
|
121
|
+
tag: 'TexteLibre3',
|
|
122
|
+
isMultiple: false,
|
|
123
|
+
description: 'Commentaires',
|
|
124
|
+
value: comment && ((_c = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _c !== void 0 ? _c : 0) > 1024 ? (0, _utils.textFormatting)(comment.slice(1024, 1536)) : null
|
|
125
|
+
}, {
|
|
126
|
+
key: 'FJ',
|
|
127
|
+
tag: 'TexteLibre4',
|
|
128
|
+
isMultiple: false,
|
|
129
|
+
description: 'Commentaires',
|
|
130
|
+
value: comment && ((_d = comment === null || comment === void 0 ? void 0 : comment.length) !== null && _d !== void 0 ? _d : 0) > 1536 ? (0, _utils.textFormatting)(comment.slice(1536, 2048)) : null
|
|
131
|
+
}]
|
|
132
|
+
}];
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=century23.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"century23.js","names":["getCerfa3519Century23RegistrationFields","_dayjs","require","dayjs","_interopRequireWildcard","_utils","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","data","comment","textFormatting","name","fields","tag","isMultiple","description","value","declaration","nationality","isFrench","refund","amount","quality","place","shouldCredit","bankAccount","iban","_a","toUpperCase","replace","bic","firstTime","is","date","format","closing","other","_b","length","slice","_c","_d"],"sources":["../../../../ts/utils/vat/3519/century23.ts"],"sourcesContent":["import * as dayjs from 'dayjs';\nimport { Cerfa3519_2017 } from '../../../types/Interface/api/cerfa/3519';\nimport { AsponeFormFields } from '../../../types/Interface/api/cerfa/ReadCerfa';\nimport { textFormatting } from '../utils';\n\nexport function getCerfa3519Century23RegistrationFields(data: Cerfa3519_2017): AsponeFormFields {\n const comment = textFormatting(data.comment);\n\n return [{\n name: '3519',\n fields: [\n {\n key: 'DD',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Entreprise française',\n value: data.declaration.nationality.isFrench ? 'X' : null,\n },\n {\n key: 'DN',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Remboursement demandé',\n value: data.refund.amount,\n },\n {\n key: 'DG',\n tag: 'Designation',\n isMultiple: false,\n description: 'Soussigné',\n value: textFormatting(data.refund.name, 35),\n },\n {\n key: 'DG',\n tag: 'DesignationSuite1',\n isMultiple: false,\n description: 'Titre',\n value: textFormatting(data.refund.quality, 35),\n },\n {\n key: 'DG',\n tag: 'DesignationSuite2',\n isMultiple: false,\n description: 'Qualité',\n value: textFormatting(data.refund.quality, 35),\n },\n {\n key: 'DG',\n tag: 'AdresseVille',\n isMultiple: false,\n description: 'Lieu',\n value: textFormatting(data.refund.place, 35),\n },\n {\n key: 'FK',\n tag: 'Valeur',\n isMultiple: false,\n description: 'A créditer au compte désigné',\n value: data.declaration.shouldCredit ? 'X' : null,\n },\n {\n key: 'AA',\n tag: 'Iban',\n isMultiple: false,\n description: 'IBAN',\n value: data.bankAccount.iban ? textFormatting(data.bankAccount.iban.toUpperCase())?.replace(/\\s/g, '') : null,\n },\n {\n key: 'AA',\n tag: 'Bic',\n isMultiple: false,\n description: 'BIC',\n value: data.bankAccount.bic ? textFormatting(data.bankAccount.bic.toUpperCase()) : null,\n },\n {\n key: 'AA',\n tag: 'TitulaireDesignation',\n isMultiple: false,\n description: 'Désignation du titulaire',\n value: null,\n },\n {\n key: 'DI',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Première demande',\n value: data.refund.firstTime.is ? 'X' : null,\n },\n {\n key: 'DL',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Création le',\n value: data.refund.firstTime.is && data.refund.firstTime.date ? dayjs(data.refund.firstTime.date).format('YYYYMMDD') : null,\n },\n {\n key: 'DJ',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Cession, cessation, décès, entrée dans un groupe TVA',\n value: data.refund.closing.is ? 'X' : null,\n },\n {\n key: 'DM',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Le :',\n value: data.refund.closing.is && data.refund.closing.date ? dayjs(data.refund.closing.date).format('YYYYMMDD') : null,\n },\n {\n key: 'DK',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Autres',\n value: data.refund.other ? 'X' : null,\n },\n {\n key: 'FJ',\n tag: 'TexteLibre1',\n isMultiple: false,\n description: 'Commentaires',\n value: textFormatting(comment, 512),\n },\n {\n key: 'FJ',\n tag: 'TexteLibre2',\n isMultiple: false,\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,\n },\n {\n key: 'FJ',\n tag: 'TexteLibre3',\n isMultiple: false,\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,\n },\n {\n key: 'FJ',\n tag: 'TexteLibre4',\n isMultiple: false,\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,\n },\n ],\n }];\n}"],"mappings":";;;;;QAKgBA,uCAAuC,GAAvCA,uCAAuC;AALvD,IAAAC,MAAA,GAAAC,OAAA;AAA+B,IAAnBC,KAAK,GAAAC,uBAAA,CAAAH,MAAA;AAGjB,IAAAI,MAAA,GAAAH,OAAA;AAA0C,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GA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AC,CAAAgC,EAAA,GAAAhC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE6B,MAAM,cAAAG,EAAA,cAAAA,EAAA,GAAI,CAAC,IAAI,IAAI,GAAG,IAAA/B,qBAAc,EAACD,OAAO,CAAC8B,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG;KAC/F;GAEJ,CAAC;AACJ"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getVatCerfaObject = undefined;
|
|
7
|
+
var _dayjs = require("dayjs");
|
|
8
|
+
var dayjs = _interopRequireWildcard(_dayjs);
|
|
9
|
+
var _CerfaType = require("../../types/Enum/CerfaType");
|
|
10
|
+
var _century = require("./3310/century23");
|
|
11
|
+
var _century2 = require("./3519/century17");
|
|
12
|
+
var _century3 = require("./3519/century23");
|
|
13
|
+
var _century4 = require("./3514/century22");
|
|
14
|
+
var _century5 = require("./3514/century23");
|
|
15
|
+
var _century6 = require("./3517/century23");
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
+
const vatDocuments = [{
|
|
19
|
+
idCerfaType: _CerfaType.CerfaType.CERFA_3310,
|
|
20
|
+
name: '3310',
|
|
21
|
+
century: '23',
|
|
22
|
+
centuries: [2022, 2023, 2024, 2025],
|
|
23
|
+
payload: (accountingEntries, payload) => (0, _century.getCerfa3310Century23Payload)(accountingEntries, payload),
|
|
24
|
+
asponePayload: data => (0, _century.getCerfa3310Century23RegistrationFields)(data),
|
|
25
|
+
fields: _century.cerfa3310Century23Fields,
|
|
26
|
+
fileName: '3310-2023',
|
|
27
|
+
annex: {
|
|
28
|
+
name: '3519',
|
|
29
|
+
century: '23',
|
|
30
|
+
shouldInclude: data => {
|
|
31
|
+
var _a;
|
|
32
|
+
return Boolean(((_a = data.credit) === null || _a === void 0 ? void 0 : _a.refundAsked) && data.credit.refundAsked > 0);
|
|
33
|
+
},
|
|
34
|
+
payload: (amount, payload) => (0, _century2.getCerfa3519Century17Payload)(amount, payload),
|
|
35
|
+
asponePayload: data => (0, _century3.getCerfa3519Century23RegistrationFields)(data),
|
|
36
|
+
fields: _century2.cerfa3519Century17Fields,
|
|
37
|
+
fileName: '3519-2017'
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
idCerfaType: _CerfaType.CerfaType.CERFA_3514,
|
|
41
|
+
name: '3514',
|
|
42
|
+
century: '23',
|
|
43
|
+
centuries: [2022, 2023, 2024, 2025],
|
|
44
|
+
payload: payload => (0, _century4.getCerfa3514Century22Payload)(payload),
|
|
45
|
+
asponePayload: data => (0, _century5.getCerfa3514Century23RegistrationFields)(data),
|
|
46
|
+
fields: _century4.cerfa3514Century22Fields,
|
|
47
|
+
fileName: '3514-2022'
|
|
48
|
+
}, {
|
|
49
|
+
idCerfaType: _CerfaType.CerfaType.CERFA_3517,
|
|
50
|
+
name: '3517',
|
|
51
|
+
century: '23',
|
|
52
|
+
centuries: [2022, 2023, 2024, 2025],
|
|
53
|
+
payload: (accountingEntries, payload) => (0, _century6.getCerfa3517Century23Payload)(accountingEntries, payload),
|
|
54
|
+
asponePayload: data => (0, _century6.getCerfa3517CenturyRegistrationField)(data),
|
|
55
|
+
fields: _century6.cerfa3517Century23Fields,
|
|
56
|
+
fileName: '3517-2023'
|
|
57
|
+
}];
|
|
58
|
+
const getVatCerfaObject = exports.getVatCerfaObject = (idCerfaType, startDate) => {
|
|
59
|
+
const year = +dayjs(startDate).format('YYYY');
|
|
60
|
+
const cerfa = vatDocuments.find(v => v.idCerfaType === idCerfaType && v.centuries.find(c => c === year));
|
|
61
|
+
if (!cerfa) throw new Error(`Cerfa type #${idCerfaType} with century ${year} is not managed yet.`);
|
|
62
|
+
return cerfa;
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=centuries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"centuries.js","names":["_dayjs","require","dayjs","_interopRequireWildcard","_CerfaType","_century","_century2","_century3","_century4","_century5","_century6","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","vatDocuments","idCerfaType","CerfaType","CERFA_3310","name","century","centuries","payload","accountingEntries","getCerfa3310Century23Payload","asponePayload","data","getCerfa3310Century23RegistrationFields","fields","cerfa3310Century23Fields","fileName","annex","shouldInclude","_a","Boolean","credit","refundAsked","amount","getCerfa3519Century17Payload","getCerfa3519Century23RegistrationFields","cerfa3519Century17Fields","CERFA_3514","getCerfa3514Century22Payload","getCerfa3514Century23RegistrationFields","cerfa3514Century22Fields","CERFA_3517","getCerfa3517Century23Payload","getCerfa3517CenturyRegistrationField","cerfa3517Century23Fields","getVatCerfaObject","exports","startDate","year","format","cerfa","find","v","c","Error"],"sources":["../../../ts/utils/vat/centuries.ts"],"sourcesContent":["import * as dayjs from 'dayjs';\nimport { CerfaType } from '../../types/Enum/CerfaType';\nimport { VatDocument } from '../../types/Interface/api/cerfa/ReadCerfa';\nimport { cerfa3310Century23Fields, getCerfa3310Century23Payload, getCerfa3310Century23RegistrationFields } from './3310/century23';\nimport { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';\nimport { Cerfa3310_2023, PayloadCerfa3310_2023 } from '../../types/Interface/api/cerfa/3310';\nimport {\n Cerfa3514_2022, Cerfa3519_2017, PayloadCerfa3514_2022, PayloadCerfa3519_2017,\n} from '../../types';\nimport { cerfa3519Century17Fields, getCerfa3519Century17Payload } from './3519/century17';\nimport { getCerfa3519Century23RegistrationFields } from './3519/century23';\nimport { cerfa3514Century22Fields, getCerfa3514Century22Payload } from './3514/century22';\nimport { getCerfa3514Century23RegistrationFields } from './3514/century23';\nimport { Cerfa3517_2023, PayloadCerfa3517_2023 } from '../../types/Interface/api/cerfa/3517';\nimport { cerfa3517Century23Fields, getCerfa3517Century23Payload, getCerfa3517CenturyRegistrationField } from './3517/century23';\n\nconst vatDocuments: VatDocument[] = [\n {\n idCerfaType: CerfaType.CERFA_3310,\n name: '3310',\n century: '23',\n centuries: [2022, 2023, 2024, 2025],\n payload: (accountingEntries: IAccountingEntry[], payload: PayloadCerfa3310_2023) => getCerfa3310Century23Payload(accountingEntries, payload),\n asponePayload: (data: Cerfa3310_2023) => getCerfa3310Century23RegistrationFields(data),\n fields: cerfa3310Century23Fields,\n fileName: '3310-2023',\n annex: {\n name: '3519',\n century: '23',\n shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),\n payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),\n asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),\n fields: cerfa3519Century17Fields,\n fileName: '3519-2017',\n },\n },\n {\n idCerfaType: CerfaType.CERFA_3514,\n name: '3514',\n century: '23',\n centuries: [2022, 2023, 2024, 2025],\n payload: (payload: PayloadCerfa3514_2022) => getCerfa3514Century22Payload(payload),\n asponePayload: (data: Cerfa3514_2022) => getCerfa3514Century23RegistrationFields(data),\n fields: cerfa3514Century22Fields,\n fileName: '3514-2022',\n },\n {\n idCerfaType: CerfaType.CERFA_3517,\n name: '3517',\n century: '23',\n centuries: [2022, 2023, 2024, 2025],\n payload: (accountingEntries: IAccountingEntry[], payload: PayloadCerfa3517_2023) => getCerfa3517Century23Payload(accountingEntries, payload),\n asponePayload: (data: Cerfa3517_2023) => getCerfa3517CenturyRegistrationField(data),\n fields: cerfa3517Century23Fields,\n fileName: '3517-2023',\n },\n];\n\nexport const getVatCerfaObject = (idCerfaType: CerfaType, startDate: string): VatDocument => {\n const year = +dayjs(startDate).format('YYYY');\n\n const cerfa = vatDocuments.find((v) => v.idCerfaType === idCerfaType && v.centuries.find((c) => c === year));\n if (!cerfa) throw new Error(`Cerfa type #${idCerfaType} with century ${year} is not managed yet.`);\n\n return cerfa;\n};"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAA+B,IAAnBC,KAAK,GAAAC,uBAAA,CAAAH,MAAA;AACjB,IAAAI,UAAA,GAAAH,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AAMA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AAEA,IAAAS,SAAA,GAAAT,OAAA;AAAgI,SAAAU,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAT,wBAAAa,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CA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,MAAM,EAAEoB,kCAAwB;EAChClB,QAAQ,EAAE;CACX,CACF;AAEM,MAAMmB,iBAAiB,GAAAC,OAAA,CAAjBD,iBAAiB,GAAG,CAACjC,WAAsB,EAAEmC,SAAiB,KAAiB;EAC1F,MAAMC,IAAI,GAAG,CAACpE,KAAK,CAACmE,SAAS,CAAC,CAACE,MAAM,CAAC,MAAM,CAAC;EAE7C,MAAMC,KAAK,GAAGvC,YAAY,CAACwC,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACxC,WAAW,KAAKA,WAAW,IAAIwC,CAAC,CAACnC,SAAS,CAACkC,IAAI,CAAEE,CAAC,IAAKA,CAAC,KAAKL,IAAI,CAAC,CAAC;EAC5G,IAAI,CAACE,KAAK,EAAE,MAAM,IAAII,KAAK,CAAC,eAAe1C,WAAW,iBAAiBoC,IAAI,sBAAsB,CAAC;EAElG,OAAOE,KAAK;AACd,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _centuries = require("./centuries");
|
|
7
|
+
Object.keys(_centuries).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
Object.defineProperty(exports, key, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return _centuries[key];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
var _utils = require("./utils");
|
|
17
|
+
Object.keys(_utils).forEach(function (key) {
|
|
18
|
+
if (key === "default" || key === "__esModule") return;
|
|
19
|
+
Object.defineProperty(exports, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _utils[key];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
var _registration = require("./registration");
|
|
27
|
+
Object.keys(_registration).forEach(function (key) {
|
|
28
|
+
if (key === "default" || key === "__esModule") return;
|
|
29
|
+
Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return _registration[key];
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["Object","keys","_centuries","forEach","key","defineProperty","exports","enumerable","get","_utils","require","_registration"],"sources":["../../../ts/utils/vat/index.ts"],"sourcesContent":["export * from './centuries';\nexport * from './utils';\nexport * from './registration';"],"mappings":";;;;;;AAAAA,MAAA,CAAAC,IAAA,CAAAC,UAAA,EAAAC,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAAJ,MAAA,CAAAK,cAAA,CAAAC,OAAA,EAAAF,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAN,UAAA,CAAAE,GAAA;IAAA;EAAA;AAAA;AAA4B,IAAAK,MAAA,GAAAC,OAAA;AAC5BV,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAAJ,MAAA,CAAAK,cAAA,CAAAC,OAAA,EAAAF,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AAAwB,IAAAO,aAAA,GAAAD,OAAA;AACxBV,MAAA,CAAAC,IAAA,CAAAU,aAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAAJ,MAAA,CAAAK,cAAA,CAAAC,OAAA,EAAAF,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,aAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getTicks = getTicks;
|
|
7
|
+
exports.getTypeAndAmountFromRegistration = getTypeAndAmountFromRegistration;
|
|
8
|
+
var _dayjs = require("dayjs");
|
|
9
|
+
var dayjs = _interopRequireWildcard(_dayjs);
|
|
10
|
+
var _classValidator = require("class-validator");
|
|
11
|
+
var _lodash = require("lodash");
|
|
12
|
+
var _types = require("../../types");
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
const waitingState = {
|
|
16
|
+
state: _types.RegistrationTickState.IN_PROGRESS,
|
|
17
|
+
title: 'En cours de traitement',
|
|
18
|
+
details: [],
|
|
19
|
+
date: null,
|
|
20
|
+
isPayment: false
|
|
21
|
+
};
|
|
22
|
+
function getTicks(registration) {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
const declarations = (_b = (_a = registration.response) === null || _a === void 0 ? void 0 : _a.declarations) !== null && _b !== void 0 ? _b : [];
|
|
25
|
+
if (registration.state === _types.RegistrationState.IN_PROGRESS) {
|
|
26
|
+
const data = [];
|
|
27
|
+
declarations.forEach(() => {
|
|
28
|
+
const result = [{
|
|
29
|
+
state: _types.RegistrationTickState.FINISHED,
|
|
30
|
+
title: 'Déclaration envoyée',
|
|
31
|
+
details: [],
|
|
32
|
+
date: registration.sendAt ? dayjs(registration.sendAt).format('YYYY-MM-DD') : null,
|
|
33
|
+
isPayment: false
|
|
34
|
+
}, waitingState, waitingState, waitingState];
|
|
35
|
+
if (registration.amountToPay && registration.amountToPay > 0) {
|
|
36
|
+
result.push(Object.assign(Object.assign({}, waitingState), {
|
|
37
|
+
isPayment: true
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
data.push(result);
|
|
41
|
+
});
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
if ([_types.RegistrationState.ACCEPTED, _types.RegistrationState.REFUSED].includes(registration.state)) {
|
|
45
|
+
const data = [];
|
|
46
|
+
declarations.forEach(declaration => {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
const response = [{
|
|
49
|
+
state: _types.RegistrationTickState.FINISHED,
|
|
50
|
+
title: 'Déclaration envoyée',
|
|
51
|
+
date: registration.sendAt ? dayjs(registration.sendAt).format('YYYY-MM-DD') : null,
|
|
52
|
+
details: []
|
|
53
|
+
}, ...(0, _lodash.reverse)(declaration.states).map(d => {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
return {
|
|
56
|
+
state: d.isError ? _types.RegistrationTickState.FAILED : _types.RegistrationTickState.FINISHED,
|
|
57
|
+
title: (_a = d.label) !== null && _a !== void 0 ? _a : null,
|
|
58
|
+
details: d === null || d === void 0 ? void 0 : d.stateDetailsHistory,
|
|
59
|
+
date: (_b = d.date) !== null && _b !== void 0 ? _b : null
|
|
60
|
+
};
|
|
61
|
+
})];
|
|
62
|
+
for (let index = declaration.states.length; index < 4; index += 1) {
|
|
63
|
+
response.push(Object.assign(Object.assign({}, waitingState), {
|
|
64
|
+
title: null
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
if ((0, _classValidator.isDefined)(declaration.payment)) {
|
|
68
|
+
response.push({
|
|
69
|
+
state: declaration.payment.isError ? _types.RegistrationTickState.FAILED : _types.RegistrationTickState.FINISHED,
|
|
70
|
+
title: (_b = (_a = declaration.payment) === null || _a === void 0 ? void 0 : _a.details[0]) !== null && _b !== void 0 ? _b : '',
|
|
71
|
+
details: [],
|
|
72
|
+
isPayment: true,
|
|
73
|
+
date: null
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
data.push(response);
|
|
77
|
+
});
|
|
78
|
+
return data;
|
|
79
|
+
}
|
|
80
|
+
return [];
|
|
81
|
+
}
|
|
82
|
+
function getTypeAndAmountFromRegistration(registration) {
|
|
83
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
84
|
+
if (registration.idCerfaType === _types.CerfaType.CERFA_3310) {
|
|
85
|
+
const payload = registration.payload.cerfa3310;
|
|
86
|
+
const other = {
|
|
87
|
+
collectable: payload.vat.grossDue,
|
|
88
|
+
deductible: payload.vat.deductible.total
|
|
89
|
+
};
|
|
90
|
+
if (payload === null || payload === void 0 ? void 0 : payload.isNil) return Object.assign({
|
|
91
|
+
type: _types.CustomerVatType.VAT_TO_NIL,
|
|
92
|
+
amount: 0
|
|
93
|
+
}, other);
|
|
94
|
+
if (((_a = payload === null || payload === void 0 ? void 0 : payload.toPay) === null || _a === void 0 ? void 0 : _a.total) > 0) return Object.assign({
|
|
95
|
+
type: _types.CustomerVatType.VAT_TO_PAY,
|
|
96
|
+
amount: payload.toPay.total
|
|
97
|
+
}, other);
|
|
98
|
+
if (((_b = payload === null || payload === void 0 ? void 0 : payload.credit) === null || _b === void 0 ? void 0 : _b.refundAsked) > 0) return Object.assign({
|
|
99
|
+
type: _types.CustomerVatType.VAT_REFUND,
|
|
100
|
+
amount: payload.credit.refundAsked
|
|
101
|
+
}, other);
|
|
102
|
+
if (((_c = payload === null || payload === void 0 ? void 0 : payload.credit) === null || _c === void 0 ? void 0 : _c.toReport) > 0) return Object.assign({
|
|
103
|
+
type: _types.CustomerVatType.VAT_REPORT,
|
|
104
|
+
amount: payload.credit.toReport
|
|
105
|
+
}, other);
|
|
106
|
+
return Object.assign({
|
|
107
|
+
type: _types.CustomerVatType.VAT_TO_PAY,
|
|
108
|
+
amount: 0
|
|
109
|
+
}, other);
|
|
110
|
+
}
|
|
111
|
+
if (registration.idCerfaType === _types.CerfaType.CERFA_3514) {
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
113
|
+
const payload = registration.payload.cerfa3514;
|
|
114
|
+
const other = {
|
|
115
|
+
collectable: payload.vatAmountCollected,
|
|
116
|
+
deductible: payload.vatAmountDeductible
|
|
117
|
+
};
|
|
118
|
+
if ((payload === null || payload === void 0 ? void 0 : payload.vatAmountToPay) > 0) return Object.assign({
|
|
119
|
+
type: _types.CustomerVatType.VAT_TO_PAY,
|
|
120
|
+
amount: payload.vatAmountToPay
|
|
121
|
+
}, other);
|
|
122
|
+
if (payload === null || payload === void 0 ? void 0 : payload.vatRefundedOnInvests) return Object.assign({
|
|
123
|
+
type: _types.CustomerVatType.VAT_REFUND,
|
|
124
|
+
amount: payload.vatRefundedOnInvests
|
|
125
|
+
}, other);
|
|
126
|
+
return Object.assign({
|
|
127
|
+
type: _types.CustomerVatType.VAT_TO_PAY,
|
|
128
|
+
amount: 0
|
|
129
|
+
}, other);
|
|
130
|
+
}
|
|
131
|
+
if (registration.idCerfaType === _types.CerfaType.CERFA_3517) {
|
|
132
|
+
const payload = registration.payload.cerfa3517;
|
|
133
|
+
const other = {
|
|
134
|
+
collectable: payload.other.total,
|
|
135
|
+
deductible: payload.deductible.total
|
|
136
|
+
};
|
|
137
|
+
if (payload === null || payload === void 0 ? void 0 : payload.isNil) return Object.assign({
|
|
138
|
+
type: _types.CustomerVatType.VAT_TO_NIL,
|
|
139
|
+
amount: 0
|
|
140
|
+
}, other);
|
|
141
|
+
if (((_d = payload === null || payload === void 0 ? void 0 : payload.recapitulation) === null || _d === void 0 ? void 0 : _d.toPay) > 0) return Object.assign({
|
|
142
|
+
type: _types.CustomerVatType.VAT_TO_PAY,
|
|
143
|
+
amount: (_e = payload === null || payload === void 0 ? void 0 : payload.recapitulation) === null || _e === void 0 ? void 0 : _e.toPay
|
|
144
|
+
}, other);
|
|
145
|
+
if (((_f = payload === null || payload === void 0 ? void 0 : payload.recapitulation) === null || _f === void 0 ? void 0 : _f.refund) > 0) return Object.assign({
|
|
146
|
+
type: _types.CustomerVatType.VAT_REFUND,
|
|
147
|
+
amount: (_g = payload === null || payload === void 0 ? void 0 : payload.recapitulation) === null || _g === void 0 ? void 0 : _g.refund
|
|
148
|
+
}, other);
|
|
149
|
+
if (((_h = payload === null || payload === void 0 ? void 0 : payload.recapitulation) === null || _h === void 0 ? void 0 : _h.creditToReport) > 0 || ((_j = payload === null || payload === void 0 ? void 0 : payload.recapitulation) === null || _j === void 0 ? void 0 : _j.imputedCredit) > 0) return Object.assign({
|
|
150
|
+
type: _types.CustomerVatType.VAT_REPORT,
|
|
151
|
+
amount: (_l = (_k = payload === null || payload === void 0 ? void 0 : payload.recapitulation) === null || _k === void 0 ? void 0 : _k.creditToReport) !== null && _l !== void 0 ? _l : (_m = payload === null || payload === void 0 ? void 0 : payload.recapitulation) === null || _m === void 0 ? void 0 : _m.imputedCredit
|
|
152
|
+
}, other);
|
|
153
|
+
return Object.assign({
|
|
154
|
+
type: _types.CustomerVatType.VAT_TO_PAY,
|
|
155
|
+
amount: 0
|
|
156
|
+
}, other);
|
|
157
|
+
}
|
|
158
|
+
return {
|
|
159
|
+
type: null,
|
|
160
|
+
amount: null,
|
|
161
|
+
collectable: 0,
|
|
162
|
+
deductible: 0
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=registration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.js","names":["getTicks","exports","getTypeAndAmountFromRegistration","_dayjs","require","dayjs","_interopRequireWildcard","_classValidator","_lodash","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","waitingState","state","RegistrationTickState","IN_PROGRESS","title","details","date","isPayment","registration","declarations","_b","_a","response","RegistrationState","data","forEach","result","FINISHED","sendAt","format","amountToPay","push","assign","ACCEPTED","REFUSED","includes","declaration","reverse","states","map","d","isError","FAILED","label","stateDetailsHistory","index","length","isDefined","payment","idCerfaType","CerfaType","CERFA_3310","payload","cerfa3310","other","collectable","vat","grossDue","deductible","total","isNil","type","CustomerVatType","VAT_TO_NIL","amount","toPay","VAT_TO_PAY","credit","refundAsked","VAT_REFUND","_c","toReport","VAT_REPORT","CERFA_3514","cerfa3514","vatAmountCollected","vatAmountDeductible","vatAmountToPay","vatRefundedOnInvests","CERFA_3517","cerfa3517","_d","recapitulation","_e","_f","refund","_g","_h","creditToReport","_j","imputedCredit","_l","_k","_m"],"sources":["../../../ts/utils/vat/registration.ts"],"sourcesContent":["import * as dayjs from 'dayjs';\nimport { isDefined } from 'class-validator';\nimport { reverse } from 'lodash';\nimport {\n Cerfa3310_2023,\n Cerfa3514_2022,\n CerfaType,\n CustomerVatType,\n IRegistration,\n InterchangeHistory,\n ReadDeclaration,\n ReadRegistration, ReadRegistrationTick, RegistrationState, RegistrationTickState,\n} from '../../types';\nimport { Cerfa3517_2023 } from '../../types/Interface/api/cerfa/3517';\n\nconst waitingState: ReadRegistrationTick = {\n state: RegistrationTickState.IN_PROGRESS,\n title: 'En cours de traitement',\n details: [],\n date: null,\n isPayment: false,\n};\n\nexport function getTicks(registration: ReadRegistration): ReadRegistrationTick[][] {\n const declarations: Array<ReadDeclaration> = registration.response?.declarations ?? [];\n\n if (registration.state === RegistrationState.IN_PROGRESS) {\n const data: ReadRegistrationTick[][] = [];\n\n declarations.forEach(() => {\n const result = [\n {\n state: RegistrationTickState.FINISHED,\n title: 'Déclaration envoyée',\n details: [],\n date: registration.sendAt ? dayjs(registration.sendAt).format('YYYY-MM-DD') : null,\n isPayment: false,\n },\n waitingState,\n waitingState,\n waitingState,\n ];\n\n if (registration.amountToPay && registration.amountToPay > 0) {\n result.push({\n ...waitingState,\n isPayment: true,\n });\n }\n\n data.push(result);\n });\n\n return data;\n } if ([RegistrationState.ACCEPTED, RegistrationState.REFUSED].includes(registration.state)) {\n const data: ReadRegistrationTick[][] = [];\n declarations.forEach((declaration) => {\n const response: ReadRegistrationTick[] = [\n {\n state: RegistrationTickState.FINISHED,\n title: 'Déclaration envoyée',\n date: registration.sendAt ? dayjs(registration.sendAt).format('YYYY-MM-DD') : null,\n details: [],\n },\n ...reverse(declaration.states).map((d: InterchangeHistory) => ({\n state: d.isError ? RegistrationTickState.FAILED : RegistrationTickState.FINISHED,\n title: d.label ?? null,\n details: d?.stateDetailsHistory,\n date: d.date ?? null,\n })),\n ];\n\n for (let index = declaration.states.length; index < 4; index += 1) {\n response.push({ ...waitingState, title: null });\n }\n\n if (isDefined(declaration.payment)) {\n response.push({\n state: declaration.payment.isError ? RegistrationTickState.FAILED : RegistrationTickState.FINISHED,\n title: declaration.payment?.details[0] ?? '',\n details: [],\n isPayment: true,\n date: null,\n });\n }\n data.push(response);\n });\n\n return data;\n }\n\n return [];\n}\n\nexport function getTypeAndAmountFromRegistration(registration: IRegistration): { type: CustomerVatType | null; amount: number | null; collectable: number; deductible: number; } {\n if (registration.idCerfaType === CerfaType.CERFA_3310) {\n const payload = registration.payload.cerfa3310 as Cerfa3310_2023;\n const other = { collectable: payload.vat.grossDue, deductible: payload.vat.deductible.total };\n if (payload?.isNil) return { type: CustomerVatType.VAT_TO_NIL, amount: 0, ...other };\n if (payload?.toPay?.total > 0) return { type: CustomerVatType.VAT_TO_PAY, amount: payload.toPay.total, ...other };\n if (payload?.credit?.refundAsked > 0) return { type: CustomerVatType.VAT_REFUND, amount: payload.credit.refundAsked, ...other };\n if (payload?.credit?.toReport > 0) return { type: CustomerVatType.VAT_REPORT, amount: payload.credit.toReport, ...other };\n return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };\n } if (registration.idCerfaType === CerfaType.CERFA_3514) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const payload = registration.payload.cerfa3514 as Cerfa3514_2022;\n const other = { collectable: payload.vatAmountCollected, deductible: payload.vatAmountDeductible };\n if (payload?.vatAmountToPay > 0) return { type: CustomerVatType.VAT_TO_PAY, amount: payload.vatAmountToPay, ...other };\n if (payload?.vatRefundedOnInvests) return { type: CustomerVatType.VAT_REFUND, amount: payload.vatRefundedOnInvests, ...other };\n return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };\n } if (registration.idCerfaType === CerfaType.CERFA_3517) {\n const payload = registration.payload.cerfa3517 as Cerfa3517_2023;\n const other = { collectable: payload.other.total, deductible: payload.deductible.total };\n if (payload?.isNil) return { type: CustomerVatType.VAT_TO_NIL, amount: 0, ...other };\n if (payload?.recapitulation?.toPay > 0) return { type: CustomerVatType.VAT_TO_PAY, amount: payload?.recapitulation?.toPay, ...other };\n if (payload?.recapitulation?.refund > 0) return { type: CustomerVatType.VAT_REFUND, amount: payload?.recapitulation?.refund, ...other };\n if (payload?.recapitulation?.creditToReport > 0 || payload?.recapitulation?.imputedCredit > 0) return { type: CustomerVatType.VAT_REPORT, amount: payload?.recapitulation?.creditToReport ?? payload?.recapitulation?.imputedCredit, ...other };\n return { type: CustomerVatType.VAT_TO_PAY, amount: 0, ...other };\n }\n\n return {\n type: null, amount: null, collectable: 0, deductible: 0,\n };\n}"],"mappings":";;;;;QAuBgBA,QAAQ,GAARA,QAAQ;AAAAC,OAAA,CAuERC,gCAAgC,GAAhCA,gCAAgC;AA9FhD,IAAAC,MAAA,GAAAC,OAAA;AAA+B,IAAnBC,KAAK,GAAAC,uBAAA,CA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,cAAAI,EAAA,uBAAAA,EAAA,CAAED;IAAM,GAAK/B,KAAK;IACrI,IAAI,EAAAiC,EAAA,GAAAnC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE8B,cAAc,cAAAK,EAAA,uBAAAA,EAAA,CAAEC,cAAc,IAAG,CAAC,IAAI,EAAAC,EAAA,GAAArC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE8B,cAAc,cAAAO,EAAA,uBAAAA,EAAA,CAAEC,aAAa,IAAG,CAAC,EAAE,OAAAzF,MAAA,CAAA+B,MAAA;MAAS6B,IAAI,EAAEC,sBAAe,CAACU,UAAU;MAAER,MAAM,EAAE,CAAA2B,EAAA,IAAAC,EAAA,GAAAxC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE8B,cAAc,cAAAU,EAAA,uBAAAA,EAAA,CAAEJ,cAAc,cAAAG,EAAA,cAAAA,EAAA,GAAI,CAAAE,EAAA,GAAAzC,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE8B,cAAc,cAAAW,EAAA,uBAAAA,EAAA,CAAEH;IAAa,GAAKpC,KAAK;IAC7O,OAAArD,MAAA,CAAA+B,MAAA;MAAS6B,IAAI,EAAEC,sBAAe,CAACI,UAAU;MAAEF,MAAM,EAAE;IAAC,GAAKV,KAAK;;EAGhE,OAAO;IACLO,IAAI,EAAE,IAAI;IAAEG,MAAM,EAAE,IAAI;IAAET,WAAW,EAAE,CAAC;IAAEG,UAAU,EAAE;GACvD;AACH"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getAmountByAccountNumber = getAmountByAccountNumber;
|
|
7
|
+
exports.getTaxAmountByAccountNumber = getTaxAmountByAccountNumber;
|
|
8
|
+
exports.textFormatting = textFormatting;
|
|
9
|
+
var _lodash = require("lodash");
|
|
10
|
+
var _Vat = require("../../types/Enum/Vat");
|
|
11
|
+
function getAmountByAccountNumber(accountingEntries, accountsNumber, precision = 0) {
|
|
12
|
+
return (0, _lodash.round)(accountingEntries.reduce((acc, accountingEntry) => {
|
|
13
|
+
let accTmp = acc;
|
|
14
|
+
accountsNumber.some(number => {
|
|
15
|
+
if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {
|
|
16
|
+
accTmp += accountingEntry.debit - accountingEntry.credit;
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
return false;
|
|
20
|
+
});
|
|
21
|
+
return accTmp;
|
|
22
|
+
}, 0), precision);
|
|
23
|
+
}
|
|
24
|
+
function getTaxAmountByAccountNumber(accountingEntries, accountsNumber, precision = 0) {
|
|
25
|
+
return (0, _lodash.round)(accountingEntries.reduce((acc, accountingEntry) => {
|
|
26
|
+
let accTmp = acc;
|
|
27
|
+
accountsNumber.some(number => {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {
|
|
30
|
+
accTmp += (accountingEntry.debit - accountingEntry.credit) * (((_b = (_a = Object.values(_Vat.Vat).find(v => v.id === accountingEntry.idVat)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0) / 100);
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
});
|
|
35
|
+
return accTmp;
|
|
36
|
+
}, precision));
|
|
37
|
+
}
|
|
38
|
+
function textFormatting(value, length = null) {
|
|
39
|
+
if (value && typeof value === 'string') {
|
|
40
|
+
let formattedValue = value.replace(/[\u2018\u2019]/g, '\''); // Suppression des "Curly Quotes"
|
|
41
|
+
formattedValue = formattedValue.replace(/&/g, ''); // Suppression des &
|
|
42
|
+
formattedValue = formattedValue.replace(/!/g, ''); // Suppression des !
|
|
43
|
+
formattedValue = formattedValue.replace(/[\t]/g, ''); // Suppression des tabulations
|
|
44
|
+
formattedValue = formattedValue.replace(/`/g, '\''); // Suppression des `
|
|
45
|
+
formattedValue = formattedValue.replace(/"/g, ''); // Suppression des "
|
|
46
|
+
formattedValue = formattedValue.replace(/^ */, ''); // Suppression des espaces de début
|
|
47
|
+
formattedValue = formattedValue.replace(/ *$/, ''); // Suppression des espaces de fin
|
|
48
|
+
if (length) formattedValue = formattedValue.slice(0, length);
|
|
49
|
+
return formattedValue;
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","names":["getAmountByAccountNumber","exports","getTaxAmountByAccountNumber","textFormatting","_lodash","require","_Vat","accountingEntries","accountsNumber","precision","_round","reduce","acc","accountingEntry","accTmp","some","number","account","toString","startsWith","debit","credit","_b","_a","Object","values","Vat","find","v","id","idVat","value","length","formattedValue","replace","slice"],"sources":["../../../ts/utils/vat/utils.ts"],"sourcesContent":["import { round as _round } from 'lodash';\nimport { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';\nimport { Vat } from '../../types/Enum/Vat';\n\nexport function getAmountByAccountNumber(accountingEntries: IAccountingEntry[], accountsNumber: string[], precision = 0): number {\n return _round(accountingEntries.reduce((acc, accountingEntry) => {\n let accTmp = acc;\n accountsNumber.some((number) => {\n if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {\n accTmp += (accountingEntry.debit - accountingEntry.credit);\n return true;\n }\n return false;\n });\n return accTmp;\n }, 0), precision);\n}\n\nexport function getTaxAmountByAccountNumber(accountingEntries: IAccountingEntry[], accountsNumber: string[], precision = 0): number {\n return _round(accountingEntries.reduce((acc, accountingEntry) => {\n let accTmp = acc;\n accountsNumber.some((number) => {\n if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {\n accTmp += ((accountingEntry.debit - accountingEntry.credit) * (((Object.values(Vat).find((v) => v.id === accountingEntry.idVat)?.value ?? 0) / 100)));\n return true;\n }\n return false;\n });\n return accTmp;\n }, precision));\n}\n\nexport function textFormatting(value: any, length: number | null = null): string | null {\n if (value && typeof value === 'string') {\n let formattedValue = value.replace(/[\\u2018\\u2019]/g, '\\''); // Suppression des \"Curly Quotes\"\n formattedValue = formattedValue.replace(/&/g, ''); // Suppression des &\n formattedValue = formattedValue.replace(/!/g, ''); // Suppression des !\n formattedValue = formattedValue.replace(/[\\t]/g, ''); // Suppression des tabulations\n formattedValue = formattedValue.replace(/`/g, '\\''); // Suppression des `\n formattedValue = formattedValue.replace(/\"/g, ''); // Suppression des \"\n formattedValue = formattedValue.replace(/^ */, ''); // Suppression des espaces de début\n formattedValue = formattedValue.replace(/ *$/, ''); // Suppression des espaces de fin\n if (length) formattedValue = formattedValue.slice(0, length);\n return formattedValue;\n }\n return null;\n}"],"mappings":";;;;;QAIgBA,wBAAwB,GAAxBA,wBAAwB;AAAAC,OAAA,CAcxBC,2BAA2B,GAA3BA,2BAA2B;AAAAD,OAAA,CAc3BE,cAAc,GAAdA,cAAc;AAhC9B,IAAAC,OAAA,GAAAC,OAAA;AAEA,IAAAC,IAAA,GAAAD,OAAA;AAEM,SAAUL,wBAAwBA,CAACO,iBAAqC,EAAEC,cAAwB,EAAEC,SAAS,GAAG,CAAC;EACrH,OAAO,IAAAC,aAAM,EAACH,iBAAiB,CAACI,MAAM,CAAC,CAACC,GAAG,EAAEC,eAAe,KAAI;IAC9D,IAAIC,MAAM,GAAGF,GAAG;IAChBJ,cAAc,CAACO,IAAI,CAAEC,MAAM,IAAI;MAC7B,IAAIH,eAAe,CAACI,OAAO,IAAIJ,eAAe,CAACI,OAAO,CAACD,MAAM,IAAIH,eAAe,CAACI,OAAO,CAACD,MAAM,CAACE,QAAQ,EAAE,CAACC,UAAU,CAACH,MAAM,CAAC,EAAE;QAC7HF,MAAM,IAAKD,eAAe,CAACO,KAAK,GAAGP,eAAe,CAACQ,MAAO;QAC1D,OAAO,IAAI;;MAEb,OAA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AC,CAAC,CAAC;IACnDD,cAAc,GAAGA,cAAc,CAACC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACnDD,cAAc,GAAGA,cAAc,CAACC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IACtDD,cAAc,GAAGA,cAAc,CAACC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IACrDD,cAAc,GAAGA,cAAc,CAACC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACnDD,cAAc,GAAGA,cAAc,CAACC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IACpDD,cAAc,GAAGA,cAAc,CAACC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IACpD,IAAIF,MAAM,EAAEC,cAAc,GAAGA,cAAc,CAACE,KAAK,CAAC,CAAC,EAAEH,MAAM,CAAC;IAC5D,OAAOC,cAAc;;EAEvB,OAAO,IAAI;AACb"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|