@silexpert/core 0.4.118 → 0.4.121

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 (286) hide show
  1. package/es/api/resources/AccountingIncome.d.ts +6 -0
  2. package/es/api/resources/AccountingIncome.d.ts.map +1 -0
  3. package/es/api/resources/AccountingIncome.js +7 -0
  4. package/es/api/resources/AccountingIncome.js.map +1 -0
  5. package/es/api/resources/BankStatement.d.ts +7 -0
  6. package/es/api/resources/BankStatement.d.ts.map +1 -0
  7. package/es/api/resources/BankStatement.js +15 -0
  8. package/es/api/resources/BankStatement.js.map +1 -0
  9. package/es/api/resources/Cerfa.d.ts +2 -2
  10. package/es/api/resources/Cerfa.d.ts.map +1 -1
  11. package/es/api/resources/Cerfa.js.map +1 -1
  12. package/es/api/resources/Tax.d.ts +3 -1
  13. package/es/api/resources/Tax.d.ts.map +1 -1
  14. package/es/api/resources/Tax.js +6 -0
  15. package/es/api/resources/Tax.js.map +1 -1
  16. package/es/api/resources.d.ts +4 -0
  17. package/es/api/resources.d.ts.map +1 -1
  18. package/es/api/resources.js +4 -0
  19. package/es/api/resources.js.map +1 -1
  20. package/es/types/Enum/Account.d.ts +4 -0
  21. package/es/types/Enum/Account.d.ts.map +1 -1
  22. package/es/types/Enum/Account.js +4 -0
  23. package/es/types/Enum/Account.js.map +1 -1
  24. package/es/types/Enum/AnswerTypeValue.d.ts +15 -1
  25. package/es/types/Enum/AnswerTypeValue.d.ts.map +1 -1
  26. package/es/types/Enum/AnswerTypeValue.js +17 -2
  27. package/es/types/Enum/AnswerTypeValue.js.map +1 -1
  28. package/es/types/Enum/Aspone.d.ts +42 -0
  29. package/es/types/Enum/Aspone.d.ts.map +1 -0
  30. package/es/types/Enum/Aspone.js +48 -0
  31. package/es/types/Enum/Aspone.js.map +1 -0
  32. package/es/types/Enum/BalanceSheetQuestion.d.ts +42 -6
  33. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  34. package/es/types/Enum/BalanceSheetQuestion.js +42 -5
  35. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  36. package/es/types/Enum/BalanceSheetQuestionWording.d.ts +221 -0
  37. package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -0
  38. package/es/types/Enum/BalanceSheetQuestionWording.js +224 -0
  39. package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -0
  40. package/es/types/Enum/BrandClementine.d.ts +5 -0
  41. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  42. package/es/types/Enum/BrandClementine.js +5 -0
  43. package/es/types/Enum/BrandClementine.js.map +1 -1
  44. package/es/types/Enum/BrandComptalib.d.ts +2 -0
  45. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  46. package/es/types/Enum/BrandComptalib.js +2 -0
  47. package/es/types/Enum/BrandComptalib.js.map +1 -1
  48. package/es/types/Enum/BrandLegalstart.d.ts +1 -0
  49. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  50. package/es/types/Enum/BrandLegalstart.js +1 -0
  51. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  52. package/es/types/Enum/Ged.d.ts +2 -0
  53. package/es/types/Enum/Ged.d.ts.map +1 -1
  54. package/es/types/Enum/Ged.js +2 -1
  55. package/es/types/Enum/Ged.js.map +1 -1
  56. package/es/types/Enum/GlobalRegime.d.ts.map +1 -1
  57. package/es/types/Enum/GlobalRegime.js +66 -14
  58. package/es/types/Enum/GlobalRegime.js.map +1 -1
  59. package/es/types/Enum/LegalInformation.d.ts +9 -0
  60. package/es/types/Enum/LegalInformation.d.ts.map +1 -0
  61. package/es/types/Enum/LegalInformation.js +10 -0
  62. package/es/types/Enum/LegalInformation.js.map +1 -0
  63. package/es/types/Enum/{MealExpenseTresholds.d.ts → MealExpenseThresholds.d.ts} +1 -1
  64. package/es/types/Enum/MealExpenseThresholds.d.ts.map +1 -0
  65. package/es/types/Enum/{MealExpenseTresholds.js → MealExpenseThresholds.js} +1 -1
  66. package/es/types/Enum/MealExpenseThresholds.js.map +1 -0
  67. package/es/types/Enum/Prestation.d.ts +7 -1
  68. package/es/types/Enum/Prestation.d.ts.map +1 -1
  69. package/es/types/Enum/Prestation.js +6 -0
  70. package/es/types/Enum/Prestation.js.map +1 -1
  71. package/es/types/Enum/Util.d.ts +4 -0
  72. package/es/types/Enum/Util.d.ts.map +1 -1
  73. package/es/types/Enum/Util.js +5 -0
  74. package/es/types/Enum/Util.js.map +1 -1
  75. package/es/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +4 -0
  76. package/es/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -0
  77. package/es/types/Interface/api/accountingIncome/ReadAccountingIncome.js +2 -0
  78. package/es/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -0
  79. package/es/types/Interface/api/aspone/ReadInterchange.d.ts +76 -0
  80. package/es/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -0
  81. package/es/types/Interface/api/aspone/ReadInterchange.js +9 -0
  82. package/es/types/Interface/api/aspone/ReadInterchange.js.map +1 -0
  83. package/es/types/Interface/api/aspone/Util.d.ts +109 -0
  84. package/es/types/Interface/api/aspone/Util.d.ts.map +1 -0
  85. package/es/types/Interface/api/aspone/Util.js +17 -0
  86. package/es/types/Interface/api/aspone/Util.js.map +1 -0
  87. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +5 -3
  88. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
  89. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +27 -4
  90. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  91. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +5 -2
  92. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
  93. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +29 -2
  94. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  95. package/es/types/Interface/api/bankStatement/QueryBankStatement.d.ts +6 -0
  96. package/es/types/Interface/api/bankStatement/QueryBankStatement.d.ts.map +1 -0
  97. package/es/types/Interface/api/bankStatement/QueryBankStatement.js +25 -0
  98. package/es/types/Interface/api/bankStatement/QueryBankStatement.js.map +1 -0
  99. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.d.ts +9 -0
  100. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.d.ts.map +1 -0
  101. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.js +27 -0
  102. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.js.map +1 -0
  103. package/es/types/Interface/api/bankStatement/ReadBankStatement.d.ts +6 -0
  104. package/es/types/Interface/api/bankStatement/ReadBankStatement.d.ts.map +1 -0
  105. package/es/types/Interface/api/bankStatement/ReadBankStatement.js +3 -0
  106. package/es/types/Interface/api/bankStatement/ReadBankStatement.js.map +1 -0
  107. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +379 -88
  108. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
  109. package/es/types/Interface/api/cerfa/CreateCerfa.js +24 -327
  110. package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  111. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +4 -0
  112. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  113. package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  114. package/es/types/Interface/api/ocr/OcrTransactions.d.ts +12 -0
  115. package/es/types/Interface/api/ocr/OcrTransactions.d.ts.map +1 -0
  116. package/es/types/Interface/api/ocr/OcrTransactions.js +33 -0
  117. package/es/types/Interface/api/ocr/OcrTransactions.js.map +1 -0
  118. package/es/types/Interface/api/ocr/OcrTypeTransactions.d.ts +7 -0
  119. package/es/types/Interface/api/ocr/OcrTypeTransactions.d.ts.map +1 -0
  120. package/es/types/Interface/api/ocr/OcrTypeTransactions.js +2 -0
  121. package/es/types/Interface/api/ocr/OcrTypeTransactions.js.map +1 -0
  122. package/es/types/Interface/api/registration/CreateRegistration.d.ts +13 -2
  123. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  124. package/es/types/Interface/api/registration/CreateRegistration.js +20 -4
  125. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  126. package/es/types/Interface/api/registration/DeclareRegistration.d.ts +4 -0
  127. package/es/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -0
  128. package/es/types/Interface/api/registration/DeclareRegistration.js +22 -0
  129. package/es/types/Interface/api/registration/DeclareRegistration.js.map +1 -0
  130. package/es/types/Interface/api/registration/ReadRegistration.d.ts +18 -1
  131. package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  132. package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  133. package/es/types/Interface/api/tax/ReadCompanyTax.d.ts +11 -0
  134. package/es/types/Interface/api/tax/ReadCompanyTax.d.ts.map +1 -0
  135. package/es/types/Interface/api/tax/ReadCompanyTax.js +2 -0
  136. package/es/types/Interface/api/tax/ReadCompanyTax.js.map +1 -0
  137. package/es/types/Interface/api/tax/ReadTax.d.ts +6 -1
  138. package/es/types/Interface/api/tax/ReadTax.d.ts.map +1 -1
  139. package/es/types/Interface/api/tax/ReadTax.js.map +1 -1
  140. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +2 -1
  141. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
  142. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +8 -1
  143. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  144. package/es/types/Interface/models/IApiError.d.ts +1 -0
  145. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  146. package/es/types/Interface/models/IApiError.js +1 -0
  147. package/es/types/Interface/models/IApiError.js.map +1 -1
  148. package/es/types/Interface/models/IBalanceSheetModule.d.ts +7 -4
  149. package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  150. package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  151. package/es/types/Interface/models/IBalanceSheetQuestion.d.ts +1 -0
  152. package/es/types/Interface/models/IBalanceSheetQuestion.d.ts.map +1 -1
  153. package/es/types/Interface/models/IBalanceSheetQuestion.js.map +1 -1
  154. package/es/types/Interface/models/ICountry.d.ts +1 -0
  155. package/es/types/Interface/models/ICountry.d.ts.map +1 -1
  156. package/es/types/Interface/models/ICountry.js.map +1 -1
  157. package/es/types/Interface/models/ISocietySocial.d.ts +2 -2
  158. package/es/types/Interface/models/ISocietySocial.d.ts.map +1 -1
  159. package/es/types/Interface/models/ISocietySocial.js.map +1 -1
  160. package/es/types/index.d.ts +17 -4
  161. package/es/types/index.d.ts.map +1 -1
  162. package/es/types/index.js +17 -4
  163. package/es/types/index.js.map +1 -1
  164. package/js/api/resources/AccountingIncome.js +18 -0
  165. package/js/api/resources/AccountingIncome.js.map +1 -0
  166. package/js/api/resources/BankStatement.js +30 -0
  167. package/js/api/resources/BankStatement.js.map +1 -0
  168. package/js/api/resources/Cerfa.js.map +1 -1
  169. package/js/api/resources/Tax.js +8 -0
  170. package/js/api/resources/Tax.js.map +1 -1
  171. package/js/api/resources.js +7 -1
  172. package/js/api/resources.js.map +1 -1
  173. package/js/types/Enum/Account.js +4 -0
  174. package/js/types/Enum/Account.js.map +1 -1
  175. package/js/types/Enum/AnswerTypeValue.js +21 -2
  176. package/js/types/Enum/AnswerTypeValue.js.map +1 -1
  177. package/js/types/Enum/Aspone.js +64 -0
  178. package/js/types/Enum/Aspone.js.map +1 -0
  179. package/js/types/Enum/BalanceSheetQuestion.js +47 -5
  180. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  181. package/js/types/Enum/BalanceSheetQuestionWording.js +238 -0
  182. package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -0
  183. package/js/types/Enum/BrandClementine.js +7 -2
  184. package/js/types/Enum/BrandClementine.js.map +1 -1
  185. package/js/types/Enum/BrandComptalib.js +2 -0
  186. package/js/types/Enum/BrandComptalib.js.map +1 -1
  187. package/js/types/Enum/BrandLegalstart.js +1 -0
  188. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  189. package/js/types/Enum/Ged.js +4 -3
  190. package/js/types/Enum/Ged.js.map +1 -1
  191. package/js/types/Enum/GlobalRegime.js +68 -21
  192. package/js/types/Enum/GlobalRegime.js.map +1 -1
  193. package/js/types/Enum/LegalInformation.js +16 -0
  194. package/js/types/Enum/LegalInformation.js.map +1 -0
  195. package/js/types/Enum/{MealExpenseTresholds.js → MealExpenseThresholds.js} +1 -1
  196. package/js/types/Enum/MealExpenseThresholds.js.map +1 -0
  197. package/js/types/Enum/Prestation.js +6 -0
  198. package/js/types/Enum/Prestation.js.map +1 -1
  199. package/js/types/Enum/Util.js +7 -0
  200. package/js/types/Enum/Util.js.map +1 -1
  201. package/js/types/Interface/api/accountingIncome/ReadAccountingIncome.js +6 -0
  202. package/js/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -0
  203. package/js/types/Interface/api/aspone/ReadInterchange.js +22 -0
  204. package/js/types/Interface/api/aspone/ReadInterchange.js.map +1 -0
  205. package/js/types/Interface/api/aspone/Util.js +38 -0
  206. package/js/types/Interface/api/aspone/Util.js.map +1 -0
  207. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -3
  208. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  209. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +8 -2
  210. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  211. package/js/types/Interface/api/bankStatement/QueryBankStatement.js +31 -0
  212. package/js/types/Interface/api/bankStatement/QueryBankStatement.js.map +1 -0
  213. package/js/types/Interface/api/bankStatement/QueryTransactionBankStatement.js +33 -0
  214. package/js/types/Interface/api/bankStatement/QueryTransactionBankStatement.js.map +1 -0
  215. package/js/types/Interface/api/bankStatement/ReadBankStatement.js +10 -0
  216. package/js/types/Interface/api/bankStatement/ReadBankStatement.js.map +1 -0
  217. package/js/types/Interface/api/cerfa/CreateCerfa.js +24 -174
  218. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  219. package/js/types/Interface/api/ocr/OcrTransactions.js +37 -0
  220. package/js/types/Interface/api/ocr/OcrTransactions.js.map +1 -0
  221. package/js/types/Interface/api/ocr/OcrTypeTransactions.js +6 -0
  222. package/js/types/Interface/api/ocr/OcrTypeTransactions.js.map +1 -0
  223. package/js/types/Interface/api/registration/CreateRegistration.js +11 -3
  224. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  225. package/js/types/Interface/api/registration/DeclareRegistration.js +31 -0
  226. package/js/types/Interface/api/registration/DeclareRegistration.js.map +1 -0
  227. package/js/types/Interface/{models/IPrestationSocial.js → api/tax/ReadCompanyTax.js} +1 -1
  228. package/js/types/Interface/{models/IPrestationSocial.js.map → api/tax/ReadCompanyTax.js.map} +1 -1
  229. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +6 -0
  230. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  231. package/js/types/Interface/models/IApiError.js +2 -1
  232. package/js/types/Interface/models/IApiError.js.map +1 -1
  233. package/js/types/index.js +183 -27
  234. package/js/types/index.js.map +1 -1
  235. package/package.json +1 -1
  236. package/ts/api/resources/AccountingIncome.ts +8 -0
  237. package/ts/api/resources/BankStatement.ts +20 -0
  238. package/ts/api/resources/Cerfa.ts +2 -2
  239. package/ts/api/resources/Tax.ts +9 -1
  240. package/ts/api/resources.ts +4 -0
  241. package/ts/types/Enum/Account.ts +4 -0
  242. package/ts/types/Enum/AnswerTypeValue.ts +16 -0
  243. package/ts/types/Enum/Aspone.ts +46 -0
  244. package/ts/types/Enum/BalanceSheetQuestion.ts +48 -5
  245. package/ts/types/Enum/BalanceSheetQuestionWording.ts +283 -0
  246. package/ts/types/Enum/BrandClementine.ts +5 -0
  247. package/ts/types/Enum/BrandComptalib.ts +2 -0
  248. package/ts/types/Enum/BrandLegalstart.ts +1 -0
  249. package/ts/types/Enum/Ged.ts +2 -1
  250. package/ts/types/Enum/GlobalRegime.ts +67 -21
  251. package/ts/types/Enum/LegalInformation.ts +8 -0
  252. package/ts/types/Enum/Prestation.ts +6 -0
  253. package/ts/types/Enum/Util.ts +4 -0
  254. package/ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts +3 -0
  255. package/ts/types/Interface/api/aspone/ReadInterchange.ts +75 -0
  256. package/ts/types/Interface/api/aspone/Util.ts +108 -0
  257. package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +24 -3
  258. package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +26 -2
  259. package/ts/types/Interface/api/bankStatement/QueryBankStatement.ts +15 -0
  260. package/ts/types/Interface/api/bankStatement/QueryTransactionBankStatement.ts +15 -0
  261. package/ts/types/Interface/api/bankStatement/ReadBankStatement.ts +6 -0
  262. package/ts/types/Interface/api/cerfa/CreateCerfa.ts +533 -178
  263. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +4 -0
  264. package/ts/types/Interface/api/ocr/OcrTransactions.ts +24 -0
  265. package/ts/types/Interface/api/ocr/OcrTypeTransactions.ts +6 -0
  266. package/ts/types/Interface/api/registration/CreateRegistration.ts +28 -4
  267. package/ts/types/Interface/api/registration/DeclareRegistration.ts +11 -0
  268. package/ts/types/Interface/api/registration/ReadRegistration.ts +19 -1
  269. package/ts/types/Interface/api/tax/ReadCompanyTax.ts +12 -0
  270. package/ts/types/Interface/api/tax/ReadTax.ts +6 -1
  271. package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +7 -1
  272. package/ts/types/Interface/models/IApiError.ts +1 -0
  273. package/ts/types/Interface/models/IBalanceSheetModule.ts +7 -4
  274. package/ts/types/Interface/models/IBalanceSheetQuestion.ts +1 -0
  275. package/ts/types/Interface/models/ICountry.ts +1 -0
  276. package/ts/types/Interface/models/ISocietySocial.ts +2 -2
  277. package/ts/types/index.ts +18 -4
  278. package/es/types/Enum/MealExpenseTresholds.d.ts.map +0 -1
  279. package/es/types/Enum/MealExpenseTresholds.js.map +0 -1
  280. package/es/types/Interface/models/IPrestationSocial.d.ts +0 -7
  281. package/es/types/Interface/models/IPrestationSocial.d.ts.map +0 -1
  282. package/es/types/Interface/models/IPrestationSocial.js +0 -2
  283. package/es/types/Interface/models/IPrestationSocial.js.map +0 -1
  284. package/js/types/Enum/MealExpenseTresholds.js.map +0 -1
  285. package/ts/types/Interface/models/IPrestationSocial.ts +0 -7
  286. /package/ts/types/Enum/{MealExpenseTresholds.ts → MealExpenseThresholds.ts} +0 -0
