@silexpert/core 1.0.12 → 1.0.15

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 (304) hide show
  1. package/es/api/resources/{commercialDocument.d.ts → CommercialDocument.d.ts} +4 -2
  2. package/es/api/resources/CommercialDocument.d.ts.map +1 -0
  3. package/es/api/resources/{commercialDocument.js → CommercialDocument.js} +7 -1
  4. package/es/api/resources/CommercialDocument.js.map +1 -0
  5. package/es/api/resources/Dashboard.d.ts +1 -2
  6. package/es/api/resources/Dashboard.d.ts.map +1 -1
  7. package/es/api/resources/Dashboard.js +0 -3
  8. package/es/api/resources/Dashboard.js.map +1 -1
  9. package/es/api/resources/Exercice.d.ts +1 -0
  10. package/es/api/resources/Exercice.d.ts.map +1 -1
  11. package/es/api/resources/Exercice.js +3 -0
  12. package/es/api/resources/Exercice.js.map +1 -1
  13. package/es/api/resources/Invoice.d.ts +1 -0
  14. package/es/api/resources/Invoice.d.ts.map +1 -1
  15. package/es/api/resources/Invoice.js +3 -0
  16. package/es/api/resources/Invoice.js.map +1 -1
  17. package/es/api/resources/Mail.js +2 -2
  18. package/es/api/resources/Mail.js.map +1 -1
  19. package/es/api/resources/Qonto.d.ts +2 -1
  20. package/es/api/resources/Qonto.d.ts.map +1 -1
  21. package/es/api/resources/Qonto.js +3 -0
  22. package/es/api/resources/Qonto.js.map +1 -1
  23. package/es/api/resources/Recurrence.d.ts +9 -0
  24. package/es/api/resources/Recurrence.d.ts.map +1 -0
  25. package/es/api/resources/Recurrence.js +13 -0
  26. package/es/api/resources/Recurrence.js.map +1 -0
  27. package/es/api/resources/{reminder.d.ts → Reminder.d.ts} +1 -1
  28. package/es/api/resources/{reminder.d.ts.map → Reminder.d.ts.map} +1 -1
  29. package/es/api/resources/{reminder.js → Reminder.js} +2 -2
  30. package/es/api/resources/{reminder.js.map → Reminder.js.map} +1 -1
  31. package/es/api/resources/User.d.ts +2 -2
  32. package/es/api/resources/User.d.ts.map +1 -1
  33. package/es/api/resources/User.js +2 -11
  34. package/es/api/resources/User.js.map +1 -1
  35. package/es/api/resources.d.ts +4 -2
  36. package/es/api/resources.d.ts.map +1 -1
  37. package/es/api/resources.js +4 -2
  38. package/es/api/resources.js.map +1 -1
  39. package/es/types/Enum/BrandClementine.d.ts +3 -1
  40. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  41. package/es/types/Enum/BrandClementine.js +3 -0
  42. package/es/types/Enum/BrandClementine.js.map +1 -1
  43. package/es/types/Enum/CommercialManagement.d.ts +4 -2
  44. package/es/types/Enum/CommercialManagement.d.ts.map +1 -1
  45. package/es/types/Enum/CommercialManagement.js +3 -1
  46. package/es/types/Enum/CommercialManagement.js.map +1 -1
  47. package/es/types/Enum/RecurrenceType.d.ts +11 -0
  48. package/es/types/Enum/RecurrenceType.d.ts.map +1 -0
  49. package/es/types/Enum/RecurrenceType.js +26 -0
  50. package/es/types/Enum/RecurrenceType.js.map +1 -0
  51. package/es/types/Enum/Role.d.ts +6 -11
  52. package/es/types/Enum/Role.d.ts.map +1 -1
  53. package/es/types/Enum/Role.js +15 -10
  54. package/es/types/Enum/Role.js.map +1 -1
  55. package/es/types/Enum/RoleDetail.d.ts +40 -56
  56. package/es/types/Enum/RoleDetail.d.ts.map +1 -1
  57. package/es/types/Enum/RoleDetail.js +120 -64
  58. package/es/types/Enum/RoleDetail.js.map +1 -1
  59. package/es/types/Enum/TaskResponseType.d.ts +9 -0
  60. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  61. package/es/types/Enum/TaskResponseType.js +35 -2
  62. package/es/types/Enum/TaskResponseType.js.map +1 -1
  63. package/es/types/Enum/TimeCounterType.js +7 -7
  64. package/es/types/Enum/TimeCounterType.js.map +1 -1
  65. package/es/types/Interface/api/commercialManagement/Create.d.ts +25 -18
  66. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  67. package/es/types/Interface/api/commercialManagement/Create.js +65 -81
  68. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
  69. package/es/types/Interface/api/commercialManagement/Query.d.ts +6 -0
  70. package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  71. package/es/types/Interface/api/commercialManagement/Query.js +29 -0
  72. package/es/types/Interface/api/commercialManagement/Query.js.map +1 -1
  73. package/es/types/Interface/api/commercialManagement/Read.d.ts +19 -0
  74. package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  75. package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
  76. package/es/types/Interface/api/commercialManagement/Update.d.ts +6 -0
  77. package/es/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
  78. package/es/types/Interface/api/commercialManagement/Update.js +29 -1
  79. package/es/types/Interface/api/commercialManagement/Update.js.map +1 -1
  80. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -1
  81. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
  82. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
  83. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  84. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -1
  85. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  86. package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
  87. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  88. package/es/types/Interface/api/qonto/CreateImportation.d.ts +5 -0
  89. package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +1 -0
  90. package/es/types/Interface/api/{dashboard/QueryGescom.js → qonto/CreateImportation.js} +12 -19
  91. package/es/types/Interface/api/qonto/CreateImportation.js.map +1 -0
  92. package/es/types/Interface/api/qonto/Query.d.ts +78 -0
  93. package/es/types/Interface/api/qonto/Query.d.ts.map +1 -0
  94. package/es/types/Interface/api/qonto/Query.js +2 -0
  95. package/es/types/Interface/api/qonto/Query.js.map +1 -0
  96. package/es/types/Interface/api/revision/QueryRevision.d.ts +2 -0
  97. package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -1
  98. package/es/types/Interface/api/revision/QueryRevision.js +16 -2
  99. package/es/types/Interface/api/revision/QueryRevision.js.map +1 -1
  100. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +1 -1
  101. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -1
  102. package/es/types/Interface/api/revision/QueryRevisionAccount.js +11 -5
  103. package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  104. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +2 -0
  105. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +1 -1
  106. package/es/types/Interface/api/revision/QueryRevisionPaginate.js +16 -2
  107. package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  108. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +1 -1
  109. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
  110. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  111. package/es/types/Interface/api/task/QueryCountTask.d.ts +1 -1
  112. package/es/types/Interface/api/task/QueryCountTask.d.ts.map +1 -1
  113. package/es/types/Interface/api/task/QueryCountTask.js +1 -1
  114. package/es/types/Interface/api/task/QueryCountTask.js.map +1 -1
  115. package/es/types/Interface/api/task/QueryPaginatedTask.d.ts +2 -0
  116. package/es/types/Interface/api/task/QueryPaginatedTask.d.ts.map +1 -1
  117. package/es/types/Interface/api/task/QueryPaginatedTask.js +11 -0
  118. package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  119. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
  120. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
  121. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +10 -1
  122. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  123. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +1 -0
  124. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
  125. package/es/types/Interface/api/user/QueryGetAllCollaborators.js +11 -1
  126. package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  127. package/es/types/Interface/models/IApiError.d.ts +2 -1
  128. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  129. package/es/types/Interface/models/IApiError.js +1 -0
  130. package/es/types/Interface/models/IApiError.js.map +1 -1
  131. package/es/types/Interface/models/IEstimateInvoice.d.ts +4 -2
  132. package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  133. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  134. package/es/types/Interface/models/IInvoiceRecurrence.d.ts +15 -0
  135. package/es/types/Interface/models/IInvoiceRecurrence.d.ts.map +1 -0
  136. package/es/types/Interface/models/IInvoiceRecurrence.js +2 -0
  137. package/es/types/Interface/models/IInvoiceRecurrence.js.map +1 -0
  138. package/es/types/Interface/models/IInvoiceReminder.d.ts +1 -1
  139. package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -1
  140. package/es/types/Interface/models/IInvoiceReminder.js.map +1 -1
  141. package/es/types/Interface/models/ITask.d.ts +2 -2
  142. package/es/types/Interface/models/ITask.d.ts.map +1 -1
  143. package/es/types/Interface/models/ITask.js.map +1 -1
  144. package/es/types/index.d.ts +4 -2
  145. package/es/types/index.d.ts.map +1 -1
  146. package/es/types/index.js +4 -2
  147. package/es/types/index.js.map +1 -1
  148. package/es/utils/commercialManagement/document.d.ts.map +1 -1
  149. package/es/utils/commercialManagement/document.js +1 -5
  150. package/es/utils/commercialManagement/document.js.map +1 -1
  151. package/es/utils/commercialManagement/recurrence.d.ts +7 -0
  152. package/es/utils/commercialManagement/recurrence.d.ts.map +1 -0
  153. package/es/utils/commercialManagement/recurrence.js +31 -0
  154. package/es/utils/commercialManagement/recurrence.js.map +1 -0
  155. package/es/utils/index.d.ts +1 -0
  156. package/es/utils/index.d.ts.map +1 -1
  157. package/es/utils/index.js +1 -0
  158. package/es/utils/index.js.map +1 -1
  159. package/es/utils/task.d.ts +3 -2
  160. package/es/utils/task.d.ts.map +1 -1
  161. package/es/utils/task.js +23 -19
  162. package/es/utils/task.js.map +1 -1
  163. package/es/utils/webmail.d.ts.map +1 -1
  164. package/es/utils/webmail.js +1 -4
  165. package/es/utils/webmail.js.map +1 -1
  166. package/js/api/resources/{commercialDocument.js → CommercialDocument.js} +11 -1
  167. package/js/api/resources/CommercialDocument.js.map +1 -0
  168. package/js/api/resources/Dashboard.js +0 -6
  169. package/js/api/resources/Dashboard.js.map +1 -1
  170. package/js/api/resources/Exercice.js +4 -0
  171. package/js/api/resources/Exercice.js.map +1 -1
  172. package/js/api/resources/Invoice.js +4 -0
  173. package/js/api/resources/Invoice.js.map +1 -1
  174. package/js/api/resources/Mail.js +2 -2
  175. package/js/api/resources/Mail.js.map +1 -1
  176. package/js/api/resources/Qonto.js +4 -0
  177. package/js/api/resources/Qonto.js.map +1 -1
  178. package/js/api/resources/Recurrence.js +26 -0
  179. package/js/api/resources/Recurrence.js.map +1 -0
  180. package/js/api/resources/{reminder.js → Reminder.js} +2 -2
  181. package/js/api/resources/{reminder.js.map → Reminder.js.map} +1 -1
  182. package/js/api/resources/User.js +5 -3
  183. package/js/api/resources/User.js.map +1 -1
  184. package/js/api/resources.js +7 -4
  185. package/js/api/resources.js.map +1 -1
  186. package/js/types/Enum/BrandClementine.js +3 -0
  187. package/js/types/Enum/BrandClementine.js.map +1 -1
  188. package/js/types/Enum/CommercialManagement.js +3 -1
  189. package/js/types/Enum/CommercialManagement.js.map +1 -1
  190. package/js/types/Enum/RecurrenceType.js +28 -0
  191. package/js/types/Enum/RecurrenceType.js.map +1 -0
  192. package/js/types/Enum/Role.js +18 -13
  193. package/js/types/Enum/Role.js.map +1 -1
  194. package/js/types/Enum/RoleDetail.js +142 -86
  195. package/js/types/Enum/RoleDetail.js.map +1 -1
  196. package/js/types/Enum/TaskResponseType.js +36 -3
  197. package/js/types/Enum/TaskResponseType.js.map +1 -1
  198. package/js/types/Enum/TimeCounterType.js +7 -7
  199. package/js/types/Enum/TimeCounterType.js.map +1 -1
  200. package/js/types/Interface/api/commercialManagement/Create.js +47 -33
  201. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
  202. package/js/types/Interface/api/commercialManagement/Query.js +15 -3
  203. package/js/types/Interface/api/commercialManagement/Query.js.map +1 -1
  204. package/js/types/Interface/api/commercialManagement/Update.js +15 -1
  205. package/js/types/Interface/api/commercialManagement/Update.js.map +1 -1
  206. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
  207. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  208. package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
  209. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  210. package/js/types/Interface/api/{dashboard/QueryGescom.js → qonto/CreateImportation.js} +8 -12
  211. package/js/types/Interface/api/qonto/CreateImportation.js.map +1 -0
  212. package/js/types/Interface/api/qonto/Query.js +6 -0
  213. package/js/types/Interface/api/qonto/Query.js.map +1 -0
  214. package/js/types/Interface/api/revision/QueryRevision.js +6 -0
  215. package/js/types/Interface/api/revision/QueryRevision.js.map +1 -1
  216. package/js/types/Interface/api/revision/QueryRevisionAccount.js +7 -5
  217. package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  218. package/js/types/Interface/api/revision/QueryRevisionPaginate.js +6 -0
  219. package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  220. package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  221. package/js/types/Interface/api/task/QueryCountTask.js +1 -1
  222. package/js/types/Interface/api/task/QueryCountTask.js.map +1 -1
  223. package/js/types/Interface/api/task/QueryPaginatedTask.js +6 -0
  224. package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
  225. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
  226. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  227. package/js/types/Interface/api/user/QueryGetAllCollaborators.js +8 -0
  228. package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  229. package/js/types/Interface/models/IApiError.js +1 -0
  230. package/js/types/Interface/models/IApiError.js.map +1 -1
  231. package/js/types/Interface/models/IInvoiceRecurrence.js +6 -0
  232. package/js/types/Interface/models/IInvoiceRecurrence.js.map +1 -0
  233. package/js/types/index.js +48 -24
  234. package/js/types/index.js.map +1 -1
  235. package/js/utils/commercialManagement/document.js +1 -6
  236. package/js/utils/commercialManagement/document.js.map +1 -1
  237. package/js/utils/commercialManagement/recurrence.js +47 -0
  238. package/js/utils/commercialManagement/recurrence.js.map +1 -0
  239. package/js/utils/index.js +12 -0
  240. package/js/utils/index.js.map +1 -1
  241. package/js/utils/task.js +29 -20
  242. package/js/utils/task.js.map +1 -1
  243. package/js/utils/webmail.js +1 -3
  244. package/js/utils/webmail.js.map +1 -1
  245. package/package.json +1 -1
  246. package/ts/api/resources/{commercialDocument.ts → CommercialDocument.ts} +10 -0
  247. package/ts/api/resources/Dashboard.ts +0 -6
  248. package/ts/api/resources/Exercice.ts +4 -0
  249. package/ts/api/resources/Invoice.ts +4 -0
  250. package/ts/api/resources/Mail.ts +2 -2
  251. package/ts/api/resources/Qonto.ts +7 -1
  252. package/ts/api/resources/Recurrence.ts +17 -0
  253. package/ts/api/resources/{reminder.ts → Reminder.ts} +1 -1
  254. package/ts/api/resources/User.ts +3 -12
  255. package/ts/api/resources.ts +4 -2
  256. package/ts/types/Enum/BrandClementine.ts +3 -0
  257. package/ts/types/Enum/CommercialManagement.ts +3 -1
  258. package/ts/types/Enum/RecurrenceType.ts +25 -0
  259. package/ts/types/Enum/Role.ts +15 -10
  260. package/ts/types/Enum/RoleDetail.ts +120 -64
  261. package/ts/types/Enum/TaskResponseType.ts +35 -2
  262. package/ts/types/Enum/TimeCounterType.ts +7 -7
  263. package/ts/types/Interface/api/commercialManagement/Create.ts +62 -81
  264. package/ts/types/Interface/api/commercialManagement/Query.ts +25 -0
  265. package/ts/types/Interface/api/commercialManagement/Read.ts +19 -0
  266. package/ts/types/Interface/api/commercialManagement/Update.ts +25 -1
  267. package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -1
  268. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -1
  269. package/ts/types/Interface/api/qonto/CreateImportation.ts +14 -0
  270. package/ts/types/Interface/api/qonto/Query.ts +80 -0
  271. package/ts/types/Interface/api/revision/QueryRevision.ts +15 -2
  272. package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +11 -4
  273. package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +15 -2
  274. package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +1 -1
  275. package/ts/types/Interface/api/task/QueryCountTask.ts +1 -1
  276. package/ts/types/Interface/api/task/QueryPaginatedTask.ts +9 -0
  277. package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +9 -0
  278. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +10 -1
  279. package/ts/types/Interface/models/IApiError.ts +1 -0
  280. package/ts/types/Interface/models/IEstimateInvoice.ts +4 -2
  281. package/ts/types/Interface/models/IInvoiceRecurrence.ts +16 -0
  282. package/ts/types/Interface/models/IInvoiceReminder.ts +1 -1
  283. package/ts/types/Interface/models/ITask.ts +2 -2
  284. package/ts/types/index.ts +4 -2
  285. package/ts/utils/commercialManagement/document.ts +1 -6
  286. package/ts/utils/commercialManagement/recurrence.ts +39 -0
  287. package/ts/utils/index.ts +1 -0
  288. package/ts/utils/task.ts +24 -16
  289. package/ts/utils/webmail.ts +1 -3
  290. package/es/api/resources/commercialDocument.d.ts.map +0 -1
  291. package/es/api/resources/commercialDocument.js.map +0 -1
  292. package/es/types/Interface/api/dashboard/QueryGescom.d.ts +0 -8
  293. package/es/types/Interface/api/dashboard/QueryGescom.d.ts.map +0 -1
  294. package/es/types/Interface/api/dashboard/QueryGescom.js.map +0 -1
  295. package/es/types/Interface/api/dashboard/ReadGescom.d.ts +0 -22
  296. package/es/types/Interface/api/dashboard/ReadGescom.d.ts.map +0 -1
  297. package/es/types/Interface/api/dashboard/ReadGescom.js +0 -9
  298. package/es/types/Interface/api/dashboard/ReadGescom.js.map +0 -1
  299. package/js/api/resources/commercialDocument.js.map +0 -1
  300. package/js/types/Interface/api/dashboard/QueryGescom.js.map +0 -1
  301. package/js/types/Interface/api/dashboard/ReadGescom.js +0 -22
  302. package/js/types/Interface/api/dashboard/ReadGescom.js.map +0 -1
  303. package/ts/types/Interface/api/dashboard/QueryGescom.ts +0 -18
  304. package/ts/types/Interface/api/dashboard/ReadGescom.ts +0 -24
