@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.
- package/es/api/resources/Employee.d.ts +2 -2
- package/es/api/resources/Employee.d.ts.map +1 -1
- package/es/api/resources/Employee.js +13 -1
- package/es/api/resources/Employee.js.map +1 -1
- package/es/api/resources/SheetMonthSchedule.js +1 -1
- package/es/api/resources/SheetMonthSchedule.js.map +1 -1
- package/es/api/resources/Society.d.ts +1 -0
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +3 -0
- package/es/api/resources/Society.js.map +1 -1
- package/es/types/Interface/api/employee/QueryCreateEmployee.d.ts +7 -0
- package/es/types/Interface/api/employee/QueryCreateEmployee.d.ts.map +1 -0
- package/es/types/Interface/api/employee/QueryCreateEmployee.js +2 -0
- package/es/types/Interface/api/employee/QueryCreateEmployee.js.map +1 -0
- package/es/types/Interface/api/webmail/CreateMailFromLambda.d.ts +0 -3
- package/es/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
- package/es/types/Interface/api/webmail/CreateMailFromLambda.js +0 -5
- package/es/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts +1 -0
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts.map +1 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +10 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/es/types/index.d.ts +2 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +2 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/webmail.d.ts.map +1 -1
- package/es/utils/webmail.js +15 -3
- package/es/utils/webmail.js.map +1 -1
- package/js/api/resources/Employee.js +17 -1
- package/js/api/resources/Employee.js.map +1 -1
- package/js/api/resources/SheetMonthSchedule.js +1 -1
- package/js/api/resources/SheetMonthSchedule.js.map +1 -1
- package/js/api/resources/Society.js +4 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/types/Interface/api/employee/QueryCreateEmployee.js +6 -0
- package/js/types/Interface/api/employee/QueryCreateEmployee.js.map +1 -0
- package/js/types/Interface/api/webmail/CreateMailFromLambda.js +0 -2
- package/js/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +4 -0
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/js/types/index.js +24 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/webmail.js +11 -3
- package/js/utils/webmail.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Employee.ts +14 -3
- package/ts/api/resources/SheetMonthSchedule.ts +1 -1
- package/ts/api/resources/Society.ts +3 -0
- package/ts/types/Interface/api/employee/QueryCreateEmployee.ts +7 -0
- package/ts/types/Interface/api/webmail/CreateMailFromLambda.ts +3 -3
- package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +9 -1
- package/ts/types/index.ts +2 -0
- package/ts/utils/webmail.ts +11 -3
package/ts/utils/webmail.ts
CHANGED
|
@@ -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)
|
|
5
|
+
if (listRoles.includes(Role.FRONT_OFFICE)) {
|
|
6
6
|
idRole = Role.FRONT_OFFICE;
|
|
7
|
-
} else if (listRoles.includes(Role.
|
|
8
|
-
idRole = Role.
|
|
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
|
};
|