@silexpert/core 0.4.264 → 0.4.266

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 (178) hide show
  1. package/es/api/resources/Exercice.d.ts +1 -0
  2. package/es/api/resources/Exercice.d.ts.map +1 -1
  3. package/es/api/resources/Exercice.js +3 -0
  4. package/es/api/resources/Exercice.js.map +1 -1
  5. package/es/api/resources/Mail.js +2 -2
  6. package/es/api/resources/Mail.js.map +1 -1
  7. package/es/api/resources/Qonto.d.ts +6 -1
  8. package/es/api/resources/Qonto.d.ts.map +1 -1
  9. package/es/api/resources/Qonto.js +15 -0
  10. package/es/api/resources/Qonto.js.map +1 -1
  11. package/es/api/resources/User.d.ts +2 -2
  12. package/es/api/resources/User.d.ts.map +1 -1
  13. package/es/api/resources/User.js +2 -11
  14. package/es/api/resources/User.js.map +1 -1
  15. package/es/types/Enum/BrandClementine.d.ts +3 -1
  16. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  17. package/es/types/Enum/BrandClementine.js +3 -0
  18. package/es/types/Enum/BrandClementine.js.map +1 -1
  19. package/es/types/Enum/Role.d.ts +6 -11
  20. package/es/types/Enum/Role.d.ts.map +1 -1
  21. package/es/types/Enum/Role.js +15 -10
  22. package/es/types/Enum/Role.js.map +1 -1
  23. package/es/types/Enum/RoleDetail.d.ts +40 -56
  24. package/es/types/Enum/RoleDetail.d.ts.map +1 -1
  25. package/es/types/Enum/RoleDetail.js +120 -64
  26. package/es/types/Enum/RoleDetail.js.map +1 -1
  27. package/es/types/Enum/Rules.d.ts +2 -0
  28. package/es/types/Enum/Rules.d.ts.map +1 -0
  29. package/es/types/Enum/Rules.js +19 -0
  30. package/es/types/Enum/Rules.js.map +1 -0
  31. package/es/types/Enum/TaskResponseType.d.ts +0 -1
  32. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  33. package/es/types/Enum/TaskResponseType.js +25 -3
  34. package/es/types/Enum/TaskResponseType.js.map +1 -1
  35. package/es/types/Enum/TimeCounterType.js +7 -7
  36. package/es/types/Enum/TimeCounterType.js.map +1 -1
  37. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -1
  38. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
  39. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
  40. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  41. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -1
  42. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  43. package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
  44. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  45. package/es/types/Interface/api/qonto/CreateImportation.d.ts +5 -0
  46. package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +1 -0
  47. package/es/types/Interface/api/qonto/CreateImportation.js +26 -0
  48. package/es/types/Interface/api/qonto/CreateImportation.js.map +1 -0
  49. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +5 -0
  50. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +1 -0
  51. package/es/types/Interface/api/qonto/CreateQontoConnection.js +24 -0
  52. package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
  53. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +4 -0
  54. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +1 -0
  55. package/es/types/Interface/api/qonto/GetConnectionInformation.js +19 -0
  56. package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
  57. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +5 -0
  58. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +1 -0
  59. package/es/types/Interface/api/qonto/ProcessBankAccount.js +24 -0
  60. package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
  61. package/es/types/Interface/api/qonto/Query.d.ts +77 -0
  62. package/es/types/Interface/api/qonto/Query.d.ts.map +1 -0
  63. package/es/types/Interface/api/qonto/Query.js +2 -0
  64. package/es/types/Interface/api/qonto/Query.js.map +1 -0
  65. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts +6 -0
  66. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +1 -0
  67. package/es/types/Interface/api/qonto/ReadCreateConnection.js +2 -0
  68. package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
  69. package/es/types/Interface/api/qonto/UpdateConnection.d.ts +4 -0
  70. package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +1 -0
  71. package/es/types/Interface/api/qonto/UpdateConnection.js +19 -0
  72. package/es/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
  73. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
  74. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
  75. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +10 -1
  76. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  77. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +1 -0
  78. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
  79. package/es/types/Interface/api/user/QueryGetAllCollaborators.js +11 -1
  80. package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  81. package/es/types/Interface/models/IApiError.d.ts +1 -0
  82. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  83. package/es/types/Interface/models/IApiError.js +2 -0
  84. package/es/types/Interface/models/IApiError.js.map +1 -1
  85. package/es/types/Interface/models/IPrestationHistory.d.ts +13 -0
  86. package/es/types/Interface/models/IPrestationHistory.d.ts.map +1 -0
  87. package/es/types/Interface/models/IPrestationHistory.js +2 -0
  88. package/es/types/Interface/models/IPrestationHistory.js.map +1 -0
  89. package/es/types/index.d.ts +9 -0
  90. package/es/types/index.d.ts.map +1 -1
  91. package/es/types/index.js +9 -0
  92. package/es/types/index.js.map +1 -1
  93. package/es/utils/task.d.ts +1 -2
  94. package/es/utils/task.d.ts.map +1 -1
  95. package/es/utils/task.js +17 -20
  96. package/es/utils/task.js.map +1 -1
  97. package/es/utils/webmail.d.ts.map +1 -1
  98. package/es/utils/webmail.js +1 -4
  99. package/es/utils/webmail.js.map +1 -1
  100. package/js/api/resources/Exercice.js +4 -0
  101. package/js/api/resources/Exercice.js.map +1 -1
  102. package/js/api/resources/Mail.js +2 -2
  103. package/js/api/resources/Mail.js.map +1 -1
  104. package/js/api/resources/Qonto.js +22 -0
  105. package/js/api/resources/Qonto.js.map +1 -1
  106. package/js/api/resources/User.js +5 -3
  107. package/js/api/resources/User.js.map +1 -1
  108. package/js/types/Enum/BrandClementine.js +3 -0
  109. package/js/types/Enum/BrandClementine.js.map +1 -1
  110. package/js/types/Enum/Role.js +18 -13
  111. package/js/types/Enum/Role.js.map +1 -1
  112. package/js/types/Enum/RoleDetail.js +142 -86
  113. package/js/types/Enum/RoleDetail.js.map +1 -1
  114. package/js/types/Enum/Rules.js +7 -0
  115. package/js/types/Enum/Rules.js.map +1 -0
  116. package/js/types/Enum/TaskResponseType.js +24 -4
  117. package/js/types/Enum/TaskResponseType.js.map +1 -1
  118. package/js/types/Enum/TimeCounterType.js +7 -7
  119. package/js/types/Enum/TimeCounterType.js.map +1 -1
  120. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
  121. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  122. package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
  123. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  124. package/js/types/Interface/api/qonto/CreateImportation.js +31 -0
  125. package/js/types/Interface/api/qonto/CreateImportation.js.map +1 -0
  126. package/js/types/Interface/api/qonto/CreateQontoConnection.js +31 -0
  127. package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
  128. package/js/types/Interface/api/qonto/GetConnectionInformation.js +29 -0
  129. package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
  130. package/js/types/Interface/api/qonto/ProcessBankAccount.js +31 -0
  131. package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
  132. package/js/types/Interface/api/qonto/Query.js +6 -0
  133. package/js/types/Interface/api/qonto/Query.js.map +1 -0
  134. package/js/types/Interface/api/qonto/ReadCreateConnection.js +6 -0
  135. package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
  136. package/js/types/Interface/api/qonto/UpdateConnection.js +29 -0
  137. package/js/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
  138. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
  139. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  140. package/js/types/Interface/api/user/QueryGetAllCollaborators.js +8 -0
  141. package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  142. package/js/types/Interface/models/IApiError.js +3 -1
  143. package/js/types/Interface/models/IApiError.js.map +1 -1
  144. package/js/types/Interface/models/IPrestationHistory.js +6 -0
  145. package/js/types/Interface/models/IPrestationHistory.js.map +1 -0
  146. package/js/types/index.js +108 -0
  147. package/js/types/index.js.map +1 -1
  148. package/js/utils/task.js +17 -21
  149. package/js/utils/task.js.map +1 -1
  150. package/js/utils/webmail.js +1 -3
  151. package/js/utils/webmail.js.map +1 -1
  152. package/package.json +1 -1
  153. package/ts/api/resources/Exercice.ts +4 -0
  154. package/ts/api/resources/Mail.ts +2 -2
  155. package/ts/api/resources/Qonto.ts +26 -4
  156. package/ts/api/resources/User.ts +3 -12
  157. package/ts/types/Enum/BrandClementine.ts +3 -0
  158. package/ts/types/Enum/Role.ts +15 -10
  159. package/ts/types/Enum/RoleDetail.ts +120 -64
  160. package/ts/types/Enum/Rules.ts +18 -0
  161. package/ts/types/Enum/TaskResponseType.ts +25 -3
  162. package/ts/types/Enum/TimeCounterType.ts +7 -7
  163. package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -1
  164. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -1
  165. package/ts/types/Interface/api/qonto/CreateImportation.ts +14 -0
  166. package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +12 -0
  167. package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +8 -0
  168. package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +12 -0
  169. package/ts/types/Interface/api/qonto/Query.ts +80 -0
  170. package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +6 -0
  171. package/ts/types/Interface/api/qonto/UpdateConnection.ts +8 -0
  172. package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +9 -0
  173. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +10 -1
  174. package/ts/types/Interface/models/IApiError.ts +3 -0
  175. package/ts/types/Interface/models/IPrestationHistory.ts +16 -0
  176. package/ts/types/index.ts +9 -0
  177. package/ts/utils/task.ts +17 -17
  178. package/ts/utils/webmail.ts +1 -3
