@silexpert/core 1.1.190 → 1.1.192

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 (291) hide show
  1. package/dist/cjs/api/resources/CustomerSignature.d.ts +6 -0
  2. package/dist/cjs/api/resources/CustomerSignature.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/CustomerSignature.js +11 -0
  4. package/dist/cjs/api/resources/CustomerSignature.js.map +1 -0
  5. package/dist/cjs/api/resources/Equipment.d.ts +23 -0
  6. package/dist/cjs/api/resources/Equipment.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/Equipment.js +49 -0
  8. package/dist/cjs/api/resources/Equipment.js.map +1 -0
  9. package/dist/cjs/api/resources/Subscription.d.ts +2 -0
  10. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/Subscription.js +7 -1
  12. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  13. package/dist/cjs/api/resources.d.ts +4 -0
  14. package/dist/cjs/api/resources.d.ts.map +1 -1
  15. package/dist/cjs/api/resources.js +4 -0
  16. package/dist/cjs/api/resources.js.map +1 -1
  17. package/dist/cjs/types/Enum/BrandClementine.d.ts +1 -2
  18. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/BrandClementine.js +1 -2
  20. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  21. package/dist/cjs/types/Enum/BrandComptalib.d.ts +3 -3
  22. package/dist/cjs/types/Enum/BrandComptalib.js +3 -3
  23. package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
  24. package/dist/cjs/types/Enum/BrandLegalstart.d.ts +1 -1
  25. package/dist/cjs/types/Enum/BrandLegalstart.js +1 -1
  26. package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
  27. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +4 -4
  28. package/dist/cjs/types/Enum/BrandPourcentage.js +7 -7
  29. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  30. package/dist/cjs/types/Enum/BrandStatutsExpress.d.ts +1 -1
  31. package/dist/cjs/types/Enum/BrandStatutsExpress.js +2 -2
  32. package/dist/cjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  33. package/dist/cjs/types/Enum/CustomerSignature.d.ts +2 -0
  34. package/dist/cjs/types/Enum/CustomerSignature.d.ts.map +1 -1
  35. package/dist/cjs/types/Enum/CustomerSignature.js +2 -0
  36. package/dist/cjs/types/Enum/CustomerSignature.js.map +1 -1
  37. package/dist/cjs/types/Enum/EntityType.d.ts +73 -19
  38. package/dist/cjs/types/Enum/EntityType.d.ts.map +1 -1
  39. package/dist/cjs/types/Enum/EntityType.js +9 -1
  40. package/dist/cjs/types/Enum/EntityType.js.map +1 -1
  41. package/dist/cjs/types/Enum/EquipmentAvailability.d.ts +16 -0
  42. package/dist/cjs/types/Enum/EquipmentAvailability.d.ts.map +1 -0
  43. package/dist/cjs/types/Enum/EquipmentAvailability.js +24 -0
  44. package/dist/cjs/types/Enum/EquipmentAvailability.js.map +1 -0
  45. package/dist/cjs/types/Enum/EquipmentState.d.ts +19 -0
  46. package/dist/cjs/types/Enum/EquipmentState.d.ts.map +1 -0
  47. package/dist/cjs/types/Enum/EquipmentState.js +27 -0
  48. package/dist/cjs/types/Enum/EquipmentState.js.map +1 -0
  49. package/dist/cjs/types/Enum/EquipmentType.d.ts +48 -0
  50. package/dist/cjs/types/Enum/EquipmentType.d.ts.map +1 -0
  51. package/dist/cjs/types/Enum/EquipmentType.js +64 -0
  52. package/dist/cjs/types/Enum/EquipmentType.js.map +1 -0
  53. package/dist/cjs/types/Enum/LegalForm.js +3 -3
  54. package/dist/cjs/types/Enum/LegalForm.js.map +1 -1
  55. package/dist/cjs/types/Enum/PriceGridClementine.js +3 -3
  56. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  57. package/dist/cjs/types/Enum/PriceGridLegalstart.js +1 -1
  58. package/dist/cjs/types/Enum/PriceGridLegalstart.js.map +1 -1
  59. package/dist/cjs/types/Enum/PriceGridPourcentage.js +12 -12
  60. package/dist/cjs/types/Enum/PriceGridPourcentage.js.map +1 -1
  61. package/dist/cjs/types/Enum/Room.d.ts +3 -0
  62. package/dist/cjs/types/Enum/Room.d.ts.map +1 -0
  63. package/dist/cjs/types/Enum/Room.js +8 -0
  64. package/dist/cjs/types/Enum/Room.js.map +1 -0
  65. package/dist/cjs/types/Interface/api/contest/Create.d.ts +1 -1
  66. package/dist/cjs/types/Interface/api/contest/Create.d.ts.map +1 -1
  67. package/dist/cjs/types/Interface/api/contest/Create.js +1 -1
  68. package/dist/cjs/types/Interface/api/contest/Create.js.map +1 -1
  69. package/dist/cjs/types/Interface/api/contest/Query.d.ts +3 -1
  70. package/dist/cjs/types/Interface/api/contest/Query.d.ts.map +1 -1
  71. package/dist/cjs/types/Interface/api/contest/Query.js +9 -1
  72. package/dist/cjs/types/Interface/api/contest/Query.js.map +1 -1
  73. package/dist/cjs/types/Interface/api/customerSignature/Query.d.ts +20 -0
  74. package/dist/cjs/types/Interface/api/customerSignature/Query.d.ts.map +1 -0
  75. package/dist/cjs/types/Interface/api/customerSignature/Query.js +120 -0
  76. package/dist/cjs/types/Interface/api/customerSignature/Query.js.map +1 -0
  77. package/dist/cjs/types/Interface/api/equipment/Query.d.ts +18 -0
  78. package/dist/cjs/types/Interface/api/equipment/Query.d.ts.map +1 -0
  79. package/dist/cjs/types/Interface/api/equipment/Query.js +103 -0
  80. package/dist/cjs/types/Interface/api/equipment/Query.js.map +1 -0
  81. package/dist/cjs/types/Interface/api/equipment/StockAmount.d.ts +10 -0
  82. package/dist/cjs/types/Interface/api/equipment/StockAmount.d.ts.map +1 -0
  83. package/dist/cjs/types/Interface/api/equipment/StockAmount.js +3 -0
  84. package/dist/cjs/types/Interface/api/equipment/StockAmount.js.map +1 -0
  85. package/dist/cjs/types/Interface/api/userRoomEquipment/BulkUpdate.d.ts +5 -0
  86. package/dist/cjs/types/Interface/api/userRoomEquipment/BulkUpdate.d.ts.map +1 -0
  87. package/dist/cjs/types/Interface/api/userRoomEquipment/BulkUpdate.js +23 -0
  88. package/dist/cjs/types/Interface/api/userRoomEquipment/BulkUpdate.js.map +1 -0
  89. package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts +5 -0
  90. package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts.map +1 -0
  91. package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.js +28 -0
  92. package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.js.map +1 -0
  93. package/dist/cjs/types/Interface/api/userRoomEquipment/Query.d.ts +10 -0
  94. package/dist/cjs/types/Interface/api/userRoomEquipment/Query.d.ts.map +1 -0
  95. package/dist/cjs/types/Interface/api/userRoomEquipment/Query.js +61 -0
  96. package/dist/cjs/types/Interface/api/userRoomEquipment/Query.js.map +1 -0
  97. package/dist/cjs/types/Interface/models/ICustomerSignature.d.ts +7 -3
  98. package/dist/cjs/types/Interface/models/ICustomerSignature.d.ts.map +1 -1
  99. package/dist/cjs/types/Interface/models/ICustomerSignature.js.map +1 -1
  100. package/dist/cjs/types/Interface/models/IEquipment.d.ts +19 -0
  101. package/dist/cjs/types/Interface/models/IEquipment.d.ts.map +1 -0
  102. package/dist/cjs/types/Interface/models/IEquipment.js +3 -0
  103. package/dist/cjs/types/Interface/models/IEquipment.js.map +1 -0
  104. package/dist/cjs/types/Interface/models/IFile.d.ts.map +1 -1
  105. package/dist/cjs/types/Interface/models/IFile.js.map +1 -1
  106. package/dist/cjs/types/Interface/models/IUserRoomEquipment.d.ts +20 -0
  107. package/dist/cjs/types/Interface/models/IUserRoomEquipment.d.ts.map +1 -0
  108. package/dist/cjs/types/Interface/models/IUserRoomEquipment.js +3 -0
  109. package/dist/cjs/types/Interface/models/IUserRoomEquipment.js.map +1 -0
  110. package/dist/cjs/types/Interface/models/IVoteContest.d.ts +1 -1
  111. package/dist/cjs/types/Interface/models/IVoteContest.d.ts.map +1 -1
  112. package/dist/cjs/types/Interface/models/IVoteContest.js.map +1 -1
  113. package/dist/cjs/types/index.d.ts +12 -0
  114. package/dist/cjs/types/index.d.ts.map +1 -1
  115. package/dist/cjs/types/index.js +12 -0
  116. package/dist/cjs/types/index.js.map +1 -1
  117. package/dist/cjs/utils/index.d.ts +1 -0
  118. package/dist/cjs/utils/index.d.ts.map +1 -1
  119. package/dist/cjs/utils/index.js +1 -0
  120. package/dist/cjs/utils/index.js.map +1 -1
  121. package/dist/cjs/utils/stringUtils/clean.d.ts +1 -1
  122. package/dist/cjs/utils/stringUtils/clean.js +2 -2
  123. package/dist/cjs/utils/stringUtils/clean.js.map +1 -1
  124. package/dist/cjs/utils/subscription.d.ts +20 -0
  125. package/dist/cjs/utils/subscription.d.ts.map +1 -0
  126. package/dist/cjs/utils/subscription.js +104 -0
  127. package/dist/cjs/utils/subscription.js.map +1 -0
  128. package/dist/mjs/api/resources/CustomerSignature.d.ts +6 -0
  129. package/dist/mjs/api/resources/CustomerSignature.d.ts.map +1 -0
  130. package/dist/mjs/api/resources/CustomerSignature.js +7 -0
  131. package/dist/mjs/api/resources/CustomerSignature.js.map +1 -0
  132. package/dist/mjs/api/resources/Equipment.d.ts +23 -0
  133. package/dist/mjs/api/resources/Equipment.d.ts.map +1 -0
  134. package/dist/mjs/api/resources/Equipment.js +50 -0
  135. package/dist/mjs/api/resources/Equipment.js.map +1 -0
  136. package/dist/mjs/api/resources/Subscription.d.ts +2 -0
  137. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  138. package/dist/mjs/api/resources/Subscription.js +7 -1
  139. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  140. package/dist/mjs/api/resources.d.ts +4 -0
  141. package/dist/mjs/api/resources.d.ts.map +1 -1
  142. package/dist/mjs/api/resources.js +4 -0
  143. package/dist/mjs/api/resources.js.map +1 -1
  144. package/dist/mjs/types/Enum/BrandClementine.d.ts +1 -2
  145. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  146. package/dist/mjs/types/Enum/BrandClementine.js +1 -2
  147. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  148. package/dist/mjs/types/Enum/BrandComptalib.d.ts +3 -3
  149. package/dist/mjs/types/Enum/BrandComptalib.js +3 -3
  150. package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
  151. package/dist/mjs/types/Enum/BrandLegalstart.d.ts +1 -1
  152. package/dist/mjs/types/Enum/BrandLegalstart.js +1 -1
  153. package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
  154. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +4 -4
  155. package/dist/mjs/types/Enum/BrandPourcentage.js +7 -7
  156. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  157. package/dist/mjs/types/Enum/BrandStatutsExpress.d.ts +1 -1
  158. package/dist/mjs/types/Enum/BrandStatutsExpress.js +2 -2
  159. package/dist/mjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  160. package/dist/mjs/types/Enum/CustomerSignature.d.ts +2 -0
  161. package/dist/mjs/types/Enum/CustomerSignature.d.ts.map +1 -1
  162. package/dist/mjs/types/Enum/CustomerSignature.js +2 -0
  163. package/dist/mjs/types/Enum/CustomerSignature.js.map +1 -1
  164. package/dist/mjs/types/Enum/EntityType.d.ts +73 -19
  165. package/dist/mjs/types/Enum/EntityType.d.ts.map +1 -1
  166. package/dist/mjs/types/Enum/EntityType.js +9 -1
  167. package/dist/mjs/types/Enum/EntityType.js.map +1 -1
  168. package/dist/mjs/types/Enum/EquipmentAvailability.d.ts +16 -0
  169. package/dist/mjs/types/Enum/EquipmentAvailability.d.ts.map +1 -0
  170. package/dist/mjs/types/Enum/EquipmentAvailability.js +21 -0
  171. package/dist/mjs/types/Enum/EquipmentAvailability.js.map +1 -0
  172. package/dist/mjs/types/Enum/EquipmentState.d.ts +19 -0
  173. package/dist/mjs/types/Enum/EquipmentState.d.ts.map +1 -0
  174. package/dist/mjs/types/Enum/EquipmentState.js +24 -0
  175. package/dist/mjs/types/Enum/EquipmentState.js.map +1 -0
  176. package/dist/mjs/types/Enum/EquipmentType.d.ts +48 -0
  177. package/dist/mjs/types/Enum/EquipmentType.d.ts.map +1 -0
  178. package/dist/mjs/types/Enum/EquipmentType.js +61 -0
  179. package/dist/mjs/types/Enum/EquipmentType.js.map +1 -0
  180. package/dist/mjs/types/Enum/LegalForm.js +3 -3
  181. package/dist/mjs/types/Enum/LegalForm.js.map +1 -1
  182. package/dist/mjs/types/Enum/PriceGridClementine.js +3 -3
  183. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  184. package/dist/mjs/types/Enum/PriceGridLegalstart.js +1 -1
  185. package/dist/mjs/types/Enum/PriceGridLegalstart.js.map +1 -1
  186. package/dist/mjs/types/Enum/PriceGridPourcentage.js +12 -12
  187. package/dist/mjs/types/Enum/PriceGridPourcentage.js.map +1 -1
  188. package/dist/mjs/types/Enum/Room.d.ts +3 -0
  189. package/dist/mjs/types/Enum/Room.d.ts.map +1 -0
  190. package/dist/mjs/types/Enum/Room.js +5 -0
  191. package/dist/mjs/types/Enum/Room.js.map +1 -0
  192. package/dist/mjs/types/Interface/api/contest/Create.d.ts +1 -1
  193. package/dist/mjs/types/Interface/api/contest/Create.d.ts.map +1 -1
  194. package/dist/mjs/types/Interface/api/contest/Create.js +2 -2
  195. package/dist/mjs/types/Interface/api/contest/Create.js.map +1 -1
  196. package/dist/mjs/types/Interface/api/contest/Query.d.ts +3 -1
  197. package/dist/mjs/types/Interface/api/contest/Query.d.ts.map +1 -1
  198. package/dist/mjs/types/Interface/api/contest/Query.js +12 -2
  199. package/dist/mjs/types/Interface/api/contest/Query.js.map +1 -1
  200. package/dist/mjs/types/Interface/api/customerSignature/Query.d.ts +20 -0
  201. package/dist/mjs/types/Interface/api/customerSignature/Query.d.ts.map +1 -0
  202. package/dist/mjs/types/Interface/api/customerSignature/Query.js +133 -0
  203. package/dist/mjs/types/Interface/api/customerSignature/Query.js.map +1 -0
  204. package/dist/mjs/types/Interface/api/equipment/Query.d.ts +18 -0
  205. package/dist/mjs/types/Interface/api/equipment/Query.d.ts.map +1 -0
  206. package/dist/mjs/types/Interface/api/equipment/Query.js +113 -0
  207. package/dist/mjs/types/Interface/api/equipment/Query.js.map +1 -0
  208. package/dist/mjs/types/Interface/api/equipment/StockAmount.d.ts +10 -0
  209. package/dist/mjs/types/Interface/api/equipment/StockAmount.d.ts.map +1 -0
  210. package/dist/mjs/types/Interface/api/equipment/StockAmount.js +2 -0
  211. package/dist/mjs/types/Interface/api/equipment/StockAmount.js.map +1 -0
  212. package/dist/mjs/types/Interface/api/userRoomEquipment/BulkUpdate.d.ts +5 -0
  213. package/dist/mjs/types/Interface/api/userRoomEquipment/BulkUpdate.d.ts.map +1 -0
  214. package/dist/mjs/types/Interface/api/userRoomEquipment/BulkUpdate.js +20 -0
  215. package/dist/mjs/types/Interface/api/userRoomEquipment/BulkUpdate.js.map +1 -0
  216. package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts +5 -0
  217. package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts.map +1 -0
  218. package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.js +26 -0
  219. package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.js.map +1 -0
  220. package/dist/mjs/types/Interface/api/userRoomEquipment/Query.d.ts +10 -0
  221. package/dist/mjs/types/Interface/api/userRoomEquipment/Query.d.ts.map +1 -0
  222. package/dist/mjs/types/Interface/api/userRoomEquipment/Query.js +64 -0
  223. package/dist/mjs/types/Interface/api/userRoomEquipment/Query.js.map +1 -0
  224. package/dist/mjs/types/Interface/models/ICustomerSignature.d.ts +7 -3
  225. package/dist/mjs/types/Interface/models/ICustomerSignature.d.ts.map +1 -1
  226. package/dist/mjs/types/Interface/models/ICustomerSignature.js.map +1 -1
  227. package/dist/mjs/types/Interface/models/IEquipment.d.ts +19 -0
  228. package/dist/mjs/types/Interface/models/IEquipment.d.ts.map +1 -0
  229. package/dist/mjs/types/Interface/models/IEquipment.js +2 -0
  230. package/dist/mjs/types/Interface/models/IEquipment.js.map +1 -0
  231. package/dist/mjs/types/Interface/models/IFile.d.ts.map +1 -1
  232. package/dist/mjs/types/Interface/models/IFile.js.map +1 -1
  233. package/dist/mjs/types/Interface/models/IUserRoomEquipment.d.ts +20 -0
  234. package/dist/mjs/types/Interface/models/IUserRoomEquipment.d.ts.map +1 -0
  235. package/dist/mjs/types/Interface/models/IUserRoomEquipment.js +2 -0
  236. package/dist/mjs/types/Interface/models/IUserRoomEquipment.js.map +1 -0
  237. package/dist/mjs/types/Interface/models/IVoteContest.d.ts +1 -1
  238. package/dist/mjs/types/Interface/models/IVoteContest.d.ts.map +1 -1
  239. package/dist/mjs/types/Interface/models/IVoteContest.js.map +1 -1
  240. package/dist/mjs/types/index.d.ts +12 -0
  241. package/dist/mjs/types/index.d.ts.map +1 -1
  242. package/dist/mjs/types/index.js +12 -0
  243. package/dist/mjs/types/index.js.map +1 -1
  244. package/dist/mjs/utils/index.d.ts +1 -0
  245. package/dist/mjs/utils/index.d.ts.map +1 -1
  246. package/dist/mjs/utils/index.js +1 -0
  247. package/dist/mjs/utils/index.js.map +1 -1
  248. package/dist/mjs/utils/stringUtils/clean.d.ts +1 -1
  249. package/dist/mjs/utils/stringUtils/clean.js +2 -2
  250. package/dist/mjs/utils/stringUtils/clean.js.map +1 -1
  251. package/dist/mjs/utils/subscription.d.ts +20 -0
  252. package/dist/mjs/utils/subscription.d.ts.map +1 -0
  253. package/dist/mjs/utils/subscription.js +99 -0
  254. package/dist/mjs/utils/subscription.js.map +1 -0
  255. package/package.json +2 -2
  256. package/ts/api/resources/CustomerSignature.ts +8 -0
  257. package/ts/api/resources/Equipment.ts +63 -0
  258. package/ts/api/resources/Subscription.ts +9 -1
  259. package/ts/api/resources.ts +4 -0
  260. package/ts/types/Enum/BrandClementine.ts +1 -2
  261. package/ts/types/Enum/BrandComptalib.ts +3 -3
  262. package/ts/types/Enum/BrandLegalstart.ts +1 -1
  263. package/ts/types/Enum/BrandPourcentage.ts +7 -7
  264. package/ts/types/Enum/BrandStatutsExpress.ts +2 -2
  265. package/ts/types/Enum/CustomerSignature.ts +3 -0
  266. package/ts/types/Enum/EntityType.ts +10 -2
  267. package/ts/types/Enum/EquipmentAvailability.ts +20 -0
  268. package/ts/types/Enum/EquipmentState.ts +23 -0
  269. package/ts/types/Enum/EquipmentType.ts +60 -0
  270. package/ts/types/Enum/LegalForm.ts +3 -3
  271. package/ts/types/Enum/PriceGridClementine.ts +3 -3
  272. package/ts/types/Enum/PriceGridLegalstart.ts +1 -1
  273. package/ts/types/Enum/PriceGridPourcentage.ts +12 -12
  274. package/ts/types/Enum/Room.ts +3 -0
  275. package/ts/types/Interface/api/contest/Create.ts +1 -1
  276. package/ts/types/Interface/api/contest/Query.ts +7 -1
  277. package/ts/types/Interface/api/customerSignature/Query.ts +89 -0
  278. package/ts/types/Interface/api/equipment/Query.ts +75 -0
  279. package/ts/types/Interface/api/equipment/StockAmount.ts +9 -0
  280. package/ts/types/Interface/api/userRoomEquipment/BulkUpdate.ts +9 -0
  281. package/ts/types/Interface/api/userRoomEquipment/CreateSignature.ts +12 -0
  282. package/ts/types/Interface/api/userRoomEquipment/Query.ts +40 -0
  283. package/ts/types/Interface/models/ICustomerSignature.ts +7 -3
  284. package/ts/types/Interface/models/IEquipment.ts +21 -0
  285. package/ts/types/Interface/models/IFile.ts +1 -1
  286. package/ts/types/Interface/models/IUserRoomEquipment.ts +22 -0
  287. package/ts/types/Interface/models/IVoteContest.ts +1 -1
  288. package/ts/types/index.ts +13 -0
  289. package/ts/utils/index.ts +1 -0
  290. package/ts/utils/stringUtils/clean.ts +2 -2
  291. package/ts/utils/subscription.ts +130 -0