@@ -4,30 +4,35 @@ export const RoleDetail = {
4
4
  name: 'Client',
5
5
  colorPrimary: '#8765D0',
6
6
  colorSecondary: '#DED7F6',
7
+ subRole: false,
7
8
  },
8
9
  ADMIN: {
9
10
  id: 2,
10
11
  name: 'Admin',
11
12
  colorPrimary: '#8765D0',
12
13
  colorSecondary: '#DED7F6',
14
+ subRole: false,
13
15
  },
14
16
  FRONT_OFFICE: {
15
17
  id: 3,
16
18
  name: 'Front Office',
17
19
  colorPrimary: '#8765D0',
18
20
  colorSecondary: '#DED7F6',
21
+ subRole: false,
19
22
  },
20
23
  COMMERCIAL: {
21
24
  id: 9,
22
25
  name: 'Commercial',
23
26
  colorPrimary: '#8765D0',
24
27
  colorSecondary: '#DED7F6',
28
+ subRole: false,
25
29
  },
26
30
  CUSTOMER_SUCCESS: {
27
31
  id: 10,
28
32
  name: 'Customer success',
29
33
  colorPrimary: '#5894EF',
30
34
  colorSecondary: '#DAEEFC',
35
+ subRole: false,
31
36
  handledInUserSocietyPermissionTable: false,
32
37
  },
