@silexpert/core 1.1.241 → 1.1.243

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 (263) hide show
  1. package/dist/cjs/api/resources/Comment.d.ts +1 -1
  2. package/dist/cjs/api/resources/Comment.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Comment.js.map +1 -1
  4. package/dist/cjs/api/resources/Echo.d.ts +8 -0
  5. package/dist/cjs/api/resources/Echo.d.ts.map +1 -0
  6. package/dist/cjs/api/resources/Echo.js +17 -0
  7. package/dist/cjs/api/resources/Echo.js.map +1 -0
  8. package/dist/cjs/api/resources/LegalNotice.d.ts +4 -2
  9. package/dist/cjs/api/resources/LegalNotice.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/LegalNotice.js +6 -0
  11. package/dist/cjs/api/resources/LegalNotice.js.map +1 -1
  12. package/dist/cjs/api/resources/Synchronisation.d.ts +6 -0
  13. package/dist/cjs/api/resources/Synchronisation.d.ts.map +1 -0
  14. package/dist/cjs/api/resources/Synchronisation.js +11 -0
  15. package/dist/cjs/api/resources/Synchronisation.js.map +1 -0
  16. package/dist/cjs/api/resources/UpToDate.d.ts +6 -0
  17. package/dist/cjs/api/resources/UpToDate.d.ts.map +1 -0
  18. package/dist/cjs/api/resources/UpToDate.js +11 -0
  19. package/dist/cjs/api/resources/UpToDate.js.map +1 -0
  20. package/dist/cjs/api/resources.d.ts +6 -0
  21. package/dist/cjs/api/resources.d.ts.map +1 -1
  22. package/dist/cjs/api/resources.js +6 -0
  23. package/dist/cjs/api/resources.js.map +1 -1
  24. package/dist/cjs/types/Enum/BalanceSheet.d.ts +3 -3
  25. package/dist/cjs/types/Enum/BalanceSheet.js +3 -3
  26. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  27. package/dist/cjs/types/Enum/BrandClementine.d.ts +3 -0
  28. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  29. package/dist/cjs/types/Enum/BrandClementine.js +1 -0
  30. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  31. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +4 -0
  32. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  33. package/dist/cjs/types/Enum/BrandPourcentage.js +1 -0
  34. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  35. package/dist/cjs/types/Enum/Comment.d.ts +2 -1
  36. package/dist/cjs/types/Enum/Comment.d.ts.map +1 -1
  37. package/dist/cjs/types/Enum/Comment.js +1 -0
  38. package/dist/cjs/types/Enum/Comment.js.map +1 -1
  39. package/dist/cjs/types/Enum/InternalService.d.ts +12 -0
  40. package/dist/cjs/types/Enum/InternalService.d.ts.map +1 -1
  41. package/dist/cjs/types/Enum/InternalService.js +12 -0
  42. package/dist/cjs/types/Enum/InternalService.js.map +1 -1
  43. package/dist/cjs/types/Enum/JobTitle.d.ts +5 -1
  44. package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
  45. package/dist/cjs/types/Enum/JobTitle.js +25 -1
  46. package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
  47. package/dist/cjs/types/Enum/Role.d.ts +4 -1
  48. package/dist/cjs/types/Enum/Role.d.ts.map +1 -1
  49. package/dist/cjs/types/Enum/Role.js +7 -2
  50. package/dist/cjs/types/Enum/Role.js.map +1 -1
  51. package/dist/cjs/types/Enum/RoleDetail.d.ts +15 -2
  52. package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
  53. package/dist/cjs/types/Enum/RoleDetail.js +19 -6
  54. package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
  55. package/dist/cjs/types/Enum/TaskResponseType.d.ts +1 -0
  56. package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  57. package/dist/cjs/types/Enum/TaskResponseType.js +67 -0
  58. package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
  59. package/dist/cjs/types/Enum/TimeCounterType.js +13 -13
  60. package/dist/cjs/types/Enum/TimeCounterType.js.map +1 -1
  61. package/dist/cjs/types/Enum/ZoneCode.d.ts +653 -0
  62. package/dist/cjs/types/Enum/ZoneCode.d.ts.map +1 -0
  63. package/dist/cjs/types/Enum/ZoneCode.js +765 -0
  64. package/dist/cjs/types/Enum/ZoneCode.js.map +1 -0
  65. package/dist/cjs/types/Interface/api/echo/CreateOrder.d.ts +22 -0
  66. package/dist/cjs/types/Interface/api/echo/CreateOrder.d.ts.map +1 -0
  67. package/dist/cjs/types/Interface/api/echo/CreateOrder.js +93 -0
  68. package/dist/cjs/types/Interface/api/echo/CreateOrder.js.map +1 -0
  69. package/dist/cjs/types/Interface/api/echo/Mission.d.ts +5 -0
  70. package/dist/cjs/types/Interface/api/echo/Mission.d.ts.map +1 -0
  71. package/dist/cjs/types/Interface/api/echo/Mission.js +3 -0
  72. package/dist/cjs/types/Interface/api/echo/Mission.js.map +1 -0
  73. package/dist/cjs/types/Interface/api/echo/NewsPaper.d.ts +18 -0
  74. package/dist/cjs/types/Interface/api/echo/NewsPaper.d.ts.map +1 -0
  75. package/dist/cjs/types/Interface/api/echo/NewsPaper.js +3 -0
  76. package/dist/cjs/types/Interface/api/echo/NewsPaper.js.map +1 -0
  77. package/dist/cjs/types/Interface/api/echo/Order.d.ts +9 -0
  78. package/dist/cjs/types/Interface/api/echo/Order.d.ts.map +1 -0
  79. package/dist/cjs/types/Interface/api/echo/Order.js +3 -0
  80. package/dist/cjs/types/Interface/api/echo/Order.js.map +1 -0
  81. package/dist/cjs/types/Interface/api/synchronisation/Query.d.ts +12 -0
  82. package/dist/cjs/types/Interface/api/synchronisation/Query.d.ts.map +1 -0
  83. package/dist/cjs/types/Interface/api/synchronisation/Query.js +70 -0
  84. package/dist/cjs/types/Interface/api/synchronisation/Query.js.map +1 -0
  85. package/dist/cjs/types/Interface/models/IBankAccount.d.ts +2 -0
  86. package/dist/cjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  87. package/dist/cjs/types/Interface/models/IBankAccount.js.map +1 -1
  88. package/dist/cjs/types/Interface/models/IComment.d.ts +3 -0
  89. package/dist/cjs/types/Interface/models/IComment.d.ts.map +1 -1
  90. package/dist/cjs/types/Interface/models/IComment.js.map +1 -1
  91. package/dist/cjs/types/Interface/models/IExercice.d.ts +2 -0
  92. package/dist/cjs/types/Interface/models/IExercice.d.ts.map +1 -1
  93. package/dist/cjs/types/Interface/models/IExercice.js.map +1 -1
  94. package/dist/cjs/types/Interface/models/ILegalNotice.d.ts +3 -0
  95. package/dist/cjs/types/Interface/models/ILegalNotice.d.ts.map +1 -1
  96. package/dist/cjs/types/Interface/models/ILegalNotice.js.map +1 -1
  97. package/dist/cjs/types/Interface/models/IUpToDateBankAccount.d.ts +34 -0
  98. package/dist/cjs/types/Interface/models/IUpToDateBankAccount.d.ts.map +1 -0
  99. package/dist/cjs/types/Interface/models/IUpToDateBankAccount.js +3 -0
  100. package/dist/cjs/types/Interface/models/IUpToDateBankAccount.js.map +1 -0
  101. package/dist/cjs/types/index.d.ts +7 -0
  102. package/dist/cjs/types/index.d.ts.map +1 -1
  103. package/dist/cjs/types/index.js +7 -0
  104. package/dist/cjs/types/index.js.map +1 -1
  105. package/dist/cjs/utils/email/templates/signature.js +1 -1
  106. package/dist/cjs/utils/email/templates/signature.js.map +1 -1
  107. package/dist/cjs/utils/email.d.ts.map +1 -1
  108. package/dist/cjs/utils/email.js +41 -2
  109. package/dist/cjs/utils/email.js.map +1 -1
  110. package/dist/cjs/utils/task.d.ts.map +1 -1
  111. package/dist/cjs/utils/task.js +12 -0
  112. package/dist/cjs/utils/task.js.map +1 -1
  113. package/dist/cjs/utils/webmail.d.ts.map +1 -1
  114. package/dist/cjs/utils/webmail.js +12 -0
  115. package/dist/cjs/utils/webmail.js.map +1 -1
  116. package/dist/mjs/api/resources/Comment.d.ts +1 -1
  117. package/dist/mjs/api/resources/Comment.d.ts.map +1 -1
  118. package/dist/mjs/api/resources/Comment.js.map +1 -1
  119. package/dist/mjs/api/resources/Echo.d.ts +8 -0
  120. package/dist/mjs/api/resources/Echo.d.ts.map +1 -0
  121. package/dist/mjs/api/resources/Echo.js +13 -0
  122. package/dist/mjs/api/resources/Echo.js.map +1 -0
  123. package/dist/mjs/api/resources/LegalNotice.d.ts +4 -2
  124. package/dist/mjs/api/resources/LegalNotice.d.ts.map +1 -1
  125. package/dist/mjs/api/resources/LegalNotice.js +6 -0
  126. package/dist/mjs/api/resources/LegalNotice.js.map +1 -1
  127. package/dist/mjs/api/resources/Synchronisation.d.ts +6 -0
  128. package/dist/mjs/api/resources/Synchronisation.d.ts.map +1 -0
  129. package/dist/mjs/api/resources/Synchronisation.js +10 -0
  130. package/dist/mjs/api/resources/Synchronisation.js.map +1 -0
  131. package/dist/mjs/api/resources/UpToDate.d.ts +6 -0
  132. package/dist/mjs/api/resources/UpToDate.d.ts.map +1 -0
  133. package/dist/mjs/api/resources/UpToDate.js +7 -0
  134. package/dist/mjs/api/resources/UpToDate.js.map +1 -0
  135. package/dist/mjs/api/resources.d.ts +6 -0
  136. package/dist/mjs/api/resources.d.ts.map +1 -1
  137. package/dist/mjs/api/resources.js +6 -0
  138. package/dist/mjs/api/resources.js.map +1 -1
  139. package/dist/mjs/types/Enum/BalanceSheet.d.ts +3 -3
  140. package/dist/mjs/types/Enum/BalanceSheet.js +3 -3
  141. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  142. package/dist/mjs/types/Enum/BrandClementine.d.ts +3 -0
  143. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  144. package/dist/mjs/types/Enum/BrandClementine.js +1 -0
  145. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  146. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +4 -0
  147. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  148. package/dist/mjs/types/Enum/BrandPourcentage.js +1 -0
  149. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  150. package/dist/mjs/types/Enum/Comment.d.ts +2 -1
  151. package/dist/mjs/types/Enum/Comment.d.ts.map +1 -1
  152. package/dist/mjs/types/Enum/Comment.js +1 -0
  153. package/dist/mjs/types/Enum/Comment.js.map +1 -1
  154. package/dist/mjs/types/Enum/InternalService.d.ts +12 -0
  155. package/dist/mjs/types/Enum/InternalService.d.ts.map +1 -1
  156. package/dist/mjs/types/Enum/InternalService.js +12 -0
  157. package/dist/mjs/types/Enum/InternalService.js.map +1 -1
  158. package/dist/mjs/types/Enum/JobTitle.d.ts +5 -1
  159. package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
  160. package/dist/mjs/types/Enum/JobTitle.js +25 -1
  161. package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
  162. package/dist/mjs/types/Enum/Role.d.ts +4 -1
  163. package/dist/mjs/types/Enum/Role.d.ts.map +1 -1
  164. package/dist/mjs/types/Enum/Role.js +7 -2
  165. package/dist/mjs/types/Enum/Role.js.map +1 -1
  166. package/dist/mjs/types/Enum/RoleDetail.d.ts +15 -2
  167. package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
  168. package/dist/mjs/types/Enum/RoleDetail.js +19 -6
  169. package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
  170. package/dist/mjs/types/Enum/TaskResponseType.d.ts +1 -0
  171. package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  172. package/dist/mjs/types/Enum/TaskResponseType.js +67 -0
  173. package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
  174. package/dist/mjs/types/Enum/TimeCounterType.js +13 -13
  175. package/dist/mjs/types/Enum/TimeCounterType.js.map +1 -1
  176. package/dist/mjs/types/Enum/ZoneCode.d.ts +653 -0
  177. package/dist/mjs/types/Enum/ZoneCode.d.ts.map +1 -0
  178. package/dist/mjs/types/Enum/ZoneCode.js +762 -0
  179. package/dist/mjs/types/Enum/ZoneCode.js.map +1 -0
  180. package/dist/mjs/types/Interface/api/echo/CreateOrder.d.ts +22 -0
  181. package/dist/mjs/types/Interface/api/echo/CreateOrder.d.ts.map +1 -0
  182. package/dist/mjs/types/Interface/api/echo/CreateOrder.js +101 -0
  183. package/dist/mjs/types/Interface/api/echo/CreateOrder.js.map +1 -0
  184. package/dist/mjs/types/Interface/api/echo/Mission.d.ts +5 -0
  185. package/dist/mjs/types/Interface/api/echo/Mission.d.ts.map +1 -0
  186. package/dist/mjs/types/Interface/api/echo/Mission.js +2 -0
  187. package/dist/mjs/types/Interface/api/echo/Mission.js.map +1 -0
  188. package/dist/mjs/types/Interface/api/echo/NewsPaper.d.ts +18 -0
  189. package/dist/mjs/types/Interface/api/echo/NewsPaper.d.ts.map +1 -0
  190. package/dist/mjs/types/Interface/api/echo/NewsPaper.js +2 -0
  191. package/dist/mjs/types/Interface/api/echo/NewsPaper.js.map +1 -0
  192. package/dist/mjs/types/Interface/api/echo/Order.d.ts +9 -0
  193. package/dist/mjs/types/Interface/api/echo/Order.d.ts.map +1 -0
  194. package/dist/mjs/types/Interface/api/echo/Order.js +2 -0
  195. package/dist/mjs/types/Interface/api/echo/Order.js.map +1 -0
  196. package/dist/mjs/types/Interface/api/synchronisation/Query.d.ts +12 -0
  197. package/dist/mjs/types/Interface/api/synchronisation/Query.d.ts.map +1 -0
  198. package/dist/mjs/types/Interface/api/synchronisation/Query.js +75 -0
  199. package/dist/mjs/types/Interface/api/synchronisation/Query.js.map +1 -0
  200. package/dist/mjs/types/Interface/models/IBankAccount.d.ts +2 -0
  201. package/dist/mjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  202. package/dist/mjs/types/Interface/models/IBankAccount.js.map +1 -1
  203. package/dist/mjs/types/Interface/models/IComment.d.ts +3 -0
  204. package/dist/mjs/types/Interface/models/IComment.d.ts.map +1 -1
  205. package/dist/mjs/types/Interface/models/IComment.js.map +1 -1
  206. package/dist/mjs/types/Interface/models/IExercice.d.ts +2 -0
  207. package/dist/mjs/types/Interface/models/IExercice.d.ts.map +1 -1
  208. package/dist/mjs/types/Interface/models/IExercice.js.map +1 -1
  209. package/dist/mjs/types/Interface/models/ILegalNotice.d.ts +3 -0
  210. package/dist/mjs/types/Interface/models/ILegalNotice.d.ts.map +1 -1
  211. package/dist/mjs/types/Interface/models/ILegalNotice.js.map +1 -1
  212. package/dist/mjs/types/Interface/models/IUpToDateBankAccount.d.ts +34 -0
  213. package/dist/mjs/types/Interface/models/IUpToDateBankAccount.d.ts.map +1 -0
  214. package/dist/mjs/types/Interface/models/IUpToDateBankAccount.js +2 -0
  215. package/dist/mjs/types/Interface/models/IUpToDateBankAccount.js.map +1 -0
  216. package/dist/mjs/types/index.d.ts +7 -0
  217. package/dist/mjs/types/index.d.ts.map +1 -1
  218. package/dist/mjs/types/index.js +7 -0
  219. package/dist/mjs/types/index.js.map +1 -1
  220. package/dist/mjs/utils/email/templates/signature.js +1 -1
  221. package/dist/mjs/utils/email/templates/signature.js.map +1 -1
  222. package/dist/mjs/utils/email.d.ts.map +1 -1
  223. package/dist/mjs/utils/email.js +44 -2
  224. package/dist/mjs/utils/email.js.map +1 -1
  225. package/dist/mjs/utils/task.d.ts.map +1 -1
  226. package/dist/mjs/utils/task.js +12 -0
  227. package/dist/mjs/utils/task.js.map +1 -1
  228. package/dist/mjs/utils/webmail.d.ts.map +1 -1
  229. package/dist/mjs/utils/webmail.js +12 -0
  230. package/dist/mjs/utils/webmail.js.map +1 -1
  231. package/package.json +1 -1
  232. package/ts/api/resources/Comment.ts +1 -1
  233. package/ts/api/resources/Echo.ts +16 -0
  234. package/ts/api/resources/LegalNotice.ts +10 -2
  235. package/ts/api/resources/Synchronisation.ts +11 -0
  236. package/ts/api/resources/UpToDate.ts +8 -0
  237. package/ts/api/resources.ts +6 -0
  238. package/ts/types/Enum/BalanceSheet.ts +3 -3
  239. package/ts/types/Enum/BrandClementine.ts +1 -0
  240. package/ts/types/Enum/BrandPourcentage.ts +1 -0
  241. package/ts/types/Enum/Comment.ts +1 -0
  242. package/ts/types/Enum/InternalService.ts +12 -0
  243. package/ts/types/Enum/JobTitle.ts +25 -1
  244. package/ts/types/Enum/Role.ts +7 -2
  245. package/ts/types/Enum/RoleDetail.ts +19 -6
  246. package/ts/types/Enum/TaskResponseType.ts +67 -0
  247. package/ts/types/Enum/TimeCounterType.ts +13 -13
  248. package/ts/types/Enum/ZoneCode.ts +764 -0
  249. package/ts/types/Interface/api/echo/CreateOrder.ts +64 -0
  250. package/ts/types/Interface/api/echo/Mission.ts +4 -0
  251. package/ts/types/Interface/api/echo/NewsPaper.ts +18 -0
  252. package/ts/types/Interface/api/echo/Order.ts +8 -0
  253. package/ts/types/Interface/api/synchronisation/Query.ts +47 -0
  254. package/ts/types/Interface/models/IBankAccount.ts +2 -0
  255. package/ts/types/Interface/models/IComment.ts +3 -0
  256. package/ts/types/Interface/models/IExercice.ts +2 -0
  257. package/ts/types/Interface/models/ILegalNotice.ts +3 -0
  258. package/ts/types/Interface/models/IUpToDateBankAccount.ts +37 -0
  259. package/ts/types/index.ts +7 -0
  260. package/ts/utils/email/templates/signature.ts +1 -1
  261. package/ts/utils/email.ts +31 -2
  262. package/ts/utils/task.ts +8 -0
  263. package/ts/utils/webmail.ts +8 -0
