@silexpert/core 1.2.71 → 1.2.72
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/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 +2 -0
- package/dist/cjs/types/Enum/BrandClementine.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/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/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/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/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/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/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 +2 -0
- package/dist/mjs/types/Enum/BrandClementine.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/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/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/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/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/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/types/Enum/BalanceSheet.ts +3 -3
- package/ts/types/Enum/BrandClementine.ts +2 -0
- package/ts/types/Enum/InternalService.ts +7 -7
- package/ts/types/Enum/JobTitle.ts +2 -2
- package/ts/types/Enum/Role.ts +3 -4
- package/ts/types/Enum/RoleDetail.ts +13 -13
- 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/utils/brands.ts +2 -0
- package/ts/utils/email.ts +29 -12
- package/ts/utils/task.ts +3 -6
- package/ts/utils/webmail.ts +3 -6
|
@@ -267,8 +267,8 @@ export const TaskResponseType = {
|
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
269
|
id: 21,
|
|
270
|
-
label: '
|
|
271
|
-
role: Role.
|
|
270
|
+
label: 'Satifaction résiliation',
|
|
271
|
+
role: Role.SATISFACTION,
|
|
272
272
|
deadline: Deadline,
|
|
273
273
|
isForWholeRole: true,
|
|
274
274
|
backToClient: false,
|
|
@@ -278,8 +278,8 @@ export const TaskResponseType = {
|
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
id: 22,
|
|
281
|
-
label: '
|
|
282
|
-
role: Role.
|
|
281
|
+
label: 'Satifaction clients',
|
|
282
|
+
role: Role.SATISFACTION,
|
|
283
283
|
deadline: Deadline,
|
|
284
284
|
isForWholeRole: true,
|
|
285
285
|
backToClient: false,
|
|
@@ -58,7 +58,7 @@ export const TimeCounterType = {
|
|
|
58
58
|
id: 5,
|
|
59
59
|
label: 'Signalement',
|
|
60
60
|
aberrantTime: 60,
|
|
61
|
-
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.
|
|
61
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.SATISFACTION],
|
|
62
62
|
color: 'lipstick-dark',
|
|
63
63
|
isOverlappable: true,
|
|
64
64
|
},
|
|
@@ -66,7 +66,7 @@ export const TimeCounterType = {
|
|
|
66
66
|
id: 6,
|
|
67
67
|
label: 'Synchronisation',
|
|
68
68
|
aberrantTime: 30,
|
|
69
|
-
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.
|
|
69
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.SATISFACTION],
|
|
70
70
|
color: 'orange-dark',
|
|
71
71
|
isOverlappable: true,
|
|
72
72
|
},
|
|
@@ -114,7 +114,7 @@ export const TimeCounterType = {
|
|
|
114
114
|
id: 12,
|
|
115
115
|
label: 'Attestation',
|
|
116
116
|
aberrantTime: 20,
|
|
117
|
-
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.
|
|
117
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.SATISFACTION],
|
|
118
118
|
color: 'pink-salmon',
|
|
119
119
|
isOverlappable: true,
|
|
120
120
|
},
|
|
@@ -162,7 +162,7 @@ export const TimeCounterType = {
|
|
|
162
162
|
id: 18,
|
|
163
163
|
label: 'Traitement des courriers',
|
|
164
164
|
aberrantTime: 20,
|
|
165
|
-
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.
|
|
165
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.SATISFACTION],
|
|
166
166
|
color: 'pink-salmon',
|
|
167
167
|
isOverlappable: true,
|
|
168
168
|
},
|
|
@@ -170,7 +170,7 @@ export const TimeCounterType = {
|
|
|
170
170
|
id: 19,
|
|
171
171
|
label: 'Traitement support',
|
|
172
172
|
aberrantTime: 20,
|
|
173
|
-
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.
|
|
173
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.SATISFACTION],
|
|
174
174
|
color: 'error',
|
|
175
175
|
isOverlappable: true,
|
|
176
176
|
},
|
|
@@ -306,7 +306,7 @@ export const TimeCounterType = {
|
|
|
306
306
|
id: 36,
|
|
307
307
|
label: 'Validation contrôle interne',
|
|
308
308
|
aberrantTime: 480,
|
|
309
|
-
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.
|
|
309
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS, Role.ON_BOARDER, Role.SATISFACTION],
|
|
310
310
|
color: 'grey-dark',
|
|
311
311
|
isOverlappable: true,
|
|
312
312
|
},
|
|
@@ -182,7 +182,7 @@ export const TimeSlotDetail: TimeSlotDetailType[] = [
|
|
|
182
182
|
name: 'Rdv',
|
|
183
183
|
internalName: 'Rdv',
|
|
184
184
|
duration: 20,
|
|
185
|
-
// idRole: [Role.ACCOUNTANT, Role.COMMERCIAL, Role.SOCIAL, Role.JURIDIC, Role.EXPERT_ACCOUNTANT, Role.FACTURATION, Role.
|
|
185
|
+
// idRole: [Role.ACCOUNTANT, Role.COMMERCIAL, Role.SOCIAL, Role.JURIDIC, Role.EXPERT_ACCOUNTANT, Role.FACTURATION, Role.SATISFACTION, Role.TECHNICAL_ADVISOR],
|
|
186
186
|
forWholeService: false,
|
|
187
187
|
idTimeCounterType: TimeCounterType.CALENDLY.id,
|
|
188
188
|
},
|
package/ts/utils/brands.ts
CHANGED
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));
|
package/ts/utils/webmail.ts
CHANGED
|
@@ -24,10 +24,8 @@ const getIdRoleUsedForEmail = (listRoles: number[]): Role => {
|
|
|
24
24
|
idRole = Role.SOCIAL;
|
|
25
25
|
} else if (listRoles.includes(Role.ON_BOARDER)) {
|
|
26
26
|
idRole = Role.ON_BOARDER;
|
|
27
|
-
} else if (listRoles.includes(Role.
|
|
28
|
-
idRole = Role.
|
|
29
|
-
} else if (listRoles.includes(Role.LITIGE)) {
|
|
30
|
-
idRole = Role.LITIGE;
|
|
27
|
+
} else if (listRoles.includes(Role.SATISFACTION)) {
|
|
28
|
+
idRole = Role.SATISFACTION;
|
|
31
29
|
}
|
|
32
30
|
return idRole;
|
|
33
31
|
};
|
|
@@ -46,8 +44,7 @@ const getListIdRolesUsedForEmail = (listRoles: number[]): Role[] => {
|
|
|
46
44
|
Role.JURIDIC,
|
|
47
45
|
Role.SOCIAL,
|
|
48
46
|
Role.ON_BOARDER,
|
|
49
|
-
Role.
|
|
50
|
-
Role.LITIGE
|
|
47
|
+
Role.SATISFACTION
|
|
51
48
|
].includes(r));
|
|
52
49
|
return listIdRoles;
|
|
53
50
|
};
|