33
38
  SOCIAL: {
@@ -35,182 +40,233 @@ export const RoleDetail = {
35
40
  name: 'Social',
36
41
  colorPrimary: '#8765D0',
37
42
  colorSecondary: '#DED7F6',
43
+ subRole: false,
38
44
  },
39
45
  JURIDIC: {
40
46
  id: 12,
41
47
  name: 'Juridique',
42
48
  colorPrimary: '#8765D0',
43
49
  colorSecondary: '#DED7F6',
44
- },
45
- CHIEF_ACCOUNTANT: {
46
- id: 13,
47
- name: 'Chef comptable',
48
- colorPrimary: '#8765D0',
49
- colorSecondary: '#DED7F6',
50
- },
51
- SUPERVISOR: {
52
- id: 14,
53
- name: 'Superviseur',
54
- colorPrimary: '#8765D0',
55
- colorSecondary: '#DED7F6',
56
- },
50
+ subRole: false,
51
+ },
52
+ // CHIEF_ACCOUNTANT: {
53
+ // id: 13,
54
+ // name: 'Chef comptable',
55
+ // colorPrimary: '#8765D0',
56
+ // colorSecondary: '#DED7F6',
57
+ // subRole: false,
58
+ // },
59
+ // SUPERVISOR: {
60
+ // id: 14,
61
+ // name: 'Superviseur',
62
+ // colorPrimary: '#8765D0',
63
+ // colorSecondary: '#DED7F6',
64
+ // subRole: false,
65
+ // },
57
66
  FRONT_OFFICE_EXPRESS: {
58
67
  id: 15,
59
68
  name: 'Front office express',
60
69
  colorPrimary: '#8765D0',
61
70
  colorSecondary: '#DED7F6',
71
+ subRole: false,
62
72
  },
