@silexpert/core 1.3.30-0 → 1.3.30-2

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 (238) hide show
  1. package/dist/cjs/api/resources/Ai.d.ts +2 -2
  2. package/dist/cjs/api/resources/Ai.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Ai.js +2 -2
  4. package/dist/cjs/api/resources/Ai.js.map +1 -1
  5. package/dist/cjs/api/resources/AnalyticsUtm.d.ts +10 -0
  6. package/dist/cjs/api/resources/AnalyticsUtm.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/AnalyticsUtm.js +16 -0
  8. package/dist/cjs/api/resources/AnalyticsUtm.js.map +1 -0
  9. package/dist/cjs/api/resources/PaymentExpectation.d.ts +16 -1
  10. package/dist/cjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/PaymentExpectation.js +20 -0
  12. package/dist/cjs/api/resources/PaymentExpectation.js.map +1 -1
  13. package/dist/cjs/api/resources/prestation.d.ts +3 -1
  14. package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
  15. package/dist/cjs/api/resources/prestation.js.map +1 -1
  16. package/dist/cjs/api/resources/statistic/Legal.d.ts +11 -0
  17. package/dist/cjs/api/resources/statistic/Legal.d.ts.map +1 -0
  18. package/dist/cjs/api/resources/statistic/Legal.js +16 -0
  19. package/dist/cjs/api/resources/statistic/Legal.js.map +1 -0
  20. package/dist/cjs/api/resources.d.ts +4 -0
  21. package/dist/cjs/api/resources.d.ts.map +1 -1
  22. package/dist/cjs/api/resources.js +4 -0
  23. package/dist/cjs/api/resources.js.map +1 -1
  24. package/dist/cjs/types/Enum/Feature.d.ts +38 -0
  25. package/dist/cjs/types/Enum/Feature.d.ts.map +1 -0
  26. package/dist/cjs/types/Enum/Feature.js +61 -0
  27. package/dist/cjs/types/Enum/Feature.js.map +1 -0
  28. package/dist/cjs/types/Enum/StatisticType.d.ts +2 -1
  29. package/dist/cjs/types/Enum/StatisticType.d.ts.map +1 -1
  30. package/dist/cjs/types/Enum/StatisticType.js +1 -0
  31. package/dist/cjs/types/Enum/StatisticType.js.map +1 -1
  32. package/dist/cjs/types/Enum/StatusRating.d.ts.map +1 -1
  33. package/dist/cjs/types/Enum/StatusRating.js +1 -0
  34. package/dist/cjs/types/Enum/StatusRating.js.map +1 -1
  35. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
  36. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -1
  37. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  38. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +1 -1
  39. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js +1 -1
  40. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  41. package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts +6 -0
  42. package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.js +29 -1
  44. package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.js.map +1 -1
  45. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +6 -2
  46. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/api/commercialManagement/Create.js +5 -1
  48. package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  49. package/dist/cjs/types/Interface/api/mobile/UpdateMobile.d.ts +5 -0
  50. package/dist/cjs/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -1
  51. package/dist/cjs/types/Interface/api/mobile/UpdateMobile.js +33 -0
  52. package/dist/cjs/types/Interface/api/mobile/UpdateMobile.js.map +1 -1
  53. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts.map +1 -1
  54. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js +3 -0
  55. package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +1 -1
  56. package/dist/cjs/types/Interface/api/statistic/QueryInternal.d.ts +3 -0
  57. package/dist/cjs/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
  58. package/dist/cjs/types/Interface/api/statistic/QueryInternal.js +10 -1
  59. package/dist/cjs/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  60. package/dist/cjs/types/Interface/api/statistic/QueryLegal.d.ts +6 -0
  61. package/dist/cjs/types/Interface/api/statistic/QueryLegal.d.ts.map +1 -0
  62. package/dist/cjs/types/Interface/api/statistic/QueryLegal.js +33 -0
  63. package/dist/cjs/types/Interface/api/statistic/QueryLegal.js.map +1 -0
  64. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +8 -0
  65. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  66. package/dist/cjs/types/Interface/api/stripe/Create.js +27 -1
  67. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  68. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +3 -0
  69. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  70. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +9 -1
  71. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  72. package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +1 -0
  73. package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
  74. package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  75. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +3 -2
  76. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  77. package/dist/cjs/types/Interface/models/IAIConversation.d.ts +11 -0
  78. package/dist/cjs/types/Interface/models/IAIConversation.d.ts.map +1 -0
  79. package/dist/cjs/types/Interface/models/IAIConversation.js +3 -0
  80. package/dist/cjs/types/Interface/models/IAIConversation.js.map +1 -0
  81. package/dist/cjs/types/Interface/models/IAIQuestion.d.ts +5 -5
  82. package/dist/cjs/types/Interface/models/IAIQuestion.d.ts.map +1 -1
  83. package/dist/cjs/types/Interface/models/IAIQuestion.js.map +1 -1
  84. package/dist/cjs/types/Interface/models/IMobile.d.ts +5 -0
  85. package/dist/cjs/types/Interface/models/IMobile.d.ts.map +1 -1
  86. package/dist/cjs/types/Interface/models/IMobile.js.map +1 -1
  87. package/dist/cjs/types/Interface/models/IPrestationComplementary.d.ts +2 -0
  88. package/dist/cjs/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
  89. package/dist/cjs/types/Interface/models/IPrestationComplementary.js.map +1 -1
  90. package/dist/cjs/types/Interface/models/ISociety.d.ts +2 -1
  91. package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
  92. package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
  93. package/dist/cjs/types/index.d.ts +3 -0
  94. package/dist/cjs/types/index.d.ts.map +1 -1
  95. package/dist/cjs/types/index.js +3 -0
  96. package/dist/cjs/types/index.js.map +1 -1
  97. package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
  98. package/dist/cjs/utils/commercialManagement/document.js +19 -18
  99. package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
  100. package/dist/cjs/utils/commercialManagement/templates/body.js +1 -1
  101. package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
  102. package/dist/cjs/utils/commercialManagement/templates/common.js +1 -1
  103. package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
  104. package/dist/mjs/api/resources/Ai.d.ts +2 -2
  105. package/dist/mjs/api/resources/Ai.d.ts.map +1 -1
  106. package/dist/mjs/api/resources/Ai.js +2 -2
  107. package/dist/mjs/api/resources/Ai.js.map +1 -1
  108. package/dist/mjs/api/resources/AnalyticsUtm.d.ts +10 -0
  109. package/dist/mjs/api/resources/AnalyticsUtm.d.ts.map +1 -0
  110. package/dist/mjs/api/resources/AnalyticsUtm.js +12 -0
  111. package/dist/mjs/api/resources/AnalyticsUtm.js.map +1 -0
  112. package/dist/mjs/api/resources/PaymentExpectation.d.ts +16 -1
  113. package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  114. package/dist/mjs/api/resources/PaymentExpectation.js +20 -0
  115. package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
  116. package/dist/mjs/api/resources/prestation.d.ts +3 -1
  117. package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
  118. package/dist/mjs/api/resources/prestation.js.map +1 -1
  119. package/dist/mjs/api/resources/statistic/Legal.d.ts +11 -0
  120. package/dist/mjs/api/resources/statistic/Legal.d.ts.map +1 -0
  121. package/dist/mjs/api/resources/statistic/Legal.js +15 -0
  122. package/dist/mjs/api/resources/statistic/Legal.js.map +1 -0
  123. package/dist/mjs/api/resources.d.ts +4 -0
  124. package/dist/mjs/api/resources.d.ts.map +1 -1
  125. package/dist/mjs/api/resources.js +4 -0
  126. package/dist/mjs/api/resources.js.map +1 -1
  127. package/dist/mjs/types/Enum/Feature.d.ts +38 -0
  128. package/dist/mjs/types/Enum/Feature.d.ts.map +1 -0
  129. package/dist/mjs/types/Enum/Feature.js +58 -0
  130. package/dist/mjs/types/Enum/Feature.js.map +1 -0
  131. package/dist/mjs/types/Enum/StatisticType.d.ts +2 -1
  132. package/dist/mjs/types/Enum/StatisticType.d.ts.map +1 -1
  133. package/dist/mjs/types/Enum/StatisticType.js +1 -0
  134. package/dist/mjs/types/Enum/StatisticType.js.map +1 -1
  135. package/dist/mjs/types/Enum/StatusRating.d.ts.map +1 -1
  136. package/dist/mjs/types/Enum/StatusRating.js +1 -0
  137. package/dist/mjs/types/Enum/StatusRating.js.map +1 -1
  138. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
  139. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +2 -2
  140. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  141. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +1 -1
  142. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js +2 -2
  143. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  144. package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts +6 -0
  145. package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts.map +1 -1
  146. package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.js +33 -2
  147. package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.js.map +1 -1
  148. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +6 -2
  149. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  150. package/dist/mjs/types/Interface/api/commercialManagement/Create.js +9 -1
  151. package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  152. package/dist/mjs/types/Interface/api/mobile/UpdateMobile.d.ts +5 -0
  153. package/dist/mjs/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -1
  154. package/dist/mjs/types/Interface/api/mobile/UpdateMobile.js +38 -0
  155. package/dist/mjs/types/Interface/api/mobile/UpdateMobile.js.map +1 -1
  156. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts.map +1 -1
  157. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js +4 -1
  158. package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +1 -1
  159. package/dist/mjs/types/Interface/api/statistic/QueryInternal.d.ts +3 -0
  160. package/dist/mjs/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
  161. package/dist/mjs/types/Interface/api/statistic/QueryInternal.js +9 -0
  162. package/dist/mjs/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  163. package/dist/mjs/types/Interface/api/statistic/QueryLegal.d.ts +6 -0
  164. package/dist/mjs/types/Interface/api/statistic/QueryLegal.d.ts.map +1 -0
  165. package/dist/mjs/types/Interface/api/statistic/QueryLegal.js +32 -0
  166. package/dist/mjs/types/Interface/api/statistic/QueryLegal.js.map +1 -0
  167. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +8 -0
  168. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  169. package/dist/mjs/types/Interface/api/stripe/Create.js +29 -1
  170. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  171. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +3 -0
  172. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  173. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +8 -0
  174. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  175. package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +1 -0
  176. package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
  177. package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js +1 -0
  178. package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  179. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +4 -3
  180. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  181. package/dist/mjs/types/Interface/models/IAIConversation.d.ts +11 -0
  182. package/dist/mjs/types/Interface/models/IAIConversation.d.ts.map +1 -0
  183. package/dist/mjs/types/Interface/models/IAIConversation.js +2 -0
  184. package/dist/mjs/types/Interface/models/IAIConversation.js.map +1 -0
  185. package/dist/mjs/types/Interface/models/IAIQuestion.d.ts +5 -5
  186. package/dist/mjs/types/Interface/models/IAIQuestion.d.ts.map +1 -1
  187. package/dist/mjs/types/Interface/models/IAIQuestion.js.map +1 -1
  188. package/dist/mjs/types/Interface/models/IMobile.d.ts +5 -0
  189. package/dist/mjs/types/Interface/models/IMobile.d.ts.map +1 -1
  190. package/dist/mjs/types/Interface/models/IMobile.js.map +1 -1
  191. package/dist/mjs/types/Interface/models/IPrestationComplementary.d.ts +2 -0
  192. package/dist/mjs/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
  193. package/dist/mjs/types/Interface/models/IPrestationComplementary.js.map +1 -1
  194. package/dist/mjs/types/Interface/models/ISociety.d.ts +2 -1
  195. package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
  196. package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
  197. package/dist/mjs/types/index.d.ts +3 -0
  198. package/dist/mjs/types/index.d.ts.map +1 -1
  199. package/dist/mjs/types/index.js +3 -0
  200. package/dist/mjs/types/index.js.map +1 -1
  201. package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
  202. package/dist/mjs/utils/commercialManagement/document.js +3 -2
  203. package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
  204. package/dist/mjs/utils/commercialManagement/templates/body.js +1 -1
  205. package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
  206. package/dist/mjs/utils/commercialManagement/templates/common.js +1 -1
  207. package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
  208. package/package.json +1 -1
  209. package/ts/api/resources/Ai.ts +3 -3
  210. package/ts/api/resources/AnalyticsUtm.ts +12 -0
  211. package/ts/api/resources/PaymentExpectation.ts +27 -0
  212. package/ts/api/resources/prestation.ts +1 -1
  213. package/ts/api/resources/statistic/Legal.ts +16 -0
  214. package/ts/api/resources.ts +4 -0
  215. package/ts/types/Enum/Feature.ts +62 -0
  216. package/ts/types/Enum/StatisticType.ts +1 -0
  217. package/ts/types/Enum/StatusRating.ts +1 -0
  218. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +1 -1
  219. package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +1 -1
  220. package/ts/types/Interface/api/ai/AskQuestionCollaborator.ts +25 -2
  221. package/ts/types/Interface/api/commercialManagement/Create.ts +8 -2
  222. package/ts/types/Interface/api/mobile/UpdateMobile.ts +28 -0
  223. package/ts/types/Interface/api/promoCode/CreateDefaultPromoCode.ts +4 -1
  224. package/ts/types/Interface/api/statistic/QueryInternal.ts +7 -0
  225. package/ts/types/Interface/api/statistic/QueryLegal.ts +16 -0
  226. package/ts/types/Interface/api/stripe/Create.ts +21 -1
  227. package/ts/types/Interface/api/stripe/QueryStripe.ts +5 -0
  228. package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +1 -0
  229. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -2
  230. package/ts/types/Interface/models/IAIConversation.ts +13 -0
  231. package/ts/types/Interface/models/IAIQuestion.ts +5 -5
  232. package/ts/types/Interface/models/IMobile.ts +5 -0
  233. package/ts/types/Interface/models/IPrestationComplementary.ts +2 -0
  234. package/ts/types/Interface/models/ISociety.ts +2 -0
  235. package/ts/types/index.ts +3 -0
  236. package/ts/utils/commercialManagement/document.ts +3 -2
  237. package/ts/utils/commercialManagement/templates/body.ts +1 -1
  238. package/ts/utils/commercialManagement/templates/common.ts +1 -1
