@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
@@ -3,4 +3,8 @@ import { CerfaType } from '../../../Enum/CerfaType';
3
3
  export interface ReadCerfaToComplete {
4
4
  declaration: CerfaType;
5
5
  annex: CerfaType | null
6
+ }
7
+ export interface ReadCerfaDocument {
8
+ file: any;
9
+ payload: any;
6
10
  }
@@ -0,0 +1,24 @@
1
+ import { IsBoolean } from 'class-validator';
2
+ import { IFile } from '../../..';
3
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
+ import { OcrTransactionDetails } from './OcrTypeTransactions';
6
+
7
+ export class OcrTransactions {
8
+ @ApiProperty()
9
+ accountingFile: {
10
+ id: number
11
+ file: Partial<IFile>
12
+ };
13
+
14
+ @ApiProperty()
15
+ transactions: OcrTransactionDetails[];
16
+
17
+ @ApiPropertyOptional()
18
+ idBankAccount: number;
19
+
20
+ @ToBoolean()
21
+ @IsBoolean()
22
+ @ApiProperty()
23
+ isPdf: boolean;
24
+ }
@@ -0,0 +1,6 @@
1
+ export type OcrTransactionDetails = {
2
+ dateValue: Date,
3
+ label: string | null,
4
+ debit: number,
5
+ credit: number,
6
+ };
@@ -1,13 +1,37 @@
1
- import { IsEnum } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
1
+ import { IsEnum, IsOptional, IsBoolean } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { CerfaType } from '../../../Enum/CerfaType';
4
- import { ParamsGenerate2035 } from '../cerfa/CreateCerfa';
4
+ import {
5
+ ParamsGenerate2035, ParamsGenerate2035WithSuites, ParamsGenerate2033, ParamsGenerate2065, ParamsGenerate2031, ParamsGenerate2050,
6
+ } from '../cerfa/CreateCerfa';
7
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
8
 
6
9
  export class CreateRegistration {
7
10
  @ApiProperty()
8
- payload: ParamsGenerate2035;
11
+ payload: {
12
+ cerfa2035?: ParamsGenerate2035
13
+ cerfa2035WithSuites?: ParamsGenerate2035WithSuites
14
+ cerfa2033?: ParamsGenerate2033;
15
+ cerfa2065?: ParamsGenerate2065;
16
+ cerfa2031?: ParamsGenerate2031;
17
+ cerfa2050?: ParamsGenerate2050;
18
+ };
9
19
 
10
20
  @ApiProperty()
11
21
  @IsEnum(CerfaType)
12
22
  idCerfaType: number;
23
+
24
+ @ApiPropertyOptional()
25
+ @IsBoolean()
26
+ @ToBoolean()
27
+ @IsOptional()
28
+ isTest?: boolean;
29
+ }
30
+
31
+ export class CreateRegistrationSynchronization {
32
+ @ApiPropertyOptional()
33
+ @IsOptional()
34
+ @IsBoolean()
35
+ @ToBoolean()
36
+ forceTestMode?: boolean;
13
37
  }
@@ -0,0 +1,11 @@
1
+ import { IsOptional, IsBoolean } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils/decorators';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class DeclareRegistration {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ @IsBoolean()
9
+ @ToBoolean()
10
+ isTestMode: boolean;
11
+ }
@@ -1,3 +1,21 @@
1
1
  import { IRegistration } from '../../models/IRegistration';
2
+ import { ReadInterchange } from '../aspone/ReadInterchange';
2
3
 
3
- export type ReadRegistration = IRegistration;
4
+ interface RegistrationWithPayloadObject extends Omit<IRegistration, 'payload'> {
5
+ payload: Record<string, unknown>;
6
+ }
7
+ interface RegistrationWithPayloadAndResponseObject extends Omit<RegistrationWithPayloadObject, 'response'> {
8
+ response: ReadInterchange | Record<string, unknown>;
9
+ }
10
+
11
+ export type ReadRegistration = RegistrationWithPayloadAndResponseObject;
12
+
13
+ export interface ReadSynchronization {
14
+ id: number;
15
+ hasError: boolean;
16
+ hasDepositError: boolean;
17
+ isProcessFinished: boolean;
18
+ hasPaymentError: boolean;
19
+ isTimeOut: boolean;
20
+ hasFailed: boolean;
21
+ }
@@ -0,0 +1,12 @@
1
+ import { IAccountingTransaction } from '../../models/IAccountingTransaction';
2
+
3
+ export interface ReadCompanyTax extends CompanyTax {
4
+ transaction?: IAccountingTransaction;
5
+ }
6
+
7
+ export interface CompanyTax {
8
+ reducedRateTax: number;
9
+ normalRateTax: number;
10
+ taxTotal: number;
11
+ taxableIncome: number;
12
+ }
@@ -9,8 +9,13 @@ interface Tax extends TaxDate {
9
9
  tax: ICustomerIsRegime | null;
10
10
  }
