@silexpert/core 1.2.31 → 1.2.34

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 (231) hide show
  1. package/dist/cjs/api/resources/Brevo.d.ts +4 -4
  2. package/dist/cjs/api/resources/Brevo.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Brevo.js +2 -2
  4. package/dist/cjs/api/resources/Brevo.js.map +1 -1
  5. package/dist/cjs/api/resources/CalendarEvent.d.ts +1 -1
  6. package/dist/cjs/api/resources/CalendarEvent.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/CalendarEvent.js +2 -2
  8. package/dist/cjs/api/resources/CalendarEvent.js.map +1 -1
  9. package/dist/cjs/api/resources/CommercialConditionOfSale.d.ts +9 -0
  10. package/dist/cjs/api/resources/CommercialConditionOfSale.d.ts.map +1 -0
  11. package/dist/cjs/api/resources/CommercialConditionOfSale.js +20 -0
  12. package/dist/cjs/api/resources/CommercialConditionOfSale.js.map +1 -0
  13. package/dist/cjs/api/resources/CommercialDocumentTemplate.d.ts +9 -0
  14. package/dist/cjs/api/resources/CommercialDocumentTemplate.d.ts.map +1 -0
  15. package/dist/cjs/api/resources/CommercialDocumentTemplate.js +20 -0
  16. package/dist/cjs/api/resources/CommercialDocumentTemplate.js.map +1 -0
  17. package/dist/cjs/api/resources/CommercialEmail.d.ts +9 -0
  18. package/dist/cjs/api/resources/CommercialEmail.d.ts.map +1 -0
  19. package/dist/cjs/api/resources/CommercialEmail.js +20 -0
  20. package/dist/cjs/api/resources/CommercialEmail.js.map +1 -0
  21. package/dist/cjs/api/resources/Dashboard.d.ts +2 -1
  22. package/dist/cjs/api/resources/Dashboard.d.ts.map +1 -1
  23. package/dist/cjs/api/resources/Dashboard.js +3 -0
  24. package/dist/cjs/api/resources/Dashboard.js.map +1 -1
  25. package/dist/cjs/api/resources/PaymentExpectation.d.ts +4 -1
  26. package/dist/cjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  27. package/dist/cjs/api/resources/PaymentExpectation.js +9 -0
  28. package/dist/cjs/api/resources/PaymentExpectation.js.map +1 -1
  29. package/dist/cjs/api/resources.d.ts +6 -0
  30. package/dist/cjs/api/resources.d.ts.map +1 -1
  31. package/dist/cjs/api/resources.js +6 -0
  32. package/dist/cjs/api/resources.js.map +1 -1
  33. package/dist/cjs/types/Enum/PaymentRecovery.d.ts +9 -0
  34. package/dist/cjs/types/Enum/PaymentRecovery.d.ts.map +1 -1
  35. package/dist/cjs/types/Enum/PaymentRecovery.js +150 -1
  36. package/dist/cjs/types/Enum/PaymentRecovery.js.map +1 -1
  37. package/dist/cjs/types/Enum/QualificationLead.d.ts +13 -0
  38. package/dist/cjs/types/Enum/QualificationLead.d.ts.map +1 -0
  39. package/dist/cjs/types/Enum/QualificationLead.js +39 -0
  40. package/dist/cjs/types/Enum/QualificationLead.js.map +1 -0
  41. package/dist/cjs/types/Enum/ReasonCancelSignatureRequest.d.ts +6 -0
  42. package/dist/cjs/types/Enum/ReasonCancelSignatureRequest.d.ts.map +1 -0
  43. package/dist/cjs/types/Enum/ReasonCancelSignatureRequest.js +11 -0
  44. package/dist/cjs/types/Enum/ReasonCancelSignatureRequest.js.map +1 -0
  45. package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts +8 -5
  46. package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/api/brevo/BrevoElement.js +26 -17
  48. package/dist/cjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
  49. package/dist/cjs/types/Interface/api/brevo/Read.d.ts +21 -0
  50. package/dist/cjs/types/Interface/api/brevo/Read.d.ts.map +1 -0
  51. package/dist/cjs/types/Interface/api/brevo/Read.js +3 -0
  52. package/dist/cjs/types/Interface/api/brevo/Read.js.map +1 -0
  53. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +14 -1
  54. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  55. package/dist/cjs/types/Interface/api/commercialManagement/Create.js +64 -6
  56. package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  57. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts +5 -0
  58. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  59. package/dist/cjs/types/Interface/api/commercialManagement/Query.js +24 -1
  60. package/dist/cjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  61. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +7 -0
  62. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  63. package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  64. package/dist/cjs/types/Interface/api/customerSignature/Query.d.ts +3 -0
  65. package/dist/cjs/types/Interface/api/customerSignature/Query.d.ts.map +1 -1
  66. package/dist/cjs/types/Interface/api/customerSignature/Query.js +4 -0
  67. package/dist/cjs/types/Interface/api/customerSignature/Query.js.map +1 -1
  68. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +7 -0
  69. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  70. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +27 -1
  71. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  72. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +2 -0
  73. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  74. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +12 -0
  75. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  76. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -0
  77. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  78. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +6 -0
  79. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  80. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts +2 -0
  81. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  82. package/dist/cjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  83. package/dist/cjs/types/Interface/models/ISaleDocumentTemplate.d.ts +16 -0
  84. package/dist/cjs/types/Interface/models/ISaleDocumentTemplate.d.ts.map +1 -0
  85. package/dist/cjs/types/Interface/models/ISaleDocumentTemplate.js +3 -0
  86. package/dist/cjs/types/Interface/models/ISaleDocumentTemplate.js.map +1 -0
  87. package/dist/cjs/types/Interface/models/ITerminationList.d.ts +1 -0
  88. package/dist/cjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  89. package/dist/cjs/types/Interface/models/ITerminationList.js.map +1 -1
  90. package/dist/cjs/types/index.d.ts +4 -0
  91. package/dist/cjs/types/index.d.ts.map +1 -1
  92. package/dist/cjs/types/index.js +4 -0
  93. package/dist/cjs/types/index.js.map +1 -1
  94. package/dist/cjs/utils/commercialManagement/internationalization/choices.js +2 -2
  95. package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  96. package/dist/cjs/utils/commercialManagement/saleEmail.js +1 -1
  97. package/dist/cjs/utils/commercialManagement/saleEmail.js.map +1 -1
  98. package/dist/cjs/utils/commercialManagement/templates/body.js +1 -1
  99. package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
  100. package/dist/cjs/utils/commercialManagement/templates/common.js +1 -1
  101. package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
  102. package/dist/mjs/api/resources/Brevo.d.ts +4 -4
  103. package/dist/mjs/api/resources/Brevo.d.ts.map +1 -1
  104. package/dist/mjs/api/resources/Brevo.js +2 -2
  105. package/dist/mjs/api/resources/Brevo.js.map +1 -1
  106. package/dist/mjs/api/resources/CalendarEvent.d.ts +1 -1
  107. package/dist/mjs/api/resources/CalendarEvent.d.ts.map +1 -1
  108. package/dist/mjs/api/resources/CalendarEvent.js +2 -2
  109. package/dist/mjs/api/resources/CalendarEvent.js.map +1 -1
  110. package/dist/mjs/api/resources/CommercialConditionOfSale.d.ts +9 -0
  111. package/dist/mjs/api/resources/CommercialConditionOfSale.d.ts.map +1 -0
  112. package/dist/mjs/api/resources/CommercialConditionOfSale.js +16 -0
  113. package/dist/mjs/api/resources/CommercialConditionOfSale.js.map +1 -0
  114. package/dist/mjs/api/resources/CommercialDocumentTemplate.d.ts +9 -0
  115. package/dist/mjs/api/resources/CommercialDocumentTemplate.d.ts.map +1 -0
  116. package/dist/mjs/api/resources/CommercialDocumentTemplate.js +16 -0
  117. package/dist/mjs/api/resources/CommercialDocumentTemplate.js.map +1 -0
  118. package/dist/mjs/api/resources/CommercialEmail.d.ts +9 -0
  119. package/dist/mjs/api/resources/CommercialEmail.d.ts.map +1 -0
  120. package/dist/mjs/api/resources/CommercialEmail.js +16 -0
  121. package/dist/mjs/api/resources/CommercialEmail.js.map +1 -0
  122. package/dist/mjs/api/resources/Dashboard.d.ts +2 -1
  123. package/dist/mjs/api/resources/Dashboard.d.ts.map +1 -1
  124. package/dist/mjs/api/resources/Dashboard.js +3 -0
  125. package/dist/mjs/api/resources/Dashboard.js.map +1 -1
  126. package/dist/mjs/api/resources/PaymentExpectation.d.ts +4 -1
  127. package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  128. package/dist/mjs/api/resources/PaymentExpectation.js +9 -0
  129. package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
  130. package/dist/mjs/api/resources.d.ts +6 -0
  131. package/dist/mjs/api/resources.d.ts.map +1 -1
  132. package/dist/mjs/api/resources.js +6 -0
  133. package/dist/mjs/api/resources.js.map +1 -1
  134. package/dist/mjs/types/Enum/PaymentRecovery.d.ts +9 -0
  135. package/dist/mjs/types/Enum/PaymentRecovery.d.ts.map +1 -1
  136. package/dist/mjs/types/Enum/PaymentRecovery.js +149 -0
  137. package/dist/mjs/types/Enum/PaymentRecovery.js.map +1 -1
  138. package/dist/mjs/types/Enum/QualificationLead.d.ts +13 -0
  139. package/dist/mjs/types/Enum/QualificationLead.d.ts.map +1 -0
  140. package/dist/mjs/types/Enum/QualificationLead.js +36 -0
  141. package/dist/mjs/types/Enum/QualificationLead.js.map +1 -0
  142. package/dist/mjs/types/Enum/ReasonCancelSignatureRequest.d.ts +6 -0
  143. package/dist/mjs/types/Enum/ReasonCancelSignatureRequest.d.ts.map +1 -0
  144. package/dist/mjs/types/Enum/ReasonCancelSignatureRequest.js +8 -0
  145. package/dist/mjs/types/Enum/ReasonCancelSignatureRequest.js.map +1 -0
  146. package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts +8 -5
  147. package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
  148. package/dist/mjs/types/Interface/api/brevo/BrevoElement.js +27 -18
  149. package/dist/mjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
  150. package/dist/mjs/types/Interface/api/brevo/Read.d.ts +21 -0
  151. package/dist/mjs/types/Interface/api/brevo/Read.d.ts.map +1 -0
  152. package/dist/mjs/types/Interface/api/brevo/Read.js +2 -0
  153. package/dist/mjs/types/Interface/api/brevo/Read.js.map +1 -0
  154. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +14 -1
  155. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  156. package/dist/mjs/types/Interface/api/commercialManagement/Create.js +73 -8
  157. package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  158. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts +5 -0
  159. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  160. package/dist/mjs/types/Interface/api/commercialManagement/Query.js +26 -1
  161. package/dist/mjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  162. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +7 -0
  163. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  164. package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  165. package/dist/mjs/types/Interface/api/customerSignature/Query.d.ts +3 -0
  166. package/dist/mjs/types/Interface/api/customerSignature/Query.d.ts.map +1 -1
  167. package/dist/mjs/types/Interface/api/customerSignature/Query.js +5 -0
  168. package/dist/mjs/types/Interface/api/customerSignature/Query.js.map +1 -1
  169. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +7 -0
  170. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  171. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +31 -2
  172. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  173. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +2 -0
  174. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  175. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +14 -0
  176. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  177. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -0
  178. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  179. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +9 -1
  180. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  181. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts +2 -0
  182. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  183. package/dist/mjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  184. package/dist/mjs/types/Interface/models/ISaleDocumentTemplate.d.ts +16 -0
  185. package/dist/mjs/types/Interface/models/ISaleDocumentTemplate.d.ts.map +1 -0
  186. package/dist/mjs/types/Interface/models/ISaleDocumentTemplate.js +2 -0
  187. package/dist/mjs/types/Interface/models/ISaleDocumentTemplate.js.map +1 -0
  188. package/dist/mjs/types/Interface/models/ITerminationList.d.ts +1 -0
  189. package/dist/mjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  190. package/dist/mjs/types/Interface/models/ITerminationList.js.map +1 -1
  191. package/dist/mjs/types/index.d.ts +4 -0
  192. package/dist/mjs/types/index.d.ts.map +1 -1
  193. package/dist/mjs/types/index.js +4 -0
  194. package/dist/mjs/types/index.js.map +1 -1
  195. package/dist/mjs/utils/commercialManagement/internationalization/choices.js +2 -2
  196. package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  197. package/dist/mjs/utils/commercialManagement/saleEmail.js +1 -1
  198. package/dist/mjs/utils/commercialManagement/saleEmail.js.map +1 -1
  199. package/dist/mjs/utils/commercialManagement/templates/body.js +1 -1
  200. package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
  201. package/dist/mjs/utils/commercialManagement/templates/common.js +1 -1
  202. package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
  203. package/package.json +1 -1
  204. package/ts/api/resources/Brevo.ts +5 -5
  205. package/ts/api/resources/CalendarEvent.ts +2 -2
  206. package/ts/api/resources/CommercialConditionOfSale.ts +20 -0
  207. package/ts/api/resources/CommercialDocumentTemplate.ts +20 -0
  208. package/ts/api/resources/CommercialEmail.ts +20 -0
  209. package/ts/api/resources/Dashboard.ts +6 -0
  210. package/ts/api/resources/PaymentExpectation.ts +13 -1
  211. package/ts/api/resources.ts +6 -0
  212. package/ts/types/Enum/PaymentRecovery.ts +150 -0
  213. package/ts/types/Enum/QualificationLead.ts +35 -0
  214. package/ts/types/Enum/ReasonCancelSignatureRequest.ts +5 -0
  215. package/ts/types/Interface/api/brevo/BrevoElement.ts +19 -11
  216. package/ts/types/Interface/api/brevo/Read.ts +22 -0
  217. package/ts/types/Interface/api/commercialManagement/Create.ts +52 -5
  218. package/ts/types/Interface/api/commercialManagement/Query.ts +21 -0
  219. package/ts/types/Interface/api/commercialManagement/Read.ts +10 -1
  220. package/ts/types/Interface/api/customerSignature/Query.ts +5 -0
  221. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +23 -2
  222. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +10 -0
  223. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +7 -1
  224. package/ts/types/Interface/models/IPaymentExpectation.ts +2 -0
  225. package/ts/types/Interface/models/ISaleDocumentTemplate.ts +18 -0
  226. package/ts/types/Interface/models/ITerminationList.ts +1 -0
  227. package/ts/types/index.ts +4 -0
  228. package/ts/utils/commercialManagement/internationalization/choices.ts +2 -2
  229. package/ts/utils/commercialManagement/saleEmail.ts +2 -2
  230. package/ts/utils/commercialManagement/templates/body.ts +1 -1
  231. package/ts/utils/commercialManagement/templates/common.ts +1 -1