@@ -0,0 +1,64 @@
1
+ import { IsIn, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { DepartmentCode } from '../../../Enum/ZoneCode';
4
+
5
+ export class PublicationContent {
6
+ @ApiProperty()
7
+ @IsString()
8
+ text_html: string;
9
+ }
10
+
11
+ export class Publication {
12
+ @ApiProperty()
13
+ @IsString()
14
+ ad_type_id: string;
15
+
16
+ @ApiProperty()
17
+ content: PublicationContent;
18
+
19
+ @ApiProperty()
20
+ @IsString()
21
+ header: string;
22
+
23
+ @ApiProperty()
24
+ @IsString()
25
+ legal_name: string;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsString()
29
+ @IsOptional()
30
+ logo_base_64?: string | null;
31
+ }
32
+ export class CreateEchoOrder {
33
+ @ApiProperty()
34
+ departement: DepartmentCode;
35
+
36
+ @ApiProperty()
37
+ @IsString()
38
+ newspaper_id: string;
39
+
40
+ @ApiProperty()
41
+ @IsInt()
42
+ paper_proof_qty: number;
43
+
44
+ @ApiProperty()
45
+ publication: Publication;
46
+
47
+ @ApiProperty()
48
+ @IsString()
49
+ publishing_date_from: string;
50
+
51
+ @ApiProperty()
52
+ @IsString()
53
+ publishing_date_to: string;
54
+
55
+ @ApiProperty()
56
+ @IsString()
57
+ selection_mode: string;
58
+
59
+ @ApiProperty()
60
+ @IsString()
61
+ @IsIn(['simulation', 'order'])
62
+ type: string;
63
+ }
64
+
@@ -0,0 +1,4 @@
1
+ export type Mission = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,18 @@
1
+ export type NewsPaper = {
2
+ newspaper_accept_logo_header: boolean,
3
+ newspaper_id: string,
4
+ newspaper_name: string,
5
+ newspaper_publication_info: {
6
+ next_publication_closing_datetime: string,
7
+ next_publication_date: string,
8
+ publishing_date_frequency: PublishingDateFrequency[]
9
+ },
10
+ newspaper_publishing_medium: string
11
+ };
12
+
13
+ export type PublishingDateFrequency = {
14
+ closing_day: number,
15
+ closing_time: string,
16
+ plus_7: boolean,
17
+ publishing_day: number
18
+ };
@@ -0,0 +1,8 @@
1
+ export type EchoOrder = {
2
+ id: string;
3
+ newspaper_name: string;
4
+ price_total_excl_tax: string;
5
+ publication_closing_datetime: string;
6
+ publication_date: string;
7
+ specimen_url: string;
8
+ };
@@ -0,0 +1,47 @@
1
+ import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class QuerySynchronisationPaginated {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ limit: number;
8
+
9
+ @ApiProperty()
10
+ @IsNumber()
11
+ page: number;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsString()
15
+ @IsOptional()
16
+ search?: string;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsArray()
21
+ accountants?: number[];
22
+
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ @IsNumber()
26
+ customerSuccess?: number;
27
+
28
+ @ApiPropertyOptional()
29
+ @IsOptional()
30
+ @IsArray()
31
+ synchroStates?: number[];
32
+
33
+ @ApiPropertyOptional()
34
+ @IsOptional()
35
+ @IsArray()
36
+ banks?: number[];
37
+
38
+ @ApiPropertyOptional()
39
+ @IsOptional()
40
+ @IsNumber()
41
+ jeDeclareState?: number;
42
+
43
+ @ApiPropertyOptional()
44
+ @IsOptional()
45
+ @IsNumber()
46
+ connector?: number;
47
+ }
@@ -5,6 +5,7 @@ import { IAccount } from './IAccount';
5
5
  import { IBankList } from './IBankList';
6
6
  import { IBalanceBankAccount } from './IBalanceBankAccount';
7
7
  import { ISimulation } from './ISimulation';
8
+ import { IUpToDateBankAccount } from './IUpToDateBankAccount';
8
9
 
9
10
  // bankAccounts
10
11
  export interface IBankAccount {
@@ -45,4 +46,5 @@ export interface IBankAccount {
45
46
  bankList?: IBankList;
46
47
  balanceBankAccounts?: IBalanceBankAccount[];
47
48
  simulations?: ISimulation[];
49
+ upToDateBankAccount?: IUpToDateBankAccount;
48
50
  }
@@ -1,6 +1,7 @@
1
1
  import { ICommentType } from './ICommentType';
2
2
  import { IChannelType } from './IChannelType';
3
3
  import { IUser } from './IUser';
4
+ import { IExercice } from './IExercice';
4
5
  import { ISupervision } from './ISupervision';
5
6
  import { ICard, ITask } from '../..';
6
7
 
@@ -14,6 +15,7 @@ export interface IComment {
14
15
  idReport?: number | null;
15
16
  idTask?: number | null;
16
17
  idUser?: number | null;
18
+ idExercice?: number | null;
17
19
  idCard?: number | null;
18
20
  idChecklist?: number | null;
19
21
  isPing?: boolean;
@@ -25,6 +27,7 @@ export interface IComment {
25
27
  commentType?: ICommentType;
26
28
  channelType?: IChannelType;
27
29
  user?: IUser;
30
+ exercice?: IExercice;
28
31
  supervision?: ISupervision;
29
32
  task?: ITask;
30
33
  card?: ICard;
@@ -12,6 +12,7 @@ import { ISociety } from './ISociety';
12
12
  import { IExerciceDetail } from './IExerciceDetail';
13
13
  import { IBalanceSheetModule } from './IBalanceSheetModule';
14
14
  import { IRegistration } from './IRegistration';
15
+ import { IComment } from './IComment';
15
16
 
16
17
  // exercices
17
18
  export interface IExercice {
@@ -62,4 +63,5 @@ export interface IExercice {
62
63
  exerciceDetail?: IExerciceDetail;
63
64
  exerciceBalanceSheetModule?: IBalanceSheetModule;
64
65
  registrations: IRegistration[];
66
+ comments?: IComment[];
65
67
  }
@@ -7,6 +7,7 @@ export interface ILegalNotice {
7
7
  ref: string | null;
8
8
  folderCode: string | null;
9
9
  nameOfNewspaper: string | null;
10
+ department: string | null;
10
11
  amountPurchaseHt: number | null;
11
12
  amountSaleHt: number | null;
12
13
  status: number;
@@ -17,6 +18,8 @@ export interface ILegalNotice {
17
18
  isPaid: boolean;
18
19
  processed: boolean;
19
20
  societyWithoutRegister: string | null;
21
+ idMission?: string | null;
22
+ idNewsPaper?: string | null;
20
23
  idSociety: number | null;
21
24
  idOperationLegalNotice: number;
22
25
  idPrestation: number | null;
@@ -0,0 +1,37 @@
1
+ import { ISociety } from './ISociety';
2
+ import { IBankAccount } from './IBankAccount';
3
+ import { IMonth } from './IMonth';
4
+ import { IWebMail } from './IWebMail';
5
+ import { IMail } from './IMail';
6
+
7
+ // bankAccounts
8
+ export interface IUpToDateBankAccount {
9
+ id?: number;
10
+ idBankAccount: number;
11
+ idSociety: number;
12
+ year?: number | null;
13
+ idMonth?: number | null;
14
+ upToDateBankAccount?: Date | null;
15
+ upToDateBalance?: Date | null;
16
+ currentMandate?: Date | null;
17
+ signedMandate?: Date | null;
18
+ idMailRelanceAnnotation?: number | null;
19
+ idMailAskCsv?: number | null;
20
+ idMailRelanceDesyncho?: number | null;
21
+ idNewMailRelanceAnnotation?: number | null;
22
+ idNewMailAskCsv?: number | null;
23
+ idNewMailRelanceDesyncho?: number | null;
24
+ createdAt?: Date | null;
25
+ updatedAt?: Date | null;
26
+
27
+ // Associations
28
+ bankAccount?: IBankAccount;
29
+ society?: ISociety;
30
+ month?: IMonth;
31
+ mailAskCsv?: IWebMail;
32
+ mailRelanceAnnotation?: IWebMail;
33
+ mailRelanceDesynchro?: IWebMail;
34
+ newMailAskCsv?: IMail;
35
+ newMailRelanceAnnotation?: IMail;
36
+ newMailRelanceDesynchro?: IMail;
37
+ }
package/ts/types/index.ts CHANGED
@@ -252,6 +252,7 @@ export * from './Interface/models/IStripeEventType';
252
252
  export * from './Interface/models/ISubscriptionType';
253
253
  export * from './Interface/models/IThirdPartyType';
254
254
  export * from './Interface/models/IVehicleType';
255
+ export * from './Interface/models/IUpToDateBankAccount';
255
256
  export * from './Interface/models/IUser';
256
257
  export * from './Interface/models/IUserBrand';
257
258
  export * from './Interface/models/IUserNotification';
@@ -527,6 +528,7 @@ export * from './Enum/EquipmentAvailability';
527
528
  export * from './Enum/SpecialDayType';
528
529
  export * from './Enum/Degree';
529
530
  export * from './Enum/Brevo';
531
+ export * from './Enum/ZoneCode';
530
532
 
531
533
  // Interfaces API
532
534
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -924,6 +926,7 @@ export * from './Interface/api/mobile/UpdateMobile';
924
926
  export * from './Interface/api/mobile/QueryMobileMigration';
925
927
  export * from './Interface/api/societyEvent/QuerySocietyEvent';
926
928
  export * from './Interface/api/societyEvent/CreateSocietyEvent';
929
+ export * from './Interface/api/synchronisation/Query';
927
930
  export * from './Interface/api/task/QueryGetAllTask';
928
931
  export * from './Interface/api/regulate/QueryGetAll';
929
932
  export * from './Interface/api/regulate/RegulateWithStats';
@@ -1036,6 +1039,10 @@ export * from './Interface/api/paymentExpectation/CreatePaymentExpecation';
1036
1039
  export * from './Interface/api/expertAnnuary/Query';
1037
1040
  export * from './Interface/api/brevo/BrevoElement';
1038
1041
  export * from './Interface/api/bankAccount/Create';
1042
+ export * from './Interface/api/echo/Mission';
1043
+ export * from './Interface/api/echo/CreateOrder';
1044
+ export * from './Interface/api/echo/NewsPaper';
1045
+ export * from './Interface/api/echo/Order';
1039
1046
 
1040
1047
  // Enums types
1041
1048
  export * from './Interface/enum/Util';
@@ -237,7 +237,7 @@ ${logoClementine}
237
237
  <a href="https://www.smileyourpla.net/" style="display: inline-block; color:#6E6E71;" target="_blank"><img
238
238
  src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png"
239
239
  alt="Initiative Smile your planet" height="36"></a>
240
- <% if(user.calendlyUrl) { %>
240
+ <% if(user.calendlyUrl && !isDataOfficer) { %>
241
241
  <a href="<%= user.calendlyUrl %>" style="display: inline-block; color:#6E6E71;" target="_blank">
242
242
  <img
243
243
  src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png"
package/ts/utils/email.ts CHANGED
@@ -21,6 +21,10 @@ function getRoleSignature(user:any) {
21
21
  const isFacturation = user.roles.map((r: any) => r.id).includes(Role.FACTURATION);
22
22
  const isExpert = user.roles.map((r: any) => r.id).includes(Role.EXPERT_ACCOUNTANT);
23
23
  const isCS = user.roles.map((r: any) => r.id).includes(Role.CUSTOMER_SUCCESS);
24
+ const isOnBoarder = user.roles.map((r: any) => r.id).includes(Role.ON_BOARDER);
25
+ const isTermination = user.roles.map((r: any) => r.id).includes(Role.TERMINATION);
26
+ const isLitige = user.roles.map((r: any) => r.id).includes(Role.LITIGE);
27
+ const isDataOfficer = user.roles.map((r: any) => r.id).includes(Role.DATA_OFFICER);
24
28
  const isSales = user.roles.map((r: any) => r.id).includes(Role.COMMERCIAL);
25
29
  const isAdmin = user.roles.map((r: any) => r.id).includes(Role.ADMIN);
26
30
  const isFront = !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS]]).length;
@@ -31,6 +35,18 @@ function getRoleSignature(user:any) {
31
35
  if (isCS && isManager) { return 'Responsable relations clients'; }
32
36
  if (isCS) { return `Conseill${user.idCivility === 2 ? 'ère' : 'er'} comptable`; }
33
37
 
38
+ if (isOnBoarder && isManager) { return `Responsable chargé${user.idCivility === 2 ? 'e' : ''} accueil clients`; }
39
+ if (isOnBoarder) { return `Chargé${user.idCivility === 2 ? 'e' : ''} accueil clients`; }
40
+
41
+ if (isTermination && isManager) { return `Responsable chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients`; }
42
+ if (isTermination) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients`; }
43
+
44
+ if (isLitige && isManager) { return `Responsable chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients (Litige)`; }
45
+ if (isLitige) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients (Litige)`; }
46
+
47
+ if (isDataOfficer && isManager) { return 'Responsable aide comptable'; }
48
+ if (isDataOfficer) { return 'Aide comptable'; }
49
+
34
50
  if (isFacturation && isStagiaireOrAlternant) { return 'Assistant facturation'; }
35
51
  if (isFacturation && isManager) { return 'Responsable facturation'; }
36
52
  if (isFacturation) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de facturation`; }
@@ -110,7 +126,7 @@ function getMailSignature(user:any, idTypeBrand:number) {
110
126
  }) as unknown as string;
111
127
 
112
128
  if (user.roles.map((r: any) => r.id).includes(Role.ADMIN)) { return informatiqueMail; }
113
- if (user && !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS, Role.COMMERCIAL]]).length) return user.email;
129
+ if (user && !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS, Role.DATA_OFFICER, Role.COMMERCIAL]]).length) return user.email;
114
130
  return bonjourMail;
115
131
  }
116
132
 
@@ -156,6 +172,10 @@ export function generateSignature(params: any): string {
156
172
  ...(idTypeBrand ? { idTypeBrand } : {}),
157
173
  objectWaited: 'listMails.social',
158
174
  }) as unknown as string;
175
+ const dataOfficerMail = getBrandConfig({
176
+ ...(idTypeBrand ? { idTypeBrand } : {}),
177
+ objectWaited: 'listMails.gestion',
178
+ }) as unknown as string;
159
179
  const supportMail = getBrandConfig({
160
180
  ...(idTypeBrand ? { idTypeBrand } : {}),
161
181
  objectWaited: 'listMails.support',
@@ -191,7 +211,15 @@ export function generateSignature(params: any): string {
191
211
  let horaires: string | null;
192
212
  [roleSignature, mailSignature, phoneSignature, horaires] = ['Expert-Comptable', bonjourMail, false, 'Du lundi au vendredi de 9h à 19h'];
193
213
 
194
- if (forceRole === 'social') { // Signature social
214
+ if (user.roles && user.roles.some((r: any) => r.id === Role.DATA_OFFICER)) { // Signature data_officer
215
+ user = {
216
+ firstname: `L'équipe ${commercialName}`,
217
+ isAll: true,
218
+ };
219
+ mailSignature = dataOfficerMail;
220
+ roleSignature = '';
221
+ phoneSignature = standardPhoneSignature;
222
+ } else if (forceRole === 'social') { // Signature social
195
223
  user = {
196
224
  firstname: 'Service social',
197
225
  isAll: true,
@@ -238,6 +266,7 @@ export function generateSignature(params: any): string {
238
266
  return ejs.render(signatureTemplate, {
239
267
  forceRole,
240
268
  isFacturation: user.roles ? user.roles.some((r: any) => r.id === Role.FACTURATION) : false,
269
+ isDataOfficer: user.roles ? user.roles.some((r: any) => r.id === Role.DATA_OFFICER) : true,
241
270
  brandName,
242
271
  idTypeBrand,
243
272
  commercialName,
package/ts/utils/task.ts CHANGED
@@ -13,8 +13,16 @@ const getIdRoleUsedForTask = (listRoles: number[]): number => {
13
13
  idRole = Role.FACTURATION;
14
14
  } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
15
15
  idRole = Role.CUSTOMER_SUCCESS;
16
+ } else if (listRoles.includes(Role.ON_BOARDER)) {
17
+ idRole = Role.ON_BOARDER;
18
+ } else if (listRoles.includes(Role.TERMINATION)) {
19
+ idRole = Role.TERMINATION;
20
+ } else if (listRoles.includes(Role.LITIGE)) {
21
+ idRole = Role.LITIGE;
16
22
  } else if (listRoles.includes(Role.FRONT_OFFICE)) {
17
23
  idRole = Role.FRONT_OFFICE;
24
+ } else if (listRoles.includes(Role.DATA_OFFICER)) {
25
+ idRole = Role.DATA_OFFICER;
18
26
  }
19
27
  return idRole;
20
28
  };
@@ -8,6 +8,8 @@ const getIdRoleUsedForEmail = (listRoles: number[]): number => {
8
8
  idRole = Role.FRONT_OFFICE;
9
9
  } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
10
10
  idRole = Role.FRONT_OFFICE_EXPRESS;
11
+ } else if (listRoles.includes(Role.DATA_OFFICER)) {
12
+ idRole = Role.DATA_OFFICER;
11
13
  } else if (listRoles.includes(Role.COMMERCIAL)) {
12
14
  idRole = Role.COMMERCIAL;
13
15
  } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {
@@ -18,6 +20,12 @@ const getIdRoleUsedForEmail = (listRoles: number[]): number => {
18
20
  idRole = Role.JURIDIC;
19
21
  } else if (listRoles.includes(Role.SOCIAL)) {
20
22
  idRole = Role.SOCIAL;
23
+ } else if (listRoles.includes(Role.ON_BOARDER)) {
24
+ idRole = Role.ON_BOARDER;
25
+ } else if (listRoles.includes(Role.TERMINATION)) {
26
+ idRole = Role.TERMINATION;
27
+ } else if (listRoles.includes(Role.LITIGE)) {
28
+ idRole = Role.LITIGE;
21
29
  }
22
30
  return idRole;
23
31
  };