11
11
 
12
- export interface ReadTax {
12
+ export type ReadTax = ReadTaxAndData & {
13
13
  amountBase: ReadAmountBase | null;
14
+ };
15
+
16
+ export type TaxAndDataWithExercise = { idExercice: number } & ReadTaxAndData;
17
+
18
+ export interface ReadTaxAndData {
14
19
  taxes: Tax[],
15
20
  others: ICustomerIsRegime[]
16
21
  }
@@ -1,5 +1,6 @@
1
+ import { IsOptional, IsEnum } from 'class-validator';
1
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
- import { VatRegime } from '../../..';
3
+ import { VatRegime, ToDoOrDone } from '../../..';
3
4
  import { ComptaType } from '../../../Enum/ComptaType';
4
5
  import { TaxSystem } from '../../../Enum/TaxSystem';
5
6
  import { BalanceSheetState } from '../../../Enum/BalanceSheet';
@@ -43,6 +44,11 @@ export class QueryTaxDeadline {
43
44
 
44
45
  @ApiPropertyOptional({ description: 'Date de clôture inférieure ou égale à (format YYYY-MM-DD)' })
45
46
  maximalEndDate?: string;
47
+
48
+ @ApiPropertyOptional({ description: 'Statuts de l\'IS/IR' })
49
+ @IsOptional()
50
+ @IsEnum(ToDoOrDone)
51
+ idTaxStatus?: ToDoOrDone;
46
52
  }
47
53
 
48
54
  export class QueryTaxDeadlineStatistics {
@@ -16,6 +16,7 @@ export enum Code {
16
16
  constraintKeyError = 'resource_fk_error',
17
17
  serviceUnavailable = 'service_unavailable',
18
18
  notImplemented = 'not_implemented',
19
+ unknown = 'unknown',
19
20
 
20
21
  // Annotation Error
21
22
  failedCheckBalance = 'failed_check_balance',
@@ -1,11 +1,13 @@
1
1
  // balanceSheetModule
2
2
  export interface IBalanceSheetModule {
3
3
  id?: number;
4
- inventory: boolean;
5
- loanToDeclare: boolean;
6
- provisionToDeclare: boolean;
4
+ inventory: boolean | null;
5
+ loanToDeclare: boolean | null;
6
+ provisionToDeclare: boolean | null;
7
7
  // deadlinerecoveryImmobilization: boolean;
8
- salariesFile: boolean;
8
+ recoveryImmobilization?: boolean | null;
9
+ incomeAllocation?: boolean | null;
10
+ salariesFile?: boolean | null;
9
11
  hasCustomerInvoiceToEstablish?: boolean | null;
10
12
  hasCustomerAssetToEstablish?: boolean | null;
11
13
  hasCustomerPrepaidIncome?: boolean | null;
@@ -16,6 +18,7 @@ export interface IBalanceSheetModule {
16
18
  hasLaundryFees?: boolean | null;
17
19
  hasMealExpenses?: boolean | null;
18
20
  hasCheckedVAT?: boolean | null;
21
+ hasCheckedCompanyTax?: boolean | null;
19
22
  idSociety: number;
20
23
  idExercice: number;
21
24
  createdAt?: Date | null;
@@ -4,6 +4,7 @@ export interface IBalanceSheetQuestion {
4
4
  id: number;
5
5
  name: string;
6
6
  theme: string;
7
+ category: string | null;
7
8
  idAnswerType: number;
8
9
 
9
10
  createdAt?: Date | null;
@@ -2,6 +2,7 @@
2
2
  export interface ICountry {
3
3
  id?: number;
4
4
  name: string;
5
+ ISO3166: string | null;
5
6
  createdAt?: Date | null;
6
7
  updatedAt?: Date | null;
7
8
  }
@@ -1,4 +1,4 @@
1
- import { IPrestationSocial } from './IPrestationSocial';
1
+ import { IPrestationList } from './IPrestationList';
2
2
  import { ISociety } from './ISociety';
3
3
 
4
4
  // societySocial
@@ -15,6 +15,6 @@ export interface ISocietySocial {
15
15
  updatedAt?: Date | null;
16
16
 
17
17
  // Associations
18
- prestationSocial: IPrestationSocial;
18
+ prestationList: IPrestationList;
19
19
  society: ISociety;
20
20
  }
package/ts/types/index.ts CHANGED
@@ -141,7 +141,6 @@ export * from './Interface/models/IPermission';
141
141
  export * from './Interface/models/IPhoneNumber';
142
142
  export * from './Interface/models/IPhonePrefix';
143
143
  export * from './Interface/models/IPhonePrefixChild';
144
- export * from './Interface/models/IPrestationSocial';
145
144
  export * from './Interface/models/IPrestation';
146
145
  export * from './Interface/models/IPrestationComplementary';
147
146
  export * from './Interface/models/IPrestationList';
@@ -300,8 +299,9 @@ export * from './Form/FormAuthenticate';
300
299
  export * from './Form/FormConnector';
301
300
 
302
301
  // Enums
303
- export * from './Enum/Tax';
302
+ export * from './Enum/Aspone';
304
303
  export * from './Enum/ProfitsType';
304
+ export * from './Enum/Tax';
305
305
  export * from './Enum/RegistrationSource';
306
306
  export * from './Enum/Log';
307
307
  export * from './Enum/Quality';
@@ -372,17 +372,20 @@ export * from './Enum/PartneredAccountantServiceState';
372
372
  export * from './Enum/AccountsSectors';
373
373
  export * from './Enum/ProductType';
374
374
  export * from './Enum/Unit';
375
- export * from './Enum/MealExpenseTresholds';
375
+ export * from './Enum/MealExpenseThresholds';
376
376
  export * from './Enum/MimeType';
377
377
  export * from './Enum/BalanceSheetQuestion';
378
+ export * from './Enum/BalanceSheetQuestionWording';
378
379
  export * from './Enum/AnswerTypeValue';
379
380
  export * from './Enum/PartneredAccountantServiceType';
381
+ export * from './Enum/LegalInformation';
380
382
  export * from './Enum/ProvisionType';
381
383
 
382
384
  // Interfaces API
385
+ export * from './Interface/api/aspone/ReadInterchange';
386
+ export * from './Interface/api/aspone/Util';
383
387
  export * from './Interface/api/businessPartner/ReadBusinessPartner';
384
388
  export * from './Interface/api/simulation/CreateSimulation';
385
- export * from './Interface/api/cerfa/ReadCerfa';
386
389
  export * from './Interface/api/accountingEntry/AnnotateAccountingTransaction';
387
390
  export * from './Interface/api/accountingEntry/CreateManualEntry';
388
391
  export * from './Interface/api/immobilization/ReadFormattedImmobilization';
@@ -410,6 +413,7 @@ export * from './Interface/api/simulationColors/ReadSimulationColors';
410
413
  export * from './Interface/api/survey/QuerySurveys';
411
414
  export * from './Interface/api/file/TFile';
412
415
  export * from './Interface/api/cerfa/CreateCerfa';
416
+ export * from './Interface/api/cerfa/ReadCerfa';
413
417
  export * from './Interface/api/customerProviderOperation/CreateCustomerProviderOperation';
414
418
  export * from './Interface/api/society/LegalFormSiren';
415
419
  export * from './Interface/api/society/QuerySociety';
@@ -453,6 +457,13 @@ export * from './Interface/api/internalInvoicing/CreateInternalInvoicing';
453
457
  export * from './Interface/api/internalInvoicing/CreateInternalInvoicing2in';
454
458
  export * from './Interface/api/exercice/QueryExercice';
455
459
  export * from './Interface/api/exercice/CreateExercice';
460
+ export * from './Interface/api/accountingIncome/ReadAccountingIncome';
461
+ export * from './Interface/api/ocr/OcrTransactions';
462
+ export * from './Interface/api/bankStatement/QueryBankStatement';
463
+ export * from './Interface/api/bankStatement/QueryTransactionBankStatement';
464
+ export * from './Interface/api/ocr/OcrTypeTransactions';
465
+ export * from './Interface/api/bankStatement/ReadBankStatement';
466
+ export * from './Interface/api/tax/ReadCompanyTax';
456
467
 
457
468
  // export * from './Interface/api/survey/QuerySurvey';
458
469
  export * from './Interface/api/survey/ReadSurvey';
@@ -563,6 +574,7 @@ export * from './Interface/api/registration/ReadRegistration';
563
574
  export * from './Interface/api/registration/CreateRegistration';
564
575
  export * from './Interface/api/journal/Journals';
565
576
  export * from './Interface/api/journal/QueryJournal';
577
+ export * from './Interface/api/registration/DeclareRegistration';
566
578
  export * from './Interface/api/balanceSheet/ReadBalanceSheetTransaction';
567
579
  export * from './Interface/api/mealExpense/CreateMealExpense';
568
580
  export * from './Interface/api/mealExpense/ReadMealExpense';
@@ -572,3 +584,5 @@ export * from './Interface/api/provision/ReadProvision';
572
584
  export * from './Interface/api/provision/CreateProvisionForm';
573
585
  export * from './Interface/api/provision/UpdateProvisionForm';
574
586
  export * from './Interface/api/provision/QueryGetProvisions';
587
+
588
+ export * from '../utils/cerfa';
@@ -1 +0,0 @@
1
- {"version":3,"file":"MealExpenseTresholds.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/MealExpenseTresholds.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAA;CACF;AAED,eAAO,MAAM,qBAAqB,EAAE,sBASnC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MealExpenseTresholds.js","sourceRoot":"","sources":["../../../ts/types/Enum/MealExpenseTresholds.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,qBAAqB,GAA2B;IAC3D,IAAI,EAAE;QACJ,GAAG,EAAE,IAAI;QACT,GAAG,EAAE,EAAE;KACR;IACD,IAAI,EAAE;QACJ,GAAG,EAAE,IAAI;QACT,GAAG,EAAE,KAAK;KACX;CACF,CAAC","sourcesContent":["export interface IMealExpenseThresholds {\n [key: string]: {\n min: number;\n max: number;\n }\n}\n\nexport const MealExpenseThresholds: IMealExpenseThresholds = {\n 2020: {\n min: 4.90,\n max: 19,\n },\n 2021: {\n min: 4.95,\n max: 19.10,\n },\n};"]}
@@ -1,7 +0,0 @@
1
- export interface IPrestationSocial {
2
- id?: number;
3
- name: string;
4
- createdAt?: Date | null;
5
- updatedAt?: Date | null;
6
- }
7
- //# sourceMappingURL=IPrestationSocial.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPrestationSocial.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPrestationSocial.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IPrestationSocial.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPrestationSocial.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPrestationSocial.ts"],"names":[],"mappings":"","sourcesContent":["// prestationSocial\nexport interface IPrestationSocial {\n id?: number;\n name: string;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../ts/types/Enum/MealExpenseTresholds.ts"],"names":[],"mappings":";;;;;AAOO,MAAM,qBAAqB,WAArB,qBAAqB,GAA2B;AAC3D,QAAM;AACJ,IAAA,GAAG,EAAE,IADD;AAEJ,IAAA,GAAG,EAAE;AAFD,GADqD;AAK3D,QAAM;AACJ,IAAA,GAAG,EAAE,IADD;AAEJ,IAAA,GAAG,EAAE;AAFD;AALqD,CAAtD","sourcesContent":["export interface IMealExpenseThresholds {\n [key: string]: {\n min: number;\n max: number;\n }\n}\n\nexport const MealExpenseThresholds: IMealExpenseThresholds = {\n 2020: {\n min: 4.90,\n max: 19,\n },\n 2021: {\n min: 4.95,\n max: 19.10,\n },\n};"],"sourceRoot":"","file":"MealExpenseTresholds.js"}
@@ -1,7 +0,0 @@
1
- // prestationSocial
2
- export interface IPrestationSocial {
3
- id?: number;
4
- name: string;
5
- createdAt?: Date | null;
6
- updatedAt?: Date | null;
7
- }