63
73
  SUPER_ADMIN: {
64
74
  id: 16,
65
75
  name: 'Super admin',
66
76
  colorPrimary: '#8765D0',
67
77
  colorSecondary: '#DED7F6',
78
+ subRole: false,
68
79
  },
69
80
  EXPERT_SUB_CONTRACTOR: {
70
81
  id: 17,
71
82
  name: 'Expert sous-traitant',
72
83
  colorPrimary: '#B5D33C',
73
84
  colorSecondary: '#EEF4C3',
85
+ subRole: false,
74
86
  },
75
87
  MAINTAINER: {
76
88
  id: 18,
77
89
  name: 'Admin partenaire',
78
90
  colorPrimary: '#8765D0',
79
91
  colorSecondary: '#DED7F6',
92
+ subRole: false,
80
93
  },
81
94
  MANAGER: {
82
95
  id: 19,
83
96
  name: 'Manager',
84
97
  colorPrimary: '#8765D0',
85
98
  colorSecondary: '#DED7F6',
99
+ subRole: false,
86
100
  },
87
101
  EXPERT_ACCOUNTANT: {
88
102
  id: 20,
89
103
  name: 'Expert-comptable',
90
104
  colorPrimary: '#B5D33C',
91
105
  colorSecondary: '#EEF4C3',
106
+ subRole: false,
92
107
  handledInUserSocietyPermissionTable: false,
93
108
  },