@@ -0,0 +1,75 @@
1
+ export type PaymentState = {
2
+ isError: boolean;
3
+ details: string[];
4
+ };
5
+
6
+ type Interchange = {
7
+ name: string |null;
8
+ label: string|null;
9
+ isError: boolean;
10
+ isFinal: boolean;
11
+ date: string|null;
12
+ detailledLabel?: string|null
13
+ };
14
+
15
+ export type InterchangeState = Array<Interchange>;
16
+
17
+ export type InterchangeHistory = Interchange & { stateDetailsHistory: InterchangeState };
18
+
19
+ export class ReadDeclaration {
20
+ idDeclaration: string;
21
+ type: string;
22
+ declarationType: {
23
+ code: string| null;
24
+ label: string | null
25
+ };
26
+ payment: PaymentState;
27
+ dld: any;
28
+ states: InterchangeHistory[];
29
+ }
30
+
31
+ export class ReadInterchange {
32
+ idDeposit: string;
33
+ date: string;
34
+ idInterchange: string;
35
+ history: InterchangeHistory[];
36
+ declarations: ReadDeclaration[];
37
+ }
38
+
39
+ export class RedactorAddress {
40
+ adresseNumero: string;
41
+ adresseType: string | null;
42
+ adresseVoie: string;
43
+ adresseComplement: string;
44
+ adresseCodePostal: string;
45
+ adresseVille: string;
46
+ adresseCodePays: string;
47
+ }
48
+
49
+ export class Redactor {
50
+ siret: string;
51
+ designation: string;
52
+ designationSuite1: string;
53
+ adresse: RedactorAddress;
54
+ referenceDossier: string;
55
+ }
56
+
57
+ type Tag = 'Valeur' | 'AdresseVille' | 'AdresseVoie' | 'AdresseCodePays' | 'AdresseComplement' | 'AdresseCodePostal' | 'AdresseHameau' | 'Telephone' | 'Designation' | 'DesignationSuite1' | 'DesignationSuite2' | 'Identifiant' | 'TexteLibre1' | 'TexteLibre2' | 'DesignationSuite3';
58
+ type Tags = Array<{ description: string; tag: Tag; value: any }>;
59
+
60
+ interface FieldForGeneration {
61
+ tag?: Tag;
62
+ tags?: Tags,
63
+ description?: string;
64
+ key: string;
65
+ value?: any;
66
+ isMultiple: boolean;
67
+ }
68
+
69
+ export interface PayloadForRegistration {
70
+ isTest: boolean;
71
+ redactor: Redactor;
72
+ indebted: any;
73
+ forms: Array<{ name: string; fields: FieldForGeneration[] }>;
74
+ xml: string
75
+ }
@@ -0,0 +1,108 @@
1
+ import { InterchangeHistory, PaymentState, Rof } from '../../..';
2
+
3
+ export class PasswordDigest {
4
+ nonce: string;
5
+ created: string;
6
+ passwordDigest: string;
7
+ }
8
+
9
+ export class WSDL {
10
+ deposit: string;
11
+ monitoring: string;
12
+ }
13
+
14
+ export class AccessKeys {
15
+ login: string;
16
+ password: string;
17
+ loginMB: string;
18
+ passwordMB: string;
19
+ apiKey: string;
20
+ wsdl: WSDL;
21
+ }
22
+
23
+ export class RegistrationParams {
24
+ subject: string;
25
+ idSociety: number;
26
+ file: {
27
+ buffer: Buffer,
28
+ token: string
29
+ };
30
+ forceTestMode: boolean;
31
+ }
32
+
33
+ export class RegistrationResponse {
34
+ status: number;
35
+ response: string;
36
+ depositId: string | null;
37
+ }
38
+
39
+ export class IndebtedIdentification {
40
+ identifiant: string;
41
+ designation: string;
42
+ adresseVoie: string;
43
+ adresseCodePostal: string;
44
+ adresseVille: string;
45
+ adresseCodePays: string;
46
+ rof: Rof;
47
+ }
48
+
49
+ export class StateHistory {
50
+ name: string[];
51
+ label: string[];
52
+ isError: string[];
53
+ isFinal: string[];
54
+ date: string[];
55
+ }
56
+
57
+ export type DeclarationStateHistory = StateHistory & { stateDetailsHistory: Array<{ stateDetail: InterchangeHistory[] }> };
58
+
59
+ export type DeclarationType = { code: string[]; libelle: string[] };
60
+
61
+ export class InterchangeDeclaration {
62
+ interchange: [];
63
+ numInterchangeDestinataire:string[];
64
+ recipient: {
65
+ name: string[];
66
+ type: string[]
67
+ };
68
+ periodStart: string[];
69
+ periodEnd: string[];
70
+ nameDosier: string[];
71
+ numDossier: string[];
72
+ declarationId: string[];
73
+ declarantSiret: string[];
74
+ declarationType: DeclarationType[];
75
+ statesHistory: Array<{ stateHistory: DeclarationStateHistory[] }>;
76
+ dld: any[];
77
+ }
78
+
79
+ export type DeclarationStates = {
80
+ status: number;
81
+ declarationType: {
82
+ code: string| null;
83
+ label: string | null
84
+ }; type: string;
85
+ payment: PaymentState;
86
+ states: InterchangeHistory[],
87
+ dld: any;
88
+ idDeclaration: string|null
89
+ };
90
+ export type InterchangeParsed = Array<{
91
+ interchange: Array<{
92
+ depositId: string[];
93
+ depositDate: string[];
94
+ depositSubject: string[];
95
+ interchangeId: string[];
96
+ numADS: string[];
97
+ adsDate: string[];
98
+ alias: string[];
99
+ version: string[];
100
+ isTest: string[];
101
+ deposantAccount: string[];
102
+ teleProdecure: string[];
103
+ statesHistory: Array<{
104
+ stateHistory: DeclarationStateHistory[]
105
+ }>;
106
+ declarationIds: string[];
107
+ }>
108
+ }>;
@@ -4,16 +4,31 @@ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
5
5
  export class CreateBalanceSheetModuleForm {
6
6
  @ApiPropertyOptional()
7
- inventory?: boolean;
7
+ @IsBoolean()
8
+ @ToBoolean()
9
+ @IsOptional()
10
+ inventory: boolean | null;
8
11
 
9
12
  @ApiPropertyOptional()
10
- loanToDeclare?: boolean;
13
+ @IsBoolean()
14
+ @ToBoolean()
15
+ @IsOptional()
16
+ recoveryImmobilization: boolean | null;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsBoolean()
20
+ @ToBoolean()
21
+ @IsOptional()
22
+ incomeAllocation:boolean | null;
11
23
 
12
24
  // @ApiPropertyOptional()
13
25
  // deadlinerecoveryImmobilization: boolean;
14
26
 
15
27
  @ApiPropertyOptional()
16
- salariesFile?: boolean;
28
+ @IsBoolean()
29
+ @ToBoolean()
30
+ @IsOptional()
31
+ salariesFile?: boolean | null;
17
32
 
18
33
  @ApiPropertyOptional()
19
34
  @IsBoolean()
@@ -63,6 +78,12 @@ export class CreateBalanceSheetModuleForm {
63
78
  @IsOptional()
64
79
  hasCheckedVAT?: boolean | null;
65
80
 
81
+ @ApiPropertyOptional()
82
+ @IsBoolean()
83
+ @ToBoolean()
84
+ @IsOptional()
85
+ hasCheckedCompanyTax?: boolean | null;
86
+
66
87
  @ApiProperty()
67
88
  idExercice: number;
68
89
  }
@@ -4,7 +4,22 @@ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
5
5
  export class UpdateBalanceSheetModuleForm {
6
6
  @ApiPropertyOptional()
7
- inventory: boolean;
7
+ @IsBoolean()
8
+ @ToBoolean()
9
+ @IsOptional()
10
+ inventory: boolean | null;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsBoolean()
14
+ @ToBoolean()
15
+ @IsOptional()
16
+ recoveryImmobilization: boolean | null;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsBoolean()
20
+ @ToBoolean()
21
+ @IsOptional()
22
+ incomeAllocation:boolean | null;
8
23
 
9
24
  @ApiPropertyOptional()
10
25
  loanToDeclare?: boolean;
@@ -37,7 +52,10 @@ export class UpdateBalanceSheetModuleForm {
37
52
  hasProviderInvoiceNotReceived?: boolean | null;
38
53
 
39
54
  @ApiPropertyOptional()
40
- salariesFile?: boolean;
55
+ @IsBoolean()
56
+ @ToBoolean()
57
+ @IsOptional()
58
+ salariesFile?: boolean | null;
41
59
 
42
60
  @ApiPropertyOptional()
43
61
  @IsBoolean()
@@ -63,6 +81,12 @@ export class UpdateBalanceSheetModuleForm {
63
81
  @IsOptional()
64
82
  hasCheckedVAT?: boolean | null;
65
83
 
84
+ @ApiPropertyOptional()
85
+ @IsBoolean()
86
+ @ToBoolean()
87
+ @IsOptional()
88
+ hasCheckedCompanyTax?: boolean | null;
89
+
66
90
  @ApiPropertyOptional()
67
91
  idExercice?: number;
68
92
  }
@@ -0,0 +1,15 @@
1
+ import { IsNotEmpty, IsNumber, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class UploadBankStatement {
5
+ @IsOptional()
6
+ @ApiPropertyOptional()
7
+ tokenCsv?: string;
8
+
9
+ @ApiProperty()
10
+ @IsNumber()
11
+ @IsNotEmpty()
12
+ idBankAccount: number;
13
+
14
+ file: File;
15
+ }
@@ -0,0 +1,15 @@
1
+ import { IsNumber } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
3
+ import { OcrTransactionDetails } from '../ocr/OcrTypeTransactions';
4
+
5
+ export class QueryTransactionBankStatement {
6
+ @ApiPropertyOptional()
7
+ accountingFile?: { id: number };
8
+
9
+ @ApiProperty()
10
+ transactions: OcrTransactionDetails[];
11
+
12
+ @ApiProperty()
13
+ @IsNumber()
14
+ idBankAccount?: number;
15
+ }
@@ -0,0 +1,6 @@
1
+ import { OcrTransactions } from '../ocr/OcrTransactions';
2
+
3
+ export class ReadBankStatement {
4
+ success: boolean;
5
+ data: OcrTransactions | null;
6
+ }