@@ -0,0 +1,12 @@
1
+ import { IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class CreateQontoConnection {
5
+ @ApiProperty()
6
+ @IsString()
7
+ login: string;
8
+
9
+ @ApiProperty()
10
+ @IsString()
11
+ password: string;
12
+ }
@@ -0,0 +1,8 @@
1
+ import { IsNumber } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class GetConnectionInformation {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ idBankConnection: number;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { IsArray } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class ProcessBankAccount {
5
+ @ApiProperty()
6
+ @IsArray()
7
+ idsSlugToAdd: Array<string>;
8
+
9
+ @ApiProperty()
10
+ @IsArray()
11
+ idsSlugToRemove: Array<string>;
12
+ }
@@ -0,0 +1,80 @@
1
+ export type QontoOrganisationBankAccount = {
2
+ slug: string;
3
+ iban: string;
4
+ bic: string | null;
5
+ currency: string;
6
+ balance: number;
7
+ balance_cents: number;
8
+ authorized_balance: number;
9
+ authorized_balance_cents: number;
10
+ updated_at: string;
11
+ status: 'active' | 'closed';
12
+ };
13
+
14
+ export type GetQontoOrganization = {
15
+ organization: {
16
+ slug: string;
17
+ legal_name: string | null;
18
+ bank_accounts: QontoOrganisationBankAccount[];
19
+ }
20
+ };
21
+
22
+ export type GetQontoTransactionsResponse = {
23
+ transactions: QontoTransaction[];
24
+ meta: {
25
+ current_page: number;
26
+ next_page: number | null;
27
+ prev_page: number | null;
28
+ total_pages: number;
29
+ total_count: number;
30
+ per_page: number;
31
+ }
32
+ };
33
+
34
+ export type QontoTransaction = {
35
+ transaction_id: string;
36
+ amount: number;
37
+ amount_cents: number;
38
+ settled_balance: number;
39
+ settled_balance_cents: number;
40
+ attachment_ids: string[],
41
+ local_amount: number;
42
+ local_amount_cents: number;
43
+ side: string;
44
+ operation_type: string;
45
+ currency: string;
46
+ local_currency: string;
47
+ label: string;
48
+ settled_at: string;
49
+ emitted_at: string;
50
+ updated_at: string;
51
+ status: string;
52
+ note: string;
53
+ reference: string | null;
54
+ vat_amount: number | null;
55
+ vat_amount_cents: number | null;
56
+ vat_rate: number | null;
57
+ initiator_id: string | null;
58
+ label_ids: string[];
59
+ attachment_lost: boolean,
60
+ attachment_required: boolean,
61
+ card_last_digits: string | null,
62
+ category: string | null,
63
+ id: string | null
64
+ };
65
+
66
+ export type GetQontoAttachment = {
67
+ id: string;
68
+ created_at: string;
69
+ file_name: string;
70
+ file_size: string;
71
+ file_content_type: string;
72
+ url: string;
73
+ probative_attachment: {
74
+ status: string;
75
+ file_name: string;
76
+ file_content_type: string;
77
+ file_size:string;
78
+ url: string | null;
79
+ }
80
+ };
@@ -0,0 +1,6 @@
1
+ import { GetQontoOrganization } from './Query';
2
+
3
+ export interface ReadCreateConnection {
4
+ idBankConnection: number;
5
+ qontoConnection: GetQontoOrganization;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class UpdateConnection {
5
+ @ApiProperty()
6
+ @IsString()
7
+ password: string;
8
+ }
@@ -1,4 +1,5 @@
1
1
  import {
2
+ IsIn,
2
3
  IsNumber,
3
4
  IsOptional, IsString,
4
5
  } from 'class-validator';
@@ -26,4 +27,12 @@ export class ParamsGetAllCollaborators {
26
27
  @IsOptional()
27
28
  @IsNumber()
28
29
  idUser?: number[];
30
+
31
+ @ApiPropertyOptional()
32
+ @IsOptional()
33
+ @IsString({
34
+ each: true,
35
+ })
36
+ @IsIn(['avatar', 'teams', 'businessLines'], { each: true })
37
+ include?: string[];
29
38
  }
@@ -1,4 +1,5 @@
1
- import { ApiProperty } from '../../../../utils';
1
+ import { IsIn, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
3
 
3
4
  export class QueryGetAllCollaborators {
4
5
  @ApiProperty({
@@ -8,4 +9,12 @@ export class QueryGetAllCollaborators {
8
9
  example: [1, 13],
9
10
  })
10
11
  idUser?: number[];
12
+
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsString({
16
+ each: true,
17
+ })
18
+ @IsIn(['avatar', 'teams', 'businessLines'], { each: true })
19
+ include?: string[];
11
20
  }
@@ -142,6 +142,9 @@ export enum Code {
142
142
  bankAccountDesactivationFailed = 'bank_account_desactivation_failed',
143
143
  udpateTokenFailed = 'update_token_failed',
144
144
 
145
+ // qonto
146
+ CONNECTION_ALREADY_EXISTS = 'CONNECTION_ALREADY_EXISTS',
147
+
145
148
  // Accounts
146
149
  GENERIC_ACCOUNT_NOT_FOUND = 'GENERIC_ACCOUNT_NOT_FOUND',
147
150
 
@@ -0,0 +1,16 @@
1
+ import { IPrestation } from './IPrestation';
2
+ import { IUser } from './IUser';
3
+
4
+ // prestationHistory
5
+ export interface IPrestationHistory {
6
+ id?: number;
7
+ idState: number;
8
+ idPrestation: number | null;
9
+ idUser: number | null;
10
+ createdAt?: Date | null;
11
+ updatedAt?: Date | null;
12
+
13
+ // Associations
14
+ prestation: IPrestation;
15
+ user: IUser;
16
+ }
package/ts/types/index.ts CHANGED
@@ -142,6 +142,7 @@ export * from './Interface/models/IPermission';
142
142
  export * from './Interface/models/IPhoneNumber';
143
143
  export * from './Interface/models/IPhonePrefix';
144
144
  export * from './Interface/models/IPhonePrefixChild';
145
+ export * from './Interface/models/IPrestationHistory';
145
146
  export * from './Interface/models/IPrestation';
146
147
  export * from './Interface/models/IPrestationComplementary';
147
148
  export * from './Interface/models/IPrestationList';
@@ -432,6 +433,7 @@ export * from './Enum/SocietyTypeEvent';
432
433
  export * from './Enum/Call';
433
434
  export * from './Enum/ConnectionError';
434
435
  export * from './Enum/FolderFile';
436
+ export * from './Enum/Rules';
435
437
 
436
438
  // Interfaces API
437
439
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
@@ -764,6 +766,13 @@ export * from './Interface/api/customerActivity/CreateCustomerActivityReport';
764
766
  export * from './Interface/api/alert/CreateAlert';
765
767
  export * from './Interface/api/connection/QueryConnectionState';
766
768
  export * from './Interface/api/connection/ReadConnectionState';
769
+ export * from './Interface/api/qonto/Query';
770
+ export * from './Interface/api/qonto/CreateImportation';
771
+ export * from './Interface/api/qonto/UpdateConnection';
772
+ export * from './Interface/api/qonto/CreateQontoConnection';
773
+ export * from './Interface/api/qonto/GetConnectionInformation';
774
+ export * from './Interface/api/qonto/ProcessBankAccount';
775
+ export * from './Interface/api/qonto/ReadCreateConnection';
767
776
 
768
777
  // Enums types
769
778
  export * from './Interface/enum/Util';
package/ts/utils/task.ts CHANGED
@@ -3,7 +3,7 @@ import { TaskResponseType, RoleAvailableForTask } from '../types/Enum/TaskRespon
3
3
 
4
4
  const getIdRoleUsedForTask = (listRoles: number[]): number => {
5
5
  let idRole = 0;
6
- if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {
6
+ if (listRoles.includes(Role.COMMERCIAL)) {
7
7
  idRole = Role.COMMERCIAL;
8
8
  } else if (listRoles.includes(Role.JURIDIC)) {
9
9
  idRole = Role.JURIDIC;
@@ -11,27 +11,27 @@ const getIdRoleUsedForTask = (listRoles: number[]): number => {
11
11
  idRole = Role.SOCIAL;
12
12
  } else if (listRoles.includes(Role.FACTURATION)) {
13
13
  idRole = Role.FACTURATION;
14
- } else if (listRoles.includes(Role.CUSTOMER_SUCCESS) || listRoles.includes(Role.CUSTOMER_SUCCESS_MANAGER)) {
14
+ } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
15
15
  idRole = Role.CUSTOMER_SUCCESS;
16
- } else if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_MANAGER)) {
16
+ } else if (listRoles.includes(Role.FRONT_OFFICE)) {
17
17
  idRole = Role.FRONT_OFFICE;
18
18
  }
19
19
  return idRole;
20
20
  };
21
21
 
22
- const getIdRoleUsedForManagerTask = (listRoles: number[]): number => {
23
- let idRole = 0;
24
- if (listRoles.includes(Role.COMMERCIAL)) {
25
- idRole = Role.COMMERCIAL_MANAGER;
26
- } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {
27
- idRole = Role.MANAGER;
28
- } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
29
- idRole = Role.CUSTOMER_SUCCESS_MANAGER;
30
- } else if (listRoles.includes(Role.FRONT_OFFICE)) {
31
- idRole = Role.FRONT_MANAGER;
32
- }
33
- return idRole;
34
- };
22
+ // const getIdRoleUsedForManagerTask = (listRoles: number[]): number => {
23
+ // let idRole = 0;
24
+ // if (listRoles.includes(Role.COMMERCIAL)) {
25
+ // idRole = Role.MANAGER;
26
+ // } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {
27
+ // idRole = Role.MANAGER;
28
+ // } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
29
+ // idRole = Role.MANAGER;
30
+ // } else if (listRoles.includes(Role.FRONT_OFFICE)) {
31
+ // idRole = Role.MANAGER;
32
+ // }
33
+ // return idRole;
34
+ // };
35
35
 
36
36
  const getIdRoleUsedForAttribution = (isIntern: boolean, idTaskType: number): number | undefined => {
37
37
  const taskTypeList = isIntern ? TaskResponseType.INTERN.types : TaskResponseType.EXTERN.types;
@@ -41,5 +41,5 @@ const getIdRoleUsedForAttribution = (isIntern: boolean, idTaskType: number): num
41
41
  const getIdRoleUsedForGetTaskOfUser = (idRole: number): boolean => !!Object.values(RoleAvailableForTask).find((role) => role === idRole);
42
42
 
43
43
  export {
44
- getIdRoleUsedForTask, getIdRoleUsedForManagerTask, getIdRoleUsedForAttribution, getIdRoleUsedForGetTaskOfUser,
44
+ getIdRoleUsedForTask, getIdRoleUsedForAttribution, getIdRoleUsedForGetTaskOfUser,
45
45
  };
@@ -4,13 +4,11 @@ const getIdRoleUsedForEmail = (listRoles: number[]): number => {
4
4
  let idRole = Role.CUSTOMER_SUCCESS;
5
5
  if (listRoles.includes(Role.FACTURATION)) {
6
6
  idRole = Role.FACTURATION;
7
- } else if (listRoles.includes(Role.BACK_MANAGER)) {
8
- idRole = Role.BACK_MANAGER;
9
7
  } else if (listRoles.includes(Role.FRONT_OFFICE)) {
10
8
  idRole = Role.FRONT_OFFICE;
11
9
  } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
12
10
  idRole = Role.FRONT_OFFICE_EXPRESS;
13
- } else if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {
11
+ } else if (listRoles.includes(Role.COMMERCIAL)) {
14
12
  idRole = Role.COMMERCIAL;
15
13
  } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {
16
14
  idRole = Role.EXPERT_ACCOUNTANT;