@silexpert/core 1.0.14 → 1.0.19

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 (294) hide show
  1. package/es/api/resources/CommercialDocument.d.ts +2 -1
  2. package/es/api/resources/CommercialDocument.d.ts.map +1 -1
  3. package/es/api/resources/CommercialDocument.js +3 -0
  4. package/es/api/resources/CommercialDocument.js.map +1 -1
  5. package/es/api/resources/CommercialSetting.d.ts +3 -1
  6. package/es/api/resources/CommercialSetting.d.ts.map +1 -1
  7. package/es/api/resources/CommercialSetting.js +6 -0
  8. package/es/api/resources/CommercialSetting.js.map +1 -1
  9. package/es/api/resources/Dashboard.d.ts +1 -2
  10. package/es/api/resources/Dashboard.d.ts.map +1 -1
  11. package/es/api/resources/Dashboard.js +0 -3
  12. package/es/api/resources/Dashboard.js.map +1 -1
  13. package/es/api/resources/Mail.js +2 -2
  14. package/es/api/resources/Mail.js.map +1 -1
  15. package/es/api/resources/Qonto.d.ts +6 -1
  16. package/es/api/resources/Qonto.d.ts.map +1 -1
  17. package/es/api/resources/Qonto.js +15 -0
  18. package/es/api/resources/Qonto.js.map +1 -1
  19. package/es/api/resources/Stripe.d.ts +6 -0
  20. package/es/api/resources/Stripe.d.ts.map +1 -0
  21. package/es/api/resources/Stripe.js +7 -0
  22. package/es/api/resources/Stripe.js.map +1 -0
  23. package/es/api/resources/User.d.ts +2 -2
  24. package/es/api/resources/User.d.ts.map +1 -1
  25. package/es/api/resources/User.js +2 -11
  26. package/es/api/resources/User.js.map +1 -1
  27. package/es/api/resources.d.ts +2 -0
  28. package/es/api/resources.d.ts.map +1 -1
  29. package/es/api/resources.js +2 -0
  30. package/es/api/resources.js.map +1 -1
  31. package/es/types/Enum/BrandClementine.d.ts +3 -1
  32. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  33. package/es/types/Enum/BrandClementine.js +3 -0
  34. package/es/types/Enum/BrandClementine.js.map +1 -1
  35. package/es/types/Enum/CommercialManagement.d.ts +14 -2
  36. package/es/types/Enum/CommercialManagement.d.ts.map +1 -1
  37. package/es/types/Enum/CommercialManagement.js +24 -1
  38. package/es/types/Enum/CommercialManagement.js.map +1 -1
  39. package/es/types/Enum/Role.d.ts +6 -11
  40. package/es/types/Enum/Role.d.ts.map +1 -1
  41. package/es/types/Enum/Role.js +15 -10
  42. package/es/types/Enum/Role.js.map +1 -1
  43. package/es/types/Enum/RoleDetail.d.ts +40 -56
  44. package/es/types/Enum/RoleDetail.d.ts.map +1 -1
  45. package/es/types/Enum/RoleDetail.js +120 -64
  46. package/es/types/Enum/RoleDetail.js.map +1 -1
  47. package/es/types/Enum/Rules.d.ts +2 -0
  48. package/es/types/Enum/Rules.d.ts.map +1 -0
  49. package/es/types/Enum/Rules.js +19 -0
  50. package/es/types/Enum/Rules.js.map +1 -0
  51. package/es/types/Enum/TaskResponseType.d.ts +0 -1
  52. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  53. package/es/types/Enum/TaskResponseType.js +25 -3
  54. package/es/types/Enum/TaskResponseType.js.map +1 -1
  55. package/es/types/Enum/TimeCounterType.js +7 -7
  56. package/es/types/Enum/TimeCounterType.js.map +1 -1
  57. package/es/types/Interface/api/commercialManagement/Create.d.ts +5 -1
  58. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  59. package/es/types/Interface/api/commercialManagement/Create.js +23 -1
  60. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
  61. package/es/types/Interface/api/commercialManagement/Query.d.ts +6 -0
  62. package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  63. package/es/types/Interface/api/commercialManagement/Query.js +29 -0
  64. package/es/types/Interface/api/commercialManagement/Query.js.map +1 -1
  65. package/es/types/Interface/api/commercialManagement/Read.d.ts +20 -0
  66. package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  67. package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
  68. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -1
  69. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
  70. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
  71. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  72. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -1
  73. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  74. package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
  75. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  76. package/es/types/Interface/api/qonto/CreateImportation.d.ts +5 -0
  77. package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +1 -0
  78. package/es/types/Interface/api/{dashboard/QueryGescom.js → qonto/CreateImportation.js} +12 -19
  79. package/es/types/Interface/api/qonto/CreateImportation.js.map +1 -0
  80. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +5 -0
  81. package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +1 -0
  82. package/es/types/Interface/api/qonto/CreateQontoConnection.js +24 -0
  83. package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
  84. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +4 -0
  85. package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +1 -0
  86. package/es/types/Interface/api/qonto/GetConnectionInformation.js +19 -0
  87. package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
  88. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +5 -0
  89. package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +1 -0
  90. package/es/types/Interface/api/qonto/ProcessBankAccount.js +24 -0
  91. package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
  92. package/es/types/Interface/api/qonto/Query.d.ts +77 -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/qonto/ReadCreateConnection.d.ts +6 -0
  97. package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +1 -0
  98. package/es/types/Interface/api/qonto/ReadCreateConnection.js +2 -0
  99. package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
  100. package/es/types/Interface/api/qonto/UpdateConnection.d.ts +4 -0
  101. package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +1 -0
  102. package/es/types/Interface/api/qonto/UpdateConnection.js +19 -0
  103. package/es/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
  104. package/es/types/Interface/api/stripe/Create.d.ts +4 -0
  105. package/es/types/Interface/api/stripe/Create.d.ts.map +1 -0
  106. package/es/types/Interface/api/stripe/Create.js +19 -0
  107. package/es/types/Interface/api/stripe/Create.js.map +1 -0
  108. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +3 -0
  109. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
  110. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.js +18 -1
  111. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
  112. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +3 -0
  113. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
  114. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +18 -1
  115. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
  116. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
  117. package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
  118. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +10 -1
  119. package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  120. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +1 -0
  121. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
  122. package/es/types/Interface/api/user/QueryGetAllCollaborators.js +11 -1
  123. package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  124. package/es/types/Interface/models/IApiError.d.ts +2 -0
  125. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  126. package/es/types/Interface/models/IApiError.js +3 -0
  127. package/es/types/Interface/models/IApiError.js.map +1 -1
  128. package/es/types/Interface/models/IEstimateInvoice.d.ts +5 -2
  129. package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  130. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  131. package/es/types/Interface/models/IPrestationHistory.d.ts +13 -0
  132. package/es/types/Interface/models/IPrestationHistory.d.ts.map +1 -0
  133. package/es/types/Interface/models/IPrestationHistory.js +2 -0
  134. package/es/types/Interface/models/IPrestationHistory.js.map +1 -0
  135. package/es/types/Interface/models/ISocietyGescom.d.ts +3 -1
  136. package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  137. package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
  138. package/es/types/Interface/models/IThirdParty.d.ts +3 -0
  139. package/es/types/Interface/models/IThirdParty.d.ts.map +1 -1
  140. package/es/types/Interface/models/IThirdParty.js.map +1 -1
  141. package/es/types/index.d.ts +10 -2
  142. package/es/types/index.d.ts.map +1 -1
  143. package/es/types/index.js +10 -2
  144. package/es/types/index.js.map +1 -1
  145. package/es/utils/commercialManagement/document.d.ts.map +1 -1
  146. package/es/utils/commercialManagement/document.js +8 -8
  147. package/es/utils/commercialManagement/document.js.map +1 -1
  148. package/es/utils/commercialManagement/templates/body.d.ts.map +1 -1
  149. package/es/utils/commercialManagement/templates/body.js +3 -1
  150. package/es/utils/commercialManagement/templates/body.js.map +1 -1
  151. package/es/utils/commercialManagement/templates/common.d.ts.map +1 -1
  152. package/es/utils/commercialManagement/templates/common.js +20 -1
  153. package/es/utils/commercialManagement/templates/common.js.map +1 -1
  154. package/es/utils/task.d.ts +1 -2
  155. package/es/utils/task.d.ts.map +1 -1
  156. package/es/utils/task.js +17 -20
  157. package/es/utils/task.js.map +1 -1
  158. package/es/utils/webmail.d.ts.map +1 -1
  159. package/es/utils/webmail.js +1 -4
  160. package/es/utils/webmail.js.map +1 -1
  161. package/js/api/resources/CommercialDocument.js +6 -0
  162. package/js/api/resources/CommercialDocument.js.map +1 -1
  163. package/js/api/resources/CommercialSetting.js +8 -0
  164. package/js/api/resources/CommercialSetting.js.map +1 -1
  165. package/js/api/resources/Dashboard.js +0 -6
  166. package/js/api/resources/Dashboard.js.map +1 -1
  167. package/js/api/resources/Mail.js +2 -2
  168. package/js/api/resources/Mail.js.map +1 -1
  169. package/js/api/resources/Qonto.js +22 -0
  170. package/js/api/resources/Qonto.js.map +1 -1
  171. package/js/api/resources/Stripe.js +20 -0
  172. package/js/api/resources/Stripe.js.map +1 -0
  173. package/js/api/resources/User.js +5 -3
  174. package/js/api/resources/User.js.map +1 -1
  175. package/js/api/resources.js +4 -1
  176. package/js/api/resources.js.map +1 -1
  177. package/js/types/Enum/BrandClementine.js +3 -0
  178. package/js/types/Enum/BrandClementine.js.map +1 -1
  179. package/js/types/Enum/CommercialManagement.js +22 -1
  180. package/js/types/Enum/CommercialManagement.js.map +1 -1
  181. package/js/types/Enum/Role.js +18 -13
  182. package/js/types/Enum/Role.js.map +1 -1
  183. package/js/types/Enum/RoleDetail.js +142 -86
  184. package/js/types/Enum/RoleDetail.js.map +1 -1
  185. package/js/types/Enum/Rules.js +7 -0
  186. package/js/types/Enum/Rules.js.map +1 -0
  187. package/js/types/Enum/TaskResponseType.js +24 -4
  188. package/js/types/Enum/TaskResponseType.js.map +1 -1
  189. package/js/types/Enum/TimeCounterType.js +7 -7
  190. package/js/types/Enum/TimeCounterType.js.map +1 -1
  191. package/js/types/Interface/api/commercialManagement/Create.js +11 -1
  192. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
  193. package/js/types/Interface/api/commercialManagement/Query.js +15 -3
  194. package/js/types/Interface/api/commercialManagement/Query.js.map +1 -1
  195. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
  196. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  197. package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
  198. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  199. package/js/types/Interface/api/{dashboard/QueryGescom.js → qonto/CreateImportation.js} +8 -12
  200. package/js/types/Interface/api/qonto/CreateImportation.js.map +1 -0
  201. package/js/types/Interface/api/qonto/CreateQontoConnection.js +31 -0
  202. package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
  203. package/js/types/Interface/api/qonto/GetConnectionInformation.js +29 -0
  204. package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
  205. package/js/types/Interface/api/qonto/ProcessBankAccount.js +31 -0
  206. package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
  207. package/js/types/Interface/api/qonto/Query.js +6 -0
  208. package/js/types/Interface/api/qonto/Query.js.map +1 -0
  209. package/js/types/Interface/api/qonto/ReadCreateConnection.js +6 -0
  210. package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
  211. package/js/types/Interface/api/qonto/UpdateConnection.js +29 -0
  212. package/js/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
  213. package/js/types/Interface/api/stripe/Create.js +29 -0
  214. package/js/types/Interface/api/stripe/Create.js.map +1 -0
  215. package/js/types/Interface/api/thirdParty/CreateThirdPartyForm.js +6 -0
  216. package/js/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
  217. package/js/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +6 -0
  218. package/js/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
  219. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
  220. package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  221. package/js/types/Interface/api/user/QueryGetAllCollaborators.js +8 -0
  222. package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  223. package/js/types/Interface/models/IApiError.js +5 -2
  224. package/js/types/Interface/models/IApiError.js.map +1 -1
  225. package/js/types/Interface/models/IPrestationHistory.js +6 -0
  226. package/js/types/Interface/models/IPrestationHistory.js.map +1 -0
  227. package/js/types/index.js +120 -24
  228. package/js/types/index.js.map +1 -1
  229. package/js/utils/commercialManagement/document.js +9 -7
  230. package/js/utils/commercialManagement/document.js.map +1 -1
  231. package/js/utils/commercialManagement/templates/body.js +3 -1
  232. package/js/utils/commercialManagement/templates/body.js.map +1 -1
  233. package/js/utils/commercialManagement/templates/common.js +20 -1
  234. package/js/utils/commercialManagement/templates/common.js.map +1 -1
  235. package/js/utils/task.js +17 -21
  236. package/js/utils/task.js.map +1 -1
  237. package/js/utils/webmail.js +1 -3
  238. package/js/utils/webmail.js.map +1 -1
  239. package/package.json +1 -1
  240. package/ts/api/resources/CommercialDocument.ts +6 -0
  241. package/ts/api/resources/CommercialSetting.ts +11 -1
  242. package/ts/api/resources/Dashboard.ts +0 -6
  243. package/ts/api/resources/Mail.ts +2 -2
  244. package/ts/api/resources/Qonto.ts +26 -4
  245. package/ts/api/resources/Stripe.ts +8 -0
  246. package/ts/api/resources/User.ts +3 -12
  247. package/ts/api/resources.ts +2 -0
  248. package/ts/types/Enum/BrandClementine.ts +3 -0
  249. package/ts/types/Enum/CommercialManagement.ts +25 -1
  250. package/ts/types/Enum/Role.ts +15 -10
  251. package/ts/types/Enum/RoleDetail.ts +120 -64
  252. package/ts/types/Enum/Rules.ts +18 -0
  253. package/ts/types/Enum/TaskResponseType.ts +25 -3
  254. package/ts/types/Enum/TimeCounterType.ts +7 -7
  255. package/ts/types/Interface/api/commercialManagement/Create.ts +19 -2
  256. package/ts/types/Interface/api/commercialManagement/Query.ts +25 -0
  257. package/ts/types/Interface/api/commercialManagement/Read.ts +20 -0
  258. package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -1
  259. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -1
  260. package/ts/types/Interface/api/qonto/CreateImportation.ts +14 -0
  261. package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +12 -0
  262. package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +8 -0
  263. package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +12 -0
  264. package/ts/types/Interface/api/qonto/Query.ts +80 -0
  265. package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +6 -0
  266. package/ts/types/Interface/api/qonto/UpdateConnection.ts +8 -0
  267. package/ts/types/Interface/api/stripe/Create.ts +8 -0
  268. package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +15 -1
  269. package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +15 -1
  270. package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +9 -0
  271. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +10 -1
  272. package/ts/types/Interface/models/IApiError.ts +4 -0
  273. package/ts/types/Interface/models/IEstimateInvoice.ts +5 -2
  274. package/ts/types/Interface/models/IPrestationHistory.ts +16 -0
  275. package/ts/types/Interface/models/ISocietyGescom.ts +3 -1
  276. package/ts/types/Interface/models/IThirdParty.ts +3 -0
  277. package/ts/types/index.ts +10 -2
  278. package/ts/utils/commercialManagement/document.ts +3 -1
  279. package/ts/utils/commercialManagement/templates/body.ts +3 -1
  280. package/ts/utils/commercialManagement/templates/common.ts +20 -1
  281. package/ts/utils/task.ts +17 -17
  282. package/ts/utils/webmail.ts +1 -3
  283. package/es/types/Interface/api/dashboard/QueryGescom.d.ts +0 -8
  284. package/es/types/Interface/api/dashboard/QueryGescom.d.ts.map +0 -1
  285. package/es/types/Interface/api/dashboard/QueryGescom.js.map +0 -1
  286. package/es/types/Interface/api/dashboard/ReadGescom.d.ts +0 -22
  287. package/es/types/Interface/api/dashboard/ReadGescom.d.ts.map +0 -1
  288. package/es/types/Interface/api/dashboard/ReadGescom.js +0 -9
  289. package/es/types/Interface/api/dashboard/ReadGescom.js.map +0 -1
  290. package/js/types/Interface/api/dashboard/QueryGescom.js.map +0 -1
  291. package/js/types/Interface/api/dashboard/ReadGescom.js +0 -22
  292. package/js/types/Interface/api/dashboard/ReadGescom.js.map +0 -1
  293. package/ts/types/Interface/api/dashboard/QueryGescom.ts +0 -18
  294. package/ts/types/Interface/api/dashboard/ReadGescom.ts +0 -24