@@ -172,6 +172,9 @@ import { Refund } from './resources/Refund';
172
172
  import { HumanResourceLibrary } from './resources/HumanResourceLibrary';
173
173
  import { YouSign } from './resources/YouSign';
174
174
  import { RegistrationForm } from './resources/RegistrationForm';
175
+ import { CommercialEmail } from './resources/CommercialEmail';
176
+ import { CommercialDocumentTemplate } from './resources/CommercialDocumentTemplate';
177
+ import { CommercialConditionOfSale } from './resources/CommercialConditionOfSale';
175
178
 
176
179
  export const resources = {
177
180
  simulation: Simulation,
@@ -348,4 +351,7 @@ export const resources = {
348
351
  humanResourceLibrary: HumanResourceLibrary,
349
352
  youSign: YouSign,
350
353
  registrationForm: RegistrationForm,
354
+ commercialEmail: CommercialEmail,
355
+ commercialDocumentTemplate: CommercialDocumentTemplate,
356
+ commercialConditionOfSale: CommercialConditionOfSale
351
357
  };
@@ -25,6 +25,108 @@ export enum PaymentRecoveryEvent {
25
25
  SUBMITTED = 'submitted',
26
26
  SENT_TO_AMICABLE_SETTLEMENT = 'sentToAmicableSettlement',
27
27
  }
28
+ export const PaymentRecoveryEventDetails = [
29
+ {
30
+ slug: PaymentRecoveryEvent.NEW_PAYMENT,
31
+ description: 'Versement reçu'
32
+ },
33
+ {
34
+ slug: PaymentRecoveryEvent.AROK,
35
+ description: 'Dossier pris en charge par l\'étude'
36
+ },
37
+ {
38
+ slug: PaymentRecoveryEvent.DISPUTE,
39
+ description: 'Le débiteur conteste la créance'
40
+ },
41
+ {
42
+ slug: PaymentRecoveryEvent.NO_ANSWER,
43
+ description: 'Le débiteur ne répond pas'
44
+ },
45
+ {
46
+ slug: PaymentRecoveryEvent.CLAIM_ENDED_RJ,
47
+ description: 'Le débiteur est en redressement judiciaire'
48
+ },
49
+ {
50
+ slug: PaymentRecoveryEvent.CLAIM_ENDED_LJ,
51
+ description: 'Le débiteur est en liquidation judiciaire'
52
+ },
53
+ {
54
+ slug: PaymentRecoveryEvent.CLAIM_ENDED_PAYED,
55
+ description: 'Les sommes dues ont été réglées'
56
+ },
57
+ {
58
+ slug: PaymentRecoveryEvent.CLAIM_ENDED,
59
+ description: 'Dossier clôturé en amiable'
60
+ },
61
+ {
62
+ slug: PaymentRecoveryEvent.PAY_SCHEDULE_SETUP,
63
+ description: 'Le débiteur accepte de régler'
64
+ },
65
+ {
66
+ slug: PaymentRecoveryEvent.PAY_SCHEDULE_ERROR,
67
+ description: 'Le débiteur n\'a pas respecté son échéance de paiement'
68
+ },
69
+ {
70
+ slug: PaymentRecoveryEvent.NEW_ACTION,
71
+ description: 'Nouvelle action réalisée'
72
+ },
73
+ {
74
+ slug: PaymentRecoveryEvent.COURT_SETTLEMENT_PAID,
75
+ description: 'Frais de recouvrement réglés : lancement procédure judiciaire'
76
+ },
77
+ {
78
+ slug: PaymentRecoveryEvent.NEW_PAYMENT_CLIENT,
79
+ description: 'Un nouveau versement a été effectué sur votre compte'
80
+ },
81
+ {
82
+ slug: PaymentRecoveryEvent.FILED_IP,
83
+ description: 'Votre facture a été déposée au tribunal'
84
+ },
85
+ {
86
+ slug: PaymentRecoveryEvent.IP_OK,
87
+ description: 'Votre injonction de payer a été obtenue'
88
+ },
89
+ {
90
+ slug: PaymentRecoveryEvent.IP_KO,
91
+ description: 'Votre injonction de payer a été refusée'
92
+ },
93
+ {
94
+ slug: PaymentRecoveryEvent.SIGNIFIED_IP,
95
+ description: 'Votre injonction de payer a été présentée et signifiée auprès de votre débiteur'
96
+ },
97
+ {
98
+ slug: PaymentRecoveryEvent.ON_GOING_NEGOCIAITION,
99
+ description: 'Négociation en cours'
100
+ },
101
+ {
102
+ slug: PaymentRecoveryEvent.IP_PARTIEL,
103
+ description: 'Votre injonction de payer a été obtenue partiellement'
104
+ },
105
+ {
106
+ slug: PaymentRecoveryEvent.DIRECT_PAYMENT_TO_DEBTOR,
107
+ description: 'Demande de suspension temporaire'
108
+ },
109
+ {
110
+ slug: PaymentRecoveryEvent.CLAIM_DELETION_REQUEST,
111
+ description: 'Demande de suspension définitive'
112
+ },
113
+ {
114
+ slug: PaymentRecoveryEvent.TEMPORARY_PAUSE_REQUEST,
115
+ description: 'Demande de suspension temporaire'
116
+ },
117
+ {
118
+ slug: PaymentRecoveryEvent.SENT_TO_COURT_SETTLEMENT,
119
+ description: 'Facture envoyée à l\'étude, en attente de paiement'
120
+ },
121
+ {
122
+ slug: PaymentRecoveryEvent.SUBMITTED,
123
+ description: 'Facture déposée'
124
+ },
125
+ {
126
+ slug: PaymentRecoveryEvent.SENT_TO_AMICABLE_SETTLEMENT,
127
+ description: 'Facture envoyée à l\'étude'
128
+ },
129
+ ];
28
130
 
29
131
  export enum PaymentRecoveryStatus {
30
132
  OPENED = 'opened',
@@ -38,6 +140,54 @@ export enum PaymentRecoveryStatus {
38
140
  SENT_TO_COURT = 'sent_to_court',
39
141
  }
40
142
 
143
+ export const PaymentRecoveryStatusDetails = [
144
+ {
145
+ slug: PaymentRecoveryStatus.OPENED,
146
+ shortLabel: 'En attente',
147
+ label: 'Facture déposée sur la plateforme'
148
+ },
149
+ {
150
+ slug: PaymentRecoveryStatus.SENT_TO_AMICABLE,
151
+ shortLabel: 'Envoyée',
152
+ label: 'Facture envoyée à l\'étude de Commissaires de Justice'
153
+ },
154
+ {
155
+ slug: PaymentRecoveryStatus.AMICABLE_SETTLEMENT,
156
+ shortLabel: 'Amiable',
157
+ label: 'Facture en recouvrement amiable'
158
+ },
159
+ {
160
+ slug: PaymentRecoveryStatus.RJ,
161
+ shortLabel: 'Red. jud.',
162
+ label: 'Dossier clôturé : le débiteur est en Redressement Judiciaire'
163
+ },
164
+ {
165
+ slug: PaymentRecoveryStatus.LJ,
166
+ shortLabel: 'Liq. jud.',
167
+ label: 'Dossier clôturé : le débiteur est en Liquidation Judiciaire'
168
+ },
169
+ {
170
+ slug: PaymentRecoveryStatus.PAYED,
171
+ shortLabel: 'Recouvré',
172
+ label: 'Les sommes dues ont été réglées'
173
+ },
174
+ {
175
+ slug: PaymentRecoveryStatus.CLOSED,
176
+ shortLabel: 'Clôturé',
177
+ label: 'Dossier clôturé'
178
+ },
179
+ {
180
+ slug: PaymentRecoveryStatus.JUDICIARY_PROCEDURE,
181
+ shortLabel: 'Judiciaire',
182
+ label: 'Facture en recouvrement judiciaire'
183
+ },
184
+ {
185
+ slug: PaymentRecoveryStatus.SENT_TO_COURT,
186
+ shortLabel: 'Env. jud.',
187
+ label: 'Facture envoyée à l\'étude de Commissaires de Justice pour procédure judiciaire'
188
+ },
189
+ ];
190
+
41
191
  export enum PaymentRecoveryTag {
42
192
  RECOVERED = 'recovered',
43
193
  WAITING = 'waiting',
@@ -0,0 +1,35 @@
1
+ export enum QualificationLead {
2
+ NOT_SUBSCRIBED = 1,
3
+ SMALL_INTEREST = 2,
4
+ NEUTRAL = 3,
5
+ INTERESSEMENT = 4,
6
+ VERY_INTERESSEMENT = 5,
7
+ PROMISE_CONTRACT = 6,
8
+ }
9
+
10
+ export const QualificationLeadType: Array<{ id: QualificationLead, label: string }> = [
11
+ {
12
+ id: QualificationLead.NOT_SUBSCRIBED,
13
+ label: 'Non souscris/abandon',
14
+ },
15
+ {
16
+ id: QualificationLead.SMALL_INTEREST,
17
+ label: 'Peu intéressé',
18
+ },
19
+ {
20
+ id: QualificationLead.NEUTRAL,
21
+ label: 'Neutre',
22
+ },
23
+ {
24
+ id: QualificationLead.INTERESSEMENT,
25
+ label: 'Intéressé',
26
+ },
27
+ {
28
+ id: QualificationLead.VERY_INTERESSEMENT,
29
+ label: 'Très intéressé',
30
+ },
31
+ {
32
+ id: QualificationLead.PROMISE_CONTRACT,
33
+ label: 'Promesse contrat',
34
+ },
35
+ ];
@@ -0,0 +1,5 @@
1
+ export enum ReasonCancelSignatureRequest {
2
+ CONTRACTUALIZATION_ABORTED = 'contractualization_aborted',
3
+ ERRORS_IN_DOCUMENT = 'errors_in_document',
4
+ OTHER = 'other'
5
+ };
@@ -1,4 +1,5 @@
1
1
  import {
2
+ IsArray,
2
3
  IsInt, IsNotEmpty, IsNumber, IsOptional, IsString,
3
4
  } from 'class-validator';
4
5
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
@@ -35,10 +36,20 @@ export class CreateContact {
35
36
 
36
37
  }
37
38
 
38
- export class ReadContact {
39
+ export class GetContact {
39
40
  @ApiProperty()
40
- @IsNumber()
41
- id: number;
41
+ @IsString()
42
+ email: string;
43
+ }
44
+
45
+ export class UpdateContact {
46
+ @ApiProperty()
47
+ @IsString()
48
+ @IsNotEmpty()
49
+ email: string;
50
+
51
+ @ApiProperty()
52
+ attributes: Partial<CreateContact>;
42
53
  }
43
54
 
44
55
  export class ChangeContact {
@@ -52,12 +63,9 @@ export class ChangeContact {
52
63
  listId: number;
53
64
  }
54
65
 
55
- export class UpdateContact {
56
- @ApiProperty()
57
- @IsString()
58
- @IsNotEmpty()
59
- email: string;
60
-
61
- @ApiProperty()
62
- attributes: Partial<CreateContact>;
66
+ export class BrevoTermination {
67
+ @ApiPropertyOptional()
68
+ @IsOptional()
69
+ @IsArray()
70
+ idSociety: number[];
63
71
  }
@@ -0,0 +1,22 @@
1
+ export type ReadCreateContact = {
2
+ id: number,
3
+ }
4
+
5
+ export type ReadGetContact = {
6
+ email: string,
7
+ id: number,
8
+ emailBlacklisted: boolean,
9
+ smsBlacklisted: boolean,
10
+ createdAt: Date,
11
+ modifiedAt: Date,
12
+ attributes: object
13
+ listIds: number[],
14
+ statistics: object
15
+ }
16
+
17
+ export type ReadContactChange = {
18
+ contacts: {
19
+ success: string[],
20
+ failure: string[],
21
+ };
22
+ }
@@ -1,5 +1,5 @@
1
1
  import {
2
- IsArray, IsBoolean, IsDateString, IsEnum, IsInt, IsNumber, IsOptional, IsString, Min,
2
+ IsArray, IsBoolean, IsDateString, IsEnum, IsIn, IsInt, IsNumber, IsObject, IsOptional, IsString, Min,
3
3
  } from 'class-validator';
4
4
  import { IFile, ReadProductEditing } from '../../..';
5
5
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
@@ -576,10 +576,6 @@ export class CreateSaleEmail {
576
576
  @IsBoolean()
577
577
  @ToBoolean()
578
578
  isDefault?: boolean;
579
-
580
- @ApiProperty()
581
- @IsInt()
582
- idSociety: number;
583
579
  }
584
580
 
585
581
  export class UpdateSaleEmail {
@@ -641,4 +637,55 @@ export class UpdateGeneralConditionOfSale {
641
637
  @IsBoolean()
642
638
  @ToBoolean()
643
639
  isDefault?: boolean;
640
+ }
641
+
642
+ export class CreateSaleDocumentTemplate {
643
+ @ApiProperty()
644
+ @IsIn(Object.values(InvoiceLanguage))
645
+ language: InvoiceLanguage;
646
+
647
+ @ApiProperty()
648
+ @IsString()
649
+ name: string;
650
+
651
+ @ApiProperty()
652
+ @IsObject()
653
+ template: CreateInvoiceDocument | CreatePreSaleDocument;
654
+
655
+ @ApiProperty()
656
+ @IsEnum(EstimateInvoiceType)
657
+ idEstimateInvoiceType: EstimateInvoiceType;
658
+
659
+ @ApiProperty()
660
+ @IsBoolean()
661
+ @ToBoolean()
662
+ isDefault: boolean;
663
+ }
664
+
665
+ export class UpdateSaleDocumentTemplate {
666
+ @ApiPropertyOptional()
667
+ @IsOptional()
668
+ @IsIn(Object.values(InvoiceLanguage))
669
+ language?: InvoiceLanguage;
670
+
671
+ @ApiPropertyOptional()
672
+ @IsOptional()
673
+ @IsString()
674
+ name?: string;
675
+
676
+ @ApiPropertyOptional()
677
+ @IsOptional()
678
+ @IsObject()
679
+ template?: CreateInvoiceDocument | CreatePreSaleDocument;
680
+
681
+ @ApiPropertyOptional()
682
+ @IsOptional()
683
+ @IsEnum(EstimateInvoiceType)
684
+ idEstimateInvoiceType?: number;
685
+
686
+ @ApiPropertyOptional()
687
+ @IsOptional()
688
+ @IsBoolean()
689
+ @ToBoolean()
690
+ isDefault?: boolean;
644
691
  }
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  IsArray, IsBoolean, IsDateString, IsInt, IsNumber, IsOptional, IsString,
3
+ Min,
3
4
  } from 'class-validator';
4
5
  import { Order } from '../../..';
5
6
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
@@ -175,4 +176,24 @@ export class QueryExportCommercialManagementIntoCSV {
175
176
  @ApiProperty()
176
177
  @IsArray()
177
178
  types: EstimateInvoiceType[];
179
+ }
180
+
181
+ export class QueryRecentActivity {
182
+ @ApiPropertyOptional()
183
+ @IsOptional()
184
+ @IsInt()
185
+ @Min(1)
186
+ page?: number;
187
+
188
+ @ApiPropertyOptional()
189
+ @IsOptional()
190
+ @IsInt()
191
+ @Min(1)
192
+ limit?: number;
193
+
194
+
195
+ @ApiPropertyOptional()
196
+ @IsOptional()
197
+ @IsString()
198
+ search?: string;
178
199
  }
@@ -106,4 +106,13 @@ export type ReadCommercialMailTemplate = {
106
106
 
107
107
  export type ReadSaleEmail = ISaleEmail & {
108
108
  defaultFromApplication: boolean;
109
- };
109
+ };
110
+
111
+ export type ReadRecentActivity = {
112
+ id: number;
113
+ type: 'estimate' | 'product' | 'tier';
114
+ label: string;
115
+ updatedAt: string;
116
+ // i don't know if needed, it is in the type but not return from service for now
117
+ item?: IEstimateInvoice | IProductInvoice | IThirdParty;
118
+ }
@@ -1,5 +1,7 @@
1
1
  import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiPropertyOptional } from '../../../../utils';
3
+ import { WhereOptions } from 'sequelize';
4
+ import { ICustomerSignature } from '../../models/ICustomerSignature';
3
5
 
4
6
  export class QueryCustomerSignature {
5
7
  @ApiPropertyOptional()
@@ -86,4 +88,7 @@ export class QueryCustomerSignature {
86
88
  @IsOptional()
87
89
  @IsString({ each: true })
88
90
  includes?: string[];
91
+
92
+ @ApiPropertyOptional()
93
+ where?: WhereOptions<ICustomerSignature>;
89
94
  }
@@ -1,8 +1,29 @@
1
- import { IsInt } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
1
+ import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { RequiredQueryPaginate } from '../BasePaginate';
3
4
 
4
5
  export class QueryGetPaymentExpectation {
5
6
  @ApiProperty()
6
7
  @IsInt()
7
8
  idPrestation: number;
9
+ }
10
+
11
+ export class QueryGetPaymentExpectationPaginated extends RequiredQueryPaginate {
12
+ @ApiPropertyOptional()
13
+ @IsString()
14
+ @IsOptional()
15
+ search?: string;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsString()
19
+ @IsOptional()
20
+ searchAmount?: string;
21
+
22
+ @ApiProperty()
23
+ @IsDate()
24
+ startDate: Date;
25
+
26
+ @ApiProperty()
27
+ @IsDate()
28
+ endDate: Date;
8
29
  }
@@ -161,6 +161,16 @@ export class UpdateTerminationList {
161
161
  @IsInt()
162
162
  idRefund?: number;
163
163
 
164
+ @ApiPropertyOptional()
165
+ @IsOptional()
166
+ @IsNumber()
167
+ commercialGestureAmount?: number;
168
+
169
+ @ApiPropertyOptional()
170
+ @IsOptional()
171
+ @IsInt({each: true})
172
+ listIdTypeBrand?: number[];
173
+
164
174
  @ApiPropertyOptional()
165
175
  @IsOptional()
166
176
  @IsNumber()
@@ -1,5 +1,5 @@
1
1
  import {
2
- IsDate, IsDateString, IsEnum, IsNumber, IsOptional, IsString,
2
+ IsDate, IsDateString, IsEnum, IsIn, IsNumber, IsOptional, IsString,
3
3
  } from 'class-validator';
4
4
  import { CerfaType } from '../../../Enum/CerfaType';
5
5
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
@@ -54,4 +54,10 @@ export class QueryVatEntry {
54
54
  @IsString()
55
55
  @IsOptional()
56
56
  type?: 'collected' | 'deductible';
57
+
58
+ // TODO: Passer le paramètre en requis une fois le front mis à jour
59
+ @ApiPropertyOptional()
60
+ @IsIn(Object.values(CerfaType))
61
+ @IsOptional()
62
+ idCerfaType?: CerfaType;
57
63
  }
@@ -15,6 +15,8 @@ export interface IPaymentExpectation {
15
15
  idSociety: number;
16
16
  idRegulation: number | null;
17
17
  idPrestation: number | null;
18
+ idUserNotifyPaiementProceed?: number | null;
19
+ idUserTaskPaiementProceed?: number | null;
18
20
  createdAt?: Date | null;
19
21
  updatedAt?: Date | null;
20
22
 
@@ -0,0 +1,18 @@
1
+ import { CreateInvoiceDocument, CreatePreSaleDocument, InvoiceLanguage } from '../..';
2
+ import { EstimateInvoiceType } from '../../Enum/EstimateInvoice';
3
+ import { ISociety } from './ISociety';
4
+
5
+ export interface ISaleDocumentTemplate {
6
+ id?: number;
7
+ name: string;
8
+ language: InvoiceLanguage;
9
+ template: CreateInvoiceDocument | CreatePreSaleDocument;
10
+ idEstimateInvoiceType: EstimateInvoiceType;
11
+ isDefault: boolean;
12
+ idSociety: number;
13
+ createdAt?: Date | null;
14
+ updatedAt?: Date | null;
15
+
16
+ // association
17
+ society?: ISociety
18
+ }
@@ -22,6 +22,7 @@ export interface ITerminationList {
22
22
  monthlyPrice?: number | null;
23
23
  monthNumber?: number | null;
24
24
  monthOffer?: number | null;
25
+ commercialGestureAmount?: number | null;
25
26
  idReasonTermination?: number[] | null;
26
27
  idSociety?: number | null;
27
28
  idPrestation?: number | null;
package/ts/types/index.ts CHANGED
@@ -340,6 +340,7 @@ export * from './Interface/models/IHumanResourceLibrary';
340
340
  export * from './Interface/models/IUserHumanResourceLibrary';
341
341
  export * from './Interface/models/ISaleEmail';
342
342
  export * from './Interface/models/IGeneralConditionOfSale';
343
+ export * from './Interface/models/ISaleDocumentTemplate';
343
344
 
344
345
 
345
346
  // Schemas
@@ -562,6 +563,8 @@ export * from './Enum/PaymentRecovery';
562
563
  export * from './Enum/JuridicalSociety';
563
564
  export * from './Enum/Pdf2PicLocalType';
564
565
  export * from './Enum/DocumentForHumanResourceType';
566
+ export * from './Enum/ReasonCancelSignatureRequest';
567
+ export * from './Enum/QualificationLead';
565
568
 
566
569
  // Interfaces API
567
570
  export * from './Interface/api/exercice/ReadExercice';
@@ -1098,6 +1101,7 @@ export * from './Interface/api/userRoomEquipment/CreateSignature';
1098
1101
  export * from './Interface/api/paymentExpectation/CreatePaymentExpecation';
1099
1102
  export * from './Interface/api/expertAnnuary/Query';
1100
1103
  export * from './Interface/api/brevo/BrevoElement';
1104
+ export * from './Interface/api/brevo/Read';
1101
1105
  export * from './Interface/api/bankAccount/Create';
1102
1106
  export * from './Interface/api/echo/Mission';
1103
1107
  export * from './Interface/api/echo/CreateOrder';
@@ -129,7 +129,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
129
129
  estimate: {
130
130
  headers: {
131
131
  title: 'Devis',
132
- dueDate: 'Valide jusq\'au',
132
+ dueDate: 'Valide jusqu\'au',
133
133
  termsOfPayment: 'Conditions de règlement',
134
134
  },
135
135
  },
@@ -143,7 +143,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
143
143
  },
144
144
  deposit: {
145
145
  headers: {
146
- title: 'Accompte',
146
+ title: 'Acompte',
147
147
  expirationDate: 'Date d\'expiration',
148
148
  termsOfPayment: 'Date limite de règlement',
149
149
  },
@@ -13,9 +13,9 @@ export function transformModelWithCharcodeToString(datas: InfoToUseType, templat
13
13
  // this regex match the carac with []
14
14
  const reg = /\[(.*?)\]/g;
15
15
 
16
- const charcodesFound = template.match(reg) ?? [];
16
+ const charcodesFound: RegExpMatchArray | [] = template.match(reg) ?? [];
17
17
  const charcodesFoundWithoutBrackets: string[] = [];
18
- charcodesFound?.forEach((f: string) => charcodesFoundWithoutBrackets.push(f.replace(/[\[\]']+/g, '')));
18
+ charcodesFound.forEach((f) => charcodesFoundWithoutBrackets.push(f.replace(/[\[\]']+/g, '')));
19
19
 
20
20
  // we get the list of matching key template with key data
21
21
  const charcodesDetected = emailTemplateVariableAffiliatedData.filter((data) => intersection(emailTemplateVariableAffiliatedData.map((d) => d.name), charcodesFoundWithoutBrackets).includes(data.name));
@@ -92,7 +92,7 @@ export const bodyTemplate = `<html class="pdf-content">
92
92
  <div>
93
93
  ${commonTemplate.amountRecapitulation}
94
94
 
95
- <% if (isStripeAllowed) { %>
95
+ <% if (isStripeAllowed && ![${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) { %>
96
96
  <div style="text-align: right; margin-top: 30px;">${commonTemplate.paymentButton}</div>
97
97
  <% } %>
98
98
  </div>
@@ -245,7 +245,7 @@ export class CommercialDocumentCommonHTML {
245
245
  .pdf-content .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}
246
246
  .pdf-content .logo-placeholder > svg, .pdf-content .logo-placeholder > img { max-width: 100%; max-height: 150px; }
247
247
  .pdf-content .document-reference { font-size: 20px !important; }
248
- .pdf-content .customer-border { border: <%= settings && settings.customerBlockBorderThickness ? settings.customerBlockBorderThickness + 'px' : '2px' %> solid <% settings && settings.customerBlockBorderColor ? settings.customerBlockBorderColor : '#EAEAEA' %>; border-radius: 6px; padding: 7px; }
248
+ .pdf-content .customer-border { border: <%= settings && settings.customerBlockBorderThickness ? settings.customerBlockBorderThickness + 'px' : '2px' %> solid <%= settings && settings.customerBlockBorderColor ? settings.customerBlockBorderColor : '#EAEAEA' %>; border-radius: 6px; padding: 7px; }
249
249
 
250
250
  /* Body */
251
251
  .pdf-content table.commercial-table-preview { border-spacing: 1px; border-collapse: collapse; }