@@ -0,0 +1,62 @@
1
+ export enum Feature {
2
+ // Tableau de bord
3
+ DASHBOARD = 'dashboard',
4
+ // Relevés bancaires / Espèces
5
+ BANK = 'bank',
6
+ // Liens de paiement
7
+ PAYMENT_LINK = 'payment_link',
8
+ // Recouvrement
9
+ PAYMENT_RECOVERY = 'payment_recovery',
10
+ // Juridique
11
+ JURIDIC = 'juridic',
12
+
13
+ /** ACHATS */
14
+ // Factures d'achat / Notes de frais / Fournisseurs
15
+ PURCHASE = 'purchase_invoice',
16
+ // Grand-Livre d'achat
17
+ PURCHASE_GENERAL_LEDGER = 'purchase_general_ledger',
18
+
19
+ /** Facturation */
20
+ // Factures, devis, brouillons, articles, clients, ticketsZ
21
+ SALE = 'sale',
22
+ // Grand-Livre de vente
23
+ SALE_GENERAL_LEDGER = 'sale_general_ledger',
24
+
25
+ /** Comptabilité */
26
+ // TVA
27
+ VAT = 'vat',
28
+ // DAS2
29
+ DAS2 = 'das2',
30
+ // Documents annexes
31
+ OTHER_REGISTRATION_DOCUMENTS = 'other_registration_documents',
32
+ // Bilan comptable - comptalib - ORI
33
+ BALANCESHEET_ACCOUNTANT = 'balancesheet_accountant',
34
+ // Bilan (version client - certifié par un Expert-Comptable)
35
+ BALANCESHEET_CUSTOMER = 'balancesheet_customer',
36
+ // Bilan (freemium)
37
+ BALANCESHEET_FREEMIUM = 'balancesheet_freemium',
38
+
39
+ /** Salariés */
40
+ // Salariés Freemium
41
+ SOCIAL_FREEMIUM = 'social_freemium',
42
+ // Salariés / Elements de paie
43
+ SOCIAL = 'social',
44
+
45
+ // Bibliothèque
46
+ LIBRARY = 'library',
47
+ // Expert-Comptable
48
+ EXPERT_ACCOUNTANT = 'expert_accountant',
49
+
50
+ /** Configuration */
51
+ SETTING = 'setting',
52
+ SETTING_INFORMATION = 'information',
53
+ SETTING_BANK = 'setting_bank',
54
+ SETTING_ANNOTATION = 'setting_annotation',
55
+ SETTING_PURCHASE = 'setting_purchase',
56
+ SETTING_SALE = 'setting_sale',
57
+ SETTING_CONNECTOR = 'setting_connector',
58
+ SETTING_ACCOUNTANCY_ACCOUNT = 'setting_accountancy_account',
59
+ SETTING_SUBSCRIPTION = 'setting_subscription',
60
+ SETTING_ACCESS = 'setting_access',
61
+ CUSTOMISATION = 'customisation',
62
+ }
@@ -16,4 +16,5 @@ export enum StatisticType {
16
16
  DATA_OFFICER = 15,
17
17
  SALESMAN = 16,
18
18
  MARKETING = 17,
19
+ LEGAL = 18,
19
20
  }