@@ -21,5 +21,5 @@ export class QueryCountUnprocessedByUserMail {
21
21
  @IsOptional()
22
22
  @IsBoolean()
23
23
  @ToBoolean()
24
- isCountingManagerRoleMails?: boolean;
24
+ handlingManagerRoleMails?: boolean;
25
25
  }
@@ -88,7 +88,7 @@ export class QueryPaginatedMail {
88
88
  @IsOptional()
89
89
  @IsBoolean()
90
90
  @ToBoolean()
91
- displayManagerRoleMails?: boolean;
91
+ handlingManagerRoleMails?: boolean;
92
92
 
93
93
  @ApiPropertyOptional()
94
94
  @IsOptional()
@@ -0,0 +1,14 @@
1
+ import { IsDateString, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class CreateImportation {
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsDateString()
8
+ minDate?: string;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
12
+ @IsDateString()
13
+ maxDate?: string ;
14
+ }
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ import { IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class CreateStripeConnection {
5
+ @ApiProperty()
6
+ @IsString()
7
+ code: string;
8
+ }
@@ -1,4 +1,4 @@
1
- import { IsEnum } from 'class-validator';
1
+ import { IsEnum, IsOptional, IsString } from 'class-validator';
2
2
  import { ThirdPartyType } from '../../..';
3
3
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
4
4
 
@@ -63,4 +63,18 @@ export class CreateThirdPartyForm {
63
63
  @ApiProperty()
64
64
  @IsEnum(ThirdPartyType)
65
65
  idThirdPartyType: ThirdPartyType;
66
+
67
+ @ApiPropertyOptional()
68
+ @IsOptional()
69
+ @IsString()
70
+ deliveryAddress: string | null;
71
+
72
+ @ApiPropertyOptional()
73
+ @IsOptional()
74
+ @IsString()
75
+ deliveryCity: string | null;
76
+
77
+ @ApiPropertyOptional()
78
+ @IsOptional()
79
+ deliveryZipCode: string | null;
66
80
  }
@@ -1,4 +1,4 @@
1
- import { IsEnum, IsOptional } from 'class-validator';
1
+ import { IsEnum, IsOptional, IsString } from 'class-validator';
2
2
  import { ThirdPartyType } from '../../..';
3
3
  import { ApiPropertyOptional } from '../../../../utils';
4
4
 
@@ -83,4 +83,18 @@ export class UpdateThirdPartyForm {
83
83
  @IsOptional()
84
84
  @IsEnum(ThirdPartyType)
85
85
  idThirdPartyType?: ThirdPartyType;
86
+
87
+ @ApiPropertyOptional()
88
+ @IsOptional()
89
+ @IsString()
90
+ deliveryAddress: string | null;
91
+
92
+ @ApiPropertyOptional()
93
+ @IsOptional()
94
+ @IsString()
95
+ deliveryCity: string | null;
96
+
97
+ @ApiPropertyOptional()
98
+ @IsOptional()
99
+ deliveryZipCode: string | null;
86
100
  }
@@ -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
  }
@@ -19,6 +19,7 @@ export enum Code {
19
19
  notImplemented = 'not_implemented',
20
20
  unknown = 'unknown',
21
21
  formatNotAuthorized = 'format_not_authorized',
22
+ CONNECTION_ALREADY_EXIST = 'connection_already_exist',
22
23
 
23
24
  // Annotation Error
24
25
  failedCheckBalance = 'failed_check_balance',
@@ -143,6 +144,9 @@ export enum Code {
143
144
  bankAccountDesactivationFailed = 'bank_account_desactivation_failed',
144
145
  udpateTokenFailed = 'update_token_failed',
145
146
 
147
+ // qonto
148
+ CONNECTION_ALREADY_EXISTS = 'CONNECTION_ALREADY_EXISTS',
149
+
146
150
  // Accounts
147
151
  GENERIC_ACCOUNT_NOT_FOUND = 'GENERIC_ACCOUNT_NOT_FOUND',
148
152
 
@@ -1,5 +1,4 @@
1
1
  import { IProductInvoice } from './IProductInvoice';
2
- import { IEstimateInvoiceRepeat } from './IEstimateInvoiceRepeat';
3
2
  import { IPaymentExpectationCustomer } from './IPaymentExpectationCustomer';
4
3
  import { IThirdParty } from './IThirdParty';
5
4
  import { IFrequency } from './IFrequency';
@@ -8,6 +7,8 @@ import { ISociety } from './ISociety';
8
7
  import { IInvoiceReminder } from './IInvoiceReminder';
9
8
  import { IFile } from './IFile';
10
9
  import { IInvoiceRecurrence } from './IInvoiceRecurrence';
10
+ import { ReadEstimateInvoiceStatus } from '../api/commercialManagement/Read';
11
+ import { AccountingCategoryId } from '../../Enum/CommercialManagement';
11
12
 
12
13
  // estimatesInvoices
13
14
  export interface IEstimateInvoice {
@@ -39,6 +40,9 @@ export interface IEstimateInvoice {
39
40
  lastRelanceDate: Date | null;
40
41
  isRefused: boolean;
41
42
  isCanceled: boolean;
43
+ status?: ReadEstimateInvoiceStatus;
44
+ accountingCategory: AccountingCategoryId;
45
+ shouldPayTaxAfterDebit: boolean;
42
46
  idFile?: number | null;
43
47
  idRelatedInvoice: number | null;
44
48
  idTypeEstimateInvoice: number | number[];
@@ -59,7 +63,6 @@ export interface IEstimateInvoice {
59
63
  society?: ISociety;
60
64
  assetRelatedToThisEstimateInvoice?: IEstimateInvoice;
61
65
  estimateInvoiceForThisAsset?: IEstimateInvoice;
62
- estimateInvoiceEstimateInvoiceRepeat?: IEstimateInvoiceRepeat;
63
66
  estimateInvoiceForThisRepeat?: IEstimateInvoice;
64
67
  invoiceReminder?: IInvoiceReminder;
65
68
  relatedInvoice?: IEstimateInvoice;
@@ -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
+ }
@@ -1,4 +1,4 @@
1
- import { FontIds, LogoAlignment } from '../../Enum/CommercialManagement';
1
+ import { AccountingCategoryId, FontIds, LogoAlignment } from '../../Enum/CommercialManagement';
2
2
 
3
3
  // societyGescom
4
4
  export interface ISocietyGescom {
@@ -33,6 +33,8 @@ export interface ISocietyGescom {
33
33
  commercialName?: string | null;
34
34
  freeInvoiceText?: string | null;
35
35
  freeEstimateText?: string | null;
36
+ accountingCategory?: AccountingCategoryId | null;
37
+ shouldPayTaxAfterDebit?: boolean;
36
38
  logoAlignment?: LogoAlignment | null;
37
39
  isEdgingDisplayed?: boolean;
38
40
  edgingColor?: string;
@@ -27,6 +27,9 @@ export interface IThirdParty {
27
27
  idAccount?: number | null;
28
28
  idCountry?: number | null;
29
29
  idThirdPartyType: ThirdPartyType;
30
+ deliveryAddress?: string | null;
31
+ deliveryZipCode?: string | null;
32
+ deliveryCity?: string | null;
30
33
  createdAt?: Date;
31
34
  updatedAt?: Date;
32
35
  deletedAt?: Date | null;
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';
@@ -436,6 +437,7 @@ export * from './Enum/SocietyTypeEvent';
436
437
  export * from './Enum/Call';
437
438
  export * from './Enum/ConnectionError';
438
439
  export * from './Enum/RecurrenceType';
440
+ export * from './Enum/Rules';
439
441
 
440
442
  // Interfaces API
441
443
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
@@ -522,11 +524,9 @@ export * from './Interface/api/dashboard/QueryBalanceBankAccount';
522
524
  export * from './Interface/api/dashboard/QueryTopBuys';
523
525
  export * from './Interface/api/dashboard/QueryTopProviders';
524
526
  export * from './Interface/api/dashboard/ReadBalanceBankAccount';
525
- export * from './Interface/api/dashboard/QueryGescom';
526
527
  export * from './Interface/api/dashboard/QueryDeadline';
527
528
  export * from './Interface/api/dashboard/ReadTopBuys';
528
529
  export * from './Interface/api/dashboard/ReadTopProviders';
529
- export * from './Interface/api/dashboard/ReadGescom';
530
530
  export * from './Interface/api/dashboard/ReadDeadline';
531
531
  export * from './Interface/api/accountant/ReadAccountantBalance';
532
532
  export * from './Interface/api/quotes/QueryQuotesAccount';
@@ -774,6 +774,14 @@ export * from './Interface/api/connector/CreateConnector';
774
774
  export * from './Interface/api/connector/QueryConnector';
775
775
  export * from './Interface/api/connection/QueryConnectionState';
776
776
  export * from './Interface/api/connection/ReadConnectionState';
777
+ export * from './Interface/api/qonto/Query';
778
+ export * from './Interface/api/qonto/CreateImportation';
779
+ export * from './Interface/api/stripe/Create';
780
+ export * from './Interface/api/qonto/UpdateConnection';
781
+ export * from './Interface/api/qonto/CreateQontoConnection';
782
+ export * from './Interface/api/qonto/GetConnectionInformation';
783
+ export * from './Interface/api/qonto/ProcessBankAccount';
784
+ export * from './Interface/api/qonto/ReadCreateConnection';
777
785
 
778
786
  // Enums types
779
787
  export * from './Interface/enum/Util';
@@ -3,7 +3,7 @@ import {
3
3
  } from 'lodash';
4
4
  import * as dayjs from 'dayjs';
5
5
  import { ReadCommercialDocumentTemplate, ReadDocumentEditing } from '../../types/Interface/api/commercialManagement/Read';
6
- import { fontList, VatMarginCategyList } from '../../types/Enum/CommercialManagement';
6
+ import { AccountingCategoryList, fontList, VatMarginCategyList } from '../../types/Enum/CommercialManagement';
7
7
  import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';
8
8
  import { Vat } from '../../types/Enum/Vat';
9
9
  import { integerToFormattedAmountString } from '../amount';
@@ -46,6 +46,7 @@ export function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoic
46
46
  shouldDisplayDiscountColumn: !!products.find((p) => p.discount2 && p.discount2 > 0),
47
47
  // @ts-ignore
48
48
  marginVats: _uniq(products.filter((p) => p.marginVatFormatted !== null).map((p) => p.marginVatFormatted)),
49
+ accountingCategoryFormatted: AccountingCategoryList.find((a) => a.id === payload.accountingCategory)?.label ?? null,
49
50
  };
50
51
 
51
52
  const commonTemplate = new CommercialDocumentCommonHTML();
@@ -99,6 +100,7 @@ export function generateAdvanceDocument(payload: CreateInvoiceDocument): ReadCom
99
100
  disableVat: true,
100
101
  // @ts-ignore
101
102
  marginVats: _uniq((payload.assetMarginVatIds ?? []).map((m) => VatMarginCategyList.find((c) => c.id === m)?.label ?? null)),
103
+ accountingCategoryFormatted: AccountingCategoryList.find((a) => a.id === payload.accountingCategory)?.label ?? null,
102
104
  };
103
105
 
104
106
  const commonTemplate = new CommercialDocumentCommonHTML();
@@ -52,10 +52,12 @@ const headOfDocument = `<div class="row space-between">
52
52
  <div style="width: 40%; margin-top: auto;">
53
53
  <p>Client</p>
54
54
  <div class="<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>">
55
- <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>
55
+ <% if(thirdParty.fullname) {%><b><%= thirdParty.fullname %></b><br/><% } %>
56
56
  <% if(thirdParty.company) {%><%= thirdParty.company %><br/><% } %>
57
57
  <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>
58
+ <% if(thirdParty.deliveryAddress && thirdParty.deliveryCity && thirdParty.deliveryZipCode) {%>Adresse de livraison : <%= thirdParty.deliveryAddress %><%= thirdParty.deliveryZipCode %><%= thirdParty.deliveryCity %><% } %>
58
59
  <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %>
60
+ <% if(thirdParty.nSiret) {%>SIRET : <%= thirdParty.nSiret %><% } %>
59
61
  </div>
60
62
  </div>
61
63
  </div>`;
@@ -10,7 +10,26 @@ export class CommercialDocumentCommonHTML {
10
10
 
11
11
  footer = `<div style="font-size: 8px; color: #DADCDF; text-align: center; margin-left: 40px; margin-right: 40px; display: block; width: 100%">
12
12
  <% if (freeText) { %><%- freeText %><br/><br/><% } %>
13
- <% if(marginVats.length > 0) {%>Régime TVA sur marge - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) } %> ART 297-A du CGI ou directive 2006-212 CE | <% if(penalties || compensation || discount) {%><%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%><%= penalties && compensation ? '|' : ''%><%= compensation ? 'Indemnité forfaitaire en cas de retard :' + compensation : '' %><%= (compensation || penalties) && discount ? '| ' : '' %><%= discount %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% }%>
13
+ <% if (accountingCategoryFormatted) {%>
14
+ <%= accountingCategoryFormatted %> |
15
+ <%}%>
16
+ <% if(marginVats.length > 0) { %>
17
+ Régime TVA sur marge -
18
+ <% marginVats.forEach(function(v, index) { %>
19
+ <%= v %> -
20
+ <% }) %>
21
+ ART 297-A du CGI ou directive 2006-212 CE |
22
+ <% } %>
23
+ <% if(penalties || compensation || discount) { %>
24
+ <%= penalties ? 'Pénalités en cas de retard : ' + penalties : ''%>
25
+ <%= penalties && compensation ? '|' : ''%>
26
+ <%= compensation ? 'Indemnité forfaitaire en cas de retard :' + compensation : '' %>
27
+ <%= (compensation || penalties) && discount ? '| ' : '' %>
28
+ <%= discount %><%= shouldPayTaxAfterDebit ? "| Option pour le paiement de la taxe d'après les débits" : '' %>
29
+ <% if(name || legalForm || capital || siren || rcs) {%>
30
+ <br/><br/>
31
+ <% } %>
32
+ <% } %>
14
33
  <%= name %><%= name && (legalForm || capital || siren || rcs) ? ',' : ''%><%= legalForm %><%= capital ? ' au capital de ' + capitalFormatted + ' €' : '' %><%= siren ? ' immatriculée sous le SIREN ' + siren : ''%><%= rcs ? 'RCS ' + rcs + vatCode || nafCode ? '|' : '' : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? 'N° TVA '+vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
15
34
  </div>`;
16
35
 
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;
@@ -1,8 +0,0 @@
1
- export declare class QueryGescom {
2
- startDate: string | Date;
3
- endDate: string | Date;
4
- isPaid?: boolean;
5
- isLate?: boolean;
6
- isCanceled?: boolean;
7
- }
8
- //# sourceMappingURL=QueryGescom.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGescom.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/dashboard/QueryGescom.ts"],"names":[],"mappings":"AAEA,qBAAa,WAAW;IAEtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,MAAM,CAAC,EAAE,OAAO,CAAC;IAGjB,MAAM,CAAC,EAAE,OAAO,CAAC;IAGjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGescom.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/dashboard/QueryGescom.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,WAAW;CAevB;AAbC;IADC,WAAW,EAAE;;8CACW;AAGzB;IADC,WAAW,EAAE;;4CACS;AAGvB;IADC,mBAAmB,EAAE;;2CACL;AAGjB;IADC,mBAAmB,EAAE;;2CACL;AAGjB;IADC,mBAAmB,EAAE;;+CACD","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryGescom {\n @ApiProperty()\n startDate: string | Date;\n\n @ApiProperty()\n endDate: string | Date;\n\n @ApiPropertyOptional()\n isPaid?: boolean;\n\n @ApiPropertyOptional()\n isLate?: boolean;\n\n @ApiPropertyOptional()\n isCanceled?: boolean;\n}"]}
@@ -1,22 +0,0 @@
1
- export declare class ReadGescom {
2
- bill: InvoiceObject;
3
- quote: QuoteObject;
4
- }
5
- export declare class InvoiceObject {
6
- invoicesPaid: Array<PartialInvoice>;
7
- invoicesPaiementWaiting: Array<PartialInvoice>;
8
- invoicesPaiementLate: Array<PartialInvoice>;
9
- }
10
- export declare class QuoteObject {
11
- quoteAccepted: Array<PartialInvoice>;
12
- quoteRefused: Array<PartialInvoice>;
13
- quotePending: Array<PartialInvoice>;
14
- }
15
- export declare class PartialInvoice {
16
- id: number;
17
- label: string;
18
- totalTaxExcluded: number;
19
- totalTaxIncluded: number;
20
- dueDate: string | Date;
21
- }
22
- //# sourceMappingURL=ReadGescom.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadGescom.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/dashboard/ReadGescom.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC;CACpB;AAED,qBAAa,aAAa;IACxB,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACpC,uBAAuB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC/C,oBAAoB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAC7C;AAED,qBAAa,WAAW;IACtB,aAAa,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACrC,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACpC,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACrC;AAED,qBAAa,cAAc;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
@@ -1,9 +0,0 @@
1
- export class ReadGescom {
2
- }
3
- export class InvoiceObject {
4
- }
5
- export class QuoteObject {
6
- }
7
- export class PartialInvoice {
8
- }
9
- //# sourceMappingURL=ReadGescom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadGescom.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/dashboard/ReadGescom.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,UAAU;CAGtB;AAED,MAAM,OAAO,aAAa;CAIzB;AAED,MAAM,OAAO,WAAW;CAIvB;AAED,MAAM,OAAO,cAAc;CAM1B","sourcesContent":["export class ReadGescom {\n bill: InvoiceObject;\n quote: QuoteObject;\n}\n\nexport class InvoiceObject {\n invoicesPaid: Array<PartialInvoice>;\n invoicesPaiementWaiting: Array<PartialInvoice>;\n invoicesPaiementLate: Array<PartialInvoice>;\n}\n\nexport class QuoteObject {\n quoteAccepted: Array<PartialInvoice>;\n quoteRefused: Array<PartialInvoice>;\n quotePending: Array<PartialInvoice>;\n}\n\nexport class PartialInvoice {\n id: number;\n label: string;\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n dueDate: string | Date;\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGescom.js","mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEM,MAAOA,WAAP,CAAkB;;QAAXA,W,GAAAA,W;;AAEXC,YADC,yBACD;;AAGAA,YADC,yBACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD","names":["QueryGescom","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/dashboard/QueryGescom.ts"],"sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryGescom {\n @ApiProperty()\n startDate: string | Date;\n\n @ApiProperty()\n endDate: string | Date;\n\n @ApiPropertyOptional()\n isPaid?: boolean;\n\n @ApiPropertyOptional()\n isLate?: boolean;\n\n @ApiPropertyOptional()\n isCanceled?: boolean;\n}"]}
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- class ReadGescom {}
8
-
9
- exports.ReadGescom = ReadGescom;
10
-
11
- class InvoiceObject {}
12
-
13
- exports.InvoiceObject = InvoiceObject;
14
-
15
- class QuoteObject {}
16
-
17
- exports.QuoteObject = QuoteObject;
18
-
19
- class PartialInvoice {}
20
-
21
- exports.PartialInvoice = PartialInvoice;
22
- //# sourceMappingURL=ReadGescom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadGescom.js","mappings":";;;;;;AAAM,MAAOA,UAAP,CAAiB;;QAAVA,U,GAAAA,U;;AAKP,MAAOC,aAAP,CAAoB;;QAAbA,a,GAAAA,a;;AAMP,MAAOC,WAAP,CAAkB;;QAAXA,W,GAAAA,W;;AAMP,MAAOC,cAAP,CAAqB;;QAAdA,c,GAAAA,c","names":["ReadGescom","InvoiceObject","QuoteObject","PartialInvoice"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/dashboard/ReadGescom.ts"],"sourcesContent":["export class ReadGescom {\n bill: InvoiceObject;\n quote: QuoteObject;\n}\n\nexport class InvoiceObject {\n invoicesPaid: Array<PartialInvoice>;\n invoicesPaiementWaiting: Array<PartialInvoice>;\n invoicesPaiementLate: Array<PartialInvoice>;\n}\n\nexport class QuoteObject {\n quoteAccepted: Array<PartialInvoice>;\n quoteRefused: Array<PartialInvoice>;\n quotePending: Array<PartialInvoice>;\n}\n\nexport class PartialInvoice {\n id: number;\n label: string;\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n dueDate: string | Date;\n}"]}