@@ -17,7 +17,7 @@ export const PriceGridPourcentage = [
17
17
  },
18
18
  {
19
19
  id: ClosingType.OUTDATED,
20
- month: 16,
20
+ month: 12,
21
21
  },
22
22
  ],
23
23
  maximumMonthlyPayment: [
@@ -85,7 +85,7 @@ export const PriceGridPourcentage = [
85
85
  },
86
86
  {
87
87
  id: ClosingType.OUTDATED,
88
- month: 16,
88
+ month: 12,
89
89
  },
90
90
  ],
91
91
  maximumMonthlyPayment: [
@@ -203,7 +203,7 @@ export const PriceGridPourcentage = [
203
203
  },
204
204
  {
205
205
  id: ClosingType.OUTDATED,
206
- month: 16,
206
+ month: 12,
207
207
  },
208
208
  ],
209
209
  maximumMonthlyPayment: [
@@ -271,7 +271,7 @@ export const PriceGridPourcentage = [
271
271
  },
272
272
  {
273
273
  id: ClosingType.OUTDATED,
274
- month: 16,
274
+ month: 12,
275
275
  },
276
276
  ],
277
277
  maximumMonthlyPayment: [
@@ -389,7 +389,7 @@ export const PriceGridPourcentage = [
389
389
  },
390
390
  {
391
391
  id: ClosingType.OUTDATED,
392
- month: 16,
392
+ month: 12,
393
393
  },
394
394
  ],