94
- MFA_PENDING: {
95
- id: 21,
96
- name: 'Attente MFA',
97
- colorPrimary: '#8765D0',
98
- colorSecondary: '#DED7F6',
99
- },
100
- VAT: {
101
- id: 22,
102
- name: 'VAT',
103
- colorPrimary: '#8765D0',
104
- colorSecondary: '#DED7F6',
105
- },
109
+ // MFA_PENDING: {
110
+ // id: 21,
111
+ // name: 'Attente MFA',
112
+ // colorPrimary: '#8765D0',
113
+ // colorSecondary: '#DED7F6',
114
+ // subRole: false,
115
+ // },
116
+ // VAT: {
117
+ // id: 22,
118
+ // name: 'VAT',
119
+ // colorPrimary: '#8765D0',
120
+ // colorSecondary: '#DED7F6',
121
+ // subRole: false,
122
+ // },
106
123
  CANDIDAT: {
107
124
  id: 24,
108
125
  name: 'Candidat',
109
126
  colorPrimary: '#8765D0',
110
127
  colorSecondary: '#DED7F6',
128
+ subRole: false,
111
129
  },
112
130
  DEVELOPER: {
113
131
  id: 25,
114
132
  name: 'Développeur',
115
133
  colorPrimary: '#8765D0',
116
134
  colorSecondary: '#DED7F6',
135
+ subRole: false,
117
136
  },
118
137
  API: {
119
138
  id: 26,
120
139
  name: 'API',
121
140
  colorPrimary: '#8765D0',
122
141
  colorSecondary: '#DED7F6',
123
- },
124
- BACK_OFFICE: {
125
- id: 27,
126
- name: 'Back office',
127
- colorPrimary: '#8765D0',
128
- colorSecondary: '#DED7F6',
129
- },
130
- BACK_OFFICE_EXPRESS: {
131
- id: 28,
132
- name: 'Back office express',
133
- colorPrimary: '#8765D0',
134
- colorSecondary: '#DED7F6',
135
- },
136
- BACK_MANAGER: {
137
- id: 30,
138
- name: 'Manager back',
139
- colorPrimary: '#8765D0',
140
- colorSecondary: '#DED7F6',
141
- handledInUserSocietyPermissionTable: false,
142
- },
143
- FRONT_MANAGER: {
144
- id: 31,
145
- name: 'Manager front',
146
- colorPrimary: '#8765D0',
147
- colorSecondary: '#DED7F6',
148
- },
149
- CUSTOMER_SUCCESS_MANAGER: {
150
- id: 32,
151
- name: 'Customer success manager',
152
- colorPrimary: '#5894EF',
153
- colorSecondary: '#DAEEFC',
154
- handledInUserSocietyPermissionTable: false,
155
- },
156
- COMMERCIAL_MANAGER: {
157
- id: 33,
158
- name: 'Manager commercial',
159
- colorPrimary: '#8765D0',
160
- colorSecondary: '#DED7F6',
161
- },
142
+ subRole: false,
143
+ },
144
+ // BACK_OFFICE: {
145
+ // id: 27,
146
+ // name: 'Back office',
147
+ // colorPrimary: '#8765D0',
148
+ // colorSecondary: '#DED7F6',
149
+ // subRole: false,
150
+ // },
151
+ // BACK_OFFICE_EXPRESS: {
152
+ // id: 28,
153
+ // name: 'Back office express',
154
+ // colorPrimary: '#8765D0',
155
+ // colorSecondary: '#DED7F6',
156
+ // subRole: false,
157
+ // },
158
+ // BACK_MANAGER: {
159
+ // id: 30,
160
+ // name: 'Manager back',
161
+ // colorPrimary: '#8765D0',
162
+ // colorSecondary: '#DED7F6',
163
+ // subRole: false,
164
+ // handledInUserSocietyPermissionTable: false,
165
+ // },
166
+ // FRONT_MANAGER: {
167
+ // id: 31,
168
+ // name: 'Manager front',
169
+ // colorPrimary: '#8765D0',
170
+ // colorSecondary: '#DED7F6',
171
+ // subRole: false,
172
+ // },
173
+ // CUSTOMER_SUCCESS_MANAGER: {
174
+ // id: 32,
175
+ // name: 'Customer success manager',
176
+ // colorPrimary: '#5894EF',
177
+ // colorSecondary: '#DAEEFC',
178
+ // subRole: false,
179
+ // handledInUserSocietyPermissionTable: false,
180
+ // },
181
+ // COMMERCIAL_MANAGER: {
182
+ // id: 33,
183
+ // name: 'Manager commercial',
184
+ // colorPrimary: '#8765D0',
185
+ // colorSecondary: '#DED7F6',
186
+ // subRole: false,
187
+ // },
162
188
  FACTURATION: {
163
189
  id: 34,
164
190
  name: 'Facturation',
165
191
  colorPrimary: '#8765D0',
166
192
  colorSecondary: '#DED7F6',
193
+ subRole: false,
167
194
  },
