@silexpert/core 1.1.1 → 1.1.3
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/CommercialImport.d.ts +9 -0
- package/es/api/resources/CommercialImport.d.ts.map +1 -0
- package/es/api/resources/CommercialImport.js +24 -0
- package/es/api/resources/CommercialImport.js.map +1 -0
- package/es/api/resources/Exercice.d.ts +3 -1
- package/es/api/resources/Exercice.d.ts.map +1 -1
- package/es/api/resources/Exercice.js +6 -0
- package/es/api/resources/Exercice.js.map +1 -1
- package/es/api/resources/FIle.d.ts +1 -1
- package/es/api/resources/FIle.d.ts.map +1 -1
- package/es/api/resources/FIle.js +2 -2
- package/es/api/resources/FIle.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/TimeRecorder.d.ts +2 -1
- package/es/api/resources/TimeRecorder.d.ts.map +1 -1
- package/es/api/resources/TimeRecorder.js +3 -0
- package/es/api/resources/TimeRecorder.js.map +1 -1
- package/es/api/resources/{VatDeclaration.d.ts → Vat.d.ts} +5 -5
- package/es/api/resources/Vat.d.ts.map +1 -0
- package/es/api/resources/{VatDeclaration.js → Vat.js} +4 -3
- 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 +4 -2
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +4 -2
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AdjustmentType.d.ts +14 -0
- package/es/types/Enum/AdjustmentType.d.ts.map +1 -0
- package/es/types/Enum/AdjustmentType.js +38 -0
- package/es/types/Enum/AdjustmentType.js.map +1 -0
- package/es/types/Enum/CommercialImportHeader.d.ts +12 -0
- package/es/types/Enum/CommercialImportHeader.d.ts.map +1 -0
- package/es/types/Enum/CommercialImportHeader.js +102 -0
- package/es/types/Enum/CommercialImportHeader.js.map +1 -0
- package/es/types/Enum/Ged.d.ts +1 -0
- 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/JobTitle.d.ts +2 -1
- package/es/types/Enum/JobTitle.d.ts.map +1 -1
- package/es/types/Enum/JobTitle.js +6 -0
- package/es/types/Enum/JobTitle.js.map +1 -1
- package/es/types/Enum/MimeType.d.ts +1 -0
- package/es/types/Enum/MimeType.d.ts.map +1 -1
- package/es/types/Enum/MimeType.js +1 -0
- package/es/types/Enum/MimeType.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +8 -0
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +8 -0
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/TimeRecorderLocation.d.ts +4 -0
- package/es/types/Enum/TimeRecorderLocation.d.ts.map +1 -1
- package/es/types/Enum/TimeRecorderLocation.js +3 -0
- package/es/types/Enum/TimeRecorderLocation.js.map +1 -1
- package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +0 -1
- 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/adjustment/Create.d.ts +7 -0
- package/es/types/Interface/api/adjustment/Create.d.ts.map +1 -0
- package/es/types/Interface/api/adjustment/Create.js +32 -0
- package/es/types/Interface/api/adjustment/Create.js.map +1 -0
- package/es/types/Interface/api/adjustment/Query.d.ts +4 -0
- package/es/types/Interface/api/adjustment/Query.d.ts.map +1 -0
- package/es/types/Interface/api/adjustment/Query.js +19 -0
- package/es/types/Interface/api/adjustment/Query.js.map +1 -0
- package/es/types/Interface/api/adjustment/Read.d.ts +10 -0
- package/es/types/Interface/api/adjustment/Read.d.ts.map +1 -0
- package/es/types/Interface/api/adjustment/Read.js +3 -0
- package/es/types/Interface/api/adjustment/Read.js.map +1 -0
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts +4 -0
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts.map +1 -0
- package/es/types/Interface/api/archive/ImportSocietyArchive.js +19 -0
- package/es/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -0
- package/es/types/Interface/api/commercialImport/Create.d.ts +11 -0
- package/es/types/Interface/api/commercialImport/Create.d.ts.map +1 -0
- package/es/types/Interface/api/commercialImport/Create.js +34 -0
- package/es/types/Interface/api/commercialImport/Create.js.map +1 -0
- package/es/types/Interface/api/commercialImport/Query.d.ts +12 -0
- package/es/types/Interface/api/commercialImport/Query.d.ts.map +1 -0
- package/es/types/Interface/api/commercialImport/Query.js +23 -0
- package/es/types/Interface/api/commercialImport/Query.js.map +1 -0
- package/es/types/Interface/api/commercialImport/Read.d.ts +40 -0
- package/es/types/Interface/api/commercialImport/Read.d.ts.map +1 -0
- package/es/types/Interface/api/commercialImport/Read.js +2 -0
- package/es/types/Interface/api/commercialImport/Read.js.map +1 -0
- package/es/types/Interface/api/companeo/CompaneoReturn.d.ts +28 -0
- package/es/types/Interface/api/companeo/CompaneoReturn.d.ts.map +1 -0
- package/es/types/Interface/api/companeo/CompaneoReturn.js +2 -0
- package/es/types/Interface/api/companeo/CompaneoReturn.js.map +1 -0
- package/es/types/Interface/api/companeo/Query.d.ts +5 -0
- package/es/types/Interface/api/companeo/Query.d.ts.map +1 -0
- package/es/types/Interface/api/companeo/Query.js +26 -0
- package/es/types/Interface/api/companeo/Query.js.map +1 -0
- package/es/types/Interface/api/society/CreateSociety.d.ts +1 -0
- package/es/types/Interface/api/society/CreateSociety.d.ts.map +1 -1
- package/es/types/Interface/api/society/CreateSociety.js +4 -0
- package/es/types/Interface/api/society/CreateSociety.js.map +1 -1
- package/es/types/Interface/api/statistic/QueryInternal.d.ts +2 -0
- package/es/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
- package/es/types/Interface/api/statistic/QueryInternal.js +3 -1
- package/es/types/Interface/api/statistic/QueryInternal.js.map +1 -1
- package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +4 -3
- package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
- package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts +1 -0
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts.map +1 -1
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +6 -0
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts +5 -0
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts.map +1 -0
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +25 -0
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +1 -0
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts +5 -0
- 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/models/IAccountsSocieties.d.ts +2 -0
- 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/IAdjustment.d.ts +13 -0
- package/es/types/Interface/models/IAdjustment.d.ts.map +1 -0
- package/es/types/Interface/models/IAdjustment.js +2 -0
- package/es/types/Interface/models/IAdjustment.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +4 -0
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +5 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IAreasInvoice.d.ts +0 -1
- 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/IBalanceSheet.d.ts +2 -0
- 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/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} +2 -2
- package/es/types/Interface/models/{ICustomerTva.d.ts.map → ICustomerVat.d.ts.map} +1 -1
- package/es/types/Interface/models/ICustomerVat.js +2 -0
- package/es/types/Interface/models/{ICustomerTva.js.map → ICustomerVat.js.map} +1 -1
- package/es/types/Interface/models/IExercice.d.ts +5 -2
- 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/IGedFile.d.ts +3 -0
- 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/ILettering.d.ts +0 -4
- 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/IPenalty.d.ts +3 -3
- package/es/types/Interface/models/IPenalty.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +4 -1
- 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 +4 -2
- 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/IUser.d.ts +2 -0
- package/es/types/Interface/models/IUser.d.ts.map +1 -1
- package/es/types/Interface/models/IUser.js.map +1 -1
- package/es/types/index.d.ts +14 -6
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +14 -6
- package/es/types/index.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/vat/3310/century23.d.ts.map +1 -1
- package/es/utils/vat/3310/century23.js +1 -6
- package/es/utils/vat/3310/century23.js.map +1 -1
- package/js/api/resources/CommercialImport.js +38 -0
- package/js/api/resources/CommercialImport.js.map +1 -0
- package/js/api/resources/Exercice.js +6 -0
- package/js/api/resources/Exercice.js.map +1 -1
- package/js/api/resources/FIle.js +2 -2
- package/js/api/resources/FIle.js.map +1 -1
- package/js/api/resources/Registration.js +5 -0
- package/js/api/resources/Registration.js.map +1 -1
- package/js/api/resources/TimeRecorder.js +5 -0
- package/js/api/resources/TimeRecorder.js.map +1 -1
- package/js/api/resources/{VatDeclaration.js → Vat.js} +6 -5
- 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 +5 -3
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AdjustmentType.js +38 -0
- package/js/types/Enum/AdjustmentType.js.map +1 -0
- package/js/types/Enum/CommercialImportHeader.js +107 -0
- package/js/types/Enum/CommercialImportHeader.js.map +1 -0
- package/js/types/Enum/Ged.js +1 -1
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Enum/JobTitle.js +5 -0
- package/js/types/Enum/JobTitle.js.map +1 -1
- package/js/types/Enum/MimeType.js +1 -0
- package/js/types/Enum/MimeType.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +16 -8
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/TimeRecorderLocation.js +4 -0
- package/js/types/Enum/TimeRecorderLocation.js.map +1 -1
- package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -1
- package/js/types/Interface/api/adjustment/Create.js +25 -0
- package/js/types/Interface/api/adjustment/Create.js.map +1 -0
- package/js/types/Interface/api/adjustment/Query.js +22 -0
- package/js/types/Interface/api/adjustment/Query.js.map +1 -0
- package/js/types/Interface/api/adjustment/Read.js +8 -0
- package/js/types/Interface/api/adjustment/Read.js.map +1 -0
- package/js/types/Interface/api/archive/ImportSocietyArchive.js +22 -0
- package/js/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -0
- package/js/types/Interface/api/commercialImport/Create.js +27 -0
- package/js/types/Interface/api/commercialImport/Create.js.map +1 -0
- package/js/types/Interface/api/commercialImport/Query.js +24 -0
- package/js/types/Interface/api/commercialImport/Query.js.map +1 -0
- package/js/types/Interface/{models/IPageView.js → api/commercialImport/Read.js} +1 -1
- package/js/types/Interface/api/commercialImport/Read.js.map +1 -0
- package/js/types/Interface/{models/IInterestedByFeature.js → api/companeo/CompaneoReturn.js} +1 -1
- package/js/types/Interface/api/companeo/CompaneoReturn.js.map +1 -0
- package/js/types/Interface/api/companeo/Query.js +23 -0
- package/js/types/Interface/api/companeo/Query.js.map +1 -0
- package/js/types/Interface/api/society/CreateSociety.js +1 -0
- package/js/types/Interface/api/society/CreateSociety.js.map +1 -1
- package/js/types/Interface/api/statistic/QueryInternal.js +4 -2
- package/js/types/Interface/api/statistic/QueryInternal.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +1 -0
- package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
- package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +23 -0
- package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +1 -0
- package/js/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -1
- package/js/types/Interface/models/IAccountsSocieties.js.map +1 -1
- package/js/types/Interface/models/{ICustomerTva.js → IAdjustment.js} +1 -1
- package/js/types/Interface/models/IAdjustment.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +5 -0
- 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/IBalanceSheet.js.map +1 -1
- package/js/types/Interface/models/IChecklist.js.map +1 -1
- package/js/types/Interface/models/{IEngagementAccountingFile.js → ICustomerVat.js} +1 -1
- package/js/types/Interface/models/{ICustomerTva.js.map → ICustomerVat.js.map} +1 -1
- package/js/types/Interface/models/IExercice.js.map +1 -1
- package/js/types/Interface/models/IGedFile.js.map +1 -1
- package/js/types/Interface/models/ILettering.js.map +1 -1
- package/js/types/Interface/models/IPenalty.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/IUser.js.map +1 -1
- package/js/types/index.js +199 -119
- package/js/types/index.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/vat/3310/century23.js +1 -5
- package/js/utils/vat/3310/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/CommercialImport.ts +32 -0
- package/ts/api/resources/Exercice.ts +9 -1
- package/ts/api/resources/FIle.ts +2 -2
- package/ts/api/resources/Registration.ts +6 -0
- package/ts/api/resources/TimeRecorder.ts +4 -1
- package/ts/api/resources/{VatDeclaration.ts → Vat.ts} +6 -5
- package/ts/api/resources/statistic/CustomerSuccess.ts +1 -1
- package/ts/api/resources.ts +4 -2
- package/ts/types/Enum/AdjustmentType.ts +37 -0
- package/ts/types/Enum/CommercialImportHeader.ts +112 -0
- package/ts/types/Enum/Ged.ts +1 -1
- package/ts/types/Enum/JobTitle.ts +6 -0
- package/ts/types/Enum/MimeType.ts +1 -0
- package/ts/types/Enum/RoleDetail.ts +8 -0
- package/ts/types/Enum/TimeRecorderLocation.ts +4 -0
- package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +0 -1
- package/ts/types/Interface/api/adjustment/Create.ts +19 -0
- package/ts/types/Interface/api/adjustment/Query.ts +8 -0
- package/ts/types/Interface/api/adjustment/Read.ts +10 -0
- package/ts/types/Interface/api/archive/ImportSocietyArchive.ts +8 -0
- package/ts/types/Interface/api/commercialImport/Create.ts +22 -0
- package/ts/types/Interface/api/commercialImport/Query.ts +34 -0
- package/ts/types/Interface/api/commercialImport/Read.ts +40 -0
- package/ts/types/Interface/api/companeo/CompaneoReturn.ts +27 -0
- package/ts/types/Interface/api/companeo/Query.ts +14 -0
- package/ts/types/Interface/api/society/CreateSociety.ts +3 -0
- package/ts/types/Interface/api/statistic/QueryInternal.ts +2 -0
- package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +4 -4
- package/ts/types/Interface/api/timeRecorder/QueryPaginatedDelays.ts +5 -0
- package/ts/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.ts +15 -0
- package/ts/types/Interface/api/timeRecorder/ReadPaginatedDelays.ts +7 -1
- package/ts/types/Interface/models/IAccountsSocieties.ts +4 -0
- package/ts/types/Interface/models/IAdjustment.ts +14 -0
- package/ts/types/Interface/models/IApiError.ts +6 -0
- package/ts/types/Interface/models/IAreasInvoice.ts +0 -1
- package/ts/types/Interface/models/IBalanceSheet.ts +2 -0
- package/ts/types/Interface/models/IChecklist.ts +2 -2
- package/ts/types/Interface/models/{ICustomerTva.ts → ICustomerVat.ts} +1 -1
- package/ts/types/Interface/models/IExercice.ts +5 -2
- package/ts/types/Interface/models/IGedFile.ts +3 -0
- package/ts/types/Interface/models/ILettering.ts +0 -8
- package/ts/types/Interface/models/IPenalty.ts +3 -3
- package/ts/types/Interface/models/ISociety.ts +4 -0
- package/ts/types/Interface/models/ISocietyApproval.ts +4 -2
- package/ts/types/Interface/models/IUser.ts +2 -0
- package/ts/types/index.ts +14 -6
- package/ts/utils/email.ts +2 -2
- package/ts/utils/phone.ts +8 -8
- package/ts/utils/vat/3310/century23.ts +1 -6
- package/es/api/resources/VatDeclaration.d.ts.map +0 -1
- package/es/api/resources/VatDeclaration.js.map +0 -1
- package/es/types/Interface/models/ICustomerTva.js +0 -2
- package/es/types/Interface/models/IEngagementAccountingEntry.d.ts +0 -27
- package/es/types/Interface/models/IEngagementAccountingEntry.d.ts.map +0 -1
- package/es/types/Interface/models/IEngagementAccountingEntry.js +0 -2
- package/es/types/Interface/models/IEngagementAccountingEntry.js.map +0 -1
- package/es/types/Interface/models/IEngagementAccountingFile.d.ts +0 -43
- package/es/types/Interface/models/IEngagementAccountingFile.d.ts.map +0 -1
- package/es/types/Interface/models/IEngagementAccountingFile.js +0 -2
- package/es/types/Interface/models/IEngagementAccountingFile.js.map +0 -1
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts +0 -33
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +0 -1
- package/es/types/Interface/models/IEngagementBankTransaction.js +0 -2
- package/es/types/Interface/models/IEngagementBankTransaction.js.map +0 -1
- package/es/types/Interface/models/IInterestedByFeature.d.ts +0 -11
- package/es/types/Interface/models/IInterestedByFeature.d.ts.map +0 -1
- package/es/types/Interface/models/IInterestedByFeature.js +0 -2
- package/es/types/Interface/models/IInterestedByFeature.js.map +0 -1
- package/es/types/Interface/models/IPageView.d.ts +0 -10
- package/es/types/Interface/models/IPageView.d.ts.map +0 -1
- package/es/types/Interface/models/IPageView.js +0 -2
- package/es/types/Interface/models/IPageView.js.map +0 -1
- package/export-models.json +0 -28811
- package/importInterfaces.ts +0 -91
- package/js/api/resources/VatDeclaration.js.map +0 -1
- package/js/types/Interface/models/IEngagementAccountingEntry.js +0 -6
- package/js/types/Interface/models/IEngagementAccountingEntry.js.map +0 -1
- package/js/types/Interface/models/IEngagementAccountingFile.js.map +0 -1
- package/js/types/Interface/models/IEngagementBankTransaction.js +0 -6
- package/js/types/Interface/models/IEngagementBankTransaction.js.map +0 -1
- package/js/types/Interface/models/IInterestedByFeature.js.map +0 -1
- package/js/types/Interface/models/IPageView.js.map +0 -1
- package/table.json +0 -264
- package/ts/types/Interface/models/IEngagementAccountingEntry.ts +0 -30
- package/ts/types/Interface/models/IEngagementAccountingFile.ts +0 -46
- package/ts/types/Interface/models/IEngagementBankTransaction.ts +0 -36
- package/ts/types/Interface/models/IInterestedByFeature.ts +0 -14
- package/ts/types/Interface/models/IPageView.ts +0 -13
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as FormData from 'form-data';
|
|
2
|
+
import {
|
|
3
|
+
CreateCommercialMigration,
|
|
4
|
+
CreateCommercialTransactions, HeadersMappingImport, ImportRow, QueryHeader, QueryProcessCsv,
|
|
5
|
+
|
|
6
|
+
} from '../../types';
|
|
7
|
+
import { Resource } from '../Resource';
|
|
8
|
+
|
|
9
|
+
export class CommercialImport extends Resource {
|
|
10
|
+
getHeaders(payload: QueryHeader): Promise<HeadersMappingImport[]> {
|
|
11
|
+
return this.axios.$post('/commercial-management/imports/headers', payload);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
mapping(file: File, payload: QueryProcessCsv): Promise<ImportRow[]> {
|
|
15
|
+
const formData = new FormData();
|
|
16
|
+
const entries = Object.entries(payload.mappingHeaders);
|
|
17
|
+
entries.map(([name, value]: [string, string]) => {
|
|
18
|
+
formData.append(name, value);
|
|
19
|
+
return [name, value];
|
|
20
|
+
});
|
|
21
|
+
formData.append('file', file);
|
|
22
|
+
return this.axios.$post('/commercial-management/imports/process-csv', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
createTransactions(payload: CreateCommercialTransactions): Promise<boolean> {
|
|
26
|
+
return this.axios.$post('/commercial-management/imports/transactions', payload);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
migrateAccountancy(payload: CreateCommercialMigration): Promise<number> {
|
|
30
|
+
return this.axios.$post('/commercial-management/imports/migrate', payload);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CreateExercice, IBalanceSheet, IExercice, UpdateExercice,
|
|
2
|
+
CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment,
|
|
3
3
|
} from '../../types';
|
|
4
4
|
import { Resource } from '../Resource';
|
|
5
5
|
|
|
@@ -19,4 +19,12 @@ export class Exercice extends Resource {
|
|
|
19
19
|
getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {
|
|
20
20
|
return this.axios.$get(`/exercices/${id}/balance-sheets`);
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {
|
|
24
|
+
return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
getAllAdjustments(id: number): Promise<IAdjustment[]> {
|
|
28
|
+
return this.axios.$get(`/exercices/${id}/adjustments`);
|
|
29
|
+
}
|
|
22
30
|
}
|
package/ts/api/resources/FIle.ts
CHANGED
|
@@ -18,7 +18,7 @@ export class File extends Resource {
|
|
|
18
18
|
return this.axios.$post('files', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
get(id: number): Promise<ReadFile> {
|
|
22
|
-
return this.axios.$get(`files/${id}`);
|
|
21
|
+
get(id: number, idSociety: number): Promise<ReadFile> {
|
|
22
|
+
return this.axios.$get(`societies/${idSociety}/files/${id}`);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -8,6 +8,8 @@ import {
|
|
|
8
8
|
DeclareRegistration,
|
|
9
9
|
CreateRegistrationSettingFromSociety,
|
|
10
10
|
IRegistrationDetail,
|
|
11
|
+
QueryRegistrationAdjustment,
|
|
12
|
+
ReadRegistrationAdjustment,
|
|
11
13
|
} from '../../types';
|
|
12
14
|
|
|
13
15
|
export class Registration extends Resource {
|
|
@@ -45,4 +47,8 @@ export class Registration extends Resource {
|
|
|
45
47
|
getDetails(idSociety: number, idRegistration: number): Promise<IRegistrationDetail | null> {
|
|
46
48
|
return this.axios.$get(`/societies/${idSociety}/registrations/${idRegistration}/details`);
|
|
47
49
|
}
|
|
50
|
+
|
|
51
|
+
getAllAdjustments(idSociety: number, params: QueryRegistrationAdjustment): Promise<ReadRegistrationAdjustment[]> {
|
|
52
|
+
return this.axios.$get(`/societies/${idSociety}/registrations/adjustments`, { params });
|
|
53
|
+
}
|
|
48
54
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder, ReadUsersAbsent,
|
|
3
|
+
ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder, QueryTimeRecorderGetStats, ReadUsersAbsent, ReadPlaceToWork,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class TimeRecorder extends Resource {
|
|
@@ -21,6 +21,9 @@ export class TimeRecorder extends Resource {
|
|
|
21
21
|
return this.axios.$get('paginated-delays',
|
|
22
22
|
{ params });
|
|
23
23
|
}
|
|
24
|
+
getStats(params: QueryTimeRecorderGetStats): Promise<ReadPlaceToWork> {
|
|
25
|
+
return this.axios.$get('/stats', { params });
|
|
26
|
+
}
|
|
24
27
|
getUsersAbsent(): Promise<ReadUsersAbsent[]> {
|
|
25
28
|
return this.axios.$get('/users/absent');
|
|
26
29
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
BasePaginate, CreateRegistrationDetail, IAccountingTransaction,
|
|
2
|
+
BasePaginate, CreateRegistrationDetail, IAccountingTransaction, ICustomerVat, QueryCerfa, QueryPaginatedRegistration, QueryPreviousVatDeclaration, QueryVatEntry, ReadRegistration, ReadVatEntry, ReadVatVariousOperations, UpdateOrCreateVatAdvance, UpdateOrCreateVatRegistration, UpdateRegistration,
|
|
3
3
|
} from '../..';
|
|
4
4
|
import { Resource } from '../Resource';
|
|
5
5
|
|
|
6
|
-
export class
|
|
6
|
+
export class Vat extends Resource {
|
|
7
7
|
updateToRegisteredManually(idSociety: number, idRegistration: number, idUser: number): Promise<{ data: ReadRegistration }> {
|
|
8
8
|
const params: UpdateRegistration = {
|
|
9
9
|
idUser, isComplete: true, sendAt: new Date(), payload: null, idDeposit: null,
|
|
@@ -21,7 +21,8 @@ export class VatDeclaration extends Resource {
|
|
|
21
21
|
|
|
22
22
|
async updateOrCreate(idSociety: number, payload: UpdateOrCreateVatRegistration, details: CreateRegistrationDetail): Promise<ReadRegistration> {
|
|
23
23
|
const result = await this.axios.$post(`/societies/${idSociety}/vat`, payload);
|
|
24
|
-
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const data = result as ReadRegistration;
|
|
25
26
|
await this.axios.$post(`/societies/${idSociety}/registrations/${data.id}/details`, details);
|
|
26
27
|
return data;
|
|
27
28
|
}
|
|
@@ -58,11 +59,11 @@ export class VatDeclaration extends Resource {
|
|
|
58
59
|
return this.axios.$get(`/societies/${idSociety}/vat/not-annotated-entries`, { params: query });
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
updateOrCreateAdvance(idSociety: number, payload: UpdateOrCreateVatAdvance): Promise<
|
|
62
|
+
updateOrCreateAdvance(idSociety: number, payload: UpdateOrCreateVatAdvance): Promise<ICustomerVat> {
|
|
62
63
|
return this.axios.$post(`/societies/${idSociety}/vat/advances`, payload);
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
getAllAdvances(idExercice: number): Promise<
|
|
66
|
+
getAllAdvances(idExercice: number): Promise<ICustomerVat[]> {
|
|
66
67
|
return this.axios.$get(`/exercices/${idExercice}/vat/advances`);
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -4,6 +4,6 @@ import { QueryCustomerSuccess } from '../../../types';
|
|
|
4
4
|
|
|
5
5
|
export class StatisticCustomerSuccess extends Resource {
|
|
6
6
|
public get(params: QueryCustomerSuccess, cancelToken?: CancelToken): Promise<JSON> {
|
|
7
|
-
return this.axios.$get('/statistic-
|
|
7
|
+
return this.axios.$get('/statistic-customer-success', { params, ...(cancelToken ? { cancelToken } : {}) });
|
|
8
8
|
}
|
|
9
9
|
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -62,7 +62,7 @@ import { WorkingSchedule } from './resources/WorkingSchedule';
|
|
|
62
62
|
import { Revision } from './resources/Revision';
|
|
63
63
|
import { Vehicle } from './resources/Vehicle';
|
|
64
64
|
import { KilometricAllowance } from './resources/KilometricAllowance';
|
|
65
|
-
import {
|
|
65
|
+
import { Vat } from './resources/Vat';
|
|
66
66
|
import { Qonto } from './resources/Qonto';
|
|
67
67
|
import { AffectedPatrimony } from './resources/AffectedPatrimony';
|
|
68
68
|
import { BankAccount } from './resources/BankAccount';
|
|
@@ -122,6 +122,7 @@ import { Quotation } from './resources/Quotation';
|
|
|
122
122
|
import { Prestations } from './resources/Prestations';
|
|
123
123
|
import { StatisticCustomerSuccess } from './resources/statistic/CustomerSuccess';
|
|
124
124
|
import { UnpaidCallHistory } from './resources/UnpaidCallHistory';
|
|
125
|
+
import { CommercialImport } from './resources/CommercialImport';
|
|
125
126
|
|
|
126
127
|
export const resources = {
|
|
127
128
|
simulation: Simulation,
|
|
@@ -191,7 +192,7 @@ export const resources = {
|
|
|
191
192
|
revision: Revision,
|
|
192
193
|
vehicle: Vehicle,
|
|
193
194
|
kilometricAllowance: KilometricAllowance,
|
|
194
|
-
|
|
195
|
+
vat: Vat,
|
|
195
196
|
qonto: Qonto,
|
|
196
197
|
affectedPatrimony: AffectedPatrimony,
|
|
197
198
|
bankAccount: BankAccount,
|
|
@@ -248,4 +249,5 @@ export const resources = {
|
|
|
248
249
|
quotation: Quotation,
|
|
249
250
|
prestations: Prestations,
|
|
250
251
|
unpaidCallHistory: UnpaidCallHistory,
|
|
252
|
+
commercialImport: CommercialImport,
|
|
251
253
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export enum AdjustmentTypeId {
|
|
2
|
+
TOO_MUCH_COLLECTED = 1,
|
|
3
|
+
NOT_ENOUGH_COLLECTED = 2,
|
|
4
|
+
TOO_MUCH_DEDUCTED = 3,
|
|
5
|
+
NOT_ENOUGH_DEDUCTED = 4,
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const AdjustmentTypeList: Array<{ id:AdjustmentTypeId; label: string; centuries: number[], key: string; inputKey: string; }> = [
|
|
9
|
+
{
|
|
10
|
+
id: AdjustmentTypeId.TOO_MUCH_COLLECTED,
|
|
11
|
+
label: 'TVA trop collectée',
|
|
12
|
+
centuries: [2022, 2023, 2024, 2025],
|
|
13
|
+
key: 'vat.deductible.toImpute',
|
|
14
|
+
inputKey: 'adjustment.tooMuchCollected',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: AdjustmentTypeId.NOT_ENOUGH_COLLECTED,
|
|
18
|
+
label: 'TVA pas assez collectée',
|
|
19
|
+
centuries: [2022, 2023, 2024, 2025],
|
|
20
|
+
key: 'vat.sumToAdd',
|
|
21
|
+
inputKey: 'adjustment.notEnoughCollected',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: AdjustmentTypeId.TOO_MUCH_DEDUCTED,
|
|
25
|
+
label: 'TVA trop déduite',
|
|
26
|
+
centuries: [2022, 2023, 2024, 2025],
|
|
27
|
+
key: 'vat.deductible.toImpute',
|
|
28
|
+
inputKey: 'adjustment.tooMuchDeducted',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: AdjustmentTypeId.NOT_ENOUGH_DEDUCTED,
|
|
32
|
+
label: 'TVA pas assez déduite',
|
|
33
|
+
centuries: [2022, 2023, 2024, 2025],
|
|
34
|
+
key: 'vat.sumToAdd',
|
|
35
|
+
inputKey: 'adjustment.notEnoughDeducted',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export type CommercialImportHeaderContent = {
|
|
2
|
+
originalName:string;
|
|
3
|
+
name: string;
|
|
4
|
+
required: boolean,
|
|
5
|
+
description?: string;
|
|
6
|
+
relatedField?: string;
|
|
7
|
+
};
|
|
8
|
+
export type CommercialImportHeader = {
|
|
9
|
+
[key: string]: CommercialImportHeaderContent
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const commercialImportHeader: CommercialImportHeader = {
|
|
13
|
+
TAX_INCLUDED_AMOUNT: {
|
|
14
|
+
originalName: 'taxIncludedAmount',
|
|
15
|
+
name: 'Montant TTC',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Montant total toutes taxes comprises',
|
|
18
|
+
},
|
|
19
|
+
TAX_EXCLUDED_AMOUNT_20: {
|
|
20
|
+
originalName: 'taxExcludedAmount_20',
|
|
21
|
+
name: 'Montant HT TVA 20%',
|
|
22
|
+
required: true,
|
|
23
|
+
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 20%',
|
|
24
|
+
},
|
|
25
|
+
AMOUNT_VAT_20: {
|
|
26
|
+
originalName: 'amountVat_20',
|
|
27
|
+
name: 'Montant TVA 20%',
|
|
28
|
+
required: true,
|
|
29
|
+
description: 'Montant en euros de la TVA 20%',
|
|
30
|
+
relatedField: 'taxExcludedAmount_20',
|
|
31
|
+
},
|
|
32
|
+
TAX_EXCLUDED_10: {
|
|
33
|
+
originalName: 'taxExcludedAmount_10',
|
|
34
|
+
name: 'Montant HT TVA 10%',
|
|
35
|
+
required: true,
|
|
36
|
+
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 10%',
|
|
37
|
+
},
|
|
38
|
+
AMOUNT_VAT_10: {
|
|
39
|
+
originalName: 'amountVat_10',
|
|
40
|
+
name: 'Montant TVA 10%',
|
|
41
|
+
required: true,
|
|
42
|
+
description: 'Montant en euros de la TVA 10%',
|
|
43
|
+
relatedField: 'taxExcludedAmount_10',
|
|
44
|
+
},
|
|
45
|
+
TAX_EXCLUDED_8_5: {
|
|
46
|
+
originalName: 'taxExcludedAmount_8_5',
|
|
47
|
+
name: 'Montant HT TVA 8,5%',
|
|
48
|
+
required: true,
|
|
49
|
+
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 8,5%',
|
|
50
|
+
},
|
|
51
|
+
AMOUNT_VAT_8_5: {
|
|
52
|
+
originalName: 'amountVat_8_5',
|
|
53
|
+
name: 'Montant TVA 8,5%',
|
|
54
|
+
required: true,
|
|
55
|
+
description: 'Montant en euros de la TVA 8,5%',
|
|
56
|
+
relatedField: 'taxExcludedAmount_8_5',
|
|
57
|
+
},
|
|
58
|
+
TAX_EXCLUDED_5_5: {
|
|
59
|
+
originalName: 'taxExcludedAmount_5_5',
|
|
60
|
+
name: 'Montant HT TVA 5,5%',
|
|
61
|
+
required: true,
|
|
62
|
+
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 5,5%',
|
|
63
|
+
},
|
|
64
|
+
AMOUNT_VAT_5_5: {
|
|
65
|
+
originalName: 'amountVat_5_5',
|
|
66
|
+
name: 'Montant TVA 5,5%',
|
|
67
|
+
required: true,
|
|
68
|
+
description: 'Montant en euros de la TVA 5,5%',
|
|
69
|
+
relatedField: 'taxExcludedAmount_5_5',
|
|
70
|
+
},
|
|
71
|
+
TAX_EXCLUDED_2_1: {
|
|
72
|
+
originalName: 'taxExcludedAmount_2_1',
|
|
73
|
+
name: 'Montant HT TVA 2,1%',
|
|
74
|
+
required: true,
|
|
75
|
+
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 2,1%',
|
|
76
|
+
},
|
|
77
|
+
AMOUNT_VAT_2_1: {
|
|
78
|
+
originalName: 'amountVat_2_1',
|
|
79
|
+
name: 'Montant TVA 2,1%',
|
|
80
|
+
required: true,
|
|
81
|
+
description: 'Montant en euros de la TVA 2,1%',
|
|
82
|
+
relatedField: 'taxExcludedAmount_2_1',
|
|
83
|
+
},
|
|
84
|
+
TAX_EXCLUDED: {
|
|
85
|
+
originalName: 'taxExcludedAmount',
|
|
86
|
+
name: 'Montant sans TVA',
|
|
87
|
+
required: true,
|
|
88
|
+
description: 'Total hors taxes des prestations ou marchandises facturées sans TVA',
|
|
89
|
+
},
|
|
90
|
+
CUSTOMER_NAME: {
|
|
91
|
+
originalName: 'customerName',
|
|
92
|
+
name: 'Nom de client',
|
|
93
|
+
required: true,
|
|
94
|
+
description: 'Nom ou raison sociale de vos clients',
|
|
95
|
+
},
|
|
96
|
+
DATE_VALUE: {
|
|
97
|
+
originalName: 'dateValue',
|
|
98
|
+
name: 'date',
|
|
99
|
+
required: false,
|
|
100
|
+
description: 'Date d’émission des factures',
|
|
101
|
+
},
|
|
102
|
+
LABEL: {
|
|
103
|
+
originalName: 'Label',
|
|
104
|
+
name: 'Libellé',
|
|
105
|
+
required: false,
|
|
106
|
+
},
|
|
107
|
+
INVOICE_NUMBER: {
|
|
108
|
+
originalName: 'invoiceNumber',
|
|
109
|
+
name: 'Numéro de facture',
|
|
110
|
+
required: false,
|
|
111
|
+
},
|
|
112
|
+
};
|
package/ts/types/Enum/Ged.ts
CHANGED
|
@@ -33,7 +33,7 @@ export enum GedFolder {
|
|
|
33
33
|
RSI_URSSAF = 27,
|
|
34
34
|
// Previous GA balance & PV = 28,
|
|
35
35
|
// Slips for the CFE = 29,
|
|
36
|
-
|
|
36
|
+
APPENDIX_PROVIDERS_CUSTOMERS = 30,
|
|
37
37
|
MISCELLANEOUS = 31,
|
|
38
38
|
// Legal Announcements = 32,
|
|
39
39
|
CERTIFICATES = 33,
|
|
@@ -17,6 +17,7 @@ export enum JobTitle {
|
|
|
17
17
|
JURIST_ASSISTANT = 16,
|
|
18
18
|
BILLING_ASSISTANT = 17,
|
|
19
19
|
COMMERCIAL = 18,
|
|
20
|
+
ACCOUNTING_CONSULTANT = 19,
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: string }> = [
|
|
@@ -110,4 +111,9 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
|
|
|
110
111
|
menText: 'Responsable paie',
|
|
111
112
|
womenText: 'Responsable paie',
|
|
112
113
|
},
|
|
114
|
+
{
|
|
115
|
+
id: JobTitle.ACCOUNTING_CONSULTANT,
|
|
116
|
+
menText: 'Conseiller comptable',
|
|
117
|
+
womenText: 'Conseillère comptable',
|
|
118
|
+
},
|
|
113
119
|
];
|
|
@@ -20,6 +20,7 @@ export const RoleDetail = {
|
|
|
20
20
|
colorSecondary: '#DED7F6',
|
|
21
21
|
subRole: false,
|
|
22
22
|
phoneNumber: '',
|
|
23
|
+
phoneNumberPourcentage: '',
|
|
23
24
|
},
|
|
24
25
|
COMMERCIAL: {
|
|
25
26
|
id: 9,
|
|
@@ -28,6 +29,7 @@ export const RoleDetail = {
|
|
|
28
29
|
colorSecondary: '#DED7F6',
|
|
29
30
|
subRole: false,
|
|
30
31
|
phoneNumber: '+33755537510',
|
|
32
|
+
phoneNumberPourcentage: '+33756796318',
|
|
31
33
|
},
|
|
32
34
|
CUSTOMER_SUCCESS: {
|
|
33
35
|
id: 10,
|
|
@@ -37,6 +39,7 @@ export const RoleDetail = {
|
|
|
37
39
|
subRole: false,
|
|
38
40
|
handledInUserSocietyPermissionTable: false,
|
|
39
41
|
phoneNumber: '',
|
|
42
|
+
phoneNumberPourcentage: '',
|
|
40
43
|
},
|
|
41
44
|
SOCIAL: {
|
|
42
45
|
id: 11,
|
|
@@ -45,6 +48,7 @@ export const RoleDetail = {
|
|
|
45
48
|
colorSecondary: '#DED7F6',
|
|
46
49
|
subRole: false,
|
|
47
50
|
phoneNumber: '',
|
|
51
|
+
phoneNumberPourcentage: '',
|
|
48
52
|
},
|
|
49
53
|
JURIDIC: {
|
|
50
54
|
id: 12,
|
|
@@ -53,6 +57,7 @@ export const RoleDetail = {
|
|
|
53
57
|
colorSecondary: '#DED7F6',
|
|
54
58
|
subRole: false,
|
|
55
59
|
phoneNumber: '',
|
|
60
|
+
phoneNumberPourcentage: '',
|
|
56
61
|
},
|
|
57
62
|
// CHIEF_ACCOUNTANT: {
|
|
58
63
|
// id: 13,
|
|
@@ -75,6 +80,7 @@ export const RoleDetail = {
|
|
|
75
80
|
colorSecondary: '#DED7F6',
|
|
76
81
|
subRole: false,
|
|
77
82
|
phoneNumber: '',
|
|
83
|
+
phoneNumberPourcentage: '',
|
|
78
84
|
},
|
|
79
85
|
SUPER_ADMIN: {
|
|
80
86
|
id: 16,
|
|
@@ -140,6 +146,7 @@ export const RoleDetail = {
|
|
|
140
146
|
colorSecondary: '#DED7F6',
|
|
141
147
|
subRole: false,
|
|
142
148
|
phoneNumber: '',
|
|
149
|
+
phoneNumberPourcentage: '',
|
|
143
150
|
},
|
|
144
151
|
API: {
|
|
145
152
|
id: 26,
|
|
@@ -199,6 +206,7 @@ export const RoleDetail = {
|
|
|
199
206
|
colorSecondary: '#DED7F6',
|
|
200
207
|
subRole: false,
|
|
201
208
|
phoneNumber: '',
|
|
209
|
+
phoneNumberPourcentage: '',
|
|
202
210
|
},
|
|
203
211
|
HUMAN_RESSOURCES: {
|
|
204
212
|
id: 35,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IsNumber, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { AdjustmentTypeId } from '../../../Enum/AdjustmentType';
|
|
4
|
+
|
|
5
|
+
export class UpdateOrCreateAdjustment {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsNumber()
|
|
8
|
+
idAdjustmentType: AdjustmentTypeId;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsNumber()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
amount?: number;
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsNumber()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
amountUsed?: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IsNumber } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
import { TFile } from '../file/TFile';
|
|
4
|
+
import { ImportRow } from './Read';
|
|
5
|
+
|
|
6
|
+
export class CreateCommercialTransactions {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
transactions: ImportRow[];
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsNumber()
|
|
12
|
+
type: number;
|
|
13
|
+
|
|
14
|
+
@ApiProperty()
|
|
15
|
+
file: TFile;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class CreateCommercialMigration {
|
|
19
|
+
@ApiProperty()
|
|
20
|
+
@IsNumber()
|
|
21
|
+
idSociety: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ApiProperty } from '../../../../utils';
|
|
2
|
+
import { TFile } from '../file/TFile';
|
|
3
|
+
|
|
4
|
+
export type MappingImport = {
|
|
5
|
+
[K in HeadersMappingImport]?: string
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type HeadersMappingImport =
|
|
9
|
+
'dateValue' |
|
|
10
|
+
'label' |
|
|
11
|
+
'customerName' |
|
|
12
|
+
'invoiceNumber' |
|
|
13
|
+
'taxIncludedAmount' |
|
|
14
|
+
'taxExcludedAmount' |
|
|
15
|
+
'taxExcludedAmount_2_1' |
|
|
16
|
+
'amountVat_2_1' |
|
|
17
|
+
'taxExcludedAmount_5_5' |
|
|
18
|
+
'amountVat_5_5' |
|
|
19
|
+
'taxExcludedAmount_8_5' |
|
|
20
|
+
'amountVat_8_5' |
|
|
21
|
+
'taxExcludedAmount_10' |
|
|
22
|
+
'amountVat_10' |
|
|
23
|
+
'taxExcludedAmount_20' |
|
|
24
|
+
'amountVat_20';
|
|
25
|
+
|
|
26
|
+
export class QueryHeader {
|
|
27
|
+
@ApiProperty()
|
|
28
|
+
file: TFile;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class QueryProcessCsv {
|
|
32
|
+
@ApiProperty()
|
|
33
|
+
mappingHeaders: MappingImport;
|
|
34
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface ImportRow {
|
|
2
|
+
taxIncludedAmount: number;
|
|
3
|
+
taxExcludedAmount: number;
|
|
4
|
+
amountVat: number;
|
|
5
|
+
taxExcludedAmount_20: number;
|
|
6
|
+
amountVat_20: number;
|
|
7
|
+
taxExcludedAmount_10: number;
|
|
8
|
+
amountVat_10: number;
|
|
9
|
+
taxExcludedAmount_8_5: number;
|
|
10
|
+
amountVat_8_5: number;
|
|
11
|
+
taxExcludedAmount_5_5: number;
|
|
12
|
+
amountVat_5_5: number;
|
|
13
|
+
taxExcludedAmount_2_1: number;
|
|
14
|
+
amountVat_2_1: number;
|
|
15
|
+
customerName: string;
|
|
16
|
+
dateValue?: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
invoiceNumber?: string
|
|
19
|
+
line: number // the line in the csv
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ImportRawRow {
|
|
23
|
+
taxIncludedAmount: number;
|
|
24
|
+
taxExcludedAmount: number;
|
|
25
|
+
taxExcludedAmount_20: number;
|
|
26
|
+
amountVat_20: number;
|
|
27
|
+
taxExcludedAmount_10: number;
|
|
28
|
+
amountVat_10: number;
|
|
29
|
+
taxExcludedAmount_8_5: number;
|
|
30
|
+
amountVat_8_5: number;
|
|
31
|
+
taxExcludedAmount_5_5: number;
|
|
32
|
+
amountVat_5_5: number;
|
|
33
|
+
taxExcludedAmount_2_1: number;
|
|
34
|
+
amountVat_2_1: number;
|
|
35
|
+
customerName: string;
|
|
36
|
+
dateValue?: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
invoiceNumber?: string,
|
|
39
|
+
line: number // the line in the csv
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface CompaneoReturn {
|
|
2
|
+
id: number,
|
|
3
|
+
lead_id: number,
|
|
4
|
+
dem_num: string,
|
|
5
|
+
lead_date: Date,
|
|
6
|
+
raison_sociale: string,
|
|
7
|
+
civilite: string,
|
|
8
|
+
nom: string,
|
|
9
|
+
prenom: string,
|
|
10
|
+
activite: string,
|
|
11
|
+
poste: string,
|
|
12
|
+
fonction: string,
|
|
13
|
+
code_postal: string,
|
|
14
|
+
ville: string,
|
|
15
|
+
adresse: string,
|
|
16
|
+
adresse2?: string,
|
|
17
|
+
adresse3?: string,
|
|
18
|
+
email: string,
|
|
19
|
+
telephone: string,
|
|
20
|
+
fax: string,
|
|
21
|
+
mobile: string,
|
|
22
|
+
segment: string,
|
|
23
|
+
date_creation: string,
|
|
24
|
+
commentaire: string,
|
|
25
|
+
comment_companeo: string,
|
|
26
|
+
questionnaire: string,
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IsString, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryCompaneo {
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsString()
|
|
8
|
+
fromDate?: string;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsString()
|
|
13
|
+
toDate?: string;
|
|
14
|
+
}
|