395
395
  maximumMonthlyPayment: [
@@ -457,7 +457,7 @@ export const PriceGridPourcentage = [
457
457
  },
458
458
  {
459
459
  id: ClosingType.OUTDATED,
460
- month: 16,
460
+ month: 12,
461
461
  },
462
462
  ],
463
463
  maximumMonthlyPayment: [
@@ -575,7 +575,7 @@ export const PriceGridPourcentage = [
575
575
  },
576
576
  {
577
577
  id: ClosingType.OUTDATED,
578
- month: 16,
578
+ month: 12,
579
579
  },
580
580
  ],
581
581
  maximumMonthlyPayment: [
@@ -643,7 +643,7 @@ export const PriceGridPourcentage = [
643
643
  },
644
644
  {
645
645
  id: ClosingType.OUTDATED,
646
- month: 16,
646
+ month: 12,
647
647
  },
648
648
  ],
649
649
  maximumMonthlyPayment: [
@@ -761,7 +761,7 @@ export const PriceGridPourcentage = [
761
761
  },
762
762
  {
763
763
  id: ClosingType.OUTDATED,
764
- month: 16,
764
+ month: 12,
765
765
  },
766
766
  ],
767
767
  maximumMonthlyPayment: [
@@ -829,7 +829,7 @@ export const PriceGridPourcentage = [
829
829
  },
830
830
  {
831
831
  id: ClosingType.OUTDATED,
832
- month: 16,
832
+ month: 12,
833
833
  },
834
834
  ],
