@silexpert/core 1.0.206 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/FirstStep.d.ts +1 -2
- package/es/api/resources/FirstStep.d.ts.map +1 -1
- package/es/api/resources/FirstStep.js +0 -3
- package/es/api/resources/FirstStep.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/Vat.d.ts +23 -0
- package/es/api/resources/Vat.d.ts.map +1 -0
- package/es/api/resources/Vat.js +72 -0
- package/es/api/resources/Vat.js.map +1 -0
- 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 +2 -8
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -8
- 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/{firstStep/Create.js → registration/UpdateRegistration.js} +24 -23
- 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 +27 -5
- 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/IChecklist.d.ts +2 -2
- package/es/types/Interface/models/IChecklist.js.map +1 -1
- package/es/types/Interface/models/{ICustomerTva.d.ts → ICustomerVat.d.ts} +10 -9
- package/es/types/Interface/models/ICustomerVat.d.ts.map +1 -0
- package/es/types/Interface/models/ICustomerVat.js +2 -0
- package/es/types/Interface/models/ICustomerVat.js.map +1 -0
- 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 +2 -7
- 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 +39 -31
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +40 -31
- 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/FirstStep.js +0 -3
- package/js/api/resources/FirstStep.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/Vat.js +111 -0
- package/js/api/resources/Vat.js.map +1 -0
- package/js/api/resources/statistic/CustomerSuccess.js +1 -1
- package/js/api/resources/statistic/CustomerSuccess.js.map +1 -1
- package/js/api/resources.js +3 -9
- 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/{models/ICustomerTva.js → api/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/{firstStep/Create.js → registration/UpdateRegistration.js} +12 -11
- 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/IAutoLoginToken.js +6 -0
- 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/{IAppNotification.js → IBankTransaction.js} +1 -1
- package/js/types/Interface/models/IBankTransaction.js.map +1 -0
- package/js/types/Interface/{api/companeo/CompaneoReturn.js → models/ICallDirectly.js} +1 -1
- package/js/types/Interface/models/ICallDirectly.js.map +1 -0
- package/js/types/Interface/models/IChecklist.js.map +1 -1
- package/js/types/Interface/models/ICustomerVat.js +6 -0
- package/js/types/Interface/models/ICustomerVat.js.map +1 -0
- 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 +457 -377
- 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/FirstStep.ts +1 -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/Vat.ts +79 -0
- package/ts/api/resources/statistic/CustomerSuccess.ts +1 -1
- package/ts/api/resources.ts +2 -8
- 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 +20 -5
- 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/IChecklist.ts +2 -2
- package/ts/types/Interface/models/{ICustomerTva.ts → ICustomerVat.ts} +9 -8
- 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 +2 -7
- 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 +43 -32
- 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/api/resources/VatDeclaration.d.ts +0 -8
- package/es/api/resources/VatDeclaration.d.ts.map +0 -1
- package/es/api/resources/VatDeclaration.js +0 -16
- package/es/api/resources/VatDeclaration.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/firstStep/Create.d.ts +0 -10
- package/es/types/Interface/api/firstStep/Create.d.ts.map +0 -1
- package/es/types/Interface/api/firstStep/Create.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 +0 -71
- 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/ICustomerTva.d.ts.map +0 -1
- package/es/types/Interface/models/ICustomerTva.js +0 -2
- package/es/types/Interface/models/ICustomerTva.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/api/resources/VatDeclaration.js +0 -27
- package/js/api/resources/VatDeclaration.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/firstStep/Create.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/ICustomerTva.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/api/resources/VatDeclaration.ts +0 -19
- 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/firstStep/Create.ts +0 -39
- 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
package/es/utils/amount.js
CHANGED
|
@@ -32,304 +32,4 @@ export function integerToFormattedAmountObject(value, options = {
|
|
|
32
32
|
};
|
|
33
33
|
return Object.assign(Object.assign({}, result), { formattedValue: `${result.sign !== MathematicalSign.EQUAL ? `${result.sign} ` : ''}${result.integerValue},${result.centValue}` });
|
|
34
34
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Convertit jusqu'à 999 999 999 999 999 (billion) *
|
|
37
|
-
* @param nombre
|
|
38
|
-
* @returns {string}
|
|
39
|
-
*/
|
|
40
|
-
function getUnite(nombre) {
|
|
41
|
-
let unite;
|
|
42
|
-
switch (nombre) {
|
|
43
|
-
// case 0: unite = 'zéro'; break;
|
|
44
|
-
case 1:
|
|
45
|
-
unite = 'un';
|
|
46
|
-
break;
|
|
47
|
-
case 2:
|
|
48
|
-
unite = 'deux';
|
|
49
|
-
break;
|
|
50
|
-
case 3:
|
|
51
|
-
unite = 'trois';
|
|
52
|
-
break;
|
|
53
|
-
case 4:
|
|
54
|
-
unite = 'quatre';
|
|
55
|
-
break;
|
|
56
|
-
case 5:
|
|
57
|
-
unite = 'cinq';
|
|
58
|
-
break;
|
|
59
|
-
case 6:
|
|
60
|
-
unite = 'six';
|
|
61
|
-
break;
|
|
62
|
-
case 7:
|
|
63
|
-
unite = 'sept';
|
|
64
|
-
break;
|
|
65
|
-
case 8:
|
|
66
|
-
unite = 'huit';
|
|
67
|
-
break;
|
|
68
|
-
case 9:
|
|
69
|
-
unite = 'neuf';
|
|
70
|
-
break;
|
|
71
|
-
default:
|
|
72
|
-
unite = 'zéro';
|
|
73
|
-
break;
|
|
74
|
-
} // fin switch
|
|
75
|
-
return unite;
|
|
76
|
-
}
|
|
77
|
-
function getDizaine(nombre) {
|
|
78
|
-
let dizaine;
|
|
79
|
-
switch (nombre) {
|
|
80
|
-
// case 10: dizaine = 'dix'; break;
|
|
81
|
-
case 11:
|
|
82
|
-
dizaine = 'onze';
|
|
83
|
-
break;
|
|
84
|
-
case 12:
|
|
85
|
-
dizaine = 'douze';
|
|
86
|
-
break;
|
|
87
|
-
case 13:
|
|
88
|
-
dizaine = 'treize';
|
|
89
|
-
break;
|
|
90
|
-
case 14:
|
|
91
|
-
dizaine = 'quatorze';
|
|
92
|
-
break;
|
|
93
|
-
case 15:
|
|
94
|
-
dizaine = 'quinze';
|
|
95
|
-
break;
|
|
96
|
-
case 16:
|
|
97
|
-
dizaine = 'seize';
|
|
98
|
-
break;
|
|
99
|
-
case 17:
|
|
100
|
-
dizaine = 'dix-sept';
|
|
101
|
-
break;
|
|
102
|
-
case 18:
|
|
103
|
-
dizaine = 'dix-huit';
|
|
104
|
-
break;
|
|
105
|
-
case 19:
|
|
106
|
-
dizaine = 'dix-neuf';
|
|
107
|
-
break;
|
|
108
|
-
case 20:
|
|
109
|
-
dizaine = 'vingt';
|
|
110
|
-
break;
|
|
111
|
-
case 30:
|
|
112
|
-
dizaine = 'trente';
|
|
113
|
-
break;
|
|
114
|
-
case 40:
|
|
115
|
-
dizaine = 'quarante';
|
|
116
|
-
break;
|
|
117
|
-
case 50:
|
|
118
|
-
dizaine = 'cinquante';
|
|
119
|
-
break;
|
|
120
|
-
case 60:
|
|
121
|
-
dizaine = 'soixante';
|
|
122
|
-
break;
|
|
123
|
-
case 70:
|
|
124
|
-
dizaine = 'soixante-dix';
|
|
125
|
-
break;
|
|
126
|
-
case 80:
|
|
127
|
-
dizaine = 'quatre-vingt';
|
|
128
|
-
break;
|
|
129
|
-
case 90:
|
|
130
|
-
dizaine = 'quatre-vingt-dix';
|
|
131
|
-
break;
|
|
132
|
-
default:
|
|
133
|
-
dizaine = 'dix';
|
|
134
|
-
break;
|
|
135
|
-
} // fin switch
|
|
136
|
-
return dizaine;
|
|
137
|
-
} //-----------------------------------------------------------------------
|
|
138
|
-
export function convertNumberToLetter(nombre) {
|
|
139
|
-
let quotient;
|
|
140
|
-
let reste;
|
|
141
|
-
let numberToLetter = '';
|
|
142
|
-
if (nombre.toString().replace(/ /gi, '').length > 15)
|
|
143
|
-
return 'dépassement de capacité';
|
|
144
|
-
if (Number.isNaN(nombre.toString().replace(/ /gi, '')))
|
|
145
|
-
return 'Nombre non valide';
|
|
146
|
-
const nb = parseFloat(nombre.toString().replace(/ /gi, ''));
|
|
147
|
-
if (Math.ceil(nb) !== nb)
|
|
148
|
-
return 'Nombre avec virgule non géré.';
|
|
149
|
-
const n = nb.toString().length;
|
|
150
|
-
switch (n) {
|
|
151
|
-
// case 1: numberToLetter = getUnite(nb); break;
|
|
152
|
-
case 2:
|
|
153
|
-
if (nb > 19) {
|
|
154
|
-
quotient = Math.floor(nb / 10);
|
|
155
|
-
reste = nb % 10;
|
|
156
|
-
if (nb < 71 || (nb > 79 && nb < 91)) {
|
|
157
|
-
if (reste === 0)
|
|
158
|
-
numberToLetter = getDizaine(quotient * 10);
|
|
159
|
-
if (reste === 1)
|
|
160
|
-
numberToLetter = `${getDizaine(quotient * 10)}-et-${getUnite(reste)}`;
|
|
161
|
-
if (reste > 1)
|
|
162
|
-
numberToLetter = `${getDizaine(quotient * 10)}-${getUnite(reste)}`;
|
|
163
|
-
}
|
|
164
|
-
else
|
|
165
|
-
numberToLetter = `${getDizaine((quotient - 1) * 10)}-${getDizaine(10 + reste)}`;
|
|
166
|
-
}
|
|
167
|
-
else
|
|
168
|
-
numberToLetter = getDizaine(nb);
|
|
169
|
-
break;
|
|
170
|
-
case 3:
|
|
171
|
-
quotient = Math.floor(nb / 100);
|
|
172
|
-
reste = nb % 100;
|
|
173
|
-
if (quotient === 1 && reste === 0)
|
|
174
|
-
numberToLetter = 'cent';
|
|
175
|
-
if (quotient === 1 && reste !== 0)
|
|
176
|
-
numberToLetter = `${'cent '}${convertNumberToLetter(reste)}`;
|
|
177
|
-
if (quotient > 1 && reste === 0)
|
|
178
|
-
numberToLetter = `${getUnite(quotient)} cents`;
|
|
179
|
-
if (quotient > 1 && reste !== 0)
|
|
180
|
-
numberToLetter = `${getUnite(quotient)} cent ${convertNumberToLetter(reste)}`;
|
|
181
|
-
break;
|
|
182
|
-
case 4:
|
|
183
|
-
quotient = Math.floor(nb / 1000);
|
|
184
|
-
reste = nb - quotient * 1000;
|
|
185
|
-
if (quotient === 1 && reste === 0)
|
|
186
|
-
numberToLetter = 'mille';
|
|
187
|
-
if (quotient === 1 && reste !== 0)
|
|
188
|
-
numberToLetter = `${'mille '}${convertNumberToLetter(reste)}`;
|
|
189
|
-
if (quotient > 1 && reste === 0)
|
|
190
|
-
numberToLetter = `${convertNumberToLetter(quotient)} mille`;
|
|
191
|
-
if (quotient > 1 && reste !== 0)
|
|
192
|
-
numberToLetter = `${convertNumberToLetter(quotient)} mille ${convertNumberToLetter(reste)}`;
|
|
193
|
-
break;
|
|
194
|
-
case 5:
|
|
195
|
-
quotient = Math.floor(nb / 1000);
|
|
196
|
-
reste = nb - quotient * 1000;
|
|
197
|
-
if (quotient === 1 && reste === 0)
|
|
198
|
-
numberToLetter = 'mille';
|
|
199
|
-
if (quotient === 1 && reste !== 0)
|
|
200
|
-
numberToLetter = `${'mille '}${convertNumberToLetter(reste)}`;
|
|
201
|
-
if (quotient > 1 && reste === 0)
|
|
202
|
-
numberToLetter = `${convertNumberToLetter(quotient)} mille`;
|
|
203
|
-
if (quotient > 1 && reste !== 0)
|
|
204
|
-
numberToLetter = `${convertNumberToLetter(quotient)} mille ${convertNumberToLetter(reste)}`;
|
|
205
|
-
break;
|
|
206
|
-
case 6:
|
|
207
|
-
quotient = Math.floor(nb / 1000);
|
|
208
|
-
reste = nb - quotient * 1000;
|
|
209
|
-
if (quotient === 1 && reste === 0)
|
|
210
|
-
numberToLetter = 'mille';
|
|
211
|
-
if (quotient === 1 && reste !== 0)
|
|
212
|
-
numberToLetter = `${'mille '}${convertNumberToLetter(reste)}`;
|
|
213
|
-
if (quotient > 1 && reste === 0)
|
|
214
|
-
numberToLetter = `${convertNumberToLetter(quotient)} mille`;
|
|
215
|
-
if (quotient > 1 && reste !== 0)
|
|
216
|
-
numberToLetter = `${convertNumberToLetter(quotient)} mille ${convertNumberToLetter(reste)}`;
|
|
217
|
-
break;
|
|
218
|
-
case 7:
|
|
219
|
-
quotient = Math.floor(nb / 1000000);
|
|
220
|
-
reste = nb % 1000000;
|
|
221
|
-
if (quotient === 1 && reste === 0)
|
|
222
|
-
numberToLetter = 'un million';
|
|
223
|
-
if (quotient === 1 && reste !== 0)
|
|
224
|
-
numberToLetter = `${'un million '}${convertNumberToLetter(reste)}`;
|
|
225
|
-
if (quotient > 1 && reste === 0)
|
|
226
|
-
numberToLetter = `${convertNumberToLetter(quotient)} millions`;
|
|
227
|
-
if (quotient > 1 && reste !== 0)
|
|
228
|
-
numberToLetter = `${convertNumberToLetter(quotient)} millions ${convertNumberToLetter(reste)}`;
|
|
229
|
-
break;
|
|
230
|
-
case 8:
|
|
231
|
-
quotient = Math.floor(nb / 1000000);
|
|
232
|
-
reste = nb % 1000000;
|
|
233
|
-
if (quotient === 1 && reste === 0)
|
|
234
|
-
numberToLetter = 'un million';
|
|
235
|
-
if (quotient === 1 && reste !== 0)
|
|
236
|
-
numberToLetter = `${'un million '}${convertNumberToLetter(reste)}`;
|
|
237
|
-
if (quotient > 1 && reste === 0)
|
|
238
|
-
numberToLetter = `${convertNumberToLetter(quotient)} millions`;
|
|
239
|
-
if (quotient > 1 && reste !== 0)
|
|
240
|
-
numberToLetter = `${convertNumberToLetter(quotient)} millions ${convertNumberToLetter(reste)}`;
|
|
241
|
-
break;
|
|
242
|
-
case 9:
|
|
243
|
-
quotient = Math.floor(nb / 1000000);
|
|
244
|
-
reste = nb % 1000000;
|
|
245
|
-
if (quotient === 1 && reste === 0)
|
|
246
|
-
numberToLetter = 'un million';
|
|
247
|
-
if (quotient === 1 && reste !== 0)
|
|
248
|
-
numberToLetter = `${'un million '}${convertNumberToLetter(reste)}`;
|
|
249
|
-
if (quotient > 1 && reste === 0)
|
|
250
|
-
numberToLetter = `${convertNumberToLetter(quotient)} millions`;
|
|
251
|
-
if (quotient > 1 && reste !== 0)
|
|
252
|
-
numberToLetter = `${convertNumberToLetter(quotient)} millions ${convertNumberToLetter(reste)}`;
|
|
253
|
-
break;
|
|
254
|
-
case 10:
|
|
255
|
-
quotient = Math.floor(nb / 1000000000);
|
|
256
|
-
reste = nb - quotient * 1000000000;
|
|
257
|
-
if (quotient === 1 && reste === 0)
|
|
258
|
-
numberToLetter = 'un milliard';
|
|
259
|
-
if (quotient === 1 && reste !== 0)
|
|
260
|
-
numberToLetter = `${'un milliard '}${convertNumberToLetter(reste)}`;
|
|
261
|
-
if (quotient > 1 && reste === 0)
|
|
262
|
-
numberToLetter = `${convertNumberToLetter(quotient)} milliards`;
|
|
263
|
-
if (quotient > 1 && reste !== 0)
|
|
264
|
-
numberToLetter = `${convertNumberToLetter(quotient)} milliards ${convertNumberToLetter(reste)}`;
|
|
265
|
-
break;
|
|
266
|
-
case 11:
|
|
267
|
-
quotient = Math.floor(nb / 1000000000);
|
|
268
|
-
reste = nb - quotient * 1000000000;
|
|
269
|
-
if (quotient === 1 && reste === 0)
|
|
270
|
-
numberToLetter = 'un milliard';
|
|
271
|
-
if (quotient === 1 && reste !== 0)
|
|
272
|
-
numberToLetter = `${'un milliard '}${convertNumberToLetter(reste)}`;
|
|
273
|
-
if (quotient > 1 && reste === 0)
|
|
274
|
-
numberToLetter = `${convertNumberToLetter(quotient)} milliards`;
|
|
275
|
-
if (quotient > 1 && reste !== 0)
|
|
276
|
-
numberToLetter = `${convertNumberToLetter(quotient)} milliards ${convertNumberToLetter(reste)}`;
|
|
277
|
-
break;
|
|
278
|
-
case 12:
|
|
279
|
-
quotient = Math.floor(nb / 1000000000);
|
|
280
|
-
reste = nb - quotient * 1000000000;
|
|
281
|
-
if (quotient === 1 && reste === 0)
|
|
282
|
-
numberToLetter = 'un milliard';
|
|
283
|
-
if (quotient === 1 && reste !== 0)
|
|
284
|
-
numberToLetter = `${'un milliard '}${convertNumberToLetter(reste)}`;
|
|
285
|
-
if (quotient > 1 && reste === 0)
|
|
286
|
-
numberToLetter = `${convertNumberToLetter(quotient)} milliards`;
|
|
287
|
-
if (quotient > 1 && reste !== 0)
|
|
288
|
-
numberToLetter = `${convertNumberToLetter(quotient)} milliards ${convertNumberToLetter(reste)}`;
|
|
289
|
-
break;
|
|
290
|
-
case 13:
|
|
291
|
-
quotient = Math.floor(nb / 1000000000000);
|
|
292
|
-
reste = nb - quotient * 1000000000000;
|
|
293
|
-
if (quotient === 1 && reste === 0)
|
|
294
|
-
numberToLetter = 'un billion';
|
|
295
|
-
if (quotient === 1 && reste !== 0)
|
|
296
|
-
numberToLetter = `${'un billion '}${convertNumberToLetter(reste)}`;
|
|
297
|
-
if (quotient > 1 && reste === 0)
|
|
298
|
-
numberToLetter = `${convertNumberToLetter(quotient)} billions`;
|
|
299
|
-
if (quotient > 1 && reste !== 0)
|
|
300
|
-
numberToLetter = `${convertNumberToLetter(quotient)} billions ${convertNumberToLetter(reste)}`;
|
|
301
|
-
break;
|
|
302
|
-
case 14:
|
|
303
|
-
quotient = Math.floor(nb / 1000000000000);
|
|
304
|
-
reste = nb - quotient * 1000000000000;
|
|
305
|
-
if (quotient === 1 && reste === 0)
|
|
306
|
-
numberToLetter = 'un billion';
|
|
307
|
-
if (quotient === 1 && reste !== 0)
|
|
308
|
-
numberToLetter = `${'un billion '}${convertNumberToLetter(reste)}`;
|
|
309
|
-
if (quotient > 1 && reste === 0)
|
|
310
|
-
numberToLetter = `${convertNumberToLetter(quotient)} billions`;
|
|
311
|
-
if (quotient > 1 && reste !== 0)
|
|
312
|
-
numberToLetter = `${convertNumberToLetter(quotient)} billions ${convertNumberToLetter(reste)}`;
|
|
313
|
-
break;
|
|
314
|
-
case 15:
|
|
315
|
-
quotient = Math.floor(nb / 1000000000000);
|
|
316
|
-
reste = nb - quotient * 1000000000000;
|
|
317
|
-
if (quotient === 1 && reste === 0)
|
|
318
|
-
numberToLetter = 'un billion';
|
|
319
|
-
if (quotient === 1 && reste !== 0)
|
|
320
|
-
numberToLetter = `${'un billion '}${convertNumberToLetter(reste)}`;
|
|
321
|
-
if (quotient > 1 && reste === 0)
|
|
322
|
-
numberToLetter = `${convertNumberToLetter(quotient)} billions`;
|
|
323
|
-
if (quotient > 1 && reste !== 0)
|
|
324
|
-
numberToLetter = `${convertNumberToLetter(quotient)} billions ${convertNumberToLetter(reste)}`;
|
|
325
|
-
break;
|
|
326
|
-
default:
|
|
327
|
-
numberToLetter = getUnite(nb);
|
|
328
|
-
break;
|
|
329
|
-
} // fin switch
|
|
330
|
-
/* respect de l'accord de quatre-vingt */
|
|
331
|
-
if (numberToLetter.substr(numberToLetter.length - 'quatre-vingt'.length, 'quatre-vingt'.length) === 'quatre-vingt')
|
|
332
|
-
numberToLetter += 's';
|
|
333
|
-
return numberToLetter;
|
|
334
|
-
}
|
|
335
35
|
//# sourceMappingURL=amount.js.map
|
package/es/utils/amount.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amount.js","sourceRoot":"","sources":["../../ts/utils/amount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,E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ign } from '../types/Enum/Util';\nimport { FormattedAmount } from '../types/Interface/api/amount/FormattedAmount';\n\nexport function integerToFormattedAmountString(value: number): string {\n const abs = Math.abs(value / 100);\n let integer = Math.trunc(abs);\n let cents = Math.round(abs * 100 - integer * 100);\n\n while (cents >= 100) {\n cents = Math.max(0, cents - 100);\n integer += 1;\n }\n\n const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();\n return `${value < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;\n}\n\nexport function integerToFormattedAmountObject(\n value: number,\n options: {\n thousandSeparator?: string;\n } = {\n thousandSeparator: ' ',\n },\n): FormattedAmount {\n const { thousandSeparator } = options;\n const abs = Math.abs(value / 100);\n let integer = Math.trunc(abs);\n let cents = Math.round(abs * 100 - integer * 100);\n\n while (cents >= 100) {\n cents = Math.max(0, cents - 100);\n integer += 1;\n }\n\n const result = {\n value,\n sign: value > 0 ? MathematicalSign.PLUS : value < 0 ? MathematicalSign.LESS : MathematicalSign.EQUAL,\n integerValue: `${integer}`\n .split('')\n .reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? thousandSeparator : ''}${acc}`, '')\n .trim(),\n centValue: `${cents < 10 ? '0' : ''}${cents}`,\n };\n\n return {\n ...result,\n formattedValue: `${result.sign !== MathematicalSign.EQUAL ? `${result.sign} ` : ''}${result.integerValue},${result.centValue}`,\n };\n}\n\n/**\n * Convertit jusqu'à 999 999 999 999 999 (billion) *\n * @param nombre\n * @returns {string}\n */\nfunction getUnite(nombre: number):string {\n let unite;\n switch (nombre) {\n // case 0: unite = 'zéro'; break;\n case 1: unite = 'un'; break;\n case 2: unite = 'deux'; break;\n case 3: unite = 'trois'; break;\n case 4: unite = 'quatre'; break;\n case 5: unite = 'cinq'; break;\n case 6: unite = 'six'; break;\n case 7: unite = 'sept'; break;\n case 8: unite = 'huit'; break;\n case 9: unite = 'neuf'; break;\n default: unite = 'zéro'; break;\n }// fin switch\n return unite;\n}\n\nfunction getDizaine(nombre: number):string {\n let dizaine;\n switch (nombre) {\n // case 10: dizaine = 'dix'; break;\n case 11: dizaine = 'onze'; break;\n case 12: dizaine = 'douze'; break;\n case 13: dizaine = 'treize'; break;\n case 14: dizaine = 'quatorze'; break;\n case 15: dizaine = 'quinze'; break;\n case 16: dizaine = 'seize'; break;\n case 17: dizaine = 'dix-sept'; break;\n case 18: dizaine = 'dix-huit'; break;\n case 19: dizaine = 'dix-neuf'; break;\n case 20: dizaine = 'vingt'; break;\n case 30: dizaine = 'trente'; break;\n case 40: dizaine = 'quarante'; break;\n case 50: dizaine = 'cinquante'; break;\n case 60: dizaine = 'soixante'; break;\n case 70: dizaine = 'soixante-dix'; break;\n case 80: dizaine = 'quatre-vingt'; break;\n case 90: dizaine = 'quatre-vingt-dix'; break;\n default: dizaine = 'dix'; break;\n }// fin switch\n return dizaine;\n}//-----------------------------------------------------------------------\n\nexport function convertNumberToLetter(nombre: number): string {\n let quotient: number; let reste: number;\n let numberToLetter = '';\n\n if (nombre.toString().replace(/ /gi, '').length > 15) return 'dépassement de capacité';\n if (Number.isNaN(nombre.toString().replace(/ /gi, ''))) return 'Nombre non valide';\n\n const nb = parseFloat(nombre.toString().replace(/ /gi, ''));\n if (Math.ceil(nb) !== nb) return 'Nombre avec virgule non géré.';\n\n const n = nb.toString().length;\n switch (n) {\n // case 1: numberToLetter = getUnite(nb); break;\n case 2: if (nb > 19) {\n quotient = Math.floor(nb / 10);\n reste = nb % 10;\n if (nb < 71 || (nb > 79 && nb < 91)) {\n if (reste === 0) numberToLetter = getDizaine(quotient * 10);\n if (reste === 1) numberToLetter = `${getDizaine(quotient * 10)}-et-${getUnite(reste)}`;\n if (reste > 1) numberToLetter = `${getDizaine(quotient * 10)}-${getUnite(reste)}`;\n } else numberToLetter = `${getDizaine((quotient - 1) * 10)}-${getDizaine(10 + reste)}`;\n } else numberToLetter = getDizaine(nb);\n break;\n case 3: quotient = Math.floor(nb / 100);\n reste = nb % 100;\n if (quotient === 1 && reste === 0) numberToLetter = 'cent';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'cent '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${getUnite(quotient)} cents`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${getUnite(quotient)} cent ${convertNumberToLetter(reste)}`;\n break;\n case 4: quotient = Math.floor(nb / 1000);\n reste = nb - quotient * 1000;\n if (quotient === 1 && reste === 0) numberToLetter = 'mille';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'mille '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} mille`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} mille ${convertNumberToLetter(reste)}`;\n break;\n case 5: quotient = Math.floor(nb / 1000);\n reste = nb - quotient * 1000;\n if (quotient === 1 && reste === 0) numberToLetter = 'mille';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'mille '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} mille`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} mille ${convertNumberToLetter(reste)}`;\n break;\n case 6: quotient = Math.floor(nb / 1000);\n reste = nb - quotient * 1000;\n if (quotient === 1 && reste === 0) numberToLetter = 'mille';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'mille '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} mille`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} mille ${convertNumberToLetter(reste)}`;\n break;\n case 7: quotient = Math.floor(nb / 1000000);\n reste = nb % 1000000;\n if (quotient === 1 && reste === 0) numberToLetter = 'un million';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'un million '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} millions`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} millions ${convertNumberToLetter(reste)}`;\n break;\n case 8: quotient = Math.floor(nb / 1000000);\n reste = nb % 1000000;\n if (quotient === 1 && reste === 0) numberToLetter = 'un million';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'un million '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} millions`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} millions ${convertNumberToLetter(reste)}`;\n break;\n case 9: quotient = Math.floor(nb / 1000000);\n reste = nb % 1000000;\n if (quotient === 1 && reste === 0) numberToLetter = 'un million';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'un million '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} millions`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} millions ${convertNumberToLetter(reste)}`;\n break;\n case 10: quotient = Math.floor(nb / 1000000000);\n reste = nb - quotient * 1000000000;\n if (quotient === 1 && reste === 0) numberToLetter = 'un milliard';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'un milliard '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} milliards`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} milliards ${convertNumberToLetter(reste)}`;\n break;\n case 11: quotient = Math.floor(nb / 1000000000);\n reste = nb - quotient * 1000000000;\n if (quotient === 1 && reste === 0) numberToLetter = 'un milliard';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'un milliard '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} milliards`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} milliards ${convertNumberToLetter(reste)}`;\n break;\n case 12: quotient = Math.floor(nb / 1000000000);\n reste = nb - quotient * 1000000000;\n if (quotient === 1 && reste === 0) numberToLetter = 'un milliard';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'un milliard '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} milliards`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} milliards ${convertNumberToLetter(reste)}`;\n break;\n case 13: quotient = Math.floor(nb / 1000000000000);\n reste = nb - quotient * 1000000000000;\n if (quotient === 1 && reste === 0) numberToLetter = 'un billion';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'un billion '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} billions`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} billions ${convertNumberToLetter(reste)}`;\n break;\n case 14: quotient = Math.floor(nb / 1000000000000);\n reste = nb - quotient * 1000000000000;\n if (quotient === 1 && reste === 0) numberToLetter = 'un billion';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'un billion '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} billions`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} billions ${convertNumberToLetter(reste)}`;\n break;\n case 15: quotient = Math.floor(nb / 1000000000000);\n reste = nb - quotient * 1000000000000;\n if (quotient === 1 && reste === 0) numberToLetter = 'un billion';\n if (quotient === 1 && reste !== 0) numberToLetter = `${'un billion '}${convertNumberToLetter(reste)}`;\n if (quotient > 1 && reste === 0) numberToLetter = `${convertNumberToLetter(quotient)} billions`;\n if (quotient > 1 && reste !== 0) numberToLetter = `${convertNumberToLetter(quotient)} billions ${convertNumberToLetter(reste)}`;\n break;\n default: numberToLetter = getUnite(nb); break;\n } // fin switch\n /* respect de l'accord de quatre-vingt */\n if (numberToLetter.substr(numberToLetter.length - 'quatre-vingt'.length, 'quatre-vingt'.length) === 'quatre-vingt') numberToLetter += 's';\n\n return numberToLetter;\n}"]}
|
|
1
|
+
{"version":3,"file":"amount.js","sourceRoot":"","sources":["../../ts/utils/amount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,UAAU,8BAA8B,CAAC,KAAa;IAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;IAClC,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,OAAO,GAAG,GAAG,CAAC,CAAC;IAElD,OAAO,KAAK,IAAI,GAAG,EAAE;QACnB,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC,CAAC;QACjC,OAAO,IAAI,CAAC,CAAC;KACd;IAED,MAAM,eAAe,GAAG,GAAG,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/J,OAAO,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,eAAe,IAAI,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,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C,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE;KAC9C,CAAC;IAEF,uCACK,MAAM,KACT,cAAc,EAAE,GAAG,MAAM,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,SAAS,EAAE,IAC9H;AACJ,CAAC","sourcesContent":["import { MathematicalSign } from '../types/Enum/Util';\nimport { FormattedAmount } from '../types/Interface/api/amount/FormattedAmount';\n\nexport function integerToFormattedAmountString(value: number): string {\n const abs = Math.abs(value / 100);\n let integer = Math.trunc(abs);\n let cents = Math.round(abs * 100 - integer * 100);\n\n while (cents >= 100) {\n cents = Math.max(0, cents - 100);\n integer += 1;\n }\n\n const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();\n return `${value < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;\n}\n\nexport function integerToFormattedAmountObject(\n value: number,\n options: {\n thousandSeparator?: string;\n } = {\n thousandSeparator: ' ',\n },\n): FormattedAmount {\n const { thousandSeparator } = options;\n const abs = Math.abs(value / 100);\n let integer = Math.trunc(abs);\n let cents = Math.round(abs * 100 - integer * 100);\n\n while (cents >= 100) {\n cents = Math.max(0, cents - 100);\n integer += 1;\n }\n\n const result = {\n value,\n sign: value > 0 ? MathematicalSign.PLUS : value < 0 ? MathematicalSign.LESS : MathematicalSign.EQUAL,\n integerValue: `${integer}`\n .split('')\n .reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? thousandSeparator : ''}${acc}`, '')\n .trim(),\n centValue: `${cents < 10 ? '0' : ''}${cents}`,\n };\n\n return {\n ...result,\n formattedValue: `${result.sign !== MathematicalSign.EQUAL ? `${result.sign} ` : ''}${result.integerValue},${result.centValue}`,\n };\n}"]}
|
package/es/utils/brands.d.ts
CHANGED
package/es/utils/brands.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../../ts/utils/brands.ts"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,SAAS,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../../ts/utils/brands.ts"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,SAAS,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC;AAEF,QAAA,MAAM,qBAAqB,aAAc,MAAM,KAAG,YAAY,GAAG,WAAW,GAAG,YAAY,GAAG,aAc7F,CAAC;AAEF,QAAA,MAAM,oBAAoB,aAAc,MAAM,YAY7C,CAAC;AAEF,QAAA,MAAM,cAAc,WAAY,oBAAoB,UAqCnD,CAAC;AAEF,QAAA,MAAM,eAAe,UAAW,MAAM,KAAG,YAAY,GAAG,WAAW,GAAG,YAAY,GAAG,aAAa,GAAG,qBAAqB,GAAG,IAQ5H,CAAC;AAEF,OAAO,EACL,cAAc,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,eAAe,GAC7E,CAAC"}
|
package/es/utils/brands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../../ts/utils/brands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../../ts/utils/brands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAyBlE,MAAM,qBAAqB,GAAG,CAAC,OAAgB,EAA6D,EAAE;;IAC5G,MAAM,GAAG,GAAG,MAAA,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,mCAAI,OAAO,CAAC,GAAG,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;IAC7D,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;QAAE,OAAO,WAAW,CAAC;IAC5D,IAAI,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAAE,OAAO,aAAa,CAAC;IAC/D,IAAI,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC;QAAE,OAAO,YAAY,CAAC;IACpE,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;QAAE,OAAO,YAAY,CAAC;IAC7D,IAAI,KAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;QAAE,OAAO,qBAAqB,CAAC;IAC/E,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,OAAO,EACL,cAAc,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,eAAe,GAC7E,CAAC","sourcesContent":["import { get as getLodash } from 'lodash';\nimport { BrandClementine } from '../types/Enum/BrandClementine';\nimport { BrandLegalstart } from '../types/Enum/BrandLegalstart';\nimport { BrandComptalib } from '../types/Enum/BrandComptalib';\nimport { BrandPourcentage } from '../types/Enum/BrandPourcentage';\n\ntype brand = {\n idTypeBrand: number,\n colors: {\n primary: string,\n },\n listMails: {\n bonjour: string,\n },\n listPhones: {\n contact: string,\n },\n name: string,\n urlApi1?: string,\n urlClient?: string,\n urlApp?: string,\n};\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart' | 'Comptalib' | 'Clementine' | 'Pourcentage' => {\n const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;\n if (env) {\n if (env.indexOf('legalstart') > -1 || env.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (env.indexOf('comptalib') > -1 || env.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (env.indexOf('pourcentage') > -1 || env.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n }\n return 'Clementine';\n};\n\nconst getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n const brand = currentConfigFile;\n\n return brand;\n};\n\nconst getBrandConfig = (params: getBrandConfigParams): brand => {\n const {\n idTypeBrand = null, objectWaited = null, nodeEnv,\n } = params;\n let brand;\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n if (idTypeBrand) {\n // Récupération de la brand via idTypeBrand\n brand = currentConfigFile.find((b: brand) => b.idTypeBrand === idTypeBrand);\n }\n // else if (idSociety) {\n // Récupération de la brand via l'idSociety -> impossible directement depuis le core (pas d'accès au resources, ni au token pour l'appel via fetch)\n\n if (!brand) {\n // Si aucune brand trouvée, on passe par défaut la première brand de la liste\n [brand] = currentConfigFile.sort((a: brand, b: brand) => a.idTypeBrand - b.idTypeBrand);\n }\n\n if (objectWaited) {\n // Si on attend un attribut particulier de la brand, on le parcourt\n let objectToReturn = getLodash(brand, objectWaited);\n // Si aucun attribut trouvé, on renvoit celui de Clementine par défaut\n if (!objectToReturn) {\n const brandDefault = currentConfigFile.find((b: brand) => b.name === currentEnvName);\n objectToReturn = getLodash(brandDefault, objectWaited);\n }\n return objectToReturn;\n }\n\n return brand;\n};\n\nconst getBrandByEmail = (email: string): 'Legalstart' | 'Comptalib' | 'Clementine' | 'Pourcentage' | 'Lecomptablefrancais' | null => {\n if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';\n if (email.indexOf('comptalib.com') > -1) return 'Comptalib';\n if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';\n if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';\n if (email.indexOf('clementine.fr') > -1) return 'Clementine';\n if (email.indexOf('lecomptablefrancais.fr') > -1) return 'Lecomptablefrancais';\n return null;\n};\n\nexport {\n getBrandConfig, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail,\n};"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":"AAwHA,eAAO,MAAM,iBAAiB,QA6ErB,CAAC"}
|
|
@@ -18,9 +18,10 @@ const avatar = `<% if (!forceRole && user?.avatar?.token) { %>
|
|
|
18
18
|
width="100">
|
|
19
19
|
<p style="padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;">
|
|
20
20
|
<img
|
|
21
|
-
style="max-height: 90px;max-width: 90px; border-radius: 100%; padding-top:
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
style="max-height: 90px;max-width: 90px; border-radius: 100%; padding-top: 1Opx"
|
|
22
|
+
src="
|
|
23
|
+
<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>
|
|
24
|
+
"
|
|
24
25
|
/>
|
|
25
26
|
</p>
|
|
26
27
|
</td>
|
|
@@ -33,7 +34,7 @@ const footer = `<% if(brandName === 'Clementine') { %>
|
|
|
33
34
|
<table style="width: 100%" width="100%">
|
|
34
35
|
<tr>
|
|
35
36
|
<td style="padding:0 10px 0 0" width="120">
|
|
36
|
-
<a href="https://app.clementine.fr/" target="_blank" style="text-decoration: none; color: #6E6E71; white-space: nowrap;">
|
|
37
|
+
<a href="https://app.compta-clementine.fr/" target="_blank" style="text-decoration: none; color: #6E6E71; white-space: nowrap;">
|
|
37
38
|
<img
|
|
38
39
|
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png"
|
|
39
40
|
style="vertical-align: text-top;"
|
|
@@ -83,10 +84,10 @@ const footer = `<% if(brandName === 'Clementine') { %>
|
|
|
83
84
|
<tr>
|
|
84
85
|
<td colspan="7" style="padding-top: 12px">
|
|
85
86
|
<span style="text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;">
|
|
86
|
-
Une question ? Découvrez votre <a href="https://www.clementine.fr/aide/" style="color: #FF7E3C">centre d'aide</a>
|
|
87
|
+
Une question ? Découvrez votre <a href="https://www.compta-clementine.fr/aide/" style="color: #FF7E3C">centre d'aide</a>
|
|
87
88
|
</span>
|
|
88
89
|
<span style="text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;">
|
|
89
|
-
Jusqu’à 500€ avec notre <a href="https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta" style="color: #FF7E3C">programme de parrainage</a>
|
|
90
|
+
Jusqu’à 500€ avec notre <a href="https://www.compta-clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta" style="color: #FF7E3C">programme de parrainage</a>
|
|
90
91
|
</span>
|
|
91
92
|
</td>
|
|
92
93
|
</tr>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;UAaL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFd,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;EAO/B,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0DN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const logoClementine = `<% if (brandName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"850\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; padding-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n </td>\n <% } %>`;\n\nconst footer = `<% if(brandName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n <tr>\n <td colspan=\"7\" style=\"padding-top: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(brandName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"850\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"290\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"290\">\n <tr>\n <td width=\"290\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span></p>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p><p style=\"margin:0; padding:0px 0 4px; color:#6E6E71;\"><%= (user.roles && user.roles.length && user.roles.map((r) => r.idRoles).includes(22)) || (user && user.isAll === true) ? 'Nos' : 'Mes' %> horaires :<br/><%= horaires %></p>\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <p style=\"margin:0px 0; padding:2px 0; color:#6E6E71; padding-left: 10px\">\n <span style=\"float:right\">Standard : <%= standardPhoneSignature %></span><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n <span style=\"float:right\">Ligne directe : <%- phoneSignature %></span><br/>\n <% } %>\n </p>\n \n <p style=\"margin:20px 60px 0 0; padding:0px 0 4px; color:#6E6E71; text-align: right; height: 54px;\">\n <% if(user.calendlyUrl) { %>\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rightArrow.png\"\n alt=\"Prenez rendez-vous ici !\">\n <% } %>\n </p>\n \n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\"><a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel.png\"\n alt=\"Demande de rdv téléphonique\"></a>\n <% } %>\n </p>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
|
|
1
|
+
{"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;;UAcL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFd,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;EAO/B,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0DN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const logoClementine = `<% if (brandName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"850\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; padding-top: 1Opx\"\n src=\"\n <%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\n \"\n />\n </p>\n </td>\n <% } %>`;\n\nconst footer = `<% if(brandName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.compta-clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n <tr>\n <td colspan=\"7\" style=\"padding-top: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.compta-clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.compta-clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(brandName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"850\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"290\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"290\">\n <tr>\n <td width=\"290\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span></p>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p><p style=\"margin:0; padding:0px 0 4px; color:#6E6E71;\"><%= (user.roles && user.roles.length && user.roles.map((r) => r.idRoles).includes(22)) || (user && user.isAll === true) ? 'Nos' : 'Mes' %> horaires :<br/><%= horaires %></p>\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <p style=\"margin:0px 0; padding:2px 0; color:#6E6E71; padding-left: 10px\">\n <span style=\"float:right\">Standard : <%= standardPhoneSignature %></span><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n <span style=\"float:right\">Ligne directe : <%- phoneSignature %></span><br/>\n <% } %>\n </p>\n \n <p style=\"margin:20px 60px 0 0; padding:0px 0 4px; color:#6E6E71; text-align: right; height: 54px;\">\n <% if(user.calendlyUrl) { %>\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rightArrow.png\"\n alt=\"Prenez rendez-vous ici !\">\n <% } %>\n </p>\n \n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\"><a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel.png\"\n alt=\"Demande de rdv téléphonique\"></a>\n <% } %>\n </p>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
|
package/es/utils/email.js
CHANGED
|
@@ -36,10 +36,10 @@ function getRoleSignature(user) {
|
|
|
36
36
|
return `Chargé${user.idCivility === 2 ? 'e' : ''} de clientèle`;
|
|
37
37
|
}
|
|
38
38
|
if (isCS && isManager) {
|
|
39
|
-
return 'Responsable
|
|
39
|
+
return 'Responsable de clientèle';
|
|
40
40
|
}
|
|
41
41
|
if (isCS) {
|
|
42
|
-
return `
|
|
42
|
+
return `Chargé${user.idCivility === 2 ? 'e' : ''} de clientèle`;
|
|
43
43
|
}
|
|
44
44
|
if (isFacturation && isStagiaireOrAlternant) {
|
|
45
45
|
return 'Assistant facturation';
|