168
195
  HUMAN_RESSOURCES: {
169
196
  id: 35,
170
197
  name: 'Ressources humaines',
171
198
  colorPrimary: '#8765D0',
172
199
  colorSecondary: '#DED7F6',
200
+ subRole: false,
173
201
  },
174
202
  PARTNERED_ACCOUNTANT: {
175
203
  id: 36,
176
204
  name: 'Comptable partenaire',
177
205
  colorPrimary: '#8765D0',
178
206
  colorSecondary: '#DED7F6',
207
+ subRole: false,
179
208
  },
180
209
  FORECAST_MANAGER: {
181
210
  id: 38,
182
211
  name: 'Gestionnaire Prévisionnels',
183
212
  colorPrimary: '#8765D0',
184
213
  colorSecondary: '#DED7F6',
214
+ subRole: false,
185
215
  },
186
216
  TERMINATION_MANAGER: {
187
217
  id: 39,
188
218
  name: 'Gestionnaire Résiliations',
189
219
  colorPrimary: '#8765D0',
190
220
  colorSecondary: '#DED7F6',
221
+ subRole: false,
191
222
  },
192
223
  EXPRESS_MANAGER: {
193
224
  id: 40,
194
225
  name: 'Gestionnaire Express',
195
226
  colorPrimary: '#8765D0',
196
227
  colorSecondary: '#DED7F6',
228
+ subRole: false,
197
229
  },
198
230
  CONFLICT_MANAGER: {
199
231
  id: 41,
200
232
  name: 'Gestionnaire Conflits',
201
233
  colorPrimary: '#8765D0',
202
234
  colorSecondary: '#DED7F6',
235
+ subRole: false,
203
236
  },
204
237
  ATTESTATION_MANAGER: {
205
238
  id: 42,
206
239
  name: 'Gestionnaire Attestations',
207
240
  colorPrimary: '#8765D0',
208
241
  colorSecondary: '#DED7F6',
242
+ subRole: false,
209
243
  },
210
244
  JURIDICAL_SUPPORT: {
211
245
  id: 43,
212
246
  name: 'Support juridique',
213
247
  colorPrimary: '#8765D0',
214
248
  colorSecondary: '#DED7F6',
249
+ subRole: false,
250
+ },
251
+ INTERN: {
252
+ id: 44,
253
+ name: 'Stagiaire',
254
+ colorPrimary: '#FFF',
255
+ colorSecondary: '#FFF',
256
+ subRole: true,
257
+ },
258
+ ALTERNATE: {
259
+ id: 45,
260
+ name: 'Alternant',
261
+ colorPrimary: '#FFF',
262
+ colorSecondary: '#FFF',
263
+ subRole: true,
264
+ },
265
+ DIRECTOR: {
266
+ id: 46,
267
+ name: 'Directeur',
268
+ colorPrimary: '#FFF',
269
+ colorSecondary: '#FFF',
270
+ subRole: true,
215
271
  },
216
272
  };
@@ -24,6 +24,17 @@ export enum StateTask {
24
24
  REFUSED = 4,
25
25
  }
26
26
 
27
+ export enum RoleAvailableForTask {
28
+ SOCIAL = Role.SOCIAL,
29
+ FACTURATION = Role.FACTURATION,
30
+ JURIDIC = Role.JURIDIC,
31
+ CUSTOMER_SUCCESS = Role.CUSTOMER_SUCCESS,
32
+ FRONT_OFFICE = Role.FRONT_OFFICE,
33
+ COMMERCIAL = Role.COMMERCIAL,
34
+ // BACK_MANAGER = Role.BACK_MANAGER,
35
+ EXPERT_ACCOUNTANT = Role.EXPERT_ACCOUNTANT,
36
+ }
37
+
27
38
  export const TaskResponseType = {
28
39
  INTERN: {
29
40
  id: 1,
@@ -131,7 +142,7 @@ export const TaskResponseType = {
131
142
  {
132
143
  id: 10,
133
144
  label: 'Préparation d\'un bilan',
134
- role: Role.BACK_MANAGER,
145
+ role: Role.MANAGER,
135
146
  deadline: Deadline,
136
147
  isForWholeRole: false,
137
148
  backToClient: false,
@@ -139,6 +150,17 @@ export const TaskResponseType = {
139
150
  responseType: null,
140
151
  description: 'Controle de la DADS.',
141
152
  },
153
+ {
154
+ id: 11,
155
+ label: 'Comptable express',
156
+ role: Role.FRONT_OFFICE_EXPRESS,
157
+ deadline: Deadline,
158
+ isForWholeRole: false,
159
+ backToClient: false,
160
+ goToCalendar: false,
161
+ responseType: null,
162
+ description: 'Est-ce que nous pouvons réaliser le bilan 2020 de ce client ?',
163
+ },
142
164
  ],
143
165
  },
144
166
  EXTERN: {
@@ -258,7 +280,7 @@ export const TaskResponseType = {
258
280
  {
259
281
  id: 14,
260
282
  label: 'Litige dossier',
261
- role: Role.BACK_MANAGER,
283
+ role: Role.MANAGER,
262
284
  deadline: Deadline,
263
285
  isForWholeRole: false,
264
286
  backToClient: true,
@@ -266,6 +288,17 @@ export const TaskResponseType = {
266
288
  responseType: ResponseType.MAIL,
267
289
  description: 'Le client veut avoir une explication de bilan par le responsable comptable',
268
290
  },
291
+ {
292
+ id: 15,
293
+ label: 'Comptable express',
294
+ role: Role.FRONT_OFFICE_EXPRESS,
295
+ deadline: Deadline,
296
+ isForWholeRole: false,
297
+ backToClient: true,
298
+ goToCalendar: false,
299
+ responseType: ResponseType.MAIL,
300
+ description: 'Bilan express à envoyer au SIE.',
301
+ },
269
302
  ],
270
303
 
271
304
  },
@@ -5,25 +5,25 @@ export const TimeCounterType = {
5
5
  id: 1,
6
6
  label: 'OnBoarding',
7
7
  aberrantTime: 60,
8
- limitedRoles: [Role.FRONT_OFFICE, Role.BACK_OFFICE],
8
+ limitedRoles: [Role.FRONT_OFFICE],
9
9
  },
10
10
  VAT: {
11
11
  id: 2,
12
12
  label: 'TVA',
13
13
  aberrantTime: 60,
14
- limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE, Role.BACK_OFFICE],
14
+ limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
15
15
  },
16
16
  REVISION: {
17
17
  id: 3,
18
18
  label: 'Révision',
19
19
  aberrantTime: 120,
20
- limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE, Role.BACK_OFFICE],
20
+ limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
21
21
  },
22
22
  FOLDER_REVIEW: {
23
23
  id: 4,
24
24
  label: 'Revue dossier',
25
25
  aberrantTime: 60,
26
- limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE, Role.BACK_OFFICE],
26
+ limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
27
27
  },
