@silexpert/core 1.3.59 → 1.3.61-0

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 (306) hide show
  1. package/dist/cjs/api/resources/SalesContract.d.ts +0 -4
  2. package/dist/cjs/api/resources/SalesContract.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/SalesContract.js +0 -18
  4. package/dist/cjs/api/resources/SalesContract.js.map +1 -1
  5. package/dist/cjs/api/resources/Subscription.d.ts +2 -2
  6. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Subscription.js +3 -4
  8. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  9. package/dist/cjs/api/resources/User.d.ts +2 -1
  10. package/dist/cjs/api/resources/User.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/User.js +3 -0
  12. package/dist/cjs/api/resources/User.js.map +1 -1
  13. package/dist/cjs/api/resources.d.ts +0 -4
  14. package/dist/cjs/api/resources.d.ts.map +1 -1
  15. package/dist/cjs/api/resources.js +0 -4
  16. package/dist/cjs/api/resources.js.map +1 -1
  17. package/dist/cjs/types/Enum/BalanceSheet.js +12 -12
  18. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  19. package/dist/cjs/types/Enum/BrandAnytime.d.ts.map +1 -1
  20. package/dist/cjs/types/Enum/BrandAnytime.js +0 -3
  21. package/dist/cjs/types/Enum/BrandAnytime.js.map +1 -1
  22. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/BrandClementine.js +0 -7
  24. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  25. package/dist/cjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  26. package/dist/cjs/types/Enum/BrandComptalib.js +0 -3
  27. package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
  28. package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  29. package/dist/cjs/types/Enum/BrandLegalstart.js +0 -1
  30. package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
  31. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  32. package/dist/cjs/types/Enum/BrandPourcentage.js +0 -4
  33. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  34. package/dist/cjs/types/Enum/BrandStatutsExpress.d.ts.map +1 -1
  35. package/dist/cjs/types/Enum/BrandStatutsExpress.js +0 -1
  36. package/dist/cjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  37. package/dist/cjs/types/Enum/PrestationType.js +8 -8
  38. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  39. package/dist/cjs/types/Interface/api/commercial/RequiredDocsTypeParams.d.ts +1 -0
  40. package/dist/cjs/types/Interface/api/commercial/RequiredDocsTypeParams.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/api/commercial/RequiredDocsTypeParams.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +37 -98
  43. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  44. package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
  45. package/dist/cjs/types/Interface/api/internalInvoicing/GetLastRef.d.ts +0 -2
  46. package/dist/cjs/types/Interface/api/internalInvoicing/GetLastRef.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/api/internalInvoicing/GetLastRef.js +0 -12
  48. package/dist/cjs/types/Interface/api/internalInvoicing/GetLastRef.js.map +1 -1
  49. package/dist/cjs/types/Interface/api/user/Query.d.ts +9 -0
  50. package/dist/cjs/types/Interface/api/user/Query.d.ts.map +1 -1
  51. package/dist/cjs/types/Interface/api/user/Query.js +30 -1
  52. package/dist/cjs/types/Interface/api/user/Query.js.map +1 -1
  53. package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts +6 -1
  54. package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
  55. package/dist/cjs/types/Interface/api/user/RegisterProspect.js +18 -0
  56. package/dist/cjs/types/Interface/api/user/RegisterProspect.js.map +1 -1
  57. package/dist/cjs/types/Interface/models/IApiError.d.ts +0 -1
  58. package/dist/cjs/types/Interface/models/IApiError.d.ts.map +1 -1
  59. package/dist/cjs/types/Interface/models/IApiError.js +0 -2
  60. package/dist/cjs/types/Interface/models/IApiError.js.map +1 -1
  61. package/dist/cjs/types/index.d.ts +0 -10
  62. package/dist/cjs/types/index.d.ts.map +1 -1
  63. package/dist/cjs/types/index.js +0 -11
  64. package/dist/cjs/types/index.js.map +1 -1
  65. package/dist/cjs/utils/brands.d.ts +0 -4
  66. package/dist/cjs/utils/brands.d.ts.map +1 -1
  67. package/dist/cjs/utils/brands.js.map +1 -1
  68. package/dist/cjs/utils/index.d.ts +0 -1
  69. package/dist/cjs/utils/index.d.ts.map +1 -1
  70. package/dist/cjs/utils/index.js +0 -1
  71. package/dist/cjs/utils/index.js.map +1 -1
  72. package/dist/cjs/utils/payment.d.ts +1 -0
  73. package/dist/cjs/utils/payment.d.ts.map +1 -1
  74. package/dist/cjs/utils/payment.js.map +1 -1
  75. package/dist/cjs/utils/prestation.d.ts +2 -1
  76. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  77. package/dist/cjs/utils/prestation.js +19 -4
  78. package/dist/cjs/utils/prestation.js.map +1 -1
  79. package/dist/cjs/utils/vat/utils.d.ts +2 -0
  80. package/dist/cjs/utils/vat/utils.d.ts.map +1 -1
  81. package/dist/cjs/utils/vat/utils.js +10 -0
  82. package/dist/cjs/utils/vat/utils.js.map +1 -1
  83. package/dist/mjs/api/resources/SalesContract.d.ts +0 -4
  84. package/dist/mjs/api/resources/SalesContract.d.ts.map +1 -1
  85. package/dist/mjs/api/resources/SalesContract.js +0 -18
  86. package/dist/mjs/api/resources/SalesContract.js.map +1 -1
  87. package/dist/mjs/api/resources/Subscription.d.ts +2 -2
  88. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  89. package/dist/mjs/api/resources/Subscription.js +3 -4
  90. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  91. package/dist/mjs/api/resources/User.d.ts +2 -1
  92. package/dist/mjs/api/resources/User.d.ts.map +1 -1
  93. package/dist/mjs/api/resources/User.js +6 -0
  94. package/dist/mjs/api/resources/User.js.map +1 -1
  95. package/dist/mjs/api/resources.d.ts +0 -4
  96. package/dist/mjs/api/resources.d.ts.map +1 -1
  97. package/dist/mjs/api/resources.js +0 -4
  98. package/dist/mjs/api/resources.js.map +1 -1
  99. package/dist/mjs/types/Enum/BalanceSheet.js +12 -12
  100. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  101. package/dist/mjs/types/Enum/BrandAnytime.d.ts.map +1 -1
  102. package/dist/mjs/types/Enum/BrandAnytime.js +0 -3
  103. package/dist/mjs/types/Enum/BrandAnytime.js.map +1 -1
  104. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  105. package/dist/mjs/types/Enum/BrandClementine.js +0 -7
  106. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  107. package/dist/mjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  108. package/dist/mjs/types/Enum/BrandComptalib.js +0 -3
  109. package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
  110. package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  111. package/dist/mjs/types/Enum/BrandLegalstart.js +0 -1
  112. package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
  113. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  114. package/dist/mjs/types/Enum/BrandPourcentage.js +0 -4
  115. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  116. package/dist/mjs/types/Enum/BrandStatutsExpress.d.ts.map +1 -1
  117. package/dist/mjs/types/Enum/BrandStatutsExpress.js +0 -1
  118. package/dist/mjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  119. package/dist/mjs/types/Enum/PrestationType.js +8 -8
  120. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  121. package/dist/mjs/types/Interface/api/commercial/RequiredDocsTypeParams.d.ts +1 -0
  122. package/dist/mjs/types/Interface/api/commercial/RequiredDocsTypeParams.d.ts.map +1 -1
  123. package/dist/mjs/types/Interface/api/commercial/RequiredDocsTypeParams.js.map +1 -1
  124. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +37 -98
  125. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  126. package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
  127. package/dist/mjs/types/Interface/api/internalInvoicing/GetLastRef.d.ts +0 -2
  128. package/dist/mjs/types/Interface/api/internalInvoicing/GetLastRef.d.ts.map +1 -1
  129. package/dist/mjs/types/Interface/api/internalInvoicing/GetLastRef.js +0 -14
  130. package/dist/mjs/types/Interface/api/internalInvoicing/GetLastRef.js.map +1 -1
  131. package/dist/mjs/types/Interface/api/user/Query.d.ts +9 -0
  132. package/dist/mjs/types/Interface/api/user/Query.d.ts.map +1 -1
  133. package/dist/mjs/types/Interface/api/user/Query.js +28 -0
  134. package/dist/mjs/types/Interface/api/user/Query.js.map +1 -1
  135. package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts +6 -1
  136. package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
  137. package/dist/mjs/types/Interface/api/user/RegisterProspect.js +21 -1
  138. package/dist/mjs/types/Interface/api/user/RegisterProspect.js.map +1 -1
  139. package/dist/mjs/types/Interface/models/IApiError.d.ts +0 -1
  140. package/dist/mjs/types/Interface/models/IApiError.d.ts.map +1 -1
  141. package/dist/mjs/types/Interface/models/IApiError.js +0 -2
  142. package/dist/mjs/types/Interface/models/IApiError.js.map +1 -1
  143. package/dist/mjs/types/index.d.ts +0 -10
  144. package/dist/mjs/types/index.d.ts.map +1 -1
  145. package/dist/mjs/types/index.js +0 -11
  146. package/dist/mjs/types/index.js.map +1 -1
  147. package/dist/mjs/utils/brands.d.ts +0 -4
  148. package/dist/mjs/utils/brands.d.ts.map +1 -1
  149. package/dist/mjs/utils/brands.js.map +1 -1
  150. package/dist/mjs/utils/index.d.ts +0 -1
  151. package/dist/mjs/utils/index.d.ts.map +1 -1
  152. package/dist/mjs/utils/index.js +0 -1
  153. package/dist/mjs/utils/index.js.map +1 -1
  154. package/dist/mjs/utils/payment.d.ts +1 -0
  155. package/dist/mjs/utils/payment.d.ts.map +1 -1
  156. package/dist/mjs/utils/payment.js.map +1 -1
  157. package/dist/mjs/utils/prestation.d.ts +2 -1
  158. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  159. package/dist/mjs/utils/prestation.js +17 -4
  160. package/dist/mjs/utils/prestation.js.map +1 -1
  161. package/dist/mjs/utils/vat/utils.d.ts +2 -0
  162. package/dist/mjs/utils/vat/utils.d.ts.map +1 -1
  163. package/dist/mjs/utils/vat/utils.js +9 -0
  164. package/dist/mjs/utils/vat/utils.js.map +1 -1
  165. package/package.json +1 -1
  166. package/ts/api/resources/SalesContract.ts +0 -18
  167. package/ts/api/resources/Subscription.ts +5 -15
  168. package/ts/api/resources/User.ts +8 -0
  169. package/ts/api/resources.ts +0 -4
  170. package/ts/types/Enum/BalanceSheet.ts +12 -12
  171. package/ts/types/Enum/BrandAnytime.ts +0 -3
  172. package/ts/types/Enum/BrandClementine.ts +0 -7
  173. package/ts/types/Enum/BrandComptalib.ts +0 -3
  174. package/ts/types/Enum/BrandLegalstart.ts +0 -1
  175. package/ts/types/Enum/BrandPourcentage.ts +0 -4
  176. package/ts/types/Enum/BrandStatutsExpress.ts +0 -1
  177. package/ts/types/Enum/PrestationType.ts +8 -8
  178. package/ts/types/Interface/api/commercial/RequiredDocsTypeParams.ts +1 -0
  179. package/ts/types/Interface/api/config/ConfigType.ts +36 -106
  180. package/ts/types/Interface/api/internalInvoicing/GetLastRef.ts +0 -10
  181. package/ts/types/Interface/api/user/Query.ts +26 -0
  182. package/ts/types/Interface/api/user/RegisterProspect.ts +38 -6
  183. package/ts/types/Interface/models/IApiError.ts +0 -3
  184. package/ts/types/index.ts +0 -11
  185. package/ts/utils/brands.ts +0 -2
  186. package/ts/utils/index.ts +0 -1
  187. package/ts/utils/payment.ts +1 -0
  188. package/ts/utils/prestation.ts +30 -5
  189. package/ts/utils/vat/utils.ts +10 -1
  190. package/dist/cjs/api/resources/PromoCode.d.ts +0 -14
  191. package/dist/cjs/api/resources/PromoCode.d.ts.map +0 -1
  192. package/dist/cjs/api/resources/PromoCode.js +0 -35
  193. package/dist/cjs/api/resources/PromoCode.js.map +0 -1
  194. package/dist/cjs/api/resources/SocietyPromoCode.d.ts +0 -8
  195. package/dist/cjs/api/resources/SocietyPromoCode.d.ts.map +0 -1
  196. package/dist/cjs/api/resources/SocietyPromoCode.js +0 -17
  197. package/dist/cjs/api/resources/SocietyPromoCode.js.map +0 -1
  198. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts +0 -14
  199. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts.map +0 -1
  200. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js +0 -85
  201. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +0 -1
  202. package/dist/cjs/types/Interface/api/promoCode/CreatePromoCode.d.ts +0 -12
  203. package/dist/cjs/types/Interface/api/promoCode/CreatePromoCode.d.ts.map +0 -1
  204. package/dist/cjs/types/Interface/api/promoCode/CreatePromoCode.js +0 -53
  205. package/dist/cjs/types/Interface/api/promoCode/CreatePromoCode.js.map +0 -1
  206. package/dist/cjs/types/Interface/api/promoCode/QueryDefaultPromotion.d.ts +0 -8
  207. package/dist/cjs/types/Interface/api/promoCode/QueryDefaultPromotion.d.ts.map +0 -1
  208. package/dist/cjs/types/Interface/api/promoCode/QueryDefaultPromotion.js +0 -49
  209. package/dist/cjs/types/Interface/api/promoCode/QueryDefaultPromotion.js.map +0 -1
  210. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.d.ts +0 -5
  211. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.d.ts.map +0 -1
  212. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js +0 -34
  213. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js.map +0 -1
  214. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPromotion.d.ts +0 -7
  215. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPromotion.d.ts.map +0 -1
  216. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPromotion.js +0 -3
  217. package/dist/cjs/types/Interface/api/promoCode/ReadDefaultPromotion.js.map +0 -1
  218. package/dist/cjs/types/Interface/api/promoCode/UpdatePromoCode.d.ts +0 -12
  219. package/dist/cjs/types/Interface/api/promoCode/UpdatePromoCode.d.ts.map +0 -1
  220. package/dist/cjs/types/Interface/api/promoCode/UpdatePromoCode.js +0 -53
  221. package/dist/cjs/types/Interface/api/promoCode/UpdatePromoCode.js.map +0 -1
  222. package/dist/cjs/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.d.ts +0 -5
  223. package/dist/cjs/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.d.ts.map +0 -1
  224. package/dist/cjs/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.js +0 -25
  225. package/dist/cjs/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.js.map +0 -1
  226. package/dist/cjs/types/Interface/models/IDefaultPromotion.d.ts +0 -17
  227. package/dist/cjs/types/Interface/models/IDefaultPromotion.d.ts.map +0 -1
  228. package/dist/cjs/types/Interface/models/IDefaultPromotion.js +0 -3
  229. package/dist/cjs/types/Interface/models/IDefaultPromotion.js.map +0 -1
  230. package/dist/cjs/types/Interface/models/IPromoCode.d.ts +0 -15
  231. package/dist/cjs/types/Interface/models/IPromoCode.d.ts.map +0 -1
  232. package/dist/cjs/types/Interface/models/IPromoCode.js +0 -3
  233. package/dist/cjs/types/Interface/models/IPromoCode.js.map +0 -1
  234. package/dist/cjs/types/Interface/models/ISocietyPromoCode.d.ts +0 -8
  235. package/dist/cjs/types/Interface/models/ISocietyPromoCode.d.ts.map +0 -1
  236. package/dist/cjs/types/Interface/models/ISocietyPromoCode.js +0 -3
  237. package/dist/cjs/types/Interface/models/ISocietyPromoCode.js.map +0 -1
  238. package/dist/cjs/utils/subscription.d.ts +0 -21
  239. package/dist/cjs/utils/subscription.d.ts.map +0 -1
  240. package/dist/cjs/utils/subscription.js +0 -97
  241. package/dist/cjs/utils/subscription.js.map +0 -1
  242. package/dist/mjs/api/resources/PromoCode.d.ts +0 -14
  243. package/dist/mjs/api/resources/PromoCode.d.ts.map +0 -1
  244. package/dist/mjs/api/resources/PromoCode.js +0 -31
  245. package/dist/mjs/api/resources/PromoCode.js.map +0 -1
  246. package/dist/mjs/api/resources/SocietyPromoCode.d.ts +0 -8
  247. package/dist/mjs/api/resources/SocietyPromoCode.d.ts.map +0 -1
  248. package/dist/mjs/api/resources/SocietyPromoCode.js +0 -13
  249. package/dist/mjs/api/resources/SocietyPromoCode.js.map +0 -1
  250. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts +0 -14
  251. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts.map +0 -1
  252. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js +0 -93
  253. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +0 -1
  254. package/dist/mjs/types/Interface/api/promoCode/CreatePromoCode.d.ts +0 -12
  255. package/dist/mjs/types/Interface/api/promoCode/CreatePromoCode.d.ts.map +0 -1
  256. package/dist/mjs/types/Interface/api/promoCode/CreatePromoCode.js +0 -58
  257. package/dist/mjs/types/Interface/api/promoCode/CreatePromoCode.js.map +0 -1
  258. package/dist/mjs/types/Interface/api/promoCode/QueryDefaultPromotion.d.ts +0 -8
  259. package/dist/mjs/types/Interface/api/promoCode/QueryDefaultPromotion.d.ts.map +0 -1
  260. package/dist/mjs/types/Interface/api/promoCode/QueryDefaultPromotion.js +0 -50
  261. package/dist/mjs/types/Interface/api/promoCode/QueryDefaultPromotion.js.map +0 -1
  262. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.d.ts +0 -5
  263. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.d.ts.map +0 -1
  264. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js +0 -28
  265. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js.map +0 -1
  266. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPromotion.d.ts +0 -7
  267. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPromotion.d.ts.map +0 -1
  268. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPromotion.js +0 -2
  269. package/dist/mjs/types/Interface/api/promoCode/ReadDefaultPromotion.js.map +0 -1
  270. package/dist/mjs/types/Interface/api/promoCode/UpdatePromoCode.d.ts +0 -12
  271. package/dist/mjs/types/Interface/api/promoCode/UpdatePromoCode.d.ts.map +0 -1
  272. package/dist/mjs/types/Interface/api/promoCode/UpdatePromoCode.js +0 -58
  273. package/dist/mjs/types/Interface/api/promoCode/UpdatePromoCode.js.map +0 -1
  274. package/dist/mjs/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.d.ts +0 -5
  275. package/dist/mjs/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.d.ts.map +0 -1
  276. package/dist/mjs/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.js +0 -23
  277. package/dist/mjs/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.js.map +0 -1
  278. package/dist/mjs/types/Interface/models/IDefaultPromotion.d.ts +0 -17
  279. package/dist/mjs/types/Interface/models/IDefaultPromotion.d.ts.map +0 -1
  280. package/dist/mjs/types/Interface/models/IDefaultPromotion.js +0 -2
  281. package/dist/mjs/types/Interface/models/IDefaultPromotion.js.map +0 -1
  282. package/dist/mjs/types/Interface/models/IPromoCode.d.ts +0 -15
  283. package/dist/mjs/types/Interface/models/IPromoCode.d.ts.map +0 -1
  284. package/dist/mjs/types/Interface/models/IPromoCode.js +0 -2
  285. package/dist/mjs/types/Interface/models/IPromoCode.js.map +0 -1
  286. package/dist/mjs/types/Interface/models/ISocietyPromoCode.d.ts +0 -8
  287. package/dist/mjs/types/Interface/models/ISocietyPromoCode.d.ts.map +0 -1
  288. package/dist/mjs/types/Interface/models/ISocietyPromoCode.js +0 -2
  289. package/dist/mjs/types/Interface/models/ISocietyPromoCode.js.map +0 -1
  290. package/dist/mjs/utils/subscription.d.ts +0 -21
  291. package/dist/mjs/utils/subscription.d.ts.map +0 -1
  292. package/dist/mjs/utils/subscription.js +0 -92
  293. package/dist/mjs/utils/subscription.js.map +0 -1
  294. package/ts/api/resources/PromoCode.ts +0 -50
  295. package/ts/api/resources/SocietyPromoCode.ts +0 -16
  296. package/ts/types/Interface/api/promoCode/CreateDefaultPromoCode.ts +0 -59
  297. package/ts/types/Interface/api/promoCode/CreatePromoCode.ts +0 -30
  298. package/ts/types/Interface/api/promoCode/QueryDefaultPromotion.ts +0 -30
  299. package/ts/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.ts +0 -14
  300. package/ts/types/Interface/api/promoCode/ReadDefaultPromotion.ts +0 -7
  301. package/ts/types/Interface/api/promoCode/UpdatePromoCode.ts +0 -30
  302. package/ts/types/Interface/api/societyPromoCode/CreateSocietyPromoCode.ts +0 -9
  303. package/ts/types/Interface/models/IDefaultPromotion.ts +0 -16
  304. package/ts/types/Interface/models/IPromoCode.ts +0 -14
  305. package/ts/types/Interface/models/ISocietyPromoCode.ts +0 -7
  306. package/ts/utils/subscription.ts +0 -124
