@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/js/utils/phone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone.js","names":["formatPhoneNumberToE164","exports","getPhoneNumberWithoutPrefix","countSegmentsFromMessage","getPhoneNumberFromRoles","_smsSegmentsCalculator","require","_Phone","_Role","_RoleDetail","phoneNumber","prefix","charAt","numberInt","replace","length","substring","number","Object","keys","PhonePrefix","map","index","forEach","message","SegmentedMessage","segmentsCount","roles","
|
|
1
|
+
{"version":3,"file":"phone.js","names":["formatPhoneNumberToE164","exports","getPhoneNumberWithoutPrefix","countSegmentsFromMessage","getPhoneNumberFromRoles","_smsSegmentsCalculator","require","_Phone","_Role","_RoleDetail","phoneNumber","prefix","charAt","numberInt","replace","length","substring","number","Object","keys","PhonePrefix","map","index","forEach","message","SegmentedMessage","segmentsCount","roles","some","role","Role","FRONT_OFFICE","EXPERT_ACCOUNTANT","includes","RoleDetail","FRONT_OFFICE_EXPRESS","COMMERCIAL","FACTURATION","CUSTOMER_SUCCESS","JURIDIC","JURIDICAL_SUPPORT","SOCIAL"],"sources":["../../ts/utils/phone.ts"],"sourcesContent":["import { SegmentedMessage } from 'sms-segments-calculator';\nimport { PhonePrefix } from '../types/Enum/Phone';\nimport { Role } from '../types/Enum/Role';\nimport { RoleDetail } from '../types/Enum/RoleDetail';\n\nexport function formatPhoneNumberToE164(phoneNumber: string | null, prefix = '+33'): string | null {\n if (!phoneNumber) return null;\n if (phoneNumber.charAt(0) !== '+' && phoneNumber.charAt(0) === '0') {\n const numberInt = phoneNumber.replace(/\\D/g, '');\n if (prefix) {\n if (numberInt.length === 10 && numberInt.charAt(0) === '0') {\n return `${prefix}${numberInt.substring(1)}`;\n }\n return `${prefix}${numberInt}`;\n }\n if (numberInt.charAt(0) === '0' && numberInt.length === 10) return `+33${numberInt.substring(1)}`;\n return numberInt;\n }\n return phoneNumber;\n}\n\nexport function getPhoneNumberWithoutPrefix(phoneNumber: string): string {\n let number = phoneNumber;\n // @ts-ignore\n Object.keys(PhonePrefix).map((index) => PhonePrefix[index].prefix).forEach((prefix) => {\n number = number.replace(prefix, '');\n });\n return number;\n}\n\nexport function countSegmentsFromMessage(message: string): number {\n return new SegmentedMessage(message, 'auto').segmentsCount;\n}\n\nexport function getPhoneNumberFromRoles(roles: number[]): string | null {\n if (roles.some((role) => [Role.FRONT_OFFICE, Role.EXPERT_ACCOUNTANT].includes(role))) {\n return RoleDetail.FRONT_OFFICE.phoneNumber;\n }\n\n if (roles.some((role) => [Role.FRONT_OFFICE_EXPRESS].includes(role))) {\n return RoleDetail.FRONT_OFFICE_EXPRESS.phoneNumber;\n }\n\n if (roles.some((role) => [Role.COMMERCIAL].includes(role))) {\n return RoleDetail.COMMERCIAL.phoneNumber;\n }\n\n if (roles.some((role) => [Role.FACTURATION].includes(role))) {\n return RoleDetail.FACTURATION.phoneNumber;\n }\n\n if (roles.some((role) => [Role.CUSTOMER_SUCCESS].includes(role))) {\n return RoleDetail.CUSTOMER_SUCCESS.phoneNumber;\n }\n\n if (roles.some((role) => [Role.JURIDIC, Role.JURIDICAL_SUPPORT].includes(role))) {\n return RoleDetail.JURIDIC.phoneNumber;\n }\n\n if (roles.some((role) => [Role.SOCIAL].includes(role))) {\n return RoleDetail.SOCIAL.phoneNumber;\n }\n\n return null;\n}"],"mappings":";;;;;QAKgBA,uBAAuB,GAAvBA,uBAAuB;AAAAC,OAAA,CAgBvBC,2BAA2B,GAA3BA,2BAA2B;AAAAD,OAAA,CAS3BE,wBAAwB,GAAxBA,wBAAwB;AAAAF,OAAA,CAIxBG,uBAAuB,GAAvBA,uBAAuB;AAlCvC,IAAAC,sBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAEM,SAAUN,uBAAuBA,CAACU,WAA0B,EAAEC,MAAM,GAAG,KAAK;EAChF,IAAI,CAACD,WAAW,EAAE,OAAO,IAAI;EAC7B,IAAIA,WAAW,CAACE,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,IAAIF,WAAW,CAACE,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IAClE,MAAMC,SAAS,GAAGH,WAAW,CAACI,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;IAChD,IAAIH,MAAM,EAAE;MACV,IAAIE,SAAS,CAACE,MAAM,KAAK,EAAE,IAAIF,SAAS,CAACD,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;QAC1D,OAAO,GAAGD,MAAM,GAAGE,SAAS,CAACG,SAAS,CAAC,CAAC,CAAC,EAAE;;MAE7C,OAAO,GAAGL,MAAM,GAAGE,SAAS,EAAE;;IAEhC,IAAIA,SAAS,CAACD,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,IAAIC,SAAS,CAACE,MAAM,KAAK,EAAE,EAAE,OAAO,MAAMF,SAAS,CAACG,SAAS,CAAC,CAAC,CAAC,EAAE;IACjG,OAAOH,SAAS;;EAElB,OAAOH,WAAW;AACpB;A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IiB,KAAK,CAACC,IAAI,CAAEC,IAAI,IAAK,CAACC,UAAI,CAACQ,gBAAgB,CAAC,CAACL,QAAQ,CAACJ,IAAI,CAAC,CAAC,EAAE;IAChE,OAAOK,sBAAU,CAACI,gBAAgB,CAAC5B,WAAW;;EAGhD,IAAIiB,KAAK,CAACC,IAAI,CAAEC,IAAI,IAAK,CAACC,UAAI,CAACS,OAAO,EAAET,UAAI,CAACU,iBAAiB,CAAC,CAACP,QAAQ,CAACJ,IAAI,CAAC,CAAC,EAAE;IAC/E,OAAOK,sBAAU,CAACK,OAAO,CAAC7B,WAAW;;EAGvC,IAAIiB,KAAK,CAACC,IAAI,CAAEC,IAAI,IAAK,CAACC,UAAI,CAACW,MAAM,CAAC,CAACR,QAAQ,CAACJ,IAAI,CAAC,CAAC,EAAE;IACtD,OAAOK,sBAAU,CAACO,MAAM,CAAC/B,WAAW;;EAGtC,OAAO,IAAI;AACb"}
|
package/js/utils/quotation.js
CHANGED
|
@@ -215,11 +215,9 @@ function getClientQuotation(society, otherSocieties, lastNotice, unpaidDetails,
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
/* LAB refusée */
|
|
218
|
-
if (society === null ||
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
detailQuotation.labRefused -= 10;
|
|
222
|
-
}
|
|
218
|
+
if (!((_e = society.societyDetail) === null || _e === void 0 ? void 0 : _e.acceptation)) {
|
|
219
|
+
quotationNegative -= 10;
|
|
220
|
+
detailQuotation.labRefused -= 10;
|
|
223
221
|
}
|
|
224
222
|
/* Cessation de paiement - redressement judiciaire - procédure en cours / signalements / résiliation */
|
|
225
223
|
if (societyProcedings === null || societyProcedings === void 0 ? void 0 : societyProcedings.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotation.js","names":["getLeadQuotation","exports","getClientQuotation","compareTwoCotation","_dayjs","require","dayjs","_interopRequireWildcard","_MailDomainType","_Activity","_ComptaType","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","params","firstname","lastname","phone","mail","annualTurnover","source","alreadyExist","activitySector","includes","quotation","substr","BasicDomain","find","domain","ForbidenDomain","Date","getDay","dateTime","year","getFullYear","month","getMonth","day","getDate","startTime","endTime","getTime","fieldNumber","filter","data","length","Activity","INFORMATIQUE","CONSEIL","TRANSPORT","BTP","RESTAURATION","COMMERCANT","MEDICAL","PROF_LIB","society","otherSocieties","lastNotice","unpaidDetails","reports","societyProcedings","tabBankAccount","firstPaiement","quotationPositive","quotationNegative","detailQuotation","signature","seniority","additionalBenefits","additionalCompanies","unpayed","updatedAnnotations","bankSynchronization","rating","labRefused","ongoingProceedings","report","termination","created","anciennete","diff","datePayment","ponderation","idComptaType","ComptaType","CASH_BASED","CASH_BASED_ASSISTANCE","CASH_BASED_SEIZURE","ACCRUALS","ACCRUALS_ASSISTANCE","ACCRUALS_SEIZURE","yearAsClient","Number","_a","prestationsSocieties","prestationsCompl","prestation","idPrestationComplementary","forEach","Math","ceil","_b","societyAccountingTransactions","countNotAnnoted","percentageAnnotations","map","na","dateLocked","_c","_d","societyActivatedBankAccounts","synchro","desactivatedBankAccount","average","societyDetail","_e","acceptation","isWaitingEnd","_f","prestationsCreation","idPrestationList","cotation","idSociety","id","cotations","higher"],"sources":["../../ts/utils/quotation.ts"],"sourcesContent":["import * as dayjs from 'dayjs';\nimport { ForbidenDomain, BasicDomain } from '../types/Enum/MailDomainType';\nimport { Activity } from '../types/Enum/Activity';\nimport { ComptaType } from '../types/Enum/ComptaType';\nimport { ISociety } from '../types/Interface/models/ISociety';\nimport { ICotation } from '../types/Interface/models/ICotation';\nimport {\n BasePaginate,\n IPayment,\n IRating, IReport, ISocietyProceding, ReadClientQuotation,\n} from '../types';\n\ntype getLeadQuotationParams = {\n firstname: string,\n lastname: string,\n phone: string,\n mail: string,\n annualTurnover: number,\n source: number,\n alreadyExist: boolean,\n activitySector: number,\n};\n\nexport function getLeadQuotation(params: getLeadQuotationParams):number {\n const {\n firstname, lastname, phone, mail, annualTurnover, source, alreadyExist, activitySector,\n } = params;\n if (\n firstname === 'test'\n || lastname === 'test'\n || mail?.includes('test')\n || ['606060606', '707070707', '612345678', '712345678', '687654321', '787654321'].includes(phone)\n ) {\n return 0;\n }\n let quotation = 0;\n\n /* cotation du prénom */\n if (firstname) quotation += 5;\n\n /* cotation du nom */\n if (lastname) quotation += 5;\n\n /* cotation du numéro de téléphone */\n if (['6', '7'].includes(phone.substr(0, 1))) {\n quotation += 15;\n } else {\n quotation += 5;\n }\n\n /* cotation de l'adresse email */\n if (BasicDomain.find((domain) => mail?.includes(domain))) {\n quotation += 5;\n } else\n if (!ForbidenDomain.find((domain) => mail?.includes(domain))) {\n quotation += 15;\n }\n\n /* cotation du CA annuel */\n if ([0, 150000, 400000, 783000, 783001].includes(annualTurnover)) {\n quotation += 10;\n } else if ([50000, 234000].includes(annualTurnover)) {\n quotation += 5;\n }\n\n /* cotation de la date d'ajout */\n if ([1, 2, 3, 4, 5].includes(new Date().getDay())) {\n const dateTime = new Date();\n const year = dateTime.getFullYear();\n const month = dateTime.getMonth();\n const day = dateTime.getDate();\n const startTime = new Date(`${year}-${month + 1}-${day} 08:45:00`);\n const endTime = new Date(`${year}-${month + 1}-${day} 18:45:00`);\n if ((startTime.getTime() <= dateTime.getTime()) && (endTime.getTime() >= dateTime.getTime())) {\n quotation += 15;\n } else {\n quotation += 5;\n }\n } else {\n quotation += 5;\n }\n\n /* cotation de la source */\n /* Parrainage */\n if (source === 49) {\n quotation += 10;\n\n /* calendly, appel entrant */\n } else if (source === 2) {\n quotation += 8;\n\n /* adWords, Bing, Formulaire */\n } else if (source === 4) {\n quotation += 6;\n\n /* Chat, Whatsapp */\n } else if ([29, 92].includes(source)) {\n quotation += 2;\n }\n\n /* cotation de la qualité (nombre de champs remplis) */\n const fieldNumber = [firstname, lastname, phone, mail, annualTurnover, activitySector].filter((data) => !!data).length;\n switch (fieldNumber) {\n case 6:\n quotation += 10;\n break;\n case 5:\n quotation += 8;\n break;\n case 4:\n quotation += 6;\n break;\n case 3:\n quotation += 4;\n break;\n case 2:\n quotation += 2;\n break;\n default:\n break;\n }\n\n /* cotation de l'existence du lead (déjà existant ou non) */\n if (alreadyExist) quotation += 8;\n\n /* cotation du secteur d'activité */\n if ([Activity.INFORMATIQUE, Activity.CONSEIL].includes(activitySector)) {\n quotation += 10;\n } else if ([Activity.TRANSPORT, Activity.BTP, Activity.RESTAURATION, Activity.COMMERCANT, Activity.MEDICAL, Activity.PROF_LIB].includes(activitySector)) {\n quotation += 5;\n }\n\n return quotation;\n}\n\n/* besoin en entré de la société concerné avec les différents imports (society), ainsi que la liste des autres sociétés ou l'owner est owner (otherSocieties) */\nexport function getClientQuotation(society: ISociety, otherSocieties: ISociety[], lastNotice: BasePaginate<IRating>, unpaidDetails: [], reports: IReport[], societyProcedings: ISocietyProceding[], tabBankAccount: any, firstPaiement: IPayment[]): ReadClientQuotation {\n let quotationPositive = 0;\n let quotationNegative = 0;\n let quotation = 0;\n const detailQuotation = {\n signature: 0,\n seniority: 0,\n additionalBenefits: 0,\n additionalCompanies: 0,\n unpayed: 0,\n updatedAnnotations: 0,\n bankSynchronization: 0,\n rating: 0,\n labRefused: 0,\n ongoingProceedings: 0,\n report: 0,\n termination: 0,\n created: 0,\n };\n\n // calcul de l'ancienneté de la société\n const anciennete = firstPaiement?.length > 0 ? dayjs().diff(dayjs(firstPaiement[0].datePayment, 'YYYY-MM-DD'), 'years') : 0;\n const ponderation = (anciennete * 0.1) + 1;\n\n /* Type de comptabilité du client (Tresorerie (+10) / Engagement (+15)) */\n if (society.idComptaType) {\n if ([ComptaType.CASH_BASED, ComptaType.CASH_BASED_ASSISTANCE, ComptaType.CASH_BASED_SEIZURE].includes(society.idComptaType)) {\n quotationPositive += 10;\n detailQuotation.signature += 10;\n } else if ([ComptaType.ACCRUALS, ComptaType.ACCRUALS_ASSISTANCE, ComptaType.ACCRUALS_SEIZURE].includes(society.idComptaType)) {\n quotationPositive += 15;\n detailQuotation.signature += 15;\n }\n }\n\n /* Ancienneté (1 ans < firstPaiement < 2 ans (+10) / 2 ans < firstPaiement (+20 / année)) */\n if (firstPaiement?.length > 0) {\n const yearAsClient = Number(new Date().getFullYear()) - Number(new Date(firstPaiement[0].datePayment).getFullYear());\n if (yearAsClient === 1) {\n quotationPositive += 10;\n detailQuotation.seniority += 10;\n } else if (yearAsClient > 1) {\n quotationPositive += (20 * (yearAsClient - 1) + 10);\n detailQuotation.seniority += (20 * (yearAsClient - 1) + 10);\n }\n }\n\n /* Prestations Complémentaires (+5 / prestation) */\n if (society.prestationsSocieties?.length) {\n const prestationsCompl = society.prestationsSocieties.filter((prestation) => prestation.idPrestationComplementary);\n prestationsCompl.forEach(() => {\n quotationPositive += Math.ceil(5 * ponderation);\n detailQuotation.additionalBenefits += Math.ceil(5 * ponderation);\n });\n }\n\n /* Sociétés supplémentaires (+8 / société) */\n if (otherSocieties.length) {\n quotationPositive += Math.ceil(8 * otherSocieties.length * ponderation);\n detailQuotation.additionalCompanies += Math.ceil(8 * otherSocieties.length * ponderation);\n }\n\n /* Impayés (-15 / mois) */\n if (unpaidDetails.length) {\n quotationNegative -= Math.ceil(15 * unpaidDetails.length * ponderation);\n detailQuotation.unpayed -= Math.ceil(15 * unpaidDetails.length * ponderation);\n }\n\n /* annotations à jour */\n if (tabBankAccount.societyAccountingTransactions?.length) {\n // on check s'il y a 80% des lignes annotées (dateLocked)\n let countNotAnnoted = 0;\n let percentageAnnotations = 100;\n tabBankAccount.societyAccountingTransactions.map((na:any) => {\n if (na.dateLocked === null) {\n countNotAnnoted += 1;\n }\n return countNotAnnoted;\n });\n if (countNotAnnoted !== 0) percentageAnnotations = (countNotAnnoted / tabBankAccount.societyAccountingTransactions?.length) * 100;\n if (percentageAnnotations >= 80) {\n quotationPositive += Math.ceil(12 * ponderation);\n detailQuotation.updatedAnnotations += Math.ceil(12 * ponderation);\n } else {\n quotationNegative -= Math.ceil(12 * ponderation);\n detailQuotation.updatedAnnotations -= Math.ceil(12 * ponderation);\n }\n }\n\n /* synchronisation bancaire */\n if (tabBankAccount.societyActivatedBankAccounts?.length) {\n // comptes synchro\n const synchro = tabBankAccount.societyActivatedBankAccounts.length - tabBankAccount.desactivatedBankAccount.length;\n quotationPositive += Math.ceil(12 * synchro * ponderation);\n detailQuotation.bankSynchronization += Math.ceil(12 * synchro * ponderation);\n\n // comptes desynchro\n quotationNegative -= Math.ceil(12 * tabBankAccount.desactivatedBankAccount.length * ponderation);\n detailQuotation.bankSynchronization -= Math.ceil(12 * tabBankAccount.desactivatedBankAccount.length * ponderation);\n }\n\n /* avis */\n if (lastNotice && lastNotice.data.length === 1) {\n if (lastNotice.data[0].average === 5) {\n quotationPositive += Math.ceil(10 * ponderation);\n detailQuotation.rating += Math.ceil(10 * ponderation);\n } else {\n quotationNegative -= 10;\n detailQuotation.rating -= 10;\n }\n }\n\n /* LAB refusée */\n if (society?.societyDetail) {\n if (!society.societyDetail?.acceptation) {\n quotationNegative -= 10;\n detailQuotation.labRefused -= 10;\n }\n }\n\n /* Cessation de paiement - redressement judiciaire - procédure en cours / signalements / résiliation */\n if (societyProcedings?.length) {\n quotationNegative -= 5 * societyProcedings.length;\n detailQuotation.ongoingProceedings -= 5 * societyProcedings.length;\n }\n\n if (reports?.length) {\n quotationNegative -= 10;\n detailQuotation.report -= 10;\n }\n\n if (society.isWaitingEnd) {\n quotationNegative -= 50;\n detailQuotation.termination -= 50;\n }\n\n /* Création chez nous */\n if (society.prestationsSocieties?.length) {\n const prestationsCreation = society.prestationsSocieties.filter((prestation) => prestation.idPrestationList === 15); // creation pas d'enum\n prestationsCreation.forEach(() => {\n quotationPositive += 10;\n detailQuotation.created += 10;\n });\n }\n\n if (quotationPositive > 100) quotationPositive = 100;\n if (quotationNegative > 100) quotationNegative = 100;\n\n quotation = quotationPositive + quotationNegative;\n\n if (quotation < 0) quotation = 0;\n\n return {\n cotation: quotation,\n data: detailQuotation,\n idSociety: society.id as number,\n };\n}\n\nexport function compareTwoCotation(cotations: ICotation[]):boolean | null {\n // on recupere les 2 dernieres cotations de la societe\n const higher = false;\n if (cotations[0].cotation === cotations[1].cotation) {\n return null;\n } if (cotations[0].cotation > cotations[1].cotation) {\n return true;\n }\n return higher;\n}"],"mappings":";;;;;QAuBgBA,gBAAgB,GAAhBA,gBAAgB;AAAAC,OAAA,CAiHhBC,kBAAkB,GAAlBA,kBAAkB;AAAAD,OAAA,CA+JlBE,kBAAkB,GAAlBA,kBAAkB;AAvSlC,IAAAC,MAAA,GAAAC,OAAA;AAA+B,IAAnBC,KAAK,GAAAC,uBAAA,CAAAH,MAAA;AACjB,IAAAI,eAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAAsD,SAAAM,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cA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IAAI,EAAE;MACvBE,eAAe,CAACa,OAAO,IAAI,EAAE;IAC/B,CAAC,CAAC;;EAGJ,IAAIf,iBAAiB,GAAG,GAAG,EAAEA,iBAAiB,GAAG,GAAG;EACpD,IAAIC,iBAAiB,GAAG,GAAG,EAAEA,iBAAiB,GAAG,GAAG;EAEpDxC,SAAS,GAAGuC,iBAAiB,GAAGC,iBAAiB;EAEjD,IAAIxC,SAAS,GAAG,CAAC,EAAEA,SAAS,GAAG,CAAC;EAEhC,OAAO;IACLiG,QAAQ,EAAEjG,SAAS;IACnBoB,IAAI,EAAEqB,eAAe;IACrByD,SAAS,EAAEnE,OAAO,CAACoE;GACpB;AACH;AAEM,SAAU3I,kBAAkBA,CAAC4I,SAAsB;EACvD;EACA,MAAMC,MAAM,GAAG,KAAK;EACpB,IAAID,SAAS,CAAC,CAAC,CAAC,CAACH,QAAQ,KAAKG,SAAS,CAAC,CAAC,CAAC,CAACH,QAAQ,EAAE;IACnD,OAAO,IAAI;;EACX,IAAIG,SAAS,CAAC,CAAC,CAAC,CAACH,QAAQ,GAAGG,SAAS,CAAC,CAAC,CAAC,CAACH,QAAQ,EAAE;IACnD,OAAO,IAAI;;EAEb,OAAOI,MAAM;AACf"}
|
|
1
|
+
{"version":3,"file":"quotation.js","names":["getLeadQuotation","exports","getClientQuotation","compareTwoCotation","_dayjs","require","dayjs","_interopRequireWildcard","_MailDomainType","_Activity","_ComptaType","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","params","firstname","lastname","phone","mail","annualTurnover","source","alreadyExist","activitySector","includes","quotation","substr","BasicDomain","find","domain","ForbidenDomain","Date","getDay","dateTime","year","getFullYear","month","getMonth","day","getDate","startTime","endTime","getTime","fieldNumber","filter","data","length","Activity","INFORMATIQUE","CONSEIL","TRANSPORT","BTP","RESTAURATION","COMMERCANT","MEDICAL","PROF_LIB","society","otherSocieties","lastNotice","unpaidDetails","reports","societyProcedings","tabBankAccount","firstPaiement","quotationPositive","quotationNegative","detailQuotation","signature","seniority","additionalBenefits","additionalCompanies","unpayed","updatedAnnotations","bankSynchronization","rating","labRefused","ongoingProceedings","report","termination","created","anciennete","diff","datePayment","ponderation","idComptaType","ComptaType","CASH_BASED","CASH_BASED_ASSISTANCE","CASH_BASED_SEIZURE","ACCRUALS","ACCRUALS_ASSISTANCE","ACCRUALS_SEIZURE","yearAsClient","Number","_a","prestationsSocieties","prestationsCompl","prestation","idPrestationComplementary","forEach","Math","ceil","_b","societyAccountingTransactions","countNotAnnoted","percentageAnnotations","map","na","dateLocked","_c","_d","societyActivatedBankAccounts","synchro","desactivatedBankAccount","average","_e","societyDetail","acceptation","isWaitingEnd","_f","prestationsCreation","idPrestationList","cotation","idSociety","id","cotations","higher"],"sources":["../../ts/utils/quotation.ts"],"sourcesContent":["import * as dayjs from 'dayjs';\nimport { ForbidenDomain, BasicDomain } from '../types/Enum/MailDomainType';\nimport { Activity } from '../types/Enum/Activity';\nimport { ComptaType } from '../types/Enum/ComptaType';\nimport { ISociety } from '../types/Interface/models/ISociety';\nimport { ICotation } from '../types/Interface/models/ICotation';\nimport {\n BasePaginate,\n IPayment,\n IRating, IReport, ISocietyProceding, ReadClientQuotation,\n} from '../types';\n\ntype getLeadQuotationParams = {\n firstname: string,\n lastname: string,\n phone: string,\n mail: string,\n annualTurnover: number,\n source: number,\n alreadyExist: boolean,\n activitySector: number,\n};\n\nexport function getLeadQuotation(params: getLeadQuotationParams):number {\n const {\n firstname, lastname, phone, mail, annualTurnover, source, alreadyExist, activitySector,\n } = params;\n if (\n firstname === 'test'\n || lastname === 'test'\n || mail?.includes('test')\n || ['606060606', '707070707', '612345678', '712345678', '687654321', '787654321'].includes(phone)\n ) {\n return 0;\n }\n let quotation = 0;\n\n /* cotation du prénom */\n if (firstname) quotation += 5;\n\n /* cotation du nom */\n if (lastname) quotation += 5;\n\n /* cotation du numéro de téléphone */\n if (['6', '7'].includes(phone.substr(0, 1))) {\n quotation += 15;\n } else {\n quotation += 5;\n }\n\n /* cotation de l'adresse email */\n if (BasicDomain.find((domain) => mail?.includes(domain))) {\n quotation += 5;\n } else\n if (!ForbidenDomain.find((domain) => mail?.includes(domain))) {\n quotation += 15;\n }\n\n /* cotation du CA annuel */\n if ([0, 150000, 400000, 783000, 783001].includes(annualTurnover)) {\n quotation += 10;\n } else if ([50000, 234000].includes(annualTurnover)) {\n quotation += 5;\n }\n\n /* cotation de la date d'ajout */\n if ([1, 2, 3, 4, 5].includes(new Date().getDay())) {\n const dateTime = new Date();\n const year = dateTime.getFullYear();\n const month = dateTime.getMonth();\n const day = dateTime.getDate();\n const startTime = new Date(`${year}-${month + 1}-${day} 08:45:00`);\n const endTime = new Date(`${year}-${month + 1}-${day} 18:45:00`);\n if ((startTime.getTime() <= dateTime.getTime()) && (endTime.getTime() >= dateTime.getTime())) {\n quotation += 15;\n } else {\n quotation += 5;\n }\n } else {\n quotation += 5;\n }\n\n /* cotation de la source */\n /* Parrainage */\n if (source === 49) {\n quotation += 10;\n\n /* calendly, appel entrant */\n } else if (source === 2) {\n quotation += 8;\n\n /* adWords, Bing, Formulaire */\n } else if (source === 4) {\n quotation += 6;\n\n /* Chat, Whatsapp */\n } else if ([29, 92].includes(source)) {\n quotation += 2;\n }\n\n /* cotation de la qualité (nombre de champs remplis) */\n const fieldNumber = [firstname, lastname, phone, mail, annualTurnover, activitySector].filter((data) => !!data).length;\n switch (fieldNumber) {\n case 6:\n quotation += 10;\n break;\n case 5:\n quotation += 8;\n break;\n case 4:\n quotation += 6;\n break;\n case 3:\n quotation += 4;\n break;\n case 2:\n quotation += 2;\n break;\n default:\n break;\n }\n\n /* cotation de l'existence du lead (déjà existant ou non) */\n if (alreadyExist) quotation += 8;\n\n /* cotation du secteur d'activité */\n if ([Activity.INFORMATIQUE, Activity.CONSEIL].includes(activitySector)) {\n quotation += 10;\n } else if ([Activity.TRANSPORT, Activity.BTP, Activity.RESTAURATION, Activity.COMMERCANT, Activity.MEDICAL, Activity.PROF_LIB].includes(activitySector)) {\n quotation += 5;\n }\n\n return quotation;\n}\n\n/* besoin en entré de la société concerné avec les différents imports (society), ainsi que la liste des autres sociétés ou l'owner est owner (otherSocieties) */\nexport function getClientQuotation(society: ISociety, otherSocieties: ISociety[], lastNotice: BasePaginate<IRating>, unpaidDetails: [], reports: IReport[], societyProcedings: ISocietyProceding[], tabBankAccount: any, firstPaiement: IPayment[]): ReadClientQuotation {\n let quotationPositive = 0;\n let quotationNegative = 0;\n let quotation = 0;\n const detailQuotation = {\n signature: 0,\n seniority: 0,\n additionalBenefits: 0,\n additionalCompanies: 0,\n unpayed: 0,\n updatedAnnotations: 0,\n bankSynchronization: 0,\n rating: 0,\n labRefused: 0,\n ongoingProceedings: 0,\n report: 0,\n termination: 0,\n created: 0,\n };\n\n // calcul de l'ancienneté de la société\n const anciennete = firstPaiement?.length > 0 ? dayjs().diff(dayjs(firstPaiement[0].datePayment, 'YYYY-MM-DD'), 'years') : 0;\n const ponderation = (anciennete * 0.1) + 1;\n\n /* Type de comptabilité du client (Tresorerie (+10) / Engagement (+15)) */\n if (society.idComptaType) {\n if ([ComptaType.CASH_BASED, ComptaType.CASH_BASED_ASSISTANCE, ComptaType.CASH_BASED_SEIZURE].includes(society.idComptaType)) {\n quotationPositive += 10;\n detailQuotation.signature += 10;\n } else if ([ComptaType.ACCRUALS, ComptaType.ACCRUALS_ASSISTANCE, ComptaType.ACCRUALS_SEIZURE].includes(society.idComptaType)) {\n quotationPositive += 15;\n detailQuotation.signature += 15;\n }\n }\n\n /* Ancienneté (1 ans < firstPaiement < 2 ans (+10) / 2 ans < firstPaiement (+20 / année)) */\n if (firstPaiement?.length > 0) {\n const yearAsClient = Number(new Date().getFullYear()) - Number(new Date(firstPaiement[0].datePayment).getFullYear());\n if (yearAsClient === 1) {\n quotationPositive += 10;\n detailQuotation.seniority += 10;\n } else if (yearAsClient > 1) {\n quotationPositive += (20 * (yearAsClient - 1) + 10);\n detailQuotation.seniority += (20 * (yearAsClient - 1) + 10);\n }\n }\n\n /* Prestations Complémentaires (+5 / prestation) */\n if (society.prestationsSocieties?.length) {\n const prestationsCompl = society.prestationsSocieties.filter((prestation) => prestation.idPrestationComplementary);\n prestationsCompl.forEach(() => {\n quotationPositive += Math.ceil(5 * ponderation);\n detailQuotation.additionalBenefits += Math.ceil(5 * ponderation);\n });\n }\n\n /* Sociétés supplémentaires (+8 / société) */\n if (otherSocieties.length) {\n quotationPositive += Math.ceil(8 * otherSocieties.length * ponderation);\n detailQuotation.additionalCompanies += Math.ceil(8 * otherSocieties.length * ponderation);\n }\n\n /* Impayés (-15 / mois) */\n if (unpaidDetails.length) {\n quotationNegative -= Math.ceil(15 * unpaidDetails.length * ponderation);\n detailQuotation.unpayed -= Math.ceil(15 * unpaidDetails.length * ponderation);\n }\n\n /* annotations à jour */\n if (tabBankAccount.societyAccountingTransactions?.length) {\n // on check s'il y a 80% des lignes annotées (dateLocked)\n let countNotAnnoted = 0;\n let percentageAnnotations = 100;\n tabBankAccount.societyAccountingTransactions.map((na:any) => {\n if (na.dateLocked === null) {\n countNotAnnoted += 1;\n }\n return countNotAnnoted;\n });\n if (countNotAnnoted !== 0) percentageAnnotations = (countNotAnnoted / tabBankAccount.societyAccountingTransactions?.length) * 100;\n if (percentageAnnotations >= 80) {\n quotationPositive += Math.ceil(12 * ponderation);\n detailQuotation.updatedAnnotations += Math.ceil(12 * ponderation);\n } else {\n quotationNegative -= Math.ceil(12 * ponderation);\n detailQuotation.updatedAnnotations -= Math.ceil(12 * ponderation);\n }\n }\n\n /* synchronisation bancaire */\n if (tabBankAccount.societyActivatedBankAccounts?.length) {\n // comptes synchro\n const synchro = tabBankAccount.societyActivatedBankAccounts.length - tabBankAccount.desactivatedBankAccount.length;\n quotationPositive += Math.ceil(12 * synchro * ponderation);\n detailQuotation.bankSynchronization += Math.ceil(12 * synchro * ponderation);\n\n // comptes desynchro\n quotationNegative -= Math.ceil(12 * tabBankAccount.desactivatedBankAccount.length * ponderation);\n detailQuotation.bankSynchronization -= Math.ceil(12 * tabBankAccount.desactivatedBankAccount.length * ponderation);\n }\n\n /* avis */\n if (lastNotice && lastNotice.data.length === 1) {\n if (lastNotice.data[0].average === 5) {\n quotationPositive += Math.ceil(10 * ponderation);\n detailQuotation.rating += Math.ceil(10 * ponderation);\n } else {\n quotationNegative -= 10;\n detailQuotation.rating -= 10;\n }\n }\n\n /* LAB refusée */\n if (!society.societyDetail?.acceptation) {\n quotationNegative -= 10;\n detailQuotation.labRefused -= 10;\n }\n\n /* Cessation de paiement - redressement judiciaire - procédure en cours / signalements / résiliation */\n if (societyProcedings?.length) {\n quotationNegative -= 5 * societyProcedings.length;\n detailQuotation.ongoingProceedings -= 5 * societyProcedings.length;\n }\n\n if (reports?.length) {\n quotationNegative -= 10;\n detailQuotation.report -= 10;\n }\n\n if (society.isWaitingEnd) {\n quotationNegative -= 50;\n detailQuotation.termination -= 50;\n }\n\n /* Création chez nous */\n if (society.prestationsSocieties?.length) {\n const prestationsCreation = society.prestationsSocieties.filter((prestation) => prestation.idPrestationList === 15); // creation pas d'enum\n prestationsCreation.forEach(() => {\n quotationPositive += 10;\n detailQuotation.created += 10;\n });\n }\n\n if (quotationPositive > 100) quotationPositive = 100;\n if (quotationNegative > 100) quotationNegative = 100;\n\n quotation = quotationPositive + quotationNegative;\n\n if (quotation < 0) quotation = 0;\n\n return {\n cotation: quotation,\n data: detailQuotation,\n idSociety: society.id as number,\n };\n}\n\nexport function compareTwoCotation(cotations: ICotation[]):boolean | null {\n // on recupere les 2 dernieres cotations de la societe\n const higher = false;\n if (cotations[0].cotation === cotations[1].cotation) {\n return null;\n } if (cotations[0].cotation > cotations[1].cotation) {\n return true;\n }\n return higher;\n}"],"mappings":";;;;;QAuBgBA,gBAAgB,GAAhBA,gBAAgB;AAAAC,OAAA,CAiHhBC,kBAAkB,GAAlBA,kBAAkB;AAAAD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