28
28
  REPORTING: {
29
29
  id: 5,
@@ -65,7 +65,7 @@ export const TimeCounterType = {
65
65
  id: 11,
66
66
  label: 'Prévisionnel',
67
67
  aberrantTime: null,
68
- limitedRoles: [Role.FRONT_OFFICE, Role.BACK_OFFICE],
68
+ limitedRoles: [Role.FRONT_OFFICE],
69
69
  },
70
70
  CERTIFICATE: {
71
71
  id: 12,
@@ -77,7 +77,7 @@ export const TimeCounterType = {
77
77
  id: 13,
78
78
  label: 'Mission complémentaire',
79
79
  aberrantTime: null,
80
- limitedRoles: [Role.FRONT_OFFICE, Role.BACK_OFFICE],
80
+ limitedRoles: [Role.FRONT_OFFICE],
81
81
  },
82
82
  ORGANISATION: {
83
83
  id: 14,
@@ -119,7 +119,7 @@ export const TimeCounterType = {
119
119
  id: 20,
120
120
  label: 'Bilan',
121
121
  aberrantTime: 120,
122
- limitedRoles: [Role.FRONT_OFFICE, Role.BACK_OFFICE, Role.FRONT_MANAGER, Role.BACK_MANAGER, Role.EXPERT_ACCOUNTANT],
122
+ limitedRoles: [Role.FRONT_OFFICE, Role.EXPERT_ACCOUNTANT],
123
123
  },
124
124
  PAYSLIP: {
125
125
  id: 21,
@@ -1,10 +1,11 @@
1
1
  import {
2
- IsArray, IsBoolean, IsDateString, IsNumber, IsOptional, IsString, Min,
2
+ IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,
3
3
  } from 'class-validator';
4
4
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
5
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
6
  import { FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';
7
7
  import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';
8
+ import { RecurrenceType } from '../../../Enum/RecurrenceType';
8
9
  import { IProductInvoice } from '../../models/IProductInvoice';
9
10
  import { ISocietyGescom } from '../../models/ISocietyGescom';
10
11
  import { IThirdParty } from '../../models/IThirdParty';
@@ -222,35 +223,24 @@ export class CreateCommercialMail {
222
223
  }
223
224
 
224
225
  export class CommercialDocumentInputs {
225
- @ApiPropertyOptional()
226
- @IsString()
227
- @IsOptional()
228
- legalForm?: string;
226
+ @ApiProperty()
227
+ legalForm: string | null;
229
228
 
230
- @ApiPropertyOptional()
229
+ @ApiProperty()
231
230
  @IsNumber()
232
- @IsOptional()
233
231
  capital?: number;
234
232
 
235
- @ApiPropertyOptional()
236
- @IsString()
237
- @IsOptional()
238
- siren?: string;
233
+ @ApiProperty()
234
+ siren: string | null;
239
235
 
240
- @ApiPropertyOptional()
241
- @IsString()
242
- @IsOptional()
243
- rcs?: string;
236
+ @ApiProperty()
237
+ rcs: string | null;
244
238
 
245
- @ApiPropertyOptional()
246
- @IsString()
247
- @IsOptional()
248
- vatCode?: string;
239
+ @ApiProperty()
240
+ vatCode: string | null;
249
241
 
250
- @ApiPropertyOptional()
251
- @IsString()
252
- @IsOptional()
253
- nafCode?: string;
242
+ @ApiProperty()
243
+ nafCode: string | null;
254
244
 
255
245
  @ApiProperty()
256
246
  @IsString()
@@ -267,14 +257,11 @@ export class CommercialDocumentInputs {
267
257
  @IsDateString()
268
258
  dueDate: string; //
269
259
 
270
- @ApiPropertyOptional({ description: 'Date d\'expiration pour la facture d\'acompte' })
271
- @IsDateString()
272
- @IsOptional()
273
- expirationDate: string;
260
+ @ApiProperty({ description: 'Date d\'expiration pour la facture d\'acompte' })
261
+ expirationDate: string | null;
274
262
 
275
263
  @ApiProperty({ description: 'Conditions de réglement' })
276
- @IsString()
277
- termsOfPayment: string;
264
+ termsOfPayment: string | null;
278
265
 
279
266
  @ApiProperty()
280
267
  @IsArray()
@@ -284,88 +271,62 @@ export class CommercialDocumentInputs {
284
271
  @IsString()
285
272
  discount: string; //
286
273
 
287
- @ApiPropertyOptional()
288
- @IsOptional()
289
- @IsString()
290
- comment?: string; //
274
+ @ApiProperty()
275
+ comment: string | null; //
291
276
 
292
- @ApiPropertyOptional({ description: 'Pénalité de retard' })
293
- @IsOptional()
294
- @IsString()
295
- penalties?: string; //
277
+ @ApiProperty({ description: 'Pénalité de retard' })
278
+ penalties: string | null; //
296
279
 
297
280
  @ApiProperty({ description: 'Remise globale' })
298
- @IsOptional()
299
281
  @IsNumber()
300
282
  generalDiscount2: number; //
301
283
 
302
- @ApiPropertyOptional({ description: 'Indemnité forfaitaire' })
303
- @IsOptional()
304
- @IsString()
305
- compensation?: string; //
284
+ @ApiProperty({ description: 'Indemnité forfaitaire' })
285
+ compensation: string | null; //
306
286
 
307
- @ApiPropertyOptional()
308
- @IsOptional()
309
- @IsString()
310
- vatMention?: string; //
287
+ @ApiProperty()
288
+ vatMention: string | null; //
311
289
 
312
290
  @ApiProperty()
313
291
  @IsBoolean()
314
292
  @ToBoolean()
315
293
  disableVat: boolean;
316
294
 
317
- @ApiPropertyOptional()
318
- @IsString()
319
- @IsOptional()
320
- title?: string; //
295
+ @ApiProperty()
296
+ title: string | null; //
321
297
 
322
- @ApiPropertyOptional({ description: 'Commercial name of seller' })
298
+ @ApiProperty({ description: 'Commercial name of seller' })
323
299
  @IsString()
324
- @IsOptional()
325
300
  name: string;
326
301
 
327
- @ApiPropertyOptional({ description: 'Commercial number address of seller' })
302
+ @ApiProperty({ description: 'Commercial number address of seller' })
328
303
  @IsString()
329
- @IsOptional()
330
- number?: string;
304
+ number?: string | null;
331
305
 
332
- @ApiPropertyOptional({ description: 'Commercial street address of seller' })
333
- @IsString()
334
- @IsOptional()
335
- street?: string;
306
+ @ApiProperty({ description: 'Commercial street address of seller' })
307
+ street: string | null;
336
308
 
337
- @ApiPropertyOptional({ description: 'Commercial zip code address of seller' })
338
- @IsString()
339
- @IsOptional()
340
- zipCode?: string;
309
+ @ApiProperty({ description: 'Commercial zip code address of seller' })
310
+ zipCode: string | null;
341
311
 
342
- @ApiPropertyOptional({ description: 'Commercial city address of seller' })
343
- @IsString()
344
- @IsOptional()
345
- city?: string;
312
+ @ApiProperty({ description: 'Commercial city address of seller' })
313
+ city: string | null;
346
314
 
347
- @ApiPropertyOptional()
348
- @IsOptional()
315
+ @ApiProperty()
349
316
  settings?: ISocietyGescom;
350
317
 
351
- @ApiPropertyOptional()
352
- @IsOptional()
353
- @IsString()
354
- cgv?: string;
318
+ @ApiProperty()
319
+ cgv: string | null;
355
320
 
356
- @ApiPropertyOptional()
357
- @IsOptional()
358
- @IsString()
359
- logoUrl?: string;
321
+ @ApiProperty()
322
+ logoUrl: string | null;
360
323
 
361
- @ApiPropertyOptional()
362
- @IsOptional()
324
+ @ApiProperty()
363
325
  @IsBoolean()
364
326
  @ToBoolean()
365
327
  isStripeAllowed?: boolean;
366
328
 
367
- @ApiPropertyOptional()
368
- @IsOptional()
329
+ @ApiProperty()
369
330
  @IsBoolean()
370
331
  @ToBoolean()
371
332
  isDraft?: boolean;
@@ -383,6 +344,7 @@ export class CreatePreSaleDocument extends CommercialDocumentInputs {
383
344
  export class CreateInvoiceDocument extends CommercialDocumentInputs {
384
345
  paymentLink?: string;
385
346
  deposit?: number;
347
+ fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture
386
348
  fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture
387
349
  assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes
388
350
  }
@@ -422,4 +384,23 @@ export class CreateReminder {
422
384
  @IsString()
423
385
  @IsOptional()
424
386
  message?: string;
387
+ }
388
+
389
+ export class CreateRecurrence {
390
+ @ApiProperty()
391
+ @IsEnum(RecurrenceType)
392
+ type: number;
393
+
394
+ @ApiProperty()
395
+ @IsDateString()
396
+ startDate: string;
397
+
398
+ @ApiProperty()
399
+ @IsDateString()
400
+ endDate: string;
401
+
402
+ @ApiProperty()
403
+ @ToBoolean()
404
+ @IsBoolean()
405
+ isActive: boolean;
425
406
  }