@silexpert/core 1.3.1 → 1.3.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/dist/cjs/api/resources/ExercicePrestation.d.ts +7 -1
- package/dist/cjs/api/resources/ExercicePrestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/ExercicePrestation.js +8 -0
- package/dist/cjs/api/resources/ExercicePrestation.js.map +1 -1
- package/dist/cjs/api/resources/FIle.js +1 -1
- package/dist/cjs/api/resources/FIle.js.map +1 -1
- package/dist/cjs/api/resources/User.d.ts +2 -2
- package/dist/cjs/api/resources/User.d.ts.map +1 -1
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts +3 -3
- package/dist/cjs/types/Enum/BalanceSheet.js +3 -3
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +8 -1
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js +2 -0
- package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +6 -0
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.d.ts +1 -0
- package/dist/cjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.js +5 -0
- package/dist/cjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/cjs/types/Enum/InternalService.d.ts +1 -5
- package/dist/cjs/types/Enum/InternalService.d.ts.map +1 -1
- package/dist/cjs/types/Enum/InternalService.js +7 -7
- package/dist/cjs/types/Enum/InternalService.js.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts +1 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.js +2 -2
- package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/cjs/types/Enum/Marketing.d.ts +5 -0
- package/dist/cjs/types/Enum/Marketing.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Marketing.js +9 -0
- package/dist/cjs/types/Enum/Marketing.js.map +1 -0
- package/dist/cjs/types/Enum/Role.d.ts +1 -2
- package/dist/cjs/types/Enum/Role.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Role.js +3 -4
- package/dist/cjs/types/Enum/Role.js.map +1 -1
- package/dist/cjs/types/Enum/RoleDetail.d.ts +1 -11
- package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
- package/dist/cjs/types/Enum/RoleDetail.js +13 -13
- package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
- package/dist/cjs/types/Enum/Supervision.d.ts +3 -1
- package/dist/cjs/types/Enum/Supervision.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Supervision.js +15 -1
- package/dist/cjs/types/Enum/Supervision.js.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.js +4 -4
- package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/cjs/types/Enum/TimeCounterType.js +6 -6
- package/dist/cjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/cjs/types/Enum/TimeSlot.js +1 -1
- package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/Query.js +9 -1
- package/dist/cjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +6 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.js +18 -0
- package/dist/cjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +2 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +13 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts +2 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js +13 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.d.ts +6 -0
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.js +28 -1
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/file/Create.d.ts +1 -0
- package/dist/cjs/types/Interface/api/file/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/file/Create.js +8 -0
- package/dist/cjs/types/Interface/api/file/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/marketing/NewLeadSheet.d.ts +10 -0
- package/dist/cjs/types/Interface/api/marketing/NewLeadSheet.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/marketing/NewLeadSheet.js +3 -0
- package/dist/cjs/types/Interface/api/marketing/NewLeadSheet.js.map +1 -0
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.d.ts +1 -0
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.js +7 -0
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.js.map +1 -1
- package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts +13 -6
- package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/toDoExpress/Query.js +59 -12
- package/dist/cjs/types/Interface/api/toDoExpress/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/Query.d.ts +8 -1
- package/dist/cjs/types/Interface/api/user/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/Query.js +41 -5
- package/dist/cjs/types/Interface/api/user/Query.js.map +1 -1
- package/dist/cjs/types/Interface/models/IInvoiceRecurrence.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IInvoiceRecurrence.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IInvoiceRecurrence.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISupervision.d.ts +26 -26
- package/dist/cjs/types/Interface/models/ISupervision.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISupervision.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/brands.d.ts +2 -0
- package/dist/cjs/utils/brands.d.ts.map +1 -1
- package/dist/cjs/utils/brands.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.js +21 -11
- package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts +4 -0
- package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js +112 -2
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/common.js +4 -4
- package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/dist/cjs/utils/email.d.ts.map +1 -1
- package/dist/cjs/utils/email.js +25 -11
- package/dist/cjs/utils/email.js.map +1 -1
- package/dist/cjs/utils/task.d.ts.map +1 -1
- package/dist/cjs/utils/task.js +3 -7
- package/dist/cjs/utils/task.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.js +1 -1
- package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/cjs/utils/vat/centuries.js +1 -1
- package/dist/cjs/utils/vat/centuries.js.map +1 -1
- package/dist/cjs/utils/webmail.d.ts.map +1 -1
- package/dist/cjs/utils/webmail.js +3 -7
- package/dist/cjs/utils/webmail.js.map +1 -1
- package/dist/mjs/api/resources/ExercicePrestation.d.ts +7 -1
- package/dist/mjs/api/resources/ExercicePrestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/ExercicePrestation.js +8 -0
- package/dist/mjs/api/resources/ExercicePrestation.js.map +1 -1
- package/dist/mjs/api/resources/FIle.js +1 -1
- package/dist/mjs/api/resources/FIle.js.map +1 -1
- package/dist/mjs/api/resources/User.d.ts +2 -2
- package/dist/mjs/api/resources/User.d.ts.map +1 -1
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts +3 -3
- package/dist/mjs/types/Enum/BalanceSheet.js +3 -3
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +8 -1
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js +2 -0
- package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +6 -0
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.d.ts +1 -0
- package/dist/mjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.js +5 -0
- package/dist/mjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/mjs/types/Enum/InternalService.d.ts +1 -5
- package/dist/mjs/types/Enum/InternalService.d.ts.map +1 -1
- package/dist/mjs/types/Enum/InternalService.js +7 -7
- package/dist/mjs/types/Enum/InternalService.js.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts +1 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.js +2 -2
- package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/mjs/types/Enum/Marketing.d.ts +5 -0
- package/dist/mjs/types/Enum/Marketing.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Marketing.js +6 -0
- package/dist/mjs/types/Enum/Marketing.js.map +1 -0
- package/dist/mjs/types/Enum/Role.d.ts +1 -2
- package/dist/mjs/types/Enum/Role.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Role.js +3 -4
- package/dist/mjs/types/Enum/Role.js.map +1 -1
- package/dist/mjs/types/Enum/RoleDetail.d.ts +1 -11
- package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
- package/dist/mjs/types/Enum/RoleDetail.js +13 -13
- package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
- package/dist/mjs/types/Enum/Supervision.d.ts +3 -1
- package/dist/mjs/types/Enum/Supervision.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Supervision.js +15 -1
- package/dist/mjs/types/Enum/Supervision.js.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.js +4 -4
- package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/mjs/types/Enum/TimeCounterType.js +6 -6
- package/dist/mjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/mjs/types/Enum/TimeSlot.js +1 -1
- package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/Query.js +9 -1
- package/dist/mjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +7 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.js +21 -0
- package/dist/mjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +15 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js +15 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.d.ts +6 -0
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.js +31 -1
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/file/Create.d.ts +1 -0
- package/dist/mjs/types/Interface/api/file/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/file/Create.js +11 -2
- package/dist/mjs/types/Interface/api/file/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/marketing/NewLeadSheet.d.ts +10 -0
- package/dist/mjs/types/Interface/api/marketing/NewLeadSheet.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/marketing/NewLeadSheet.js +2 -0
- package/dist/mjs/types/Interface/api/marketing/NewLeadSheet.js.map +1 -0
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.d.ts +1 -0
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.js +8 -0
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.js.map +1 -1
- package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts +13 -6
- package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/toDoExpress/Query.js +66 -12
- package/dist/mjs/types/Interface/api/toDoExpress/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/Query.d.ts +8 -1
- package/dist/mjs/types/Interface/api/user/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/Query.js +44 -3
- package/dist/mjs/types/Interface/api/user/Query.js.map +1 -1
- package/dist/mjs/types/Interface/models/IInvoiceRecurrence.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IInvoiceRecurrence.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IInvoiceRecurrence.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISupervision.d.ts +26 -26
- package/dist/mjs/types/Interface/models/ISupervision.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISupervision.js.map +1 -1
- package/dist/mjs/types/index.d.ts +2 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/brands.d.ts +2 -0
- package/dist/mjs/utils/brands.d.ts.map +1 -1
- package/dist/mjs/utils/brands.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.js +17 -6
- package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts +4 -0
- package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js +110 -2
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/common.js +4 -4
- package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/dist/mjs/utils/email.d.ts.map +1 -1
- package/dist/mjs/utils/email.js +31 -11
- package/dist/mjs/utils/email.js.map +1 -1
- package/dist/mjs/utils/task.d.ts.map +1 -1
- package/dist/mjs/utils/task.js +3 -7
- package/dist/mjs/utils/task.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.js +1 -1
- package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/mjs/utils/vat/centuries.js +1 -1
- package/dist/mjs/utils/vat/centuries.js.map +1 -1
- package/dist/mjs/utils/webmail.d.ts.map +1 -1
- package/dist/mjs/utils/webmail.js +3 -7
- package/dist/mjs/utils/webmail.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/ExercicePrestation.ts +10 -1
- package/ts/api/resources/FIle.ts +1 -1
- package/ts/api/resources/User.ts +2 -2
- package/ts/types/Enum/BalanceSheet.ts +3 -3
- package/ts/types/Enum/BrandClementine.ts +8 -1
- package/ts/types/Enum/BrandLegalstart.ts +2 -0
- package/ts/types/Enum/BrandPourcentage.ts +6 -0
- package/ts/types/Enum/CommercialManagement.ts +6 -1
- package/ts/types/Enum/InternalService.ts +7 -7
- package/ts/types/Enum/JobTitle.ts +2 -2
- package/ts/types/Enum/Marketing.ts +4 -0
- package/ts/types/Enum/Role.ts +3 -4
- package/ts/types/Enum/RoleDetail.ts +13 -13
- package/ts/types/Enum/Supervision.ts +15 -1
- package/ts/types/Enum/TaskResponseType.ts +4 -4
- package/ts/types/Enum/TimeCounterType.ts +6 -6
- package/ts/types/Enum/TimeSlot.ts +1 -1
- package/ts/types/Interface/api/balanceSheet/Query.ts +9 -1
- package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +5 -0
- package/ts/types/Interface/api/checklist/Query.ts +15 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +11 -0
- package/ts/types/Interface/api/commercialManagement/Update.ts +11 -0
- package/ts/types/Interface/api/exercicePrestation/Query.ts +23 -1
- package/ts/types/Interface/api/file/Create.ts +9 -2
- package/ts/types/Interface/api/marketing/NewLeadSheet.ts +10 -0
- package/ts/types/Interface/api/society/QueryUnpaid.ts +7 -1
- package/ts/types/Interface/api/toDoExpress/Query.ts +52 -12
- package/ts/types/Interface/api/user/Query.ts +35 -2
- package/ts/types/Interface/models/IInvoiceRecurrence.ts +2 -0
- package/ts/types/Interface/models/ISociety.ts +1 -0
- package/ts/types/Interface/models/ISupervision.ts +26 -26
- package/ts/types/index.ts +2 -0
- package/ts/utils/brands.ts +2 -0
- package/ts/utils/commercialManagement/document.ts +17 -6
- package/ts/utils/commercialManagement/internationalization/choices.ts +124 -2
- package/ts/utils/commercialManagement/templates/common.ts +4 -4
- package/ts/utils/email.ts +29 -12
- package/ts/utils/task.ts +3 -6
- package/ts/utils/vat/3517/century23.ts +1 -1
- package/ts/utils/vat/centuries.ts +1 -1
- package/ts/utils/webmail.ts +3 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsArray, IsObject } from 'class-validator';
|
|
1
|
+
import { IsArray, IsInt, IsObject, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ICommercialOffer } from '../../models/ICommercialOffer';
|
|
4
4
|
import { IExercicePrestation } from '../../models/IExercicePrestation';
|
|
@@ -12,3 +12,25 @@ export class QueryCreateExercicePrestation {
|
|
|
12
12
|
@IsArray()
|
|
13
13
|
commercialOffers: ICommercialOffer[];
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
export class QueryGetExercicePrestation {
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
id?: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsInt()
|
|
25
|
+
idBalanceSheet?: number;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@IsInt()
|
|
30
|
+
idExercice?: number;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsInt()
|
|
35
|
+
idPrestation?: number;
|
|
36
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IsString } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '../../../../utils';
|
|
1
|
+
import { IsBoolean, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { TFile } from './TFile';
|
|
4
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
5
|
|
|
5
6
|
export class CreateFile {
|
|
6
7
|
@ApiProperty()
|
|
@@ -13,6 +14,12 @@ export class CreateFile {
|
|
|
13
14
|
@ApiProperty()
|
|
14
15
|
@IsString()
|
|
15
16
|
name: string;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsBoolean()
|
|
21
|
+
@ToBoolean()
|
|
22
|
+
convertImage?: boolean;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
export type ResizeIfTooLargePayload = {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MarketingConversionName } from '../../../Enum/Marketing';
|
|
2
|
+
|
|
3
|
+
export interface MarketingNewLeadSheet {
|
|
4
|
+
email: string;
|
|
5
|
+
prefix: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
conversionName: MarketingConversionName;
|
|
8
|
+
conversionTime: Date;
|
|
9
|
+
conversionValue: number;
|
|
10
|
+
}
|
|
@@ -23,7 +23,13 @@ export class QueryUnpaidSociety {
|
|
|
23
23
|
@IsOptional()
|
|
24
24
|
@IsBoolean()
|
|
25
25
|
@ToBoolean()
|
|
26
|
-
isRecoverable?: boolean;
|
|
26
|
+
isRecoverable?: boolean;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsBoolean()
|
|
31
|
+
@ToBoolean()
|
|
32
|
+
isRecovering?: boolean;
|
|
27
33
|
|
|
28
34
|
@ApiPropertyOptional()
|
|
29
35
|
@IsOptional()
|
|
@@ -61,13 +61,19 @@ export class QueryToDoBalanceSheetPaginated extends RequiredQueryPaginate {
|
|
|
61
61
|
|
|
62
62
|
@ApiPropertyOptional()
|
|
63
63
|
@IsOptional()
|
|
64
|
-
@IsInt()
|
|
65
|
-
balanceSheetState?: number;
|
|
64
|
+
@IsInt({ each: true })
|
|
65
|
+
balanceSheetState?: number[];
|
|
66
66
|
|
|
67
67
|
@ApiPropertyOptional()
|
|
68
68
|
@IsOptional()
|
|
69
|
-
@IsInt()
|
|
70
|
-
supervisionState?: number;
|
|
69
|
+
@IsInt({ each: true })
|
|
70
|
+
supervisionState?: number[];
|
|
71
|
+
|
|
72
|
+
@ApiPropertyOptional()
|
|
73
|
+
@IsOptional()
|
|
74
|
+
@IsBoolean()
|
|
75
|
+
@ToBoolean()
|
|
76
|
+
attributionState?: boolean;
|
|
71
77
|
|
|
72
78
|
@ApiPropertyOptional()
|
|
73
79
|
@IsOptional()
|
|
@@ -80,6 +86,17 @@ export class QueryToDoBalanceSheetPaginated extends RequiredQueryPaginate {
|
|
|
80
86
|
@IsBoolean()
|
|
81
87
|
@ToBoolean()
|
|
82
88
|
balance?: boolean;
|
|
89
|
+
|
|
90
|
+
@ApiPropertyOptional()
|
|
91
|
+
@IsOptional()
|
|
92
|
+
@IsInt({ each: true })
|
|
93
|
+
idComptaType?: number[];
|
|
94
|
+
|
|
95
|
+
@ApiPropertyOptional()
|
|
96
|
+
@IsOptional()
|
|
97
|
+
@IsBoolean()
|
|
98
|
+
@ToBoolean()
|
|
99
|
+
balanceSheetLate?: boolean;
|
|
83
100
|
}
|
|
84
101
|
|
|
85
102
|
export class QueryToDoBalanceSheetStats {
|
|
@@ -136,13 +153,19 @@ export class QueryToDoBalanceSheetStats {
|
|
|
136
153
|
|
|
137
154
|
@ApiPropertyOptional()
|
|
138
155
|
@IsOptional()
|
|
139
|
-
@IsInt()
|
|
140
|
-
balanceSheetState?: number;
|
|
156
|
+
@IsInt({ each: true })
|
|
157
|
+
balanceSheetState?: number[];
|
|
141
158
|
|
|
142
159
|
@ApiPropertyOptional()
|
|
143
160
|
@IsOptional()
|
|
144
|
-
@IsInt()
|
|
145
|
-
supervisionState?: number;
|
|
161
|
+
@IsInt({ each: true })
|
|
162
|
+
supervisionState?: number[];
|
|
163
|
+
|
|
164
|
+
@ApiPropertyOptional()
|
|
165
|
+
@IsOptional()
|
|
166
|
+
@IsBoolean()
|
|
167
|
+
@ToBoolean()
|
|
168
|
+
attributionState?: boolean;
|
|
146
169
|
|
|
147
170
|
@ApiPropertyOptional()
|
|
148
171
|
@IsOptional()
|
|
@@ -155,6 +178,17 @@ export class QueryToDoBalanceSheetStats {
|
|
|
155
178
|
@IsBoolean()
|
|
156
179
|
@ToBoolean()
|
|
157
180
|
balance?: boolean;
|
|
181
|
+
|
|
182
|
+
@ApiPropertyOptional()
|
|
183
|
+
@IsOptional()
|
|
184
|
+
@IsInt({ each: true })
|
|
185
|
+
idComptaType?: number[];
|
|
186
|
+
|
|
187
|
+
@ApiPropertyOptional()
|
|
188
|
+
@IsOptional()
|
|
189
|
+
@IsBoolean()
|
|
190
|
+
@ToBoolean()
|
|
191
|
+
balanceSheetLate?: boolean;
|
|
158
192
|
}
|
|
159
193
|
|
|
160
194
|
export class QueryToDoBalanceSheetGetExercicesSociety {
|
|
@@ -180,13 +214,19 @@ export class QueryToDoBalanceSheetGetExercicesSociety {
|
|
|
180
214
|
|
|
181
215
|
@ApiPropertyOptional()
|
|
182
216
|
@IsOptional()
|
|
183
|
-
@IsInt()
|
|
184
|
-
balanceSheetState?: number;
|
|
217
|
+
@IsInt({ each: true })
|
|
218
|
+
balanceSheetState?: number[];
|
|
185
219
|
|
|
186
220
|
@ApiPropertyOptional()
|
|
187
221
|
@IsOptional()
|
|
188
|
-
@IsInt()
|
|
189
|
-
supervisionState?: number;
|
|
222
|
+
@IsInt({ each: true })
|
|
223
|
+
supervisionState?: number[];
|
|
224
|
+
|
|
225
|
+
@ApiPropertyOptional()
|
|
226
|
+
@IsOptional()
|
|
227
|
+
@IsBoolean()
|
|
228
|
+
@ToBoolean()
|
|
229
|
+
attributionState?: boolean;
|
|
190
230
|
|
|
191
231
|
@ApiPropertyOptional()
|
|
192
232
|
@IsOptional()
|
|
@@ -2,6 +2,8 @@ import { IsArray, IsBoolean, IsIn, IsInt, IsNumber, IsOptional, IsString, Min }
|
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
import { SubscriptionType } from '../../../Enum/SubscriptionType';
|
|
5
|
+
import { WhereOptions } from 'sequelize';
|
|
6
|
+
import { ISociety } from '../../models/ISociety';
|
|
5
7
|
|
|
6
8
|
export class QueryConfirm {
|
|
7
9
|
@ApiProperty()
|
|
@@ -83,11 +85,42 @@ export class QueryResendConfirmationLink {
|
|
|
83
85
|
id: number;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
export class
|
|
88
|
+
export class GetSocietyFromUser {
|
|
87
89
|
@ApiPropertyOptional()
|
|
88
|
-
@IsNumber()
|
|
89
90
|
@IsOptional()
|
|
91
|
+
@IsNumber()
|
|
90
92
|
idSubscriptionType?: SubscriptionType;
|
|
93
|
+
|
|
94
|
+
@ApiPropertyOptional()
|
|
95
|
+
@IsOptional()
|
|
96
|
+
@IsBoolean()
|
|
97
|
+
@ToBoolean()
|
|
98
|
+
displayArchived?: boolean;
|
|
99
|
+
|
|
100
|
+
@ApiPropertyOptional()
|
|
101
|
+
@IsOptional()
|
|
102
|
+
@IsBoolean()
|
|
103
|
+
@ToBoolean()
|
|
104
|
+
onlyLabAccepted?: boolean;
|
|
105
|
+
|
|
106
|
+
@ApiPropertyOptional()
|
|
107
|
+
@IsOptional()
|
|
108
|
+
@IsString({each: true})
|
|
109
|
+
attributes?: Extract<keyof ISociety, string>[];
|
|
110
|
+
|
|
111
|
+
@ApiPropertyOptional({
|
|
112
|
+
default: ['societyConfig','brandType','societyGescom','oldExpertInfo','activity','follows','compta','subscriptionType','connector','permissions']
|
|
113
|
+
})
|
|
114
|
+
@IsOptional()
|
|
115
|
+
@IsString({
|
|
116
|
+
each: true,
|
|
117
|
+
})
|
|
118
|
+
@IsIn(['societyConfig','brandType','societyGescom','oldExpertInfo','activity','follows','compta','subscriptionType','connector','permissions','societyDetails'], { each: true })
|
|
119
|
+
include?: string[];
|
|
120
|
+
|
|
121
|
+
@ApiPropertyOptional()
|
|
122
|
+
@IsOptional()
|
|
123
|
+
where?: WhereOptions<ISociety>;
|
|
91
124
|
}
|
|
92
125
|
|
|
93
126
|
export class QueryUpdatePassword {
|
|
@@ -10,36 +10,36 @@ import { IUser } from './IUser';
|
|
|
10
10
|
export interface ISupervision {
|
|
11
11
|
id?: number;
|
|
12
12
|
state: number | null;
|
|
13
|
-
sendToJedeclare
|
|
14
|
-
dueDate
|
|
15
|
-
revisionDate
|
|
16
|
-
superviseurId
|
|
17
|
-
expertId
|
|
18
|
-
dateAssignmentSuperviseur
|
|
13
|
+
sendToJedeclare?: boolean | null;
|
|
14
|
+
dueDate?: Date | null;
|
|
15
|
+
revisionDate?: Date | null;
|
|
16
|
+
superviseurId?: number | null;
|
|
17
|
+
expertId?: number | null;
|
|
18
|
+
dateAssignmentSuperviseur?: Date | null;
|
|
19
19
|
idExercice: number;
|
|
20
|
-
idAccountant
|
|
21
|
-
idFile
|
|
22
|
-
idLetter
|
|
23
|
-
checkDateRecommandation
|
|
24
|
-
freeText
|
|
25
|
-
freeTextDate
|
|
26
|
-
freeTextUserId
|
|
27
|
-
idBalanceSheet
|
|
28
|
-
idUserWhoValidate
|
|
20
|
+
idAccountant?: number | null;
|
|
21
|
+
idFile?: number | null;
|
|
22
|
+
idLetter?: number | null;
|
|
23
|
+
checkDateRecommandation?: Date | null;
|
|
24
|
+
freeText?: string | null;
|
|
25
|
+
freeTextDate?: Date | null;
|
|
26
|
+
freeTextUserId?: number | null;
|
|
27
|
+
idBalanceSheet?: number | null;
|
|
28
|
+
idUserWhoValidate?: number | null;
|
|
29
29
|
validateDate?: Date | null;
|
|
30
30
|
createdAt?: Date | null;
|
|
31
31
|
updatedAt?: Date | null;
|
|
32
32
|
|
|
33
33
|
// Associations
|
|
34
|
-
exercice
|
|
35
|
-
supervisionUsers
|
|
36
|
-
supervisionExpertUsers
|
|
37
|
-
supervisionAccountant
|
|
38
|
-
freeTextUser
|
|
39
|
-
balanceSheet
|
|
40
|
-
file
|
|
41
|
-
letter
|
|
42
|
-
supervisionPendingPoints
|
|
43
|
-
pendingPoints
|
|
44
|
-
userWhoValidate
|
|
34
|
+
exercice?: IExercice;
|
|
35
|
+
supervisionUsers?: IUser;
|
|
36
|
+
supervisionExpertUsers?: IUser;
|
|
37
|
+
supervisionAccountant?: IUser;
|
|
38
|
+
freeTextUser?: IUser;
|
|
39
|
+
balanceSheet?: IBalanceSheet;
|
|
40
|
+
file?: IFile;
|
|
41
|
+
letter?: ILetter;
|
|
42
|
+
supervisionPendingPoints?: ISupervisionPendingPoint[];
|
|
43
|
+
pendingPoints?: IPendingPoint[];
|
|
44
|
+
userWhoValidate?: IUser;
|
|
45
45
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -569,6 +569,7 @@ export * from './Enum/ReasonCancelSignatureRequest';
|
|
|
569
569
|
export * from './Enum/ReasonNotSubscribed';
|
|
570
570
|
export * from './Enum/QualificationLead';
|
|
571
571
|
export * from './Enum/Template';
|
|
572
|
+
export * from './Enum/Marketing';
|
|
572
573
|
|
|
573
574
|
// Interfaces API
|
|
574
575
|
export * from './Interface/api/exercice/ReadExercice';
|
|
@@ -1179,3 +1180,4 @@ export * from './Interface/api/IntermediateManagementRebate';
|
|
|
1179
1180
|
export * from './Interface/api/regulation/Query';
|
|
1180
1181
|
export * from './Interface/api/regulation/Read';
|
|
1181
1182
|
export * from './Interface/api/regulation/Create';
|
|
1183
|
+
export * from './Interface/api/marketing/NewLeadSheet';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../types';
|
|
22
22
|
import { thirdPartyToReadThirdPartyEditing } from './thirdParty';
|
|
23
23
|
import { getBrandConfig } from '../brands';
|
|
24
|
-
import { internationalizationChoices } from './internationalization/choices';
|
|
24
|
+
import { internationalizationChoices, internationalizationConsistency } from './internationalization/choices';
|
|
25
25
|
|
|
26
26
|
import * as ejs from 'ejs';
|
|
27
27
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
@@ -77,10 +77,19 @@ export function generateCommercialDocument(
|
|
|
77
77
|
paymentLink: payload.paymentLink ?? '#',
|
|
78
78
|
idEstimateInvoiceType,
|
|
79
79
|
title: payload.title ?? null,
|
|
80
|
-
penalties: payload.penalties
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
penalties: payload.penalties
|
|
81
|
+
? (internationalizationConsistency(locale, payload.penalties, 'penalties') ?? null)
|
|
82
|
+
: null,
|
|
83
|
+
termsOfPayment: payload.termsOfPayment
|
|
84
|
+
? (internationalizationConsistency(locale, payload.termsOfPayment, 'termsOfPayment') ?? null)
|
|
85
|
+
: null,
|
|
86
|
+
compensation: payload.compensation
|
|
87
|
+
? (internationalizationConsistency(locale, payload.compensation, 'recoveryCost') ?? null)
|
|
88
|
+
: null,
|
|
89
|
+
discount: payload.discount ? (internationalizationConsistency(locale, payload.discount, 'discount') ?? null) : null,
|
|
90
|
+
vatMention: payload.vatMention
|
|
91
|
+
? (internationalizationConsistency(locale, payload.vatMention, 'vatMention') ?? null)
|
|
92
|
+
: null,
|
|
84
93
|
phoneContact: payload.settings?.phoneContact ?? null,
|
|
85
94
|
products,
|
|
86
95
|
vats,
|
|
@@ -119,7 +128,9 @@ export function generateCommercialDocument(
|
|
|
119
128
|
brandColors: getBrandConfig({ objectWaited: 'colors', nodeEnv }) as brandColorType,
|
|
120
129
|
brandName: `${getBrandConfig({ objectWaited: 'name', nodeEnv }) as unknown as string}`,
|
|
121
130
|
shouldHideBrandName,
|
|
122
|
-
paymentType: payload.paymentType
|
|
131
|
+
paymentType: payload.paymentType
|
|
132
|
+
? internationalizationConsistency(locale, payload.paymentType, 'paymentType')
|
|
133
|
+
: null,
|
|
123
134
|
languageTemplate: languageOption,
|
|
124
135
|
};
|
|
125
136
|
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import { AccountingCategoryId } from '../../../types/Enum/CommercialManagement';
|
|
1
|
+
import { AccountingCategoryId, InvoiceLanguage } from '../../../types/Enum/CommercialManagement';
|
|
2
2
|
import { InternationalizationChoicesType } from './type';
|
|
3
3
|
|
|
4
|
+
type InternationalizationConsistencyKey =
|
|
5
|
+
| 'penalties'
|
|
6
|
+
| 'discount'
|
|
7
|
+
| 'vatMention'
|
|
8
|
+
| 'recoveryCost'
|
|
9
|
+
| 'paymentType'
|
|
10
|
+
| 'termsOfPayment';
|
|
11
|
+
|
|
4
12
|
export const internationalizationChoices: InternationalizationChoicesType = {
|
|
5
13
|
fr: {
|
|
6
14
|
inputLists: {
|
|
@@ -228,7 +236,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
228
236
|
'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
229
237
|
'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
230
238
|
'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
231
|
-
'
|
|
239
|
+
'Invoice subject to VAT reverse charge system',
|
|
232
240
|
],
|
|
233
241
|
recoveryCost: ['Not applicable', '40€'],
|
|
234
242
|
paymentType: ['Credit card', 'Check', 'Cash', 'Direct debit', 'Bank transfer'],
|
|
@@ -383,3 +391,117 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
383
391
|
},
|
|
384
392
|
},
|
|
385
393
|
};
|
|
394
|
+
|
|
395
|
+
const internationalizationMatching: { [key: string]: { fr: string; en: string }[] } = {
|
|
396
|
+
penalties: [
|
|
397
|
+
{ fr: 'Non applicable', en: 'Not applicable' },
|
|
398
|
+
{ fr: '3 fois le taux légal', en: '3 times the legal rate' },
|
|
399
|
+
{ fr: 'Taux directeur de la BCE + 10 points', en: 'ECB key rate + 10 points' },
|
|
400
|
+
],
|
|
401
|
+
discount: [
|
|
402
|
+
{ fr: 'Non applicable', en: 'Not applicable' },
|
|
403
|
+
{ fr: 'Aucun escompte en cas de paiement anticipé', en: 'No discount for early payment' },
|
|
404
|
+
],
|
|
405
|
+
recoveryCost: [
|
|
406
|
+
{ fr: 'Non applicable', en: 'Not applicable' },
|
|
407
|
+
{ fr: '40€', en: '40€' },
|
|
408
|
+
],
|
|
409
|
+
paymentType: [
|
|
410
|
+
{ fr: 'Carte bancaire', en: 'Credit card' },
|
|
411
|
+
{ fr: 'Chèque', en: 'Check' },
|
|
412
|
+
{ fr: 'Espèces', en: 'Cash' },
|
|
413
|
+
{ fr: 'Prélèvement', en: 'Direct debit' },
|
|
414
|
+
{ fr: 'Virement bancaire', en: 'Bank transfer' },
|
|
415
|
+
],
|
|
416
|
+
vatMention: [
|
|
417
|
+
{ fr: 'Non concerné', en: 'Not affected' },
|
|
418
|
+
{ fr: 'Non applicable', en: 'Not applicable' },
|
|
419
|
+
{
|
|
420
|
+
fr: 'TVA non applicable, art. 293 B du CGI',
|
|
421
|
+
en: 'VAT not applicable, art. 293 B of the French General Tax Code (FGTC)',
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
fr: 'TVA non applicable - Exportation hors UE - Art. 259-1 du CGI',
|
|
425
|
+
en: 'VAT not applicable - Exports outside the EU - Art. 259-1 of the French General Tax Code (FGTC)',
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
fr: "Non soumis à TVA selon l'article 261C du CGI",
|
|
429
|
+
en: 'Not subject to VAT according to article 261C of the French General Tax Code (FGTC)',
|
|
430
|
+
},
|
|
431
|
+
{ fr: 'Article 261 D du code général des impôts (CGI)', en: 'Article 261D of the French General Tax Code (FGTC)' },
|
|
432
|
+
{
|
|
433
|
+
fr: 'Exonération de TVA, article 283-2 du Code général des impôts',
|
|
434
|
+
en: 'VAT exemption, article 283-2 of the French General Tax Code (FGTC)',
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
fr: 'Exonération de la TVA : Article 262 ter I du CGI',
|
|
438
|
+
en: 'VAT exemption: Article 262 ter I of the French General Tax Code (FGTC)',
|
|
439
|
+
},
|
|
440
|
+
{ fr: 'Mention de TVA 261.4.4 1 du CGI', en: 'VAT notice 261.4.4 1 of the French General Tax Code (FGTC)' },
|
|
441
|
+
{
|
|
442
|
+
fr: "Régime particulier – Biens d'occasion - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
443
|
+
en: 'Specific regime - Second-hand goods - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
fr: "Régime particulier – Objets d'art - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
447
|
+
en: 'Specific regime - Works of art - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
fr: "Régime particulier – Objets de collection ou d'antiquité - article 297 A du CGI et directive communautaire 2006/112/CE",
|
|
451
|
+
en: 'Specific regime – Collectibles and antiques - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
fr: 'Régime particulier – Agences de voyage - article 297 A du CGI et directive communautaire 2006/112/CE',
|
|
455
|
+
en: 'Specific regime - Travel agencies - article 297 A of the French General Tax Code (FGTC) and Community Directive 2006/112/EC',
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
fr: 'Facture soumise au régime de l’auto-liquidation de la TVA',
|
|
459
|
+
en: 'Invoice subject to VAT reverse charge system',
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
termsOfPayment: [
|
|
463
|
+
{
|
|
464
|
+
fr: 'À la livraison',
|
|
465
|
+
en: 'On delivery',
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
fr: 'À la command',
|
|
469
|
+
en: 'On order',
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
fr: 'À réception de la facture',
|
|
473
|
+
en: 'Upon receipt of invoice',
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
fr: 'Exigible sous 14 jours',
|
|
477
|
+
en: 'Due within 14 days',
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
fr: 'Exigible sous 30 jours',
|
|
481
|
+
en: 'Due within 30 days',
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
fr: '30 jours à réception de la facture',
|
|
485
|
+
en: '30 days upon receipt of invoice',
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
fr: '45 jours à réception de la facture',
|
|
489
|
+
en: '45 days upon receipt of invoice',
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
fr: '60 jours à réception de la facture',
|
|
493
|
+
en: '60 days upon receipt of invoice',
|
|
494
|
+
},
|
|
495
|
+
],
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
export const internationalizationConsistency = (
|
|
499
|
+
language: InvoiceLanguage,
|
|
500
|
+
value: string,
|
|
501
|
+
key: InternationalizationConsistencyKey,
|
|
502
|
+
): string | undefined => {
|
|
503
|
+
const keyObjectToMacht = internationalizationMatching[key];
|
|
504
|
+
return language === InvoiceLanguage.FR
|
|
505
|
+
? keyObjectToMacht.find((obj) => obj.fr === value)?.fr
|
|
506
|
+
: keyObjectToMacht.find((obj) => obj.fr === value)?.en;
|
|
507
|
+
};
|
|
@@ -9,7 +9,7 @@ export class CommercialDocumentCommonHTML {
|
|
|
9
9
|
<% } %>`;
|
|
10
10
|
|
|
11
11
|
footer = `<div style="font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;">
|
|
12
|
-
<% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties || compensation || discount) { %><%= penalties ? languageTemplate.template.common.footer.penalties + ' : ' + penalties : ''%><%= penalties && compensation ? ' | ' : ''%><%= compensation ? languageTemplate.template.common.footer.recoveryCosts + ' : ' + compensation + ' ' : '' %><%= (compensation || penalties) && discount ? ' | ' : '' %><%= discount ? discount + ' ' : '' %><%= shouldPayTaxAfterDebit ? "| " + languageTemplate.template.common.footer.shouldPayTaxAfterDebit : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' ' + languageTemplate.template.common.footer.capital + ' ' + capitalFormatted + ' €' : '' %><%= siren ? ' ' + languageTemplate.template.common.footer.siren + ' ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? languageTemplate.template.common.footer.vatCode + ' ' +vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
|
|
12
|
+
<% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties || compensation || discount) { %><%= penalties ? languageTemplate.template.common.footer.penalties + ' : ' + penalties : ''%><%= penalties && compensation ? ' | ' : ''%><%= compensation ? languageTemplate.template.common.footer.recoveryCosts + ' : ' + compensation + ' ' : '' %><%= (compensation || penalties) && discount ? ' | ' : '' %><%= discount ? languageTemplate.template.common.footer.discount + ' : ' + discount : '' %><%= shouldPayTaxAfterDebit ? "| " + languageTemplate.template.common.footer.shouldPayTaxAfterDebit : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' ' + languageTemplate.template.common.footer.capital + ' ' + capitalFormatted + ' €' : '' %><%= siren ? ' ' + languageTemplate.template.common.footer.siren + ' ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? languageTemplate.template.common.footer.vatCode + ' ' +vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
|
|
13
13
|
<% if (["Clementine", "Pourcentage", "Comptalib"].includes(brandName) && !shouldHideBrandName) { %>
|
|
14
14
|
<div style="display: grid; place-items: center;"><div style="background-color: <%= brandColors.primary50 %>; color: <%= brandColors.primary500 %>; display: flex; gap: 3px; max-width: fit-content; border-radius: 4px; padding: 4px 8px; margin-top: 8px; align-items: center; font-size: 9px; line-height: 140%; font-family: 'circular std', sans serif; font-weight: 450;">
|
|
15
15
|
<%= languageTemplate.template.common.footer.generate %>
|
|
@@ -29,9 +29,9 @@ export class CommercialDocumentCommonHTML {
|
|
|
29
29
|
</div>`;
|
|
30
30
|
|
|
31
31
|
company = `<div>
|
|
32
|
-
<% if (name) { %><p><%= name
|
|
33
|
-
<% if (number || street) {%><p><%}%><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) {
|
|
34
|
-
<% if (zipCode || city) {%><p><%}%><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>
|
|
32
|
+
<% if (name) { %><p><%= name %></p><% } %>
|
|
33
|
+
<% if (number || street) { %><p><% } %><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) { %></p><% } %>
|
|
34
|
+
<% if (zipCode || city) { %><p><% } %><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>
|
|
35
35
|
</div>
|
|
36
36
|
<% if (phoneContact) { %><p><%= phoneContact %><p><% } %>
|
|
37
37
|
<% if (settings && settings.mailContact) { %><p><%= settings.mailContact %></p><% } %>`;
|
package/ts/utils/email.ts
CHANGED
|
@@ -34,9 +34,7 @@ function getRoleSignature(user: any) {
|
|
|
34
34
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
35
35
|
const isOnBoarder = user.roles.map((r: any) => r.id).includes(Role.ON_BOARDER);
|
|
36
36
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
37
|
-
const
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
39
|
-
const isLitige = user.roles.map((r: any) => r.id).includes(Role.LITIGE);
|
|
37
|
+
const isSatisfaction = user.roles.map((r: any) => r.id).includes(Role.SATISFACTION);
|
|
40
38
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
41
39
|
const isDataOfficer = user.roles.map((r: any) => r.id).includes(Role.DATA_OFFICER);
|
|
42
40
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
@@ -77,20 +75,13 @@ function getRoleSignature(user: any) {
|
|
|
77
75
|
return `Chargé${user.idCivility === 2 ? 'e' : ''} accueil clients`;
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
if (
|
|
78
|
+
if (isSatisfaction && isManager) {
|
|
81
79
|
return `Responsable chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients`;
|
|
82
80
|
}
|
|
83
|
-
if (
|
|
81
|
+
if (isSatisfaction) {
|
|
84
82
|
return `Chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients`;
|
|
85
83
|
}
|
|
86
84
|
|
|
87
|
-
if (isLitige && isManager) {
|
|
88
|
-
return `Responsable chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients (Litige)`;
|
|
89
|
-
}
|
|
90
|
-
if (isLitige) {
|
|
91
|
-
return `Chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients (Litige)`;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
85
|
if (isDataOfficer && isManager) {
|
|
95
86
|
return 'Responsable aide comptable';
|
|
96
87
|
}
|
|
@@ -275,6 +266,14 @@ export function generateSignature(params: any): string {
|
|
|
275
266
|
...(idTypeBrand ? { idTypeBrand } : {}),
|
|
276
267
|
objectWaited: 'listMails.gestion',
|
|
277
268
|
}) as unknown as string;
|
|
269
|
+
const satisfactionMail = getBrandConfig({
|
|
270
|
+
...(idTypeBrand ? { idTypeBrand } : {}),
|
|
271
|
+
objectWaited: 'listMails.satisfaction',
|
|
272
|
+
}) as unknown as string;
|
|
273
|
+
const resiliationMail = getBrandConfig({
|
|
274
|
+
...(idTypeBrand ? { idTypeBrand } : {}),
|
|
275
|
+
objectWaited: 'listMails.resiliation',
|
|
276
|
+
}) as unknown as string;
|
|
278
277
|
const supportMail = getBrandConfig({
|
|
279
278
|
...(idTypeBrand ? { idTypeBrand } : {}),
|
|
280
279
|
objectWaited: 'listMails.support',
|
|
@@ -338,6 +337,24 @@ export function generateSignature(params: any): string {
|
|
|
338
337
|
};
|
|
339
338
|
mailSignature = bonjourMail;
|
|
340
339
|
roleSignature = '';
|
|
340
|
+
} else if (forceRole === 'satisfaction') {
|
|
341
|
+
// Signature satisfaction
|
|
342
|
+
user = {
|
|
343
|
+
firstname: 'Service satisfaction clients',
|
|
344
|
+
isAll: true,
|
|
345
|
+
};
|
|
346
|
+
mailSignature = satisfactionMail;
|
|
347
|
+
roleSignature = '';
|
|
348
|
+
phoneSignature = standardPhoneSignature;
|
|
349
|
+
} else if (forceRole === 'resiliation') {
|
|
350
|
+
// Signature resiliation
|
|
351
|
+
user = {
|
|
352
|
+
firstname: 'Service satisfaction clients',
|
|
353
|
+
isAll: true,
|
|
354
|
+
};
|
|
355
|
+
mailSignature = resiliationMail;
|
|
356
|
+
roleSignature = '';
|
|
357
|
+
phoneSignature = standardPhoneSignature;
|
|
341
358
|
} else if (forceRole === 'social') {
|
|
342
359
|
// Signature social
|
|
343
360
|
user = {
|
package/ts/utils/task.ts
CHANGED
|
@@ -23,10 +23,8 @@ const getIdRoleUsedForTask = (listRoles: Role[]): Role => {
|
|
|
23
23
|
idRole = Role.TECHNICAL_ADVISOR;
|
|
24
24
|
} else if (listRoles.includes(Role.ON_BOARDER)) {
|
|
25
25
|
idRole = Role.ON_BOARDER;
|
|
26
|
-
} else if (listRoles.includes(Role.
|
|
27
|
-
idRole = Role.
|
|
28
|
-
} else if (listRoles.includes(Role.LITIGE)) {
|
|
29
|
-
idRole = Role.LITIGE;
|
|
26
|
+
} else if (listRoles.includes(Role.SATISFACTION)) {
|
|
27
|
+
idRole = Role.SATISFACTION;
|
|
30
28
|
} else if (listRoles.includes(Role.FRONT_OFFICE)) {
|
|
31
29
|
idRole = Role.FRONT_OFFICE;
|
|
32
30
|
} else if (listRoles.includes(Role.DATA_OFFICER)) {
|
|
@@ -66,8 +64,7 @@ const getListIdRolesUsedForTask = (listRoles: Role[]): Role[] => {
|
|
|
66
64
|
Role.CUSTOMER_SUCCESS,
|
|
67
65
|
Role.TECHNICAL_ADVISOR,
|
|
68
66
|
Role.ON_BOARDER,
|
|
69
|
-
Role.
|
|
70
|
-
Role.LITIGE,
|
|
67
|
+
Role.SATISFACTION,
|
|
71
68
|
Role.FRONT_OFFICE,
|
|
72
69
|
Role.DATA_OFFICER,
|
|
73
70
|
].includes(r));
|