835
835
  maximumMonthlyPayment: [
@@ -947,7 +947,7 @@ export const PriceGridPourcentage = [
947
947
  },
948
948
  {
949
949
  id: ClosingType.OUTDATED,
950
- month: 16,
950
+ month: 12,
951
951
  },
952
952
  ],
953
953
  maximumMonthlyPayment: [
@@ -1015,7 +1015,7 @@ export const PriceGridPourcentage = [
1015
1015
  },
1016
1016
  {
1017
1017
  id: ClosingType.OUTDATED,
1018
- month: 16,
1018
+ month: 12,
1019
1019
  },
1020
1020
  ],
1021
1021
  maximumMonthlyPayment: [
@@ -0,0 +1,3 @@
1
+ export enum Room {
2
+ // TODO: Add rooms
3
+ }
@@ -66,7 +66,7 @@ export class CreateCheckVote {
66
66
 
67
67
  export class CreateVoteContest {
68
68
  @ApiProperty()
69
- emailHash: string;
69
+ hashMail: string;
70
70
 
71
71
  @ApiProperty()
72
72
  userHash: string;
@@ -6,6 +6,12 @@ export class QueryFetchUserContest {
6
6
  @ApiPropertyOptional()
7
7
  search?: string;
8
8
 
9
+ @ApiPropertyOptional()
10
+ page?: number;
11
+
12
+ @ApiPropertyOptional()
13
+ limit?: number;
14
+
9
15
  @ApiPropertyOptional()
10
16
  orderBy?: string;
11
17
 
@@ -16,5 +22,5 @@ export class QueryFetchUserContest {
16
22
  top?: boolean | null;
17
23
 
18
24
  @ApiPropertyOptional()
19
- idToExclude?: number;
25
+ idToPutFirst?: number;
20
26
  }
@@ -0,0 +1,89 @@
1
+ import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class QueryCustomerSignature {
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsInt()
8
+ id?: number;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
12
+ @IsInt()
13
+ idDemand?: number;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsOptional()
17
+ @IsInt()
18
+ idFileFilesInfos?: number;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsString()
23
+ fileNameFilesInfos?: string;
24
+
25
+ @ApiPropertyOptional()
26
+ @IsOptional()
27
+ @IsString()
28
+ sha1FilesInfos?: string;
29
+
30
+ @ApiPropertyOptional()
31
+ @IsOptional()
32
+ @IsInt()
33
+ memberId?: number;
34
+
35
+ @ApiPropertyOptional()
36
+ @IsOptional()
37
+ @IsString()
38
+ tokenSigner?: string;
39
+
40
+ @ApiPropertyOptional()
41
+ @IsOptional()
42
+ @IsString()
43
+ mailSigner?: string;
44
+
45
+ @ApiPropertyOptional()
46
+ @IsOptional()
47
+ @IsString()
48
+ phoneSigner?: string;
49
+
50
+ @ApiPropertyOptional()
51
+ @IsOptional()
52
+ @IsInt()
53
+ idSendMethod?: number;
54
+
55
+ @ApiPropertyOptional()
56
+ @IsOptional()
57
+ @IsInt()
58
+ idStatusSignature?: number;
59
+
60
+ @ApiPropertyOptional()
61
+ @IsOptional()
62
+ @IsInt()
63
+ idPrestation?: number;
64
+
65
+ @ApiPropertyOptional()
66
+ @IsOptional()
67
+ @IsInt()
68
+ idUser?: number;
69
+
70
+ @ApiPropertyOptional()
71
+ @IsOptional()
72
+ @IsInt()
73
+ idCollaborater?: number;
74
+
75
+ @ApiPropertyOptional()
76
+ @IsOptional()
77
+ @IsInt()
78
+ idGedFile?: number;
79
+
80
+ @ApiPropertyOptional()
81
+ @IsOptional()
82
+ @IsDate()
83
+ dateSendPlaqToClient?: string;
84
+
85
+ @ApiPropertyOptional()
86
+ @IsOptional()
87
+ @IsString({ each: true })
88
+ includes?: string[];
89
+ }
@@ -0,0 +1,75 @@
1
+ import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { RequiredQueryPaginate } from '../BasePaginate';
4
+
5
+ export class QueryEquipment extends RequiredQueryPaginate {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ @IsInt()
9
+ id?: number;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsString()
14
+ search?: string;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsInt()
19
+ idUser?: number;
20
+
21
+ @ApiPropertyOptional()
22
+ @IsOptional()
23
+ @IsInt()
24
+ equipmentState?: number;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsInt()
29
+ availability?: number;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsOptional()
33
+ @IsInt()
34
+ signatureStatus?: number;
35
+
36
+ @ApiPropertyOptional()
37
+ @IsOptional()
38
+ @IsString()
39
+ reference?: string | null;
40
+
41
+ @ApiPropertyOptional()
42
+ @IsOptional()
43
+ @IsString()
44
+ brand?: string;
45
+
46
+ @ApiPropertyOptional()
47
+ @IsOptional()
48
+ @IsInt()
49
+ type?: number;
50
+
51
+ @ApiPropertyOptional()
52
+ @IsOptional()
53
+ @IsString()
54
+ supplier?: string | null;
55
+
56
+ @ApiPropertyOptional()
57
+ @IsOptional()
58
+ @IsInt()
59
+ price?: number | null;
60
+
61
+ @ApiPropertyOptional()
62
+ @IsOptional()
63
+ @IsString()
64
+ comment?: string | null;
65
+
66
+ @ApiPropertyOptional()
67
+ @IsOptional()
68
+ @IsDate()
69
+ destroyedAt?: Date;
70
+
71
+ @ApiPropertyOptional()
72
+ @IsOptional()
73
+ @IsDate()
74
+ lostAt?: Date;
75
+ }
@@ -0,0 +1,9 @@
1
+ export type StockAmount = {
2
+ id: number;
3
+ label: string;
4
+ totalAmount: number;
5
+ totalAmountNotInStock: number;
6
+ totalAmountBroken: number;
7
+ totalAmountLost: number;
8
+ totalAmountInStock: number;
9
+ };
@@ -0,0 +1,9 @@
1
+ import { IsArray } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+ import { IUserRoomEquipment } from '../../models/IUserRoomEquipment';
4
+
5
+ export class BulkUpdateMovement {
6
+ @ApiProperty()
7
+ @IsArray()
8
+ userRoomEquipments: IUserRoomEquipment[];
9
+ }
@@ -0,0 +1,12 @@
1
+ import { IsInt } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class CreateYousignSignature {
5
+ @ApiProperty()
6
+ @IsInt({ each: true })
7
+ idUserRoomEquipments: number[];
8
+
9
+ @ApiProperty()
10
+ @IsInt()
11
+ idUserToSign: number;
12
+ }
@@ -0,0 +1,40 @@
1
+ import { IsBoolean, IsDate, IsInt, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class QueryUserRoomEquipment {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ @IsInt()
9
+ id?: number;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsInt()
14
+ idEquipment?: number;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsInt()
19
+ idUser?: number;
20
+
21
+ @ApiPropertyOptional()
22
+ @IsOptional()
23
+ @IsInt()
24
+ idRoom?: number;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsBoolean()
29
+ @ToBoolean()
30
+ isRemote?: boolean;
31
+
32
+ @ApiPropertyOptional()
33
+ @IsOptional()
34
+ @IsDate()
35
+ inAt?: Date;
36
+
37
+ @ApiPropertyOptional()
38
+ @IsOptional()
39
+ outAt?: string | null;
40
+ }
@@ -2,22 +2,24 @@ import { IUser } from './IUser';
2
2
  import { IStatusSignature } from './IStatusSignature';
3
3
  import { IPrestation } from './IPrestation';
4
4
  import { IGedFile } from './IGedFile';
5
+ import { IUserRoomEquipment } from './IUserRoomEquipment';
5
6
 
6
7
  // customersSignatures
7
8
  export interface ICustomerSignature {
8
9
  id?: number;
9
- idDemand: string;
10
+ idDemand?: string;
10
11
  idFileFilesInfos: string;
11
12
  fileNameFilesInfos: string;
12
13
  sha1FilesInfos?: string | null;
13
- memberId: string;
14
+ memberId?: string;
14
15
  tokenSigner: string;
15
16
  mailSigner: string;
16
17
  phoneSigner: string;
17
18
  idSendMethod: number;
18
19
  idStatusSignature: number;
19
20
  idPrestation?: number;
20
- idUser: number | null;
21
+ idUser?: number | null;
22
+ idCollaborater?: number | null;
21
23
  idGedFile?: number;
22
24
  dateSendPlaqToClient: Date | null;
23
25
  createdAt?: Date | null;
@@ -25,7 +27,9 @@ export interface ICustomerSignature {
25
27
 
26
28
  // Associations
27
29
  user?: IUser;
30
+ collaborater?: IUser;
28
31
  statusSignature?: IStatusSignature;
29
32
  prestation?: IPrestation;
30
33
  gedFile?: IGedFile;
34
+ userRoomEquipments?: IUserRoomEquipment[];
31
35
  }
@@ -0,0 +1,21 @@
1
+ import { EquipmentType } from '../../Enum/EquipmentType';
2
+ import { IUserRoomEquipment } from '././IUserRoomEquipment';
3
+
4
+ export interface IEquipment {
5
+ id?: number;
6
+ reference?: string | null;
7
+ brand: string;
8
+ type: EquipmentType;
9
+ supplier?: string | null;
10
+ price?: number | null;
11
+ comment?: string | null;
12
+ destroyedAt?: Date | null;
13
+ lostAt?: Date | null;
14
+ soldAt?: Date | null;
15
+ createdAt?: Date | null;
16
+ updatedAt?: Date | null;
17
+ deletedAt?: Date | null;
18
+
19
+ // Associations
20
+ userRoomEquipments?: IUserRoomEquipment[];
21
+ }
@@ -18,5 +18,5 @@ export interface IFile {
18
18
  attachmentFile?: IAttachmentFile;
19
19
  folderFile?: IFolderFile;
20
20
  fileType?: IFileType;
21
- commercialMails?: ICommercialMail[]
21
+ commercialMails?: ICommercialMail[];
22
22
  }
@@ -0,0 +1,22 @@
1
+ import { ICustomerSignature, IUser } from '../..';
2
+ import { IEquipment } from './IEquipment';
3
+
4
+ export interface IUserRoomEquipment {
5
+ id?: number;
6
+ idEquipment: number;
7
+ idUser?: number | null;
8
+ idRoom?: number | null;
9
+ idCustomerSignature?: number | null;
10
+ idFile?: number | null;
11
+ isRemote?: boolean | null;
12
+ inAt?: Date | null;
13
+ outAt?: Date | null;
14
+ createdAt?: Date | null;
15
+ updatedAt?: Date | null;
16
+ deletedAt?: Date | null;
17
+
18
+ // Associations
19
+ equipment?: IEquipment;
20
+ user?: IUser
21
+ customerSignature?: ICustomerSignature;
22
+ }
@@ -3,7 +3,7 @@ import { IUser } from '../..';
3
3
  export interface IVoteContest {
4
4
  id?: number;
5
5
  emailVoter: string;
6
- emailHash: string;
6
+ hashMail: string;
7
7
  ipAddress: string;
8
8
  hasVoteBeenCompleted: boolean
9
9
  idUserVoteFor?: number | null;
package/ts/types/index.ts CHANGED
@@ -322,6 +322,8 @@ export * from './Interface/models/ICardHistory';
322
322
  export * from './Interface/models/IDubiousCustomer';
323
323
  export * from './Interface/models/IUserContest';
324
324
  export * from './Interface/models/IVoteContest';
325
+ export * from './Interface/models/IEquipment';
326
+ export * from './Interface/models/IUserRoomEquipment';
325
327
 
326
328
 
327
329
  // Schemas
@@ -513,6 +515,10 @@ export * from './Enum/VatControl';
513
515
  export * from './Enum/Cycle';
514
516
  export * from './Enum/Card';
515
517
  export * from './Enum/TimeTrackingSource';
518
+ export * from './Enum/EquipmentType';
519
+ export * from './Enum/Room';
520
+ export * from './Enum/EquipmentState';
521
+ export * from './Enum/EquipmentAvailability';
516
522
 
517
523
  // Interfaces API
518
524
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -1004,6 +1010,13 @@ export * from './Interface/api/IntermediateManagementRebate';
1004
1010
  export * from './Interface/api/contest/Create';
1005
1011
  export * from './Interface/api/contest/Query';
1006
1012
  export * from './Interface/api/contest/Read';
1013
+ export * from './Interface/api/equipment/Query';
1014
+ export * from './Interface/api/userRoomEquipment/Query';
1015
+ export * from './Interface/api/equipment/StockAmount';
1016
+ export * from './Interface/api/userRoomEquipment/BulkUpdate';
1017
+ export * from './Interface/api/customerSignature/Query';
1018
+ export * from './Interface/api/userRoomEquipment/CreateSignature';
1019
+
1007
1020
  // Enums types
1008
1021
  export * from './Interface/enum/Util';
1009
1022
  export * from './Interface/enum/Date';
package/ts/utils/index.ts CHANGED
@@ -20,3 +20,4 @@ export * from './isUrl';
20
20
  export { getCerfa3517DDRRegistrationField } from './vat/3517/century23';
21
21
  export * from './bankAccount';
22
22
  export * from './commercialOffer';
23
+ export * from './subscription';
@@ -1,12 +1,12 @@
1
1
  const wordsToExclude = ['cheque', 'prelevement', 'cheques', 'prelevements', 'prlvt', 'prlv', 'valeur', 'euro', 'solde', 'dont'];
2
- export const minWordsForDesignation = 3;
2
+ export const minWordsForDesignation = 2;
3
3
 
4
4
  export function cleanForRules(string: string) : string {
5
5
  return string
6
6
  .toLowerCase()
7
7
  .replace(/[^a-z0-9 ]/gi, '') // Conservation des espaces & caractères alphanumérique
8
8
  .split(' ')
9
- .filter((str) => str.length >= minWordsForDesignation && !wordsToExclude.includes(str)) // Suppression des mots à exclure et désignation inférieur à 3 char
9
+ .filter((str) => str.length >= minWordsForDesignation && !wordsToExclude.includes(str)) // Suppression des mots à exclure et désignation inférieur à minWordsForDesignation char
10
10
  .join(' ')
11
11
  .replace(/[^a-z]/gi, ''); // Conservation des caractères alphanumérique
12
12
  }
@@ -0,0 +1,130 @@
1
+ import { ComptaType } from '../types/Enum/ComptaType';
2
+ import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
3
+ import { TaxSystem } from '../types/Enum/TaxSystem';
4
+
5
+ interface OfferParams {
6
+ idLegalForm: LegalFormTypeEnum | null;
7
+ idComptaType: ComptaType | null;
8
+ idTaxSystem: TaxSystem | null;
9
+ isYearly?: boolean;
10
+ }
11
+
12
+ interface StripeOffer {
13
+ name: string;
14
+ isYearly: boolean;
15
+ isMicro: boolean;
16
+ key: string;
17
+ isCashBased: boolean;
18
+ isSocietyTax?: boolean;
19
+ }
20
+
21
+ const isTestKey: boolean = ['dev', 'staging', 'development', 'test'].includes(process.env.NODE_ENV ?? '');
22
+
23
+ // AE | Annuel | Forfait Bilan complet
24
+ const ID_SUBSCRIPTION_MICRO_ANNUAL = !isTestKey
25
+ ? 'price_1MTiBJIHo1jEedppqXmN5hWm'
26
+ : 'price_1MRyi1IHo1jEedppRKdY06Re';
27
+
28
+ // AE | Mensuel | Forfait Bilan complet
29
+ const ID_SUBSCRIPTION_MICRO_MENSUAL = !isTestKey
30
+ ? 'price_1LBJ4xIHo1jEedppylxr3fFa'
31
+ : 'price_1LBI57IHo1jEedpppnxskfgv';
32
+
33
+ // Entreprise | Annuel | Forfait entreprise à l'IR
34
+ const ID_SUBSCRIPTION_INCOME_TAX_ANNUAL = !isTestKey
35
+ ? 'price_1MRvtdIHo1jEedppjwsDQVI3'
36
+ : 'price_1MRyiJIHo1jEedppUe7MnPtW';
37
+
38
+ // Entreprise | Mensuel | Forfaitentreprise à l'IR
39
+ const ID_SUBSCRIPTION_INCOME_TAX_MENSUAL = !isTestKey
40
+ ? 'price_1LBJ5YIHo1jEedppzwTErh9M'
41
+ : 'price_1LBIA3IHo1jEedpp2taeQ7yW';
42
+
43
+ // Entreprise | Annuel | Forfait entreprise à l'IS
44
+ const ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL = !isTestKey
45
+ ? 'price_1MRvuMIHo1jEedppeyccVLLl'
46
+ : 'price_1MRyiWIHo1jEedppp5tnksZe';
47
+
48
+ // Entreprise | Mensuel | Forfait entreprise à l'IS
49
+ const ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL = !isTestKey
50
+ ? 'price_1LBJ69IHo1jEedppAWLeOk3I'
51
+ : 'price_1LBIB7IHo1jEedppocxyc1ft';
52
+
53
+ const list: StripeOffer[] = [
54
+ {
55
+ name: 'Offre auto-entrepreneur',
56
+ isYearly: true,
57
+ isMicro: true,
58
+ key: ID_SUBSCRIPTION_MICRO_ANNUAL,
59
+ isCashBased: true,
60
+ isSocietyTax: false,
61
+ },
62
+ {
63
+ name: 'Offre auto-entrepreneur',
64
+ isYearly: false,
65
+ isMicro: true,
66
+ key: ID_SUBSCRIPTION_MICRO_MENSUAL,
67
+ isCashBased: true,
68
+ isSocietyTax: false,
69
+ },
70
+ {
71
+ name: 'Offre entreprise IS',
72
+ isYearly: true,
73
+ isMicro: false,
74
+ key: ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL,
75
+ isCashBased: false,
76
+ isSocietyTax: true,
77
+ },
78
+ {
79
+ name: 'Offre entreprise IS',
80
+ isMicro: false,
81
+ isYearly: false,
82
+ key: ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL,
83
+ isCashBased: false,
84
+ isSocietyTax: true,
85
+ },
86
+ {
87
+ name: 'Offre entreprise IR',
88
+ isMicro: false,
89
+ isYearly: true,
90
+ isCashBased: true,
91
+ isSocietyTax: false,
92
+ key: ID_SUBSCRIPTION_INCOME_TAX_ANNUAL,
93
+ },
94
+ {
95
+ name: 'Offre entreprise IR',
96
+ isMicro: false,
97
+ isYearly: false,
98
+ key: ID_SUBSCRIPTION_INCOME_TAX_MENSUAL,
99
+ isCashBased: true,
100
+ isSocietyTax: false,
101
+ },
102
+ ];
103
+
104
+ export function getDefaultOffer(params: OfferParams): StripeOffer {
105
+ const { idLegalForm, idComptaType, isYearly, idTaxSystem } = params;
106
+
107
+ const isMicro = LegalFormTypeEnum.AUTO_ENTREPRENEUR === idLegalForm;
108
+ const isCashBased = idComptaType
109
+ ? [
110
+ ComptaType.CASH_BASED,
111
+ ComptaType.CASH_BASED_ASSISTANCE,
112
+ ComptaType.CASH_BASED_SEIZURE,
113
+ ].includes(idComptaType)
114
+ : false;
115
+ const isSocietyTax = idTaxSystem === TaxSystem.IS;
116
+
117
+ const newPlan = list.find(
118
+ (l) =>
119
+ l.isMicro === isMicro &&
120
+ l.isYearly === isYearly &&
121
+ l.isCashBased === isCashBased &&
122
+ l.isSocietyTax === isSocietyTax,
123
+ );
124
+
125
+ if (newPlan) {
126
+ return newPlan;
127
+ }
128
+
129
+ return isYearly ? list[2] : list[3];
130
+ }