@@ -6,4 +6,5 @@ export const StatusRating = [
6
6
  { value: 4, text: 'Non concerné', color: 'skyblue' },
7
7
  { value: 5, text: 'Résolu', color: 'green' },
8
8
  { value: 6, text: 'En cours', color: 'orange' },
9
+ { value: 7, text: 'Sans solution', color: 'red' },
9
10
  ];
@@ -59,7 +59,7 @@ export class QueryPaginatedAccountingFile {
59
59
  limit: number;
60
60
 
61
61
  @ApiPropertyOptional()
62
- idTypeAccountingFile?: number[];
62
+ idAccountingFileType?: number[];
63
63
 
64
64
  @ApiPropertyOptional()
65
65
  @IsInt()
@@ -16,7 +16,7 @@ export class QueryTransaction {
16
16
  idAccountingJournal: number[];
17
17
 
18
18
  @ApiPropertyOptional()
19
- idTypeAccountingFile?: number[];
19
+ idAccountingFileType?: number[];
20
20
 
21
21
  @ApiPropertyOptional()
22
22
  idBankAccount?: number[];
@@ -1,9 +1,32 @@
1
- import { IsNotEmpty, IsString } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
1
+ import { IsArray, IsIn, IsInt, IsNotEmpty, IsOptional, IsString, ValidateNested } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class AskHistoryCollaborator {
5
+ @ApiProperty()
6
+ @IsString()
7
+ @IsIn(['assistant', 'user'])
8
+ role: 'assistant' | 'user';
9
+
10
+ @ApiProperty()
11
+ @IsString()
12
+ @IsNotEmpty()
13
+ content: string;
14
+ }
3
15
 
4
16
  export class AskQuestionCollaborator {
5
17
  @ApiProperty()
6
18
  @IsString()
7
19
  @IsNotEmpty()
8
20
  question: string;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ @IsArray()
25
+ @ValidateNested({ each: true })
26
+ history?: AskHistoryCollaborator[];
27
+
28
+ @ApiPropertyOptional()
29
+ @IsOptional()
30
+ @IsInt()
31
+ idConversation?: number;
9
32
  }
@@ -331,7 +331,7 @@ export class CreateCommercialSetting {
331
331
  @ApiPropertyOptional()
332
332
  @IsOptional()
333
333
  @IsString()
334
- logoUrl?: string;
334
+ logoUrl?: string | null;
335
335
 
336
336
  @ApiPropertyOptional()
337
337
  @IsOptional()
@@ -457,7 +457,13 @@ export class CommercialDocumentInputs {
457
457
  generalDiscount2: number | null;
458
458
 
459
459
  @ApiProperty({ description: 'Indemnité forfaitaire' })
460
- compensation: string | null;
460
+ recoveryCost: string | null;
461
+
462
+ /**
463
+ * @deprecated use recoveryCost instead (exists just for old mobile version)
464
+ */
465
+ @ApiPropertyOptional({ description: 'Indemnité forfaitaire ' })
466
+ compensation?: string | null;
461
467
 
462
468
  @ApiProperty()
463
469
  vatMention: string | null;
@@ -1,6 +1,34 @@
1
+ import { IsOptional, IsString } from 'class-validator';
1
2
  import { ApiPropertyOptional } from '../../../../utils';
2
3
 
3
4
  export class UpdateMobileForm {
4
5
  @ApiPropertyOptional()
6
+ @IsString()
7
+ @IsOptional()
5
8
  token?: string;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsString()
12
+ @IsOptional()
13
+ appVersion?: string;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsString()
17
+ @IsOptional()
18
+ appBuildNumber?: string;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsString()
22
+ @IsOptional()
23
+ deviceBrand?: string;
24
+
25
+ @ApiPropertyOptional()
26
+ @IsString()
27
+ @IsOptional()
28
+ deviceSystemVersion?: string;
29
+
30
+ @ApiPropertyOptional()
31
+ @IsString()
32
+ @IsOptional()
33
+ deviceId?: string;
6
34
  }
@@ -1,4 +1,4 @@
1
- import { IsBoolean, IsDate, IsJSON, IsString } from 'class-validator';
1
+ import { IsBoolean, IsDate, IsJSON, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiPropertyOptional, ApiProperty } from '../../../../utils';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
@@ -8,10 +8,12 @@ export class CreateDefaultPromoCode {
8
8
  label: string;
9
9
 
10
10
  @ApiPropertyOptional()
11
+ @IsOptional()
11
12
  @IsDate()
12
13
  startDate?: Date | null;
13
14
 
14
15
  @ApiPropertyOptional()
16
+ @IsOptional()
15
17
  @IsDate()
16
18
  endDate?: Date | null;
17
19
 
@@ -46,6 +48,7 @@ export class CreateDefaultPromoCode {
46
48
  isTest: boolean;
47
49
 
48
50
  @ApiPropertyOptional()
51
+ @IsOptional()
49
52
  @IsJSON()
50
53
  // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
51
54
  metadata?: any | null;
@@ -33,3 +33,10 @@ export class QueryInternalMarketing {
33
33
  @IsArray()
34
34
  idUsers?: number[];
35
35
  }
36
+
37
+ export class QueryInternalLegal {
38
+ @ApiPropertyOptional()
39
+ @IsOptional()
40
+ @IsArray()
41
+ idUsers?: number[];
42
+ }
@@ -0,0 +1,16 @@
1
+ import { IsNumber, IsDate } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryLegal {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ idUser: number;
8
+
9
+ @ApiProperty()
10
+ @IsDate()
11
+ startDate: Date;
12
+
13
+ @ApiProperty()
14
+ @IsDate()
15
+ endDate: Date;
16
+ }
@@ -1,4 +1,4 @@
1
- import { IsDate, IsOptional, IsString } from 'class-validator';
1
+ import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
 
4
4
  export class CreateStripeConnection {
@@ -30,3 +30,23 @@ export class CreateSubscriptionSession {
30
30
  @IsString()
31
31
  priceId: string;
32
32
  }
33
+
34
+ export class CreateSubscriptionSessionOff {
35
+ @ApiProperty()
36
+ @IsString()
37
+ stripeCustomerId: string;
38
+ }
39
+
40
+ export class CreatePaymentIntent {
41
+ @ApiProperty()
42
+ @IsString()
43
+ stripeCustomerId: string;
44
+
45
+ @ApiProperty()
46
+ @IsString()
47
+ paymentMethodId: string;
48
+
49
+ @ApiProperty()
50
+ @IsInt()
51
+ amountInCents: number;
52
+ }
@@ -11,6 +11,11 @@ export class RetrieveUpcomingInvoiceParams {
11
11
  @IsString()
12
12
  subscriptionId: string;
13
13
  }
14
+ export class RetrievePaymentMethodsParams {
15
+ @ApiProperty()
16
+ @IsString()
17
+ customerId: string;
18
+ }
14
19
 
15
20
  export class QueryStripeSession {
16
21
  @ApiPropertyOptional()
@@ -64,6 +64,7 @@ export class ComplementaryPrestationTaxDeadline {
64
64
  paid: boolean;
65
65
  name: string;
66
66
  isBack: boolean;
67
+ idPrestationList: number;
67
68
  }
68
69
 
69
70
  export class PrestationTaxDeadline {
@@ -1,4 +1,4 @@
1
- import { IsDate, IsDateString, IsEnum, IsIn, IsNumber, IsOptional, IsString } from 'class-validator';
1
+ import { IsDate, IsDateString, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { CerfaType } from '../../../Enum/CerfaType';
3
3
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
4
4
 
@@ -55,7 +55,7 @@ export class QueryVatEntry {
55
55
 
56
56
  // TODO: Passer le paramètre en requis une fois le front mis à jour
57
57
  @ApiPropertyOptional()
58
- @IsIn(Object.values(CerfaType))
58
+ // @IsIn(Object.values(CerfaType))
59
59
  @IsOptional()
60
60
  idCerfaType?: CerfaType;
61
61
  }
@@ -0,0 +1,13 @@
1
+ import { IAIQuestion } from './IAIQuestion';
2
+ import { IUser } from './IUser';
3
+
4
+ export interface IAIConversation {
5
+ id: number;
6
+ idUser: number;
7
+ createdAt?: Date;
8
+ updatedAt?: Date;
9
+
10
+ // Associations
11
+ user?: IUser;
12
+ questions?: IAIQuestion[];
13
+ }
@@ -1,4 +1,4 @@
1
- import { IUser } from './IUser';
1
+ import { IAIConversation } from './IAIConversation';
2
2
 
3
3
  export interface IAIQuestion {
4
4
  id: number;
@@ -8,10 +8,10 @@ export interface IAIQuestion {
8
8
  category: string;
9
9
  subCategory: string;
10
10
  totalTokens: number;
11
- idUser: number;
12
- createdAt?: Date | string;
13
- updatedAt?: Date | string;
11
+ idConversation: number | null; // Nullable for the first questions generated by the AI without conversation
12
+ createdAt?: Date;
13
+ updatedAt?: Date;
14
14
 
15
15
  // Associations
16
- user?: IUser;
16
+ conversation?: IAIConversation;
17
17
  }
@@ -5,6 +5,11 @@ export interface IMobile {
5
5
  lastConnection: Date | null;
6
6
  firstConnection: Date | null;
7
7
  token: string | null;
8
+ appVersion: string | null;
9
+ appBuildNumber: string | null;
10
+ deviceBrand: string | null;
11
+ deviceSystemVersion: string | null;
12
+ deviceId: string | null;
8
13
  idUser: number;
9
14
  createdAt?: Date | null;
10
15
  updatedAt?: Date | null;
@@ -3,6 +3,7 @@ import { IPaymentExpectation } from './IPaymentExpectation';
3
3
  import { IGedFile } from './IGedFile';
4
4
  import { IPrestation } from './IPrestation';
5
5
  import { AcceptationAdmin } from '../../Enum/AdditionnalSells';
6
+ import { IPrestationComplementaryHistory } from './IPrestationComplementaryHistory';
6
7
 
7
8
  // prestationsCompl
8
9
  export interface IPrestationComplementary {
@@ -33,4 +34,5 @@ export interface IPrestationComplementary {
33
34
  prestationPaymentExpectation?: IPaymentExpectation;
34
35
  prestationGedFile?: IGedFile;
35
36
  prestation?: IPrestation;
37
+ prestationComplementaryHistory?: IPrestationComplementaryHistory[];
36
38
  }
@@ -66,6 +66,7 @@ import {
66
66
  ICalendarEvent,
67
67
  IRegulation,
68
68
  IGeneralConditionOfSale,
69
+ IConstitutionHistory,
69
70
  } from '../..';
70
71
  import { IBrandType } from './IBrandType';
71
72
  import { IFile } from './IFile';
@@ -250,4 +251,5 @@ export interface ISociety {
250
251
  accountingFiles?: IAccountingFile[];
251
252
  businessSectors?: IBusinessSector[];
252
253
  calendarEvents?: ICalendarEvent[];
254
+ constitutionHistories?: IConstitutionHistory[];
253
255
  }
package/ts/types/index.ts CHANGED
@@ -325,6 +325,7 @@ export * from './Interface/models/IScheduledReminder';
325
325
  export * from './Interface/models/IReminderAttachment';
326
326
  export * from './Interface/models/IStateBankAccount';
327
327
  export * from './Interface/models/IAIQuestion';
328
+ export * from './Interface/models/IAIConversation';
328
329
 
329
330
  // Schemas
330
331
  export * from './Interface/schemas/IRegistrationDetail';
@@ -335,6 +336,7 @@ export * from './Form/FormAuthenticate';
335
336
  export * from './Form/FormConnector';
336
337
 
337
338
  // Enums
339
+ export * from './Enum/Feature';
338
340
  export * from './Enum/AutomaticRegistration';
339
341
  export * from './Enum/IntermediateManagementRebate';
340
342
  export * from './Enum/Das';
@@ -813,6 +815,7 @@ export * from './Interface/api/statistic/QueryGetExpertAccountant';
813
815
  export * from './Interface/api/statistic/QueryAccountant';
814
816
  export * from './Interface/api/statistic/QueryGetAccountant';
815
817
  export * from './Interface/api/statistic/QueryDirection';
818
+ export * from './Interface/api/statistic/QueryLegal';
816
819
  export * from './Interface/api/statistic/QueryInternal';
817
820
  export * from './Interface/api/statistic/QueryGetDirection';
818
821
  export * from './Interface/api/statistic/QueryCustomerSuccess';
@@ -73,6 +73,7 @@ export function generateCommercialDocument(
73
73
 
74
74
  const accountingCategory = AccountingCategoryList.find((a) => a.id === payload.accountingCategory)?.label ?? null;
75
75
 
76
+ const recoveryCost = payload.recoveryCost ?? payload.compensation;
76
77
  const data: ReadDocumentEditing & { brandColors: brandColorType; brandName: string; shouldHideBrandName: boolean } = {
77
78
  ...payload,
78
79
  thirdParty,
@@ -85,8 +86,8 @@ export function generateCommercialDocument(
85
86
  termsOfPayment: payload.termsOfPayment
86
87
  ? (internationalizationConsistency(locale, payload.termsOfPayment, 'termsOfPayment') ?? payload.termsOfPayment)
87
88
  : null,
88
- compensation: payload.compensation
89
- ? (internationalizationConsistency(locale, payload.compensation, 'recoveryCost') ?? payload.compensation)
89
+ recoveryCost: recoveryCost
90
+ ? (internationalizationConsistency(locale, recoveryCost, 'recoveryCost') ?? recoveryCost)
90
91
  : null,
91
92
  discount: payload.discount
92
93
  ? (internationalizationConsistency(locale, payload.discount, 'discount') ?? payload.discount)
@@ -82,7 +82,7 @@ export const bodyTemplate = `<html class="pdf-content">
82
82
  <% if (disableVat !== true && vats.length) { %>
83
83
  ${commonTemplate.vatRecapitulation}
84
84
  <% } %>
85
- <% if (vatMention) { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
85
+ <% if (vatMention && vatMention !== 'TVA: Non concerné') { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
86
86
  <% if (comment) { %>
87
87
  <p class="mt-20"><%= languageTemplate.template.common.options.comment %> :<br/>
88
88
  <%- comment %>
@@ -9,7 +9,7 @@ export class CommercialDocumentCommonHTML {
9
9
  <% } %>`;
10
10
 
11
11
  footer = `<div class="footer" style="font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;">
12
- <% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties || compensation || discount) { %><%= penalties ? languageTemplate.template.common.footer.penalties + ' : ' + penalties : ''%><%= penalties && compensation ? ' | ' : ''%><%= compensation ? languageTemplate.template.common.footer.recoveryCosts + ' : ' + compensation + ' ' : '' %><%= (compensation || penalties) && discount ? ' | ' : '' %><%= discount ? languageTemplate.template.common.footer.discount + ' : ' + discount : '' %><%= shouldPayTaxAfterDebit ? "| " + languageTemplate.template.common.footer.shouldPayTaxAfterDebit : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' ' + languageTemplate.template.common.footer.capital + ' ' + capitalFormatted + ' €' : '' %><%= siren ? ' ' + languageTemplate.template.common.footer.siren + ' ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? languageTemplate.template.common.footer.vatCode + ' ' +vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
12
+ <% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties || recoveryCost || discount) { %><%= penalties ? languageTemplate.template.common.footer.penalties + ' : ' + penalties : ''%><%= penalties && recoveryCost ? ' | ' : ''%><%= recoveryCost ? languageTemplate.template.common.footer.recoveryCosts + ' : ' + recoveryCost + ' ' : '' %><%= (recoveryCost || penalties) && discount ? ' | ' : '' %><%= discount ? languageTemplate.template.common.footer.discount + ' : ' + discount : '' %><%= shouldPayTaxAfterDebit ? "| " + languageTemplate.template.common.footer.shouldPayTaxAfterDebit : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' ' + languageTemplate.template.common.footer.capital + ' ' + capitalFormatted + ' €' : '' %><%= siren ? ' ' + languageTemplate.template.common.footer.siren + ' ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? languageTemplate.template.common.footer.vatCode + ' ' +vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
13
13
  <% if (["Clementine", "Pourcentage", "Comptalib"].includes(brandName) && !shouldHideBrandName) { %>
14
14
  <div style="display: grid; place-items: center;"><div style="background-color: <%= brandColors.primary50 %>; color: <%= brandColors.primary500 %>; display: flex; gap: 3px; max-width: fit-content; border-radius: 4px; padding: 4px 8px; margin-top: 8px; align-items: center; font-size: 9px; line-height: 140%; font-family: 'circular std', sans serif; font-weight: 450;">
15
15
  <%= languageTemplate.template.common.footer.generate %>