@silexpert/core 0.4.123 → 0.4.125

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 (251) hide show
  1. package/es/api/resources/BankStatement.js +1 -1
  2. package/es/api/resources/BankStatement.js.map +1 -1
  3. package/es/api/resources/Closing.d.ts +6 -0
  4. package/es/api/resources/Closing.d.ts.map +1 -0
  5. package/es/api/resources/Closing.js +7 -0
  6. package/es/api/resources/Closing.js.map +1 -0
  7. package/es/api/resources/FinancialCharge.d.ts +29 -0
  8. package/es/api/resources/FinancialCharge.d.ts.map +1 -0
  9. package/es/api/resources/FinancialCharge.js +34 -0
  10. package/es/api/resources/FinancialCharge.js.map +1 -0
  11. package/es/api/resources/IncomeAllocation.d.ts +2 -2
  12. package/es/api/resources/IncomeAllocation.d.ts.map +1 -1
  13. package/es/api/resources/IncomeAllocation.js.map +1 -1
  14. package/es/api/resources/shareCapital.d.ts +29 -0
  15. package/es/api/resources/shareCapital.d.ts.map +1 -0
  16. package/es/api/resources/shareCapital.js +32 -0
  17. package/es/api/resources/shareCapital.js.map +1 -0
  18. package/es/api/resources.d.ts +4 -0
  19. package/es/api/resources.d.ts.map +1 -1
  20. package/es/api/resources.js +4 -0
  21. package/es/api/resources.js.map +1 -1
  22. package/es/types/Enum/Account.d.ts +8 -0
  23. package/es/types/Enum/Account.d.ts.map +1 -1
  24. package/es/types/Enum/Account.js +8 -0
  25. package/es/types/Enum/Account.js.map +1 -1
  26. package/es/types/Enum/BalanceSheetQuestion.d.ts +2 -1
  27. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  28. package/es/types/Enum/BalanceSheetQuestion.js +1 -0
  29. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  30. package/es/types/Enum/Ocr.d.ts +5 -0
  31. package/es/types/Enum/Ocr.d.ts.map +1 -0
  32. package/es/types/Enum/Ocr.js +6 -0
  33. package/es/types/Enum/Ocr.js.map +1 -0
  34. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +3 -1
  35. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
  36. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +18 -1
  37. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  38. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +3 -1
  39. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
  40. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +18 -1
  41. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  42. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.d.ts +0 -3
  43. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.d.ts.map +1 -1
  44. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.js +1 -5
  45. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.js.map +1 -1
  46. package/es/types/Interface/api/cerfa/2031.d.ts +176 -0
  47. package/es/types/Interface/api/cerfa/2031.d.ts.map +1 -0
  48. package/es/types/Interface/api/cerfa/2031.js +17 -0
  49. package/es/types/Interface/api/cerfa/2031.js.map +1 -0
  50. package/es/types/Interface/api/cerfa/2033.d.ts +511 -0
  51. package/es/types/Interface/api/cerfa/2033.d.ts.map +1 -0
  52. package/es/types/Interface/api/cerfa/2033.js +429 -0
  53. package/es/types/Interface/api/cerfa/2033.js.map +1 -0
  54. package/es/types/Interface/api/cerfa/2035.d.ts +396 -0
  55. package/es/types/Interface/api/cerfa/2035.d.ts.map +1 -0
  56. package/es/types/Interface/api/cerfa/2035.js +43 -0
  57. package/es/types/Interface/api/cerfa/2035.js.map +1 -0
  58. package/es/types/Interface/api/cerfa/2050.d.ts +1678 -0
  59. package/es/types/Interface/api/cerfa/2050.d.ts.map +1 -0
  60. package/es/types/Interface/api/cerfa/2050.js +3 -0
  61. package/es/types/Interface/api/cerfa/2050.js.map +1 -0
  62. package/es/types/Interface/api/cerfa/2065.d.ts +149 -0
  63. package/es/types/Interface/api/cerfa/2065.d.ts.map +1 -0
  64. package/es/types/Interface/api/cerfa/2065.js +21 -0
  65. package/es/types/Interface/api/cerfa/2065.js.map +1 -0
  66. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +6 -1215
  67. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
  68. package/es/types/Interface/api/cerfa/CreateCerfa.js +5 -481
  69. package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  70. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +4 -0
  71. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  72. package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  73. package/es/types/Interface/api/closing/ProcessedClosing.d.ts +6 -0
  74. package/es/types/Interface/api/closing/ProcessedClosing.d.ts.map +1 -0
  75. package/es/types/Interface/api/closing/ProcessedClosing.js +2 -0
  76. package/es/types/Interface/api/closing/ProcessedClosing.js.map +1 -0
  77. package/es/types/Interface/api/financialCharge/CreateNonDeductibleInterests.d.ts +4 -0
  78. package/es/types/Interface/api/financialCharge/CreateNonDeductibleInterests.d.ts.map +1 -0
  79. package/es/types/Interface/api/financialCharge/CreateNonDeductibleInterests.js +25 -0
  80. package/es/types/Interface/api/financialCharge/CreateNonDeductibleInterests.js.map +1 -0
  81. package/es/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.d.ts +6 -0
  82. package/es/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.d.ts.map +1 -0
  83. package/es/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.js +3 -0
  84. package/es/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.js.map +1 -0
  85. package/es/types/Interface/api/financialCharge/ReadFinancialChargesBalance.d.ts +4 -0
  86. package/es/types/Interface/api/financialCharge/ReadFinancialChargesBalance.d.ts.map +1 -0
  87. package/es/types/Interface/api/financialCharge/ReadFinancialChargesBalance.js +2 -0
  88. package/es/types/Interface/api/financialCharge/ReadFinancialChargesBalance.js.map +1 -0
  89. package/es/types/Interface/api/library/ReadLibraryFile.d.ts +5 -0
  90. package/es/types/Interface/api/library/ReadLibraryFile.d.ts.map +1 -0
  91. package/es/types/Interface/api/library/ReadLibraryFile.js +2 -0
  92. package/es/types/Interface/api/library/ReadLibraryFile.js.map +1 -0
  93. package/es/types/Interface/api/ocr/CreateOcr.d.ts +13 -0
  94. package/es/types/Interface/api/ocr/CreateOcr.d.ts.map +1 -0
  95. package/es/types/Interface/api/ocr/CreateOcr.js +53 -0
  96. package/es/types/Interface/api/ocr/CreateOcr.js.map +1 -0
  97. package/es/types/Interface/api/ocr/OcrTransactions.d.ts +2 -3
  98. package/es/types/Interface/api/ocr/OcrTransactions.d.ts.map +1 -1
  99. package/es/types/Interface/api/ocr/OcrTransactions.js +2 -2
  100. package/es/types/Interface/api/ocr/OcrTransactions.js.map +1 -1
  101. package/es/types/Interface/api/ocr/OcrTypeTransactions.d.ts +17 -0
  102. package/es/types/Interface/api/ocr/OcrTypeTransactions.d.ts.map +1 -1
  103. package/es/types/Interface/api/ocr/OcrTypeTransactions.js.map +1 -1
  104. package/es/types/Interface/api/shareCapital/CreateInKindContribution.d.ts +6 -0
  105. package/es/types/Interface/api/shareCapital/CreateInKindContribution.d.ts.map +1 -0
  106. package/es/types/Interface/api/shareCapital/CreateInKindContribution.js +32 -0
  107. package/es/types/Interface/api/shareCapital/CreateInKindContribution.js.map +1 -0
  108. package/es/types/Interface/api/shareCapital/CreateShareCapital.d.ts +6 -0
  109. package/es/types/Interface/api/shareCapital/CreateShareCapital.d.ts.map +1 -0
  110. package/es/types/Interface/api/shareCapital/CreateShareCapital.js +27 -0
  111. package/es/types/Interface/api/shareCapital/CreateShareCapital.js.map +1 -0
  112. package/es/types/Interface/api/shareCapital/ReadShareCapital.d.ts +7 -0
  113. package/es/types/Interface/api/shareCapital/ReadShareCapital.d.ts.map +1 -0
  114. package/es/types/Interface/api/shareCapital/ReadShareCapital.js +3 -0
  115. package/es/types/Interface/api/shareCapital/ReadShareCapital.js.map +1 -0
  116. package/es/types/Interface/api/shareCapital/ReadShareCapitalProvided.d.ts +4 -0
  117. package/es/types/Interface/api/shareCapital/ReadShareCapitalProvided.d.ts.map +1 -0
  118. package/es/types/Interface/api/shareCapital/ReadShareCapitalProvided.js +3 -0
  119. package/es/types/Interface/api/shareCapital/ReadShareCapitalProvided.js.map +1 -0
  120. package/es/types/Interface/api/shareCapital/ResultCreateShareCapital.d.ts +7 -0
  121. package/es/types/Interface/api/shareCapital/ResultCreateShareCapital.d.ts.map +1 -0
  122. package/es/types/Interface/api/shareCapital/ResultCreateShareCapital.js +3 -0
  123. package/es/types/Interface/api/shareCapital/ResultCreateShareCapital.js.map +1 -0
  124. package/es/types/Interface/api/society/UpdateSociety.d.ts +1 -0
  125. package/es/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
  126. package/es/types/Interface/api/society/UpdateSociety.js +4 -0
  127. package/es/types/Interface/api/society/UpdateSociety.js.map +1 -1
  128. package/es/types/Interface/api/transactions/QueryUnexport.d.ts +2 -1
  129. package/es/types/Interface/api/transactions/QueryUnexport.d.ts.map +1 -1
  130. package/es/types/Interface/api/transactions/QueryUnexport.js +24 -2
  131. package/es/types/Interface/api/transactions/QueryUnexport.js.map +1 -1
  132. package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -0
  133. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  134. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  135. package/es/types/Interface/models/IApiError.d.ts +5 -1
  136. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  137. package/es/types/Interface/models/IApiError.js +5 -0
  138. package/es/types/Interface/models/IApiError.js.map +1 -1
  139. package/es/types/Interface/models/IBalanceSheetModule.d.ts +2 -0
  140. package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  141. package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  142. package/es/types/index.d.ts +12 -0
  143. package/es/types/index.d.ts.map +1 -1
  144. package/es/types/index.js +12 -0
  145. package/es/types/index.js.map +1 -1
  146. package/js/api/resources/BankStatement.js +1 -1
  147. package/js/api/resources/BankStatement.js.map +1 -1
  148. package/js/api/resources/Closing.js +18 -0
  149. package/js/api/resources/Closing.js.map +1 -0
  150. package/js/api/resources/FinancialCharge.js +49 -0
  151. package/js/api/resources/FinancialCharge.js.map +1 -0
  152. package/js/api/resources/IncomeAllocation.js.map +1 -1
  153. package/js/api/resources/shareCapital.js +47 -0
  154. package/js/api/resources/shareCapital.js.map +1 -0
  155. package/js/api/resources.js +7 -1
  156. package/js/api/resources.js.map +1 -1
  157. package/js/types/Enum/Account.js +8 -0
  158. package/js/types/Enum/Account.js.map +1 -1
  159. package/js/types/Enum/BalanceSheetQuestion.js +1 -0
  160. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  161. package/js/types/Enum/Ocr.js +12 -0
  162. package/js/types/Enum/Ocr.js.map +1 -0
  163. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +5 -1
  164. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  165. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +5 -1
  166. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  167. package/js/types/Interface/api/bankStatement/QueryTransactionBankStatement.js +0 -2
  168. package/js/types/Interface/api/bankStatement/QueryTransactionBankStatement.js.map +1 -1
  169. package/js/types/Interface/api/cerfa/2031.js +29 -0
  170. package/js/types/Interface/api/cerfa/2031.js.map +1 -0
  171. package/js/types/Interface/api/cerfa/2033.js +295 -0
  172. package/js/types/Interface/api/cerfa/2033.js.map +1 -0
  173. package/js/types/Interface/api/cerfa/2035.js +47 -0
  174. package/js/types/Interface/api/cerfa/2035.js.map +1 -0
  175. package/js/types/Interface/api/cerfa/2050.js +10 -0
  176. package/js/types/Interface/api/cerfa/2050.js.map +1 -0
  177. package/js/types/Interface/api/cerfa/2065.js +37 -0
  178. package/js/types/Interface/api/cerfa/2065.js.map +1 -0
  179. package/js/types/Interface/api/cerfa/CreateCerfa.js +50 -337
  180. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  181. package/js/types/Interface/api/closing/ProcessedClosing.js +6 -0
  182. package/js/types/Interface/api/closing/ProcessedClosing.js.map +1 -0
  183. package/js/types/Interface/api/financialCharge/CreateNonDeductibleInterests.js +33 -0
  184. package/js/types/Interface/api/financialCharge/CreateNonDeductibleInterests.js.map +1 -0
  185. package/js/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.js +10 -0
  186. package/js/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.js.map +1 -0
  187. package/js/types/Interface/api/financialCharge/ReadFinancialChargesBalance.js +6 -0
  188. package/js/types/Interface/api/financialCharge/ReadFinancialChargesBalance.js.map +1 -0
  189. package/js/types/Interface/api/library/ReadLibraryFile.js +6 -0
  190. package/js/types/Interface/api/library/ReadLibraryFile.js.map +1 -0
  191. package/js/types/Interface/api/ocr/CreateOcr.js +45 -0
  192. package/js/types/Interface/api/ocr/CreateOcr.js.map +1 -0
  193. package/js/types/Interface/api/ocr/OcrTransactions.js +1 -1
  194. package/js/types/Interface/api/ocr/OcrTransactions.js.map +1 -1
  195. package/js/types/Interface/api/shareCapital/CreateInKindContribution.js +35 -0
  196. package/js/types/Interface/api/shareCapital/CreateInKindContribution.js.map +1 -0
  197. package/js/types/Interface/api/shareCapital/CreateShareCapital.js +33 -0
  198. package/js/types/Interface/api/shareCapital/CreateShareCapital.js.map +1 -0
  199. package/js/types/Interface/api/shareCapital/ReadShareCapital.js +10 -0
  200. package/js/types/Interface/api/shareCapital/ReadShareCapital.js.map +1 -0
  201. package/js/types/Interface/api/shareCapital/ReadShareCapitalProvided.js +10 -0
  202. package/js/types/Interface/api/shareCapital/ReadShareCapitalProvided.js.map +1 -0
  203. package/js/types/Interface/api/shareCapital/ResultCreateShareCapital.js +10 -0
  204. package/js/types/Interface/api/shareCapital/ResultCreateShareCapital.js.map +1 -0
  205. package/js/types/Interface/api/society/UpdateSociety.js +2 -0
  206. package/js/types/Interface/api/society/UpdateSociety.js.map +1 -1
  207. package/js/types/Interface/api/transactions/QueryUnexport.js +17 -3
  208. package/js/types/Interface/api/transactions/QueryUnexport.js.map +1 -1
  209. package/js/types/Interface/models/IApiError.js +6 -1
  210. package/js/types/Interface/models/IApiError.js.map +1 -1
  211. package/js/types/index.js +147 -3
  212. package/js/types/index.js.map +1 -1
  213. package/package.json +1 -1
  214. package/ts/api/resources/BankStatement.ts +1 -1
  215. package/ts/api/resources/Closing.ts +8 -0
  216. package/ts/api/resources/FinancialCharge.ts +42 -0
  217. package/ts/api/resources/IncomeAllocation.ts +2 -2
  218. package/ts/api/resources/shareCapital.ts +37 -0
  219. package/ts/api/resources.ts +4 -0
  220. package/ts/types/Enum/Account.ts +8 -0
  221. package/ts/types/Enum/BalanceSheetQuestion.ts +1 -0
  222. package/ts/types/Enum/Ocr.ts +4 -0
  223. package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +16 -1
  224. package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +16 -1
  225. package/ts/types/Interface/api/bankStatement/QueryTransactionBankStatement.ts +1 -4
  226. package/ts/types/Interface/api/cerfa/2031.ts +173 -0
  227. package/ts/types/Interface/api/cerfa/2033.ts +722 -0
  228. package/ts/types/Interface/api/cerfa/2035.ts +414 -0
  229. package/ts/types/Interface/api/cerfa/2050.ts +1416 -0
  230. package/ts/types/Interface/api/cerfa/2065.ts +128 -0
  231. package/ts/types/Interface/api/cerfa/CreateCerfa.ts +8 -1657
  232. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +6 -1
  233. package/ts/types/Interface/api/closing/ProcessedClosing.ts +6 -0
  234. package/ts/types/Interface/api/financialCharge/CreateNonDeductibleInterests.ts +16 -0
  235. package/ts/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.ts +6 -0
  236. package/ts/types/Interface/api/financialCharge/ReadFinancialChargesBalance.ts +3 -0
  237. package/ts/types/Interface/api/library/ReadLibraryFile.ts +5 -0
  238. package/ts/types/Interface/api/ocr/CreateOcr.ts +33 -0
  239. package/ts/types/Interface/api/ocr/OcrTransactions.ts +4 -5
  240. package/ts/types/Interface/api/ocr/OcrTypeTransactions.ts +20 -0
  241. package/ts/types/Interface/api/shareCapital/CreateInKindContribution.ts +19 -0
  242. package/ts/types/Interface/api/shareCapital/CreateShareCapital.ts +17 -0
  243. package/ts/types/Interface/api/shareCapital/ReadShareCapital.ts +6 -0
  244. package/ts/types/Interface/api/shareCapital/ReadShareCapitalProvided.ts +3 -0
  245. package/ts/types/Interface/api/shareCapital/ResultCreateShareCapital.ts +6 -0
  246. package/ts/types/Interface/api/society/UpdateSociety.ts +3 -0
  247. package/ts/types/Interface/api/transactions/QueryUnexport.ts +27 -3
  248. package/ts/types/Interface/models/IAccountingTransaction.ts +1 -0
  249. package/ts/types/Interface/models/IApiError.ts +6 -0
  250. package/ts/types/Interface/models/IBalanceSheetModule.ts +2 -0
  251. package/ts/types/index.ts +13 -1