@@ -2,37 +2,28 @@ export interface ConfigType {
2
2
  port: number;
3
3
  db: Db;
4
4
  hostS3: string;
5
- hostApplication: string;
6
- hostSiteInternet: string;
7
5
  redis: Redis;
8
6
  redisPrimary: RedisPrimary;
9
7
  caarl: Caarl;
10
8
  yousign: Yousign;
11
- secretToken: string;
12
- comptaclementineTest: ComptaclementineTest;
13
- bred: Bred;
14
9
  awsClementine: AwsClementine;
15
10
  mail: Mail;
16
11
  client: Client;
17
12
  twilio: Twilio;
18
- aspone: Aspone;
19
13
  societyTestId: number;
20
14
  pappers: Pappers;
21
15
  shine: Shine;
22
16
  defaultPermissions: DefaultPermissions;
23
17
  crisp: Crisp;
24
18
  brand: ConfigBrand;
25
- adminStatic: AdminStatic;
26
19
  ocr: Ocr;
27
20
  jeDeclare: JeDeclare;
28
- firebase: Firebase;
29
21
  notification: Notification;
30
22
  pdfizer: Pdfizer;
31
23
  iDocus: IDocus;
32
24
  imageMagick: LambdaInfos;
33
25
  companeo: Companeo;
34
26
  inpi: Inpi;
35
- notion: Notion;
36
27
  brevo: Brevo;
37
28
  tinyurl: LambdaInfos;
38
29
  machineLearning: MachineLearning;
@@ -43,29 +34,28 @@ export interface ConfigType {
43
34
  sharper: LambdaInfos;
44
35
  chartizer: LambdaInfos;
45
36
  authentication: Authentication;
46
- recaptcha: Recaptcha;
47
37
  }
48
38
 
49
- export interface Authentication {
39
+ interface Authentication {
50
40
  token: string;
51
41
  }
52
42
 
53
- export interface LambdaInfos {
43
+ interface LambdaInfos {
54
44
  url: string;
55
45
  key: string;
56
46
  }
57
47
 
58
- export interface Mongodb {
48
+ interface Mongodb {
59
49
  username: string;
60
50
  password: string;
61
51
  host: string;
62
52
  }
63
53
 
64
- export interface MachineLearning {
54
+ interface MachineLearning {
65
55
  transactionAnnotation: string;
66
56
  }
67
57
 
68
- export interface Db {
58
+ interface Db {
69
59
  username: string;
70
60
  password: string;
71
61
  database: string;
@@ -74,55 +64,24 @@ export interface Db {
74
64
  dialect: string;
75
65
  }
76
66
 
77
- export interface Redis {
67
+ interface Redis {
78
68
  host: string;
79
69
  port: number;
80
70
  }
81
71
 
82
- export interface RedisPrimary {
72
+ interface RedisPrimary {
83
73
  replicationGroupId: string;
84
74
  }
85
75
 
86
- export interface Caarl {
76
+ interface Caarl {
87
77
  api: string;
88
- token: string;
89
78
  bundle: string;
90
79
  }
91
80
 
92
- export interface Yousign {
93
- apiYousign: string;
94
- appYousign: string;
95
- token: Token;
81
+ interface Yousign {
96
82
  workspaceId: string;
97
83
  }
98
84
 
99
- export interface Token {
100
- clementine: string;
101
- pourcentage: string;
102
- }
103
-
104
- export interface ComptaclementineTest {
105
- username: string;
106
- password: string;
107
- database: string;
108
- port: string;
109
- host: string;
110
- dialect: string;
111
- }
112
-
113
- export interface Bred {
114
- authorizeHost: string;
115
- authorizePath: string;
116
- urlPostCodeRequest: string;
117
- urlGetToken: string;
118
- apiUrl: string;
119
- clientId: string;
120
- clientSecret: string;
121
- scope: string;
122
- redirectUri: string;
123
- subscriptionKey: string;
124
- }
125
-
126
85
  export type BucketName =
127
86
  | 'resources-local-dev'
128
87
  | 'resources-anytime'
@@ -137,14 +96,14 @@ export type BucketName =
137
96
  | 'resources-internal'
138
97
  | 'sales-contract';
139
98
 
140
- export interface AwsClementine {
99
+ interface AwsClementine {
141
100
  accessKeyId: string;
142
101
  secretAccessKey: string;
143
102
  clementineBucketName: BucketName;
144
103
  apiVersion: string;
145
104
  }
146
105
 
147
- export interface Mail {
106
+ interface Mail {
148
107
  user: string;
149
108
  password: string;
150
109
  host: string;
@@ -152,35 +111,28 @@ export interface Mail {
152
111
  tls: boolean;
153
112
  }
154
113
 
155
- export interface Client {
114
+ interface Client {
156
115
  host: string;
157
116
  hostFull: string;
158
117
  }
159
118
 
160
- export interface Twilio {
119
+ interface Twilio {
161
120
  accountSID: string;
162
121
  authToken: string;
163
122
  number: string;
164
123
  }
165
124
 
166
- export interface Aspone {
167
- siret: string;
168
- api: string;
169
- access: Access;
170
- serviceVersion: string;
171
- }
172
-
173
125
  export interface Access {
174
126
  login: string;
175
127
  password: string;
176
128
  }
177
129
 
178
- export interface Pappers {
130
+ interface Pappers {
179
131
  token: string;
180
132
  url: string;
181
133
  }
182
134
 
183
- export interface Shine {
135
+ interface Shine {
184
136
  host: string;
185
137
  hostV3: string;
186
138
  publicHost: string;
@@ -191,7 +143,7 @@ export interface Shine {
191
143
  scope: string;
192
144
  }
193
145
 
194
- export interface DefaultPermissions {
146
+ interface DefaultPermissions {
195
147
  gescom: boolean;
196
148
  compta: boolean;
197
149
  stats: boolean;
@@ -206,12 +158,12 @@ export interface DefaultPermissions {
206
158
  purchase: boolean;
207
159
  }
208
160
 
209
- export interface Crisp {
161
+ interface Crisp {
210
162
  identifier: string;
211
163
  key: string;
212
164
  }
213
165
 
214
- export interface ConfigBrand {
166
+ interface ConfigBrand {
215
167
  name: string;
216
168
  api: string;
217
169
  api2: string;
@@ -219,27 +171,22 @@ export interface ConfigBrand {
219
171
  api2Legalstart: string;
220
172
  }
221
173
 
222
- export interface AdminStatic {
223
- login: string;
224
- password: string;
225
- }
226
-
227
174
  export interface Ocr {
228
175
  URL: string;
229
176
  }
230
177
 
231
- export interface JeDeclare {
178
+ interface JeDeclare {
232
179
  access: Access2[];
233
180
  serviceVersion: string;
234
181
  }
235
182
 
236
- export interface Access2 {
183
+ interface Access2 {
237
184
  name: string;
238
185
  test: Test;
239
186
  production: Production;
240
187
  }
241
188
 
242
- export interface Test {
189
+ interface Test {
243
190
  login: string;
244
191
  password: string;
245
192
  editor: string;
@@ -247,11 +194,11 @@ export interface Test {
247
194
  wsdl: Wsdl;
248
195
  }
249
196
 
250
- export interface Wsdl {
197
+ interface Wsdl {
251
198
  url: string;
252
199
  }
253
200
 
254
- export interface Production {
201
+ interface Production {
255
202
  login: string;
256
203
  password: string;
257
204
  editor: string;
@@ -259,63 +206,46 @@ export interface Production {
259
206
  wsdl: Wsdl2;
260
207
  }
261
208
 
262
- export interface Wsdl2 {
209
+ interface Wsdl2 {
263
210
  url: string;
264
211
  }
265
212
 
266
- export interface Firebase {
267
- type: string;
268
- project_id: string;
269
- private_key_id: string;
270
- private_key: string;
271
- client_email: string;
272
- client_id: string;
273
- auth_uri: string;
274
- token_uri: string;
275
- auth_provider_x509_cert_url: string;
276
- client_x509_cert_url: string;
277
- universe_domain: string;
278
- }
279
-
280
213
  export interface Notification {
281
214
  hookToken: string;
282
215
  }
283
216
 
284
- export interface Pdfizer {
217
+ interface Pdfizer {
285
218
  url: string;
286
219
  key: string;
287
220
  }
288
221
 
289
- export interface IDocus {
222
+ interface IDocus {
290
223
  baseUrl: string;
291
224
  callbackurl: string;
292
225
  authorizationKey: string;
293
226
  }
294
227
 
295
- export interface Companeo {
228
+ interface Companeo {
296
229
  username: string;
297
230
  pass: string;
298
231
  }
299
232
 
300
- export interface Inpi {
233
+ interface Inpi {
301
234
  username: string;
302
235
  password: string;
303
236
  }
304
237
 
305
- export interface Notion {
306
- key: string;
238
+ interface Brevo {
239
+ lists: {
240
+ hot: number;
241
+ paying: number;
242
+ cold: number;
243
+ churned: number;
244
+ };
307
245
  }
308
246
 
309
- export interface Brevo {
310
- apiKeyProd: string;
311
- }
312
-
313
- export interface Echo {
247
+ interface Echo {
314
248
  url: string;
315
249
  accountid: string;
316
250
  apikey: string;
317
251
  }
318
-
319
- export interface Recaptcha {
320
- secret: string;
321
- }
@@ -1,16 +1,6 @@
1
- import { IsArray, IsString } from 'class-validator';
2
1
  import { ApiProperty } from '../../../../utils';
3
2
 
4
3
  export class GetLastRef {
5
4
  @ApiProperty()
6
- @IsString()
7
- login: string;
8
-
9
- @ApiProperty()
10
- @IsString()
11
- password: string;
12
-
13
- @ApiProperty()
14
- @IsArray()
15
5
  idTypeBrand: Array<number>;
16
6
  }
@@ -4,6 +4,9 @@ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
  import { SubscriptionType } from '../../../Enum/SubscriptionType';
5
5
  import { WhereOptions } from 'sequelize';
6
6
  import { ISociety } from '../../models/ISociety';
7
+ import { RequiredQueryPaginate } from '../BasePaginate';
8
+ import { Role } from '../../../Enum/Role';
9
+ import { EntityType } from '../../../Enum/EntityType';
7
10
 
8
11
  export class QueryConfirm {
9
12
  @ApiProperty()
@@ -13,6 +16,29 @@ export class QueryConfirm {
13
16
  email: string;
14
17
  }
15
18
 
19
+ export class QueryGetAllUsersPaginated extends RequiredQueryPaginate {
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsString()
23
+ declare search?: string;
24
+
25
+ @ApiPropertyOptional()
26
+ @IsOptional()
27
+ @IsArray()
28
+ declare roles?: Role[];
29
+
30
+ @ApiPropertyOptional()
31
+ @IsOptional()
32
+ @IsArray()
33
+ declare entities?: EntityType[];
34
+
35
+ @ApiPropertyOptional()
36
+ @IsOptional()
37
+ @IsBoolean()
38
+ @ToBoolean()
39
+ declare active?: boolean;
40
+ }
41
+
16
42
  export class QueryGetAllCollaborators {
17
43
  @ApiProperty({
18
44
  description: 'filtering users id',
@@ -1,15 +1,27 @@
1
- import { IsEmail, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
1
+ import {
2
+ IsArray,
3
+ IsEmail,
4
+ IsEnum,
5
+ IsNotEmpty,
6
+ IsNumber,
7
+ IsOptional,
8
+ IsString,
9
+ IsStrongPassword,
10
+ ValidateNested,
11
+ } from 'class-validator';
2
12
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
13
  import { Activity } from '../../../Enum/Activity';
4
14
  import { Civility } from '../../../Enum/Civility';
5
15
  import { IAnalyticsUtm } from '../../models/IAnalyticsUtm';
6
16
  import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
17
+ import { UpdateOrCreateVisualizedInformation } from '../visualizedInformation/Update';
7
18
 
8
19
  /**
9
20
  * Response of the register prospect endpoint
10
21
  */
11
22
  export interface RegisterProspectResponse {
12
- externalId: string;
23
+ externalId?: string;
24
+ token?: string;
13
25
  }
14
26
 
15
27
  /**
@@ -19,6 +31,7 @@ export interface ProspectInfo {
19
31
  idCivility?: Civility;
20
32
  firstname?: string;
21
33
  lastname?: string;
34
+ password?: string;
22
35
  email: string;
23
36
  phone?: string;
24
37
  prefix?: string;
@@ -38,9 +51,9 @@ export interface ReferalProgram {
38
51
  }
39
52
 
40
53
  export interface RegisterProspect {
41
- user: ProspectInfo,
42
- society?: ProspectSocietyInfo,
43
- referralProgram?: ReferalProgram,
54
+ user: ProspectInfo;
55
+ society?: ProspectSocietyInfo;
56
+ referralProgram?: ReferalProgram;
44
57
  recaptcha?: string;
45
58
  token?: string;
46
59
  // @deprecated use sourceAlias instead
@@ -81,6 +94,20 @@ class ProspectInfoBody implements ProspectInfo {
81
94
  @IsOptional()
82
95
  @IsString()
83
96
  prefix?: string;
97
+
98
+ @ApiPropertyOptional()
99
+ @IsStrongPassword(
100
+ {
101
+ minLength: 8,
102
+ minLowercase: 0,
103
+ minNumbers: 0,
104
+ minSymbols: 0,
105
+ minUppercase: 0,
106
+ },
107
+ { message: 'Le mot de passe doit comporter 8 caractères minimum' },
108
+ )
109
+ @IsOptional()
110
+ password?: string;
84
111
  }
85
112
 
86
113
  class ProspectSocietyInfoBody implements ProspectSocietyInfo {
@@ -209,4 +236,9 @@ export class RegisterProspectBody implements RegisterProspect {
209
236
  @IsOptional()
210
237
  @IsString()
211
238
  comment?: string;
212
- }
239
+
240
+ @ApiPropertyOptional()
241
+ @IsOptional()
242
+ @IsArray()
243
+ visualizedInformations?: UpdateOrCreateVisualizedInformation[];
244
+ }
@@ -136,9 +136,6 @@ export enum Code {
136
136
 
137
137
  payloadIsEmpty = 'payload_is_empty',
138
138
 
139
- // PromoCode
140
- wrongPromoCode = 'wrong_promo_code',
141
-
142
139
  // Budget Fetch
143
140
  fetchNewBudgetInvalidSociety = 'fetch_new_budget_invalid_idSociety',
144
141
  fetchConnectionFailed = 'fetch_connection_failed',
package/ts/types/index.ts CHANGED
@@ -258,11 +258,9 @@ export * from './Interface/models/IWorkingSchedule';
258
258
  export * from './Interface/models/IField';
259
259
  export * from './Interface/models/IFecFile';
260
260
  export * from './Interface/models/ISalariesFile';
261
- export * from './Interface/models/IPromoCode';
262
261
  export * from './Interface/models/ILoan';
263
262
  export * from './Interface/models/IBalanceSheetModule';
264
263
  export * from './Interface/models/IStock';
265
- export * from './Interface/models/ISocietyPromoCode';
266
264
  export * from './Interface/models/IZTicket';
267
265
  export * from './Interface/models/IExerciceNote';
268
266
  export * from './Interface/models/IRevisionGuide';
@@ -278,7 +276,6 @@ export * from './Interface/models/IMachineLearningResult';
278
276
  export * from './Interface/models/IBalanceSheetModule2';
279
277
  export * from './Interface/models/IBalanceSheetStatus';
280
278
  export * from './Interface/models/IBalanceSheetCompletion';
281
- export * from './Interface/models/IDefaultPromotion';
282
279
  export * from './Interface/models/INafCode';
283
280
  export * from './Interface/models/IMobile';
284
281
  export * from './Interface/models/ISocietyEvent';
@@ -721,8 +718,6 @@ export * from './Interface/api/revision/Create';
721
718
  export * from './Interface/api/vatDeclaration/QueryVatDeclaration';
722
719
  export * from './Interface/api/vatDeclaration/ReadVatVariousOperations';
723
720
  export * from './Interface/api/vatDeclaration/ResultFormatToEntries';
724
- export * from './Interface/api/promoCode/QueryDefaultPromotion';
725
- export * from './Interface/api/promoCode/ReadDefaultPromotion';
726
721
  export * from './Interface/api/SocietyTransaction/Query';
727
722
  export * from './Interface/api/SocietyTransaction/QuerySocietyTransactionCount';
728
723
  export * from './Interface/api/SocietyTransaction/Read';
@@ -735,8 +730,6 @@ export * from './Interface/api/webmail/MigrateMailAddresses';
735
730
  export * from './Interface/api/webmail/ExportEmails';
736
731
  export * from './Interface/api/webmail/PostAttachmentEmailFromLambdaParams';
737
732
  export * from './Interface/api/webmail/GetPaginatedWhereObjectParams';
738
- export * from './Interface/api/promoCode/CreateDefaultPromoCode';
739
- export * from './Interface/api/promoCode/ReadDefaultPaginationPromoCode';
740
733
  export * from './Interface/api/bankAccount/Delete';
741
734
  export * from './Interface/api/log/QueryLogPagination';
742
735
  export * from './Interface/api/employee/QueryEmployeeSearch';
@@ -838,15 +831,11 @@ export * from './Interface/api/shine/GetConnect';
838
831
  export * from './Interface/api/shine/CreateShineAccount';
839
832
  export * from './Interface/api/shine/CreateShineTransactions';
840
833
  export * from './Interface/api/shine/ConnectResponse';
841
- export * from './Interface/api/promoCode/UpdatePromoCode';
842
- export * from './Interface/api/promoCode/CreatePromoCode';
843
834
  export * from './Interface/api/balanceBankAccount/CreateBudgetBalanceBankAccount';
844
835
  export * from './Interface/api/loan/CreateLoan';
845
836
  export * from './Interface/api/loan/ReadLoan';
846
837
  export * from './Interface/api/stock/StocksType';
847
838
  export * from './Interface/api/lettering/QueryRegroupLettering';
848
- // export * from './Interface/api/stock/StockEntries';
849
- export * from './Interface/api/societyPromoCode/CreateSocietyPromoCode';
850
839
  export * from './Interface/api/loan/UpdateLoan';
851
840
  export * from './Interface/api/zticket/CreateZTicket';
852
841
  export * from './Interface/api/zticket/QueryZTicket';
@@ -15,7 +15,6 @@ export type Brand = {
15
15
  logoS3?: string;
16
16
  lightLogoS3?: string;
17
17
  privacyPolicy?: string;
18
- recaptcha?: { secretKey: string };
19
18
  urlApi1?: string;
20
19
  urlClient?: string;
21
20
  urlApp?: string;
@@ -74,7 +73,6 @@ export type Brand = {
74
73
  statut: string;
75
74
  zipCode: string;
76
75
  };
77
- recaptchaSecretKey?: string;
78
76
  idPrestationsListHidden?: number[];
79
77
  idPrestationsListAuthorized?: number[];
80
78
  logoUrl?: string;
package/ts/utils/index.ts CHANGED
@@ -20,4 +20,3 @@ export * from './isHtml';
20
20
  export * from './isUrl';
21
21
  export * from './bankAccount';
22
22
  export * from './commercialOffer';
23
- export * from './subscription';
@@ -15,6 +15,7 @@ import { getApplicationFeesAmount, getPriceGrid } from './prestation';
15
15
  export interface PaymentsWithList extends IPayment {
16
16
  type?: 'isComptable' | 'isJuridique' | 'isSocial' | 'isOther';
17
17
  listPayments: IPayment[];
18
+ isYearly?: boolean;
18
19
  }
19
20
 
20
21
  /**
@@ -152,18 +152,42 @@ const isExpress = (idPrestationList: number): boolean => {
152
152
  const isConsultingHour = (idPrestationList: number[]): boolean =>
153
153
  !!intersection(idPrestationList, [PrestationType.CONSULTING_HOUR]).length;
154
154
 
155
+ const isSoftwarePrestation = (idPrestationList: number[]): boolean =>
156
+ !!intersection(idPrestationList, [PrestationType.STEERING, PrestationType.VAT, PrestationType.BALANCESHEET]).length &&
157
+ idPrestationList.length === 1;
158
+
155
159
  const calculateScoringOfPrestation = (idPrestationType: PrestationType, prestations: IPrestation[]): number => {
156
160
  const prestationsSignedPaid = prestations.filter(
157
161
  (prestation) => prestation.paid && prestation.signed && prestation.terminationList === null,
158
162
  );
159
163
 
164
+ const currentPrestation = prestations.find(
165
+ (el) => el.idPrestationList === idPrestationType && el.terminationList === null,
166
+ );
167
+
160
168
  // Get the list of prestations that are half price
161
- const prestationHalfPriceList = Object.values(PrestationDetail).filter((p) => p.isComptable && !p.isCatalog);
169
+ const prestationHalfPriceList = Object.values(PrestationDetail).filter(
170
+ (p) =>
171
+ p.isComptable &&
172
+ !p.isCatalog &&
173
+ p.id &&
174
+ ![PrestationType.BALANCESHEET, PrestationType.VAT, PrestationType.STEERING].includes(p.id),
175
+ );
162
176
  const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);
163
177
 
164
178
  // Get the number of points for the new prestation
165
179
  const prestaDetails = Object.values(PrestationDetail).find((prestaDetail) => prestaDetail.id === idPrestationType);
166
- const numberPoint = prestaDetails?.point || 0;
180
+ let numberPoint = prestaDetails?.point || 0;
181
+
182
+ // If software prestation and annual payment then return 0 points
183
+ if (
184
+ [PrestationType.BALANCESHEET, PrestationType.VAT, PrestationType.STEERING].includes(idPrestationType) &&
185
+ currentPrestation?.exercices?.length &&
186
+ //@ts-expect-error
187
+ currentPrestation?.exercices[0].ExercicePrestation?.totalPrestation < 80
188
+ ) {
189
+ numberPoint = 0;
190
+ }
167
191
 
168
192
  // Get list of prestations that are already done and check if one of them is in the list of prestations that are half price
169
193
  const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);
@@ -488,12 +512,12 @@ const calculatePrestationPrice = (
488
512
  price = totalWithReduce.price;
489
513
  } else {
490
514
  totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);
491
- if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList) && !isSubPrestation){
515
+ if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList) && !isSubPrestation) {
492
516
  // totalPrestation += 50;
493
517
  // La création est offerte désormais
494
- // inutile d'ajouter les frais de greffe et d'annonce légale,
518
+ // inutile d'ajouter les frais de greffe et d'annonce légale,
495
519
  // car ne compte pas dans le calcul pour les sales
496
- }
520
+ }
497
521
  }
498
522
  /* Gestion des offres */
499
523
  /* Offre montant offer */
@@ -600,6 +624,7 @@ export {
600
624
  isFromStatutsExpress,
601
625
  isExpress,
602
626
  isConsultingHour,
627
+ isSoftwarePrestation,
603
628
  calculateScoringOfPrestation,
604
629
  calculatePrestationPrice,
605
630
  getPrestationOptions,
@@ -1,6 +1,6 @@
1
1
  import { round as _round, uniqBy as _uniqBy } from 'lodash';
2
2
  import { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';
3
- import { Vat } from '../../types/Enum/Vat';
3
+ import { Vat, VatType } from '../../types/Enum/Vat';
4
4
 
5
5
  export function getAmountByAccountNumber(
6
6
  accountingEntries: IAccountingEntry[],
@@ -101,3 +101,12 @@ export function getTaxesExcludedAmount(amountTtc: number, idVat: number, isRound
101
101
  if (!isRounded) return amountNotRounded;
102
102
  return Math.round(amountNotRounded * 100) / 100;
103
103
  }
104
+
105
+ export function getInternalInvoicingVatByZipCode(zipCode: string | null): VatType {
106
+ if (zipCode?.startsWith('971') || zipCode?.startsWith('972') || zipCode?.startsWith('974')) {
107
+ return Vat.TX_8_5;
108
+ } else if (zipCode?.startsWith('973') || zipCode?.startsWith('976') || zipCode?.startsWith('977')) {
109
+ return Vat.WITHOUT_TAXE;
110
+ }
111
+ return Vat.TX_20;
112
+ }
@@ -1,14 +0,0 @@
1
- import { Resource } from '../Resource';
2
- import { IPromoCode, CreatePromoCode, UpdatePromoCode, QueryDefaultPromotion, ReadDefaultPromotion, CreateDefaultPromoCode, IDefaultPromotion, BasePaginate, ReadDefaultPaginationPromoCode } from '../../types';
3
- export declare class PromoCode extends Resource {
4
- getAll(): Promise<IPromoCode[]>;
5
- create(payload: CreatePromoCode): Promise<IPromoCode>;
6
- update(id: number, payload: UpdatePromoCode): Promise<IPromoCode>;
7
- delete(id: number): Promise<void>;
8
- getDefaultPromotion(params: QueryDefaultPromotion): Promise<ReadDefaultPromotion | null>;
9
- createDefaultPromotion(params: CreateDefaultPromoCode): Promise<IDefaultPromotion>;
10
- updateDefaultPromotion(id: number, params: Partial<CreateDefaultPromoCode>): Promise<number>;
11
- deleteDefaultPromotion(id: number): Promise<number>;
12
- getAllDefaultPromotion(params: ReadDefaultPaginationPromoCode): Promise<BasePaginate<IDefaultPromotion>>;
13
- }
14
- //# sourceMappingURL=PromoCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PromoCode.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/PromoCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,UAAU,EACV,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,8BAA8B,EAC/B,MAAM,aAAa,CAAC;AAErB,qBAAa,SAAU,SAAQ,QAAQ;IACrC,MAAM,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAI/B,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAIrD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAIjE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,mBAAmB,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAIxF,sBAAsB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIlF,sBAAsB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAI5F,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAInD,sBAAsB,CAAC,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;CAGzG"}