@silexpert/core 0.4.185 → 0.4.186

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.
Files changed (54) hide show
  1. package/es/api/resources/Employee.d.ts +2 -2
  2. package/es/api/resources/Employee.d.ts.map +1 -1
  3. package/es/api/resources/Employee.js +13 -1
  4. package/es/api/resources/Employee.js.map +1 -1
  5. package/es/api/resources/SheetMonthSchedule.js +1 -1
  6. package/es/api/resources/SheetMonthSchedule.js.map +1 -1
  7. package/es/api/resources/Society.d.ts +1 -0
  8. package/es/api/resources/Society.d.ts.map +1 -1
  9. package/es/api/resources/Society.js +3 -0
  10. package/es/api/resources/Society.js.map +1 -1
  11. package/es/types/Interface/api/employee/QueryCreateEmployee.d.ts +7 -0
  12. package/es/types/Interface/api/employee/QueryCreateEmployee.d.ts.map +1 -0
  13. package/es/types/Interface/api/employee/QueryCreateEmployee.js +2 -0
  14. package/es/types/Interface/api/employee/QueryCreateEmployee.js.map +1 -0
  15. package/es/types/Interface/api/webmail/CreateMailFromLambda.d.ts +0 -3
  16. package/es/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
  17. package/es/types/Interface/api/webmail/CreateMailFromLambda.js +0 -5
  18. package/es/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
  19. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts +1 -0
  20. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts.map +1 -1
  21. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +10 -1
  22. package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
  23. package/es/types/index.d.ts +2 -0
  24. package/es/types/index.d.ts.map +1 -1
  25. package/es/types/index.js +2 -0
  26. package/es/types/index.js.map +1 -1
  27. package/es/utils/webmail.d.ts.map +1 -1
  28. package/es/utils/webmail.js +15 -3
  29. package/es/utils/webmail.js.map +1 -1
  30. package/js/api/resources/Employee.js +17 -1
  31. package/js/api/resources/Employee.js.map +1 -1
  32. package/js/api/resources/SheetMonthSchedule.js +1 -1
  33. package/js/api/resources/SheetMonthSchedule.js.map +1 -1
  34. package/js/api/resources/Society.js +4 -0
  35. package/js/api/resources/Society.js.map +1 -1
  36. package/js/types/Interface/api/employee/QueryCreateEmployee.js +6 -0
  37. package/js/types/Interface/api/employee/QueryCreateEmployee.js.map +1 -0
  38. package/js/types/Interface/api/webmail/CreateMailFromLambda.js +0 -2
  39. package/js/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
  40. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +4 -0
  41. package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
  42. package/js/types/index.js +24 -0
  43. package/js/types/index.js.map +1 -1
  44. package/js/utils/webmail.js +11 -3
  45. package/js/utils/webmail.js.map +1 -1
  46. package/package.json +1 -1
  47. package/ts/api/resources/Employee.ts +14 -3
  48. package/ts/api/resources/SheetMonthSchedule.ts +1 -1
  49. package/ts/api/resources/Society.ts +3 -0
  50. package/ts/types/Interface/api/employee/QueryCreateEmployee.ts +7 -0
  51. package/ts/types/Interface/api/webmail/CreateMailFromLambda.ts +3 -3
  52. package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +9 -1
  53. package/ts/types/index.ts +2 -0
  54. package/ts/utils/webmail.ts +11 -3
@@ -2,12 +2,20 @@ import { Role } from '../types/Enum/Role';
2
2
 
3
3
  const getIdRoleUsedForEmail = (listRoles: number[]): number => {
4
4
  let idRole = Role.CUSTOMER_SUCCESS;
5
- if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
5
+ if (listRoles.includes(Role.FRONT_OFFICE)) {
6
6
  idRole = Role.FRONT_OFFICE;
7
- } else if (listRoles.includes(Role.BACK_OFFICE) || listRoles.includes(Role.BACK_OFFICE_EXPRESS)) {
8
- idRole = Role.BACK_OFFICE;
7
+ } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
8
+ idRole = Role.FRONT_OFFICE_EXPRESS;
9
+ } else if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {
10
+ idRole = Role.COMMERCIAL;
11
+ } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {
12
+ idRole = Role.EXPERT_ACCOUNTANT;
9
13
  } else if (listRoles.includes(Role.MANAGER)) {
10
14
  idRole = Role.MANAGER;
15
+ } else if (listRoles.includes(Role.SOCIAL)) {
16
+ idRole = Role.SOCIAL;
17
+ } else if (listRoles.includes(Role.JURIDIC)) {
18
+ idRole = Role.JURIDIC;
11
19
  }
12
20
  return idRole;
13
21
  };