@@ -1,4 +1,5 @@
1
1
  import { CerfaType } from '../../../Enum/CerfaType';
2
+ import { QuestionWording } from '../../..';
2
3
 
3
4
  export interface ReadCerfaToComplete {
4
5
  declaration: CerfaType;
@@ -7,4 +8,8 @@ export interface ReadCerfaToComplete {
7
8
  export interface ReadCerfaDocument {
8
9
  file: any;
9
10
  payload: any;
10
- }
11
+ }
12
+
13
+ export type CerfaAnswers = {
14
+ [key in keyof typeof QuestionWording | 'OTHER_TAX_DEDUCTION_AMOUNT_1' | 'OTHER_TAX_DEDUCTION_AMOUNT_2'| 'OTHER_TAX_DEDUCTION_AMOUNT_3' | 'OTHER_TAX_DEDUCTION_AMOUNT_4'| 'OTHER_TAX_DEDUCTION_AMOUNT_5' | 'OTHER_ADDITION_AMOUNT_1' | 'OTHER_ADDITION_AMOUNT_2' | 'OTHER_ADDITION_AMOUNT_3' | 'OTHER_ADDITION_AMOUNT_4' | 'OTHER_ADDITION_AMOUNT_5' | '39_DECIES' | '39_DECIES_A' | '39_DECIES_B' | '39_DECIES_C' | '39_DECIES_D' | '39_DECIES_E' | '39_DECIES_F' | '39_DECIES_G']: number
15
+ };
@@ -0,0 +1,6 @@
1
+ import { IAccountingTransaction, IExercice } from '../../..';
2
+
3
+ export interface ProcessedClosing {
4
+ nextExercice: IExercice,
5
+ carryForwardTransaction: IAccountingTransaction,
6
+ }
@@ -0,0 +1,16 @@
1
+ import {
2
+ ArrayUnique, IsInt, IsPositive,
3
+ } from 'class-validator';
4
+ import { ApiProperty } from '../../../..';
5
+
6
+ export class CreateNonDeductibleInterests {
7
+ @ApiProperty()
8
+ @ArrayUnique()
9
+ @IsInt({
10
+ each: true,
11
+ })
12
+ @IsPositive({
13
+ each: true,
14
+ })
15
+ transactionIds: Array<number>;
16
+ }
@@ -0,0 +1,6 @@
1
+ import { IExerciceQuestion } from '../../..';
2
+
3
+ export class CreatedNonDeductibleInterests {
4
+ hasNonDeductibleInterests: boolean;
5
+ question?: IExerciceQuestion;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface ReadFinancialChargesBalance {
2
+ balance: number;
3
+ }
@@ -0,0 +1,5 @@
1
+ import { IGedFile } from '../../..';
2
+
3
+ export interface ReadLibraryFile extends IGedFile {
4
+ token: string;
5
+ }
@@ -0,0 +1,33 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class CreateOcr {
4
+ @ApiPropertyOptional()
5
+ Type: string;
6
+
7
+ @ApiPropertyOptional()
8
+ MessageId: string;
9
+
10
+ @ApiPropertyOptional()
11
+ Token: string;
12
+
13
+ @ApiPropertyOptional()
14
+ TopicArn: string;
15
+
16
+ @ApiPropertyOptional()
17
+ Message: string;
18
+
19
+ @ApiPropertyOptional()
20
+ SubscribeURL: string;
21
+
22
+ @ApiPropertyOptional()
23
+ Timestamp: string;
24
+
25
+ @ApiPropertyOptional()
26
+ SignatureVersion: string;
27
+
28
+ @ApiPropertyOptional()
29
+ Signature: string;
30
+
31
+ @ApiPropertyOptional()
32
+ SigningCertURL: string;
33
+ }
@@ -1,14 +1,13 @@
1
1
  import { IsBoolean } from 'class-validator';
2
- import { IFile } from '../../..';
3
2
  import { ApiProperty, ApiPropertyOptional } from '../../../..';
4
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
4
  import { OcrTransactionDetails } from './OcrTypeTransactions';
6
5
 
7
6
  export class OcrTransactions {
8
- @ApiProperty()
9
- accountingFile: {
10
- id: number
11
- file: Partial<IFile>
7
+ @ApiPropertyOptional()
8
+ file?: {
9
+ id: number,
10
+ token: string,
12
11
  };
13
12
 
14
13
  @ApiProperty()
@@ -1,6 +1,26 @@
1
+ import { OcrType } from '../../../Enum/Ocr';
2
+
1
3
  export type OcrTransactionDetails = {
2
4
  dateValue: Date,
3
5
  label: string | null,
4
6
  debit: number,
5
7
  credit: number,
8
+ };
9
+
10
+ export type OcrResponseMessage = {
11
+ metadata: string,
12
+ s3_file_name: string,
13
+ };
14
+
15
+ export type OcrResponseParsed = {
16
+ Type: OcrType;
17
+ MessageId: string;
18
+ TopicArn: string;
19
+ Message: string;
20
+ Timestamp: string;
21
+ SignatureVersion: string;
22
+ Signature: string;
23
+ SigningCertURL: string;
24
+ UnsubscribeURL: string;
25
+ SubscribeURL?: string;
6
26
  };
@@ -0,0 +1,19 @@
1
+ import { IsNumber, IsString, Min } from 'class-validator';
2
+ import { ApiProperty } from '../../../..';
3
+
4
+ export class CreateInKindContribution {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ @Min(0, {
8
+ message: 'Amount should be positive',
9
+ })
10
+ amount: number;
11
+
12
+ @ApiProperty()
13
+ @IsString()
14
+ designation: string;
15
+
16
+ @ApiProperty()
17
+ @IsNumber()
18
+ idAccount: number;
19
+ }
@@ -0,0 +1,17 @@
1
+ import { IsArray, IsNumber, Min } from 'class-validator';
2
+ import { ApiProperty } from '../../../..';
3
+ import { CreateInKindContribution } from './CreateInKindContribution';
4
+
5
+ export class CreateShareCapital {
6
+ @ApiProperty()
7
+ @IsNumber()
8
+ @Min(0, {
9
+ message: 'amount should be positive',
10
+ })
11
+ unpaidShareCapital: number;
12
+
13
+ @ApiProperty()
14
+ @IsArray({
15
+ })
16
+ inKindContributions: CreateInKindContribution[];
17
+ }
@@ -0,0 +1,6 @@
1
+ export class ReadShareCapital {
2
+ shareCapital: number;
3
+ unpaidShareCapital: number;
4
+ totalInKindContribution: number;
5
+ totalProvidedCapital: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ export class ReadShareCapitalProvided {
2
+ providedShareCapital: number;
3
+ }
@@ -0,0 +1,6 @@
1
+ export class ResultCreateShareCapital {
2
+ shareCapital: number;
3
+ unpaidShareCapital: number;
4
+ totalInKindContribution: number;
5
+ totalProvidedCapital: number;
6
+ }
@@ -43,6 +43,9 @@ export class UpdateSociety {
43
43
 
44
44
  @ApiPropertyOptional()
45
45
  confirmedAt?: string;
46
+
47
+ @ApiPropertyOptional()
48
+ socialCapital?: string;
46
49
  }
47
50
 
48
51
  export class UpdateSocietyPayload {
@@ -1,12 +1,36 @@
1
- import { ApiProperty } from '../../../../utils';
1
+ import { Type } from 'class-transformer';
2
+ import {
3
+ IsArray,
4
+ IsIn, IsInt, IsNumber, IsOptional, IsPositive,
5
+ } from 'class-validator';
6
+ import { AccountingJournal } from '../../..';
7
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
8
+ import { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';
2
9
 
3
10
  export class QueryUnexport {
4
11
  @ApiProperty()
12
+ @IsFormattedDateString()
5
13
  startDate: string;
6
14
 
7
15
  @ApiProperty()
16
+ @IsFormattedDateString()
8
17
  endDate: string;
9
18
 
10
- @ApiProperty()
11
- idBankAccount: number[];
19
+ @ApiPropertyOptional()
20
+ @IsOptional()
21
+ @Type(() => Number)
22
+ @IsArray()
23
+ @IsInt({
24
+ each: true,
25
+ })
26
+ @IsPositive({
27
+ each: true,
28
+ })
29
+ idBankAccount: Array<number>;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsOptional()
33
+ @IsNumber()
34
+ @IsIn([AccountingJournal.AC, AccountingJournal.VE])
35
+ idAccountingJournal: number;
12
36
  }
@@ -20,6 +20,7 @@ export interface IAccountingTransaction {
20
20
  reference: string | null;
21
21
  dateValue: Date;
22
22
  dateLocked?: Date | null;
23
+ closingDate?: Date | null;
23
24
  dateVerified?: Date | null;
24
25
  originalValue?: number | null;
25
26
  idUser?: number | null;
@@ -142,7 +142,13 @@ export enum Code {
142
142
 
143
143
  // Balance Sheet Questions
144
144
  UNKNOWN_ANSWER_VALUE = 'UNKNOWN_ANSWER_VALUE',
145
+ QUESTION_NOT_FOUND = 'QUESTION_NOT_FOUND',
146
+ QUESTION_DO_NOT_MATCH = 'QUESTION_DO_NOT_MATCH',
145
147
  QUESTION_ALREADY_EXISTS_IN_EXERCICE = 'QUESTION_ALREADY_EXISTS_IN_EXERCICE',
148
+
149
+ // Fiscal period closing
150
+ EXERCICE_ALREADY_CLOSED = 'EXERCICE_ALREADY_CLOSED',
151
+ MISSING_ANNOTATIONS = 'MISSING_ANNOTATIONS',
146
152
  }
147
153
 
148
154
  export interface IApiError {
@@ -9,6 +9,7 @@ export interface IBalanceSheetModule {
9
9
  recoveryImmobilization?: boolean | null;
10
10
  incomeAllocation?: boolean | null;
11
11
  salariesFile?: boolean | null;
12
+ hasShareCapital: boolean | null;
12
13
  hasCustomerInvoiceToEstablish?: boolean | null;
13
14
  hasCustomerAssetToEstablish?: boolean | null;
14
15
  hasCustomerPrepaidIncome?: boolean | null;
@@ -18,6 +19,7 @@ export interface IBalanceSheetModule {
18
19
  hasManualEntryToDeclare?: boolean | null;
19
20
  hasLaundryFees?: boolean | null;
20
21
  hasMealExpenses?: boolean | null;
22
+ hasFinancialCharges?: boolean | null;
21
23
  hasCheckedVAT?: boolean | null;
22
24
  hasCheckedCompanyTax?: boolean | null;
23
25
  idSociety: number;
package/ts/types/index.ts CHANGED
@@ -380,12 +380,14 @@ export * from './Enum/AnswerTypeValue';
380
380
  export * from './Enum/PartneredAccountantServiceType';
381
381
  export * from './Enum/LegalInformation';
382
382
  export * from './Enum/ProvisionType';
383
+ export * from './Enum/Ocr';
383
384
 
384
385
  // Interfaces API
385
386
  export * from './Interface/api/aspone/ReadInterchange';
386
387
  export * from './Interface/api/aspone/Util';
387
388
  export * from './Interface/api/businessPartner/ReadBusinessPartner';
388
389
  export * from './Interface/api/simulation/CreateSimulation';
390
+ export * from './Interface/api/ocr/CreateOcr';
389
391
  export * from './Interface/api/accountingEntry/AnnotateAccountingTransaction';
390
392
  export * from './Interface/api/accountingEntry/CreateManualEntry';
391
393
  export * from './Interface/api/immobilization/ReadFormattedImmobilization';
@@ -538,6 +540,7 @@ export * from './Interface/api/incomeAllocation/ReadIncomeAllocation';
538
540
  export * from './Interface/api/incomeAllocation/TypeAndAmount';
539
541
  export * from './Interface/api/revisionGuide/CreateRevisionGuide';
540
542
  export * from './Interface/api/library/QueryLibrary';
543
+ export * from './Interface/api/library/ReadLibraryFile';
541
544
  export * from './Interface/api/taxDeadline/QueryTaxDeadline';
542
545
  export * from './Interface/api/taxDeadline/ReadTaxDeadline';
543
546
  export * from './Interface/api/tax/ReadTax';
@@ -584,5 +587,14 @@ export * from './Interface/api/provision/ReadProvision';
584
587
  export * from './Interface/api/provision/CreateProvisionForm';
585
588
  export * from './Interface/api/provision/UpdateProvisionForm';
586
589
  export * from './Interface/api/provision/QueryGetProvisions';
590
+ export * from './Interface/api/shareCapital/CreateInKindContribution';
591
+ export * from './Interface/api/shareCapital/CreateShareCapital';
592
+ export * from './Interface/api/shareCapital/ReadShareCapitalProvided';
593
+ export * from './Interface/api/shareCapital/ReadShareCapital';
594
+ export * from './Interface/api/shareCapital/ResultCreateShareCapital';
595
+ export * from './Interface/api/closing/ProcessedClosing';
596
+ export * from './Interface/api/financialCharge/ReadFinancialChargesBalance';
597
+ export * from './Interface/api/financialCharge/CreateNonDeductibleInterests';
598
+ export * from './Interface/api/financialCharge/CreatedNonDeductibleInterests';
587
599
 
588
- export * from '../utils/cerfa';
600
+ export * from '../utils/cerfa';