@silexpert/core 0.4.108 → 0.4.110

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 (284) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/es/api/resources/AccountingFiles.d.ts +6 -0
  3. package/es/api/resources/AccountingFiles.d.ts.map +1 -0
  4. package/es/api/resources/AccountingFiles.js +14 -0
  5. package/es/api/resources/AccountingFiles.js.map +1 -0
  6. package/es/api/resources/InternalInvoicing.d.ts +6 -0
  7. package/es/api/resources/InternalInvoicing.d.ts.map +1 -0
  8. package/es/api/resources/InternalInvoicing.js +7 -0
  9. package/es/api/resources/InternalInvoicing.js.map +1 -0
  10. package/es/api/resources/Journal.d.ts +7 -0
  11. package/es/api/resources/Journal.d.ts.map +1 -0
  12. package/es/api/resources/Journal.js +10 -0
  13. package/es/api/resources/Journal.js.map +1 -0
  14. package/es/api/resources/MealExpense.d.ts +33 -0
  15. package/es/api/resources/MealExpense.d.ts.map +1 -0
  16. package/es/api/resources/MealExpense.js +37 -0
  17. package/es/api/resources/MealExpense.js.map +1 -0
  18. package/es/api/resources/Product.d.ts +3 -0
  19. package/es/api/resources/Product.d.ts.map +1 -1
  20. package/es/api/resources/Product.js +10 -0
  21. package/es/api/resources/Product.js.map +1 -1
  22. package/es/api/resources/Registration.d.ts +6 -0
  23. package/es/api/resources/Registration.d.ts.map +1 -0
  24. package/es/api/resources/Registration.js +7 -0
  25. package/es/api/resources/Registration.js.map +1 -0
  26. package/es/api/resources.d.ts +8 -0
  27. package/es/api/resources.d.ts.map +1 -1
  28. package/es/api/resources.js +8 -0
  29. package/es/api/resources.js.map +1 -1
  30. package/es/types/Enum/AccountingFileType.d.ts +2 -1
  31. package/es/types/Enum/AccountingFileType.d.ts.map +1 -1
  32. package/es/types/Enum/AccountingFileType.js +1 -0
  33. package/es/types/Enum/AccountingFileType.js.map +1 -1
  34. package/es/types/Enum/CerfaType.d.ts +14 -14
  35. package/es/types/Enum/CerfaType.d.ts.map +1 -1
  36. package/es/types/Enum/CerfaType.js +15 -14
  37. package/es/types/Enum/CerfaType.js.map +1 -1
  38. package/es/types/Enum/Ged.d.ts +1 -0
  39. package/es/types/Enum/Ged.d.ts.map +1 -1
  40. package/es/types/Enum/Ged.js +1 -1
  41. package/es/types/Enum/Ged.js.map +1 -1
  42. package/es/types/Enum/GlobalRegime.js +61 -61
  43. package/es/types/Enum/GlobalRegime.js.map +1 -1
  44. package/es/types/Enum/MealExpenseTresholds.d.ts +8 -0
  45. package/es/types/Enum/MealExpenseTresholds.d.ts.map +1 -0
  46. package/es/types/Enum/MealExpenseTresholds.js +11 -0
  47. package/es/types/Enum/MealExpenseTresholds.js.map +1 -0
  48. package/es/types/Enum/MimeType.d.ts +24 -0
  49. package/es/types/Enum/MimeType.d.ts.map +1 -0
  50. package/es/types/Enum/MimeType.js +24 -0
  51. package/es/types/Enum/MimeType.js.map +1 -0
  52. package/es/types/Enum/PaymentMethod.d.ts +63 -0
  53. package/es/types/Enum/PaymentMethod.d.ts.map +1 -0
  54. package/es/types/Enum/PaymentMethod.js +63 -0
  55. package/es/types/Enum/PaymentMethod.js.map +1 -0
  56. package/es/types/Enum/ProductType.d.ts +6 -4
  57. package/es/types/Enum/ProductType.d.ts.map +1 -1
  58. package/es/types/Enum/ProductType.js +14 -6
  59. package/es/types/Enum/ProductType.js.map +1 -1
  60. package/es/types/Enum/Vat.d.ts +9 -0
  61. package/es/types/Enum/Vat.d.ts.map +1 -1
  62. package/es/types/Enum/Vat.js +9 -0
  63. package/es/types/Enum/Vat.js.map +1 -1
  64. package/es/types/Interface/api/accountingFiles/Ocr.d.ts +14 -0
  65. package/es/types/Interface/api/accountingFiles/Ocr.d.ts.map +1 -0
  66. package/es/types/Interface/api/accountingFiles/Ocr.js +2 -0
  67. package/es/types/Interface/api/accountingFiles/Ocr.js.map +1 -0
  68. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +15 -0
  69. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts.map +1 -0
  70. package/es/types/Interface/api/accountingFiles/OcrPayload.js +2 -0
  71. package/es/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -0
  72. package/es/types/Interface/api/accountingFiles/OcrValue.d.ts +14 -0
  73. package/es/types/Interface/api/accountingFiles/OcrValue.d.ts.map +1 -0
  74. package/es/types/Interface/api/accountingFiles/OcrValue.js +2 -0
  75. package/es/types/Interface/api/accountingFiles/OcrValue.js.map +1 -0
  76. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +7 -0
  77. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -0
  78. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +32 -0
  79. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -0
  80. package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.d.ts +7 -0
  81. package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.d.ts.map +1 -0
  82. package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js +3 -0
  83. package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js.map +1 -0
  84. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +1 -0
  85. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
  86. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -0
  87. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  88. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +1 -0
  89. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
  90. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +7 -0
  91. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  92. package/es/types/Interface/api/exercice/CreateExercice.d.ts +16 -0
  93. package/es/types/Interface/api/exercice/CreateExercice.d.ts.map +1 -0
  94. package/es/types/Interface/api/exercice/CreateExercice.js +101 -0
  95. package/es/types/Interface/api/exercice/CreateExercice.js.map +1 -0
  96. package/es/types/Interface/api/exercice/QueryExercice.d.ts +7 -0
  97. package/es/types/Interface/api/exercice/QueryExercice.d.ts.map +1 -0
  98. package/es/types/Interface/api/exercice/QueryExercice.js +39 -0
  99. package/es/types/Interface/api/exercice/QueryExercice.js.map +1 -0
  100. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts +5 -0
  101. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts.map +1 -0
  102. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +21 -0
  103. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
  104. package/es/types/Interface/api/journal/Journals.d.ts +44 -0
  105. package/es/types/Interface/api/journal/Journals.d.ts.map +1 -0
  106. package/es/types/Interface/api/journal/Journals.js +13 -0
  107. package/es/types/Interface/api/journal/Journals.js.map +1 -0
  108. package/es/types/Interface/api/journal/QueryJournal.d.ts +6 -0
  109. package/es/types/Interface/api/journal/QueryJournal.d.ts.map +1 -0
  110. package/es/types/Interface/api/journal/QueryJournal.js +28 -0
  111. package/es/types/Interface/api/journal/QueryJournal.js.map +1 -0
  112. package/es/types/Interface/api/mealExpense/CreateMealExpense.d.ts +4 -0
  113. package/es/types/Interface/api/mealExpense/CreateMealExpense.d.ts.map +1 -0
  114. package/es/types/Interface/api/mealExpense/CreateMealExpense.js +25 -0
  115. package/es/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -0
  116. package/es/types/Interface/api/mealExpense/ReadMealExpense.d.ts +8 -0
  117. package/es/types/Interface/api/mealExpense/ReadMealExpense.d.ts.map +1 -0
  118. package/es/types/Interface/api/mealExpense/ReadMealExpense.js +3 -0
  119. package/es/types/Interface/api/mealExpense/ReadMealExpense.js.map +1 -0
  120. package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
  121. package/es/types/Interface/api/product/CreateProduct.js +3 -2
  122. package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
  123. package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
  124. package/es/types/Interface/api/product/QueryProduct.js +4 -2
  125. package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
  126. package/es/types/Interface/api/registration/CreateRegistration.d.ts +6 -0
  127. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -0
  128. package/es/types/Interface/api/registration/CreateRegistration.js +25 -0
  129. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -0
  130. package/es/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
  131. package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -0
  132. package/es/types/Interface/api/registration/ReadRegistration.js +2 -0
  133. package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -0
  134. package/es/types/Interface/models/IApiError.d.ts +2 -1
  135. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  136. package/es/types/Interface/models/IApiError.js +2 -0
  137. package/es/types/Interface/models/IApiError.js.map +1 -1
  138. package/es/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
  139. package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  140. package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  141. package/es/types/Interface/models/IExercice.d.ts +8 -8
  142. package/es/types/Interface/models/IExercice.d.ts.map +1 -1
  143. package/es/types/Interface/models/IExercice.js.map +1 -1
  144. package/es/types/Interface/models/IGedFile.d.ts +10 -10
  145. package/es/types/Interface/models/IGedFile.d.ts.map +1 -1
  146. package/es/types/Interface/models/IGedFile.js.map +1 -1
  147. package/es/types/Interface/models/IPayment.d.ts +19 -15
  148. package/es/types/Interface/models/IPayment.d.ts.map +1 -1
  149. package/es/types/Interface/models/IPayment.js.map +1 -1
  150. package/es/types/Interface/models/IRegistration.d.ts +21 -0
  151. package/es/types/Interface/models/IRegistration.d.ts.map +1 -0
  152. package/es/types/Interface/models/IRegistration.js +2 -0
  153. package/es/types/Interface/models/IRegistration.js.map +1 -0
  154. package/es/types/Interface/models/ISociety.d.ts +1 -0
  155. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  156. package/es/types/Interface/models/ISociety.js.map +1 -1
  157. package/es/types/index.d.ts +17 -0
  158. package/es/types/index.d.ts.map +1 -1
  159. package/es/types/index.js +17 -0
  160. package/es/types/index.js.map +1 -1
  161. package/es/utils/validators/formattedDateString.validator.d.ts +3 -0
  162. package/es/utils/validators/formattedDateString.validator.d.ts.map +1 -0
  163. package/es/utils/validators/formattedDateString.validator.js +19 -0
  164. package/es/utils/validators/formattedDateString.validator.js.map +1 -0
  165. package/js/api/resources/AccountingFiles.js +29 -0
  166. package/js/api/resources/AccountingFiles.js.map +1 -0
  167. package/js/api/resources/InternalInvoicing.js +18 -0
  168. package/js/api/resources/InternalInvoicing.js.map +1 -0
  169. package/js/api/resources/Journal.js +21 -0
  170. package/js/api/resources/Journal.js.map +1 -0
  171. package/js/api/resources/MealExpense.js +52 -0
  172. package/js/api/resources/MealExpense.js.map +1 -0
  173. package/js/api/resources/Product.js +12 -0
  174. package/js/api/resources/Product.js.map +1 -1
  175. package/js/api/resources/Registration.js +18 -0
  176. package/js/api/resources/Registration.js.map +1 -0
  177. package/js/api/resources.js +13 -1
  178. package/js/api/resources.js.map +1 -1
  179. package/js/types/Enum/AccountingFileType.js +1 -0
  180. package/js/types/Enum/AccountingFileType.js.map +1 -1
  181. package/js/types/Enum/CerfaType.js +16 -14
  182. package/js/types/Enum/CerfaType.js.map +1 -1
  183. package/js/types/Enum/Ged.js +2 -2
  184. package/js/types/Enum/Ged.js.map +1 -1
  185. package/js/types/Enum/GlobalRegime.js +61 -61
  186. package/js/types/Enum/GlobalRegime.js.map +1 -1
  187. package/js/types/Enum/MealExpenseTresholds.js +16 -0
  188. package/js/types/Enum/MealExpenseTresholds.js.map +1 -0
  189. package/js/types/Enum/MimeType.js +29 -0
  190. package/js/types/Enum/MimeType.js.map +1 -0
  191. package/js/types/Enum/PaymentMethod.js +68 -0
  192. package/js/types/Enum/PaymentMethod.js.map +1 -0
  193. package/js/types/Enum/ProductType.js +14 -7
  194. package/js/types/Enum/ProductType.js.map +1 -1
  195. package/js/types/Enum/Vat.js +18 -9
  196. package/js/types/Enum/Vat.js.map +1 -1
  197. package/js/types/Interface/api/accountingFiles/Ocr.js +6 -0
  198. package/js/types/Interface/api/accountingFiles/Ocr.js.map +1 -0
  199. package/js/types/Interface/api/accountingFiles/OcrPayload.js +6 -0
  200. package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -0
  201. package/js/types/Interface/api/accountingFiles/OcrValue.js +6 -0
  202. package/js/types/Interface/api/accountingFiles/OcrValue.js.map +1 -0
  203. package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +35 -0
  204. package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -0
  205. package/js/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js +10 -0
  206. package/js/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js.map +1 -0
  207. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +2 -0
  208. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  209. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +2 -0
  210. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  211. package/js/types/Interface/api/exercice/CreateExercice.js +55 -0
  212. package/js/types/Interface/api/exercice/CreateExercice.js.map +1 -0
  213. package/js/types/Interface/api/exercice/QueryExercice.js +37 -0
  214. package/js/types/Interface/api/exercice/QueryExercice.js.map +1 -0
  215. package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +29 -0
  216. package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
  217. package/js/types/Interface/api/journal/Journals.js +30 -0
  218. package/js/types/Interface/api/journal/Journals.js.map +1 -0
  219. package/js/types/Interface/api/journal/QueryJournal.js +33 -0
  220. package/js/types/Interface/api/journal/QueryJournal.js.map +1 -0
  221. package/js/types/Interface/api/mealExpense/CreateMealExpense.js +33 -0
  222. package/js/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -0
  223. package/js/types/Interface/api/mealExpense/ReadMealExpense.js +10 -0
  224. package/js/types/Interface/api/mealExpense/ReadMealExpense.js.map +1 -0
  225. package/js/types/Interface/api/product/CreateProduct.js +1 -1
  226. package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
  227. package/js/types/Interface/api/product/QueryProduct.js +3 -1
  228. package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
  229. package/js/types/Interface/api/registration/CreateRegistration.js +35 -0
  230. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -0
  231. package/js/types/Interface/api/registration/ReadRegistration.js +6 -0
  232. package/js/types/Interface/api/registration/ReadRegistration.js.map +1 -0
  233. package/js/types/Interface/models/IApiError.js +3 -1
  234. package/js/types/Interface/models/IApiError.js.map +1 -1
  235. package/js/types/Interface/models/IRegistration.js +6 -0
  236. package/js/types/Interface/models/IRegistration.js.map +1 -0
  237. package/js/types/index.js +204 -0
  238. package/js/types/index.js.map +1 -1
  239. package/js/utils/validators/formattedDateString.validator.js +29 -0
  240. package/js/utils/validators/formattedDateString.validator.js.map +1 -0
  241. package/package.json +1 -1
  242. package/ts/api/resources/AccountingFiles.ts +18 -0
  243. package/ts/api/resources/InternalInvoicing.ts +10 -0
  244. package/ts/api/resources/Journal.ts +11 -0
  245. package/ts/api/resources/MealExpense.ts +41 -0
  246. package/ts/api/resources/Product.ts +12 -0
  247. package/ts/api/resources/Registration.ts +8 -0
  248. package/ts/api/resources.ts +8 -0
  249. package/ts/types/Enum/AccountingFileType.ts +1 -0
  250. package/ts/types/Enum/CerfaType.ts +14 -14
  251. package/ts/types/Enum/Ged.ts +1 -1
  252. package/ts/types/Enum/GlobalRegime.ts +61 -61
  253. package/ts/types/Enum/MealExpenseTresholds.ts +17 -0
  254. package/ts/types/Enum/MimeType.ts +23 -0
  255. package/ts/types/Enum/PaymentMethod.ts +62 -0
  256. package/ts/types/Enum/ProductType.ts +21 -5
  257. package/ts/types/Enum/Vat.ts +9 -0
  258. package/ts/types/Interface/api/accountingFiles/Ocr.ts +13 -0
  259. package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +15 -0
  260. package/ts/types/Interface/api/accountingFiles/OcrValue.ts +13 -0
  261. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +18 -0
  262. package/ts/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.ts +6 -0
  263. package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +6 -0
  264. package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +6 -0
  265. package/ts/types/Interface/api/exercice/CreateExercice.ts +80 -0
  266. package/ts/types/Interface/api/exercice/QueryExercice.ts +25 -0
  267. package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +9 -0
  268. package/ts/types/Interface/api/journal/Journals.ts +48 -0
  269. package/ts/types/Interface/api/journal/QueryJournal.ts +15 -0
  270. package/ts/types/Interface/api/mealExpense/CreateMealExpense.ts +16 -0
  271. package/ts/types/Interface/api/mealExpense/ReadMealExpense.ts +8 -0
  272. package/ts/types/Interface/api/product/CreateProduct.ts +2 -2
  273. package/ts/types/Interface/api/product/QueryProduct.ts +6 -2
  274. package/ts/types/Interface/api/registration/CreateRegistration.ts +13 -0
  275. package/ts/types/Interface/api/registration/ReadRegistration.ts +3 -0
  276. package/ts/types/Interface/models/IApiError.ts +2 -0
  277. package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
  278. package/ts/types/Interface/models/IExercice.ts +8 -8
  279. package/ts/types/Interface/models/IGedFile.ts +10 -10
  280. package/ts/types/Interface/models/IPayment.ts +19 -15
  281. package/ts/types/Interface/models/IRegistration.ts +23 -0
  282. package/ts/types/Interface/models/ISociety.ts +1 -0
  283. package/ts/types/index.ts +18 -1
  284. package/ts/utils/validators/formattedDateString.validator.ts +24 -0
@@ -0,0 +1,80 @@
1
+ import {
2
+ IsBoolean, IsDate, IsNumber, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+
7
+ export class CreateExercice {
8
+ @ApiProperty()
9
+ @IsDate()
10
+ startDate: Date;
11
+
12
+ @ApiProperty()
13
+ @IsDate()
14
+ endDate: Date;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsBoolean()
18
+ @ToBoolean()
19
+ @IsOptional()
20
+ isBack?: boolean;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsBoolean()
24
+ @ToBoolean()
25
+ @IsOptional()
26
+ close?: boolean;
27
+
28
+ @ApiPropertyOptional()
29
+ @IsBoolean()
30
+ @ToBoolean()
31
+ @IsOptional()
32
+ allAnnote?: boolean;
33
+
34
+ @ApiPropertyOptional()
35
+ @IsBoolean()
36
+ @ToBoolean()
37
+ @IsOptional()
38
+ current?: boolean;
39
+
40
+ @ApiPropertyOptional()
41
+ @IsBoolean()
42
+ @ToBoolean()
43
+ @IsOptional()
44
+ withApproval?: boolean;
45
+
46
+ @ApiPropertyOptional()
47
+ @IsBoolean()
48
+ @ToBoolean()
49
+ @IsOptional()
50
+ reviewGuide?: boolean;
51
+
52
+ @ApiPropertyOptional()
53
+ @IsBoolean()
54
+ @ToBoolean()
55
+ @IsOptional()
56
+ summaryNote?: boolean;
57
+
58
+ @ApiPropertyOptional()
59
+ @IsBoolean()
60
+ @ToBoolean()
61
+ @IsOptional()
62
+ receiptJeDeclare?: boolean;
63
+
64
+ @ApiPropertyOptional()
65
+ @IsBoolean()
66
+ @ToBoolean()
67
+ @IsOptional()
68
+ annualFolderEdition?: boolean;
69
+
70
+ @ApiPropertyOptional()
71
+ @IsBoolean()
72
+ @ToBoolean()
73
+ @IsOptional()
74
+ processClossingExercice?: boolean;
75
+
76
+ @ApiPropertyOptional()
77
+ @IsNumber()
78
+ @IsOptional()
79
+ idSociety: number;
80
+ }
@@ -0,0 +1,25 @@
1
+ import { IsBoolean, IsDate, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils/decorators';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class QueryExercice {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ id?: number | number[];
9
+
10
+ @ApiPropertyOptional()
11
+ @IsDate()
12
+ @IsOptional()
13
+ startDate?: Date;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsDate()
17
+ @IsOptional()
18
+ endDate?: Date;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsBoolean()
22
+ @ToBoolean()
23
+ @IsOptional()
24
+ isBack?: boolean;
25
+ }
@@ -0,0 +1,9 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class CreateInternalInvoicing {
4
+ @ApiProperty()
5
+ month: number;
6
+
7
+ @ApiProperty()
8
+ year: number;
9
+ }
@@ -0,0 +1,48 @@
1
+ export class JournalDebitCredit {
2
+ debit?: number;
3
+ credit?: number;
4
+ }
5
+
6
+ export class PeriodDatum extends JournalDebitCredit {
7
+ dateValue: string | Date;
8
+ invoiceNumber: string;
9
+ designation: string;
10
+ account: number;
11
+ accountName: string;
12
+ master: boolean;
13
+ }
14
+
15
+ export class IPeriodsCentralisation {
16
+ [index: string]: {
17
+ account: number;
18
+ accountName: string;
19
+ } & JournalDebitCredit;
20
+ }
21
+
22
+ export class IPeriods {
23
+ [index: string]: {
24
+ monthYearPeriods: string;
25
+ data?: PeriodDatum[];
26
+ dataCentralisation?: IPeriodsCentralisation;
27
+ total: {
28
+ accumulated: JournalDebitCredit;
29
+ month: JournalDebitCredit;
30
+ };
31
+ };
32
+ }
33
+ export class Journals {
34
+ [index: string]: {
35
+ idJournal: number;
36
+ // eslint-disable-next-line no-restricted-globals
37
+ name: string;
38
+ fullName: string;
39
+ periods?: IPeriods;
40
+ };
41
+ }
42
+
43
+ export class JsonExportJournal {
44
+ idSociety: number;
45
+ startDate: string;
46
+ endDate: string;
47
+ data: Journals;
48
+ }
@@ -0,0 +1,15 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+ import { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';
3
+
4
+ export class QueryJournal {
5
+ @ApiProperty()
6
+ @IsFormattedDateString()
7
+ startDate: string;
8
+
9
+ @ApiProperty()
10
+ @IsFormattedDateString()
11
+ endDate: string;
12
+
13
+ @ApiPropertyOptional()
14
+ accountingJournalIds?: number[];
15
+ }
@@ -0,0 +1,16 @@
1
+ import {
2
+ ArrayUnique, IsInt, IsPositive,
3
+ } from 'class-validator';
4
+ import { ApiProperty } from '../../../..';
5
+
6
+ export class CreateMealExpense {
7
+ @ApiProperty()
8
+ @ArrayUnique()
9
+ @IsInt({
10
+ each: true,
11
+ })
12
+ @IsPositive({
13
+ each: true,
14
+ })
15
+ transactionIds: Array<number>;
16
+ }
@@ -0,0 +1,8 @@
1
+ import { IAccountingTransaction } from '../../..';
2
+
3
+ export class ReadMealExpense {
4
+ transactionNumber: number;
5
+ totalPrice: number;
6
+ deductiblePrice: number;
7
+ transactions: Array<IAccountingTransaction>;
8
+ }
@@ -1,5 +1,4 @@
1
1
  import {
2
- IsEnum,
3
2
  IsNumber, IsOptional, IsString, Min,
4
3
  } from 'class-validator';
5
4
  import { ProductType, Unit, Vat } from '../../..';
@@ -33,7 +32,8 @@ export class CreateProduct {
33
32
  unit: number;
34
33
 
35
34
  @ApiProperty()
36
- @IsEnum(ProductType)
35
+ @IsNumber()
36
+ @IsObjectId(ProductType)
37
37
  type: number;
38
38
 
39
39
  @ApiPropertyOptional()
@@ -1,6 +1,9 @@
1
- import { IsEnum, IsOptional, IsString } from 'class-validator';
1
+ import {
2
+ IsNumber, IsOptional, IsString,
3
+ } from 'class-validator';
2
4
  import { ProductType } from '../../..';
3
5
  import { ApiPropertyOptional } from '../../../..';
6
+ import { IsObjectId } from '../../../../utils/validators/objectId.validator';
4
7
 
5
8
  export class QueryProduct {
6
9
  @ApiPropertyOptional()
@@ -10,6 +13,7 @@ export class QueryProduct {
10
13
 
11
14
  @ApiPropertyOptional()
12
15
  @IsOptional()
13
- @IsEnum(ProductType)
16
+ @IsNumber()
17
+ @IsObjectId(ProductType)
14
18
  type?: number;
15
19
  }
@@ -0,0 +1,13 @@
1
+ import { IsEnum } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+ import { CerfaType } from '../../../Enum/CerfaType';
4
+ import { ParamsGenerate2035 } from '../cerfa/CreateCerfa';
5
+
6
+ export class CreateRegistration {
7
+ @ApiProperty()
8
+ payload: ParamsGenerate2035;
9
+
10
+ @ApiProperty()
11
+ @IsEnum(CerfaType)
12
+ idCerfaType: number;
13
+ }
@@ -0,0 +1,3 @@
1
+ import { IRegistration } from '../../models/IRegistration';
2
+
3
+ export type ReadRegistration = IRegistration;
@@ -136,6 +136,8 @@ export enum Code {
136
136
  fetchNewTokenFailed = 'fetch_new_token_failed',
137
137
  udpateTokenFailed = 'update_token_failed',
138
138
 
139
+ // Accounts
140
+ GENERIC_ACCOUNT_NOT_FOUND = 'GENERIC_ACCOUNT_NOT_FOUND',
139
141
  }
140
142
 
141
143
  export interface IApiError {
@@ -13,6 +13,7 @@ export interface IBalanceSheetModule {
13
13
  hasProviderInvoiceNotReceived?: boolean | null;
14
14
  hasManualEntryToDeclare?: boolean | null;
15
15
  hasLaundryFees?: boolean | null;
16
+ hasMealExpenses?: boolean | null;
16
17
  idSociety: number;
17
18
  idExercice: number;
18
19
  createdAt?: Date | null;
@@ -16,16 +16,16 @@ export interface IExercice {
16
16
  id?: number;
17
17
  startDate: Date | null;
18
18
  endDate: Date | null;
19
- turnover: string | null;
20
- invoicePurchase: number | null;
21
- invoiceSales: number | null;
19
+ turnover?: string | null;
20
+ invoicePurchase?: number | null;
21
+ invoiceSales?: number | null;
22
22
  isBack: boolean;
23
23
  close: boolean;
24
24
  allAnnote: boolean;
25
25
  current: boolean;
26
- deliveryDate: Date | null;
27
- employeesNumber: number | null;
28
- rentsNumber: number | null;
26
+ deliveryDate?: Date | null;
27
+ employeesNumber?: number | null;
28
+ rentsNumber?: number | null;
29
29
  withApproval: boolean;
30
30
  reviewGuide: boolean;
31
31
  summaryNote: boolean;
@@ -34,8 +34,8 @@ export interface IExercice {
34
34
  annualFolderEdition: boolean;
35
35
  turnoverDone: string;
36
36
  processClossingExercice: boolean;
37
- idFilePaymentSchedule: number | null;
38
- idSociety: number | null;
37
+ idFilePaymentSchedule?: number | null;
38
+ idSociety?: number | null;
39
39
  createdAt?: Date | null;
40
40
  updatedAt?: Date | null;
41
41
  deletedAt?: Date | null;
@@ -7,21 +7,21 @@ import { IGedFolder } from './IGedFolder';
7
7
  // gedFile
8
8
  export interface IGedFile {
9
9
  id?: number;
10
- emissionDate: Date | null;
11
- statutFile: number | null;
12
- idTypeGedFile: number | null;
13
- idUser: number | null;
10
+ emissionDate?: Date | null;
11
+ statutFile?: number | null;
12
+ idTypeGedFile?: number | null;
13
+ idUser?: number | null;
14
14
  idGedFolder: number;
15
15
  idSociety: number;
16
16
  idFile: number;
17
- idExercice: number | null;
17
+ idExercice?: number | null;
18
18
  createdAt?: Date | null;
19
19
  updatedAt?: Date | null;
20
20
 
21
21
  // Associations
22
- fileFromGed: IFile;
23
- society: ISociety;
24
- exercice: IExercice;
25
- typeGedFile: IGedFileType;
26
- gedFolder: IGedFolder;
22
+ fileFromGed?: IFile;
23
+ society?: ISociety;
24
+ exercice?: IExercice;
25
+ typeGedFile?: IGedFileType;
26
+ gedFolder?: IGedFolder;
27
27
  }
@@ -2,32 +2,36 @@ import { IPrestation } from './IPrestation';
2
2
  import { IPaymentMethod } from './IPaymentMethod';
3
3
  import { IUser } from './IUser';
4
4
  import { IExercice } from './IExercice';
5
+ import { IFile } from './IFile';
5
6
 
6
7
  // payments
7
8
  export interface IPayment {
8
9
  id?: number;
9
10
  amount: number;
10
- amountPayed: number;
11
- isLate: boolean;
12
- isOverdue: boolean;
11
+ amountPayed?: number;
12
+ isLate?: boolean;
13
+ isOverdue?: boolean;
13
14
  isOverpaid?: boolean;
14
- isFirst: boolean;
15
- toCollect: boolean;
16
- isAsset: boolean;
17
- isFree: boolean;
18
- dateOverdue: Date | null;
15
+ isFirst?: boolean;
16
+ toCollect?: boolean;
17
+ isAsset?: boolean;
18
+ isFree?: boolean;
19
+ dateOverdue?: Date | null;
19
20
  datePayment: Date;
20
- traite: boolean | null;
21
+ done?: boolean | null;
22
+ refInternalInvoicing?: number;
21
23
  idPrestation: number;
22
- idExercice: number | null;
23
- idUser: number | null;
24
+ idExercice?: number | null;
25
+ idUser?: number | null;
24
26
  idPaymentMethod: number;
27
+ idFile?: number | null;
25
28
  createdAt?: Date | null;
26
29
  updatedAt?: Date | null;
27
30
 
28
31
  // Associations
29
- paymentsPrestations: IPrestation;
30
- paymentsMethod: IPaymentMethod;
31
- user: IUser;
32
- exercice: IExercice;
32
+ paymentsPrestations?: IPrestation;
33
+ paymentsMethod?: IPaymentMethod;
34
+ user?: IUser;
35
+ exercice?: IExercice;
36
+ files?: IFile;
33
37
  }
@@ -0,0 +1,23 @@
1
+ import { IExercice } from './IExercice';
2
+ import { ISociety } from './ISociety';
3
+ import { IFile } from './IFile';
4
+
5
+ export interface IRegistration {
6
+ id?: number;
7
+ payload: string;
8
+ response: string | null;
9
+ sendAt: Date | null;
10
+ isComplete: boolean;
11
+ idCerfaType: number;
12
+ idDeposit: string | null;
13
+ idExercice: number;
14
+ idFile: number | null;
15
+ idSociety: number;
16
+ updatedAt?: Date | null;
17
+ createdAt?: Date | null;
18
+
19
+ // Associations
20
+ exercice?: IExercice;
21
+ society?: ISociety;
22
+ file?: IFile;
23
+ }
@@ -116,6 +116,7 @@ export interface ISociety {
116
116
  folderNote: string | null;
117
117
  dateSendAdvise: Date | null;
118
118
  idUserAdvise: number | null;
119
+ idVatForInternalInvoicing: number;
119
120
  dateFirstSendUnpaid: Date | null;
120
121
  reasonUnpaid: number | null;
121
122
  stripeSubscriptionId: string | null;
package/ts/types/index.ts CHANGED
@@ -318,6 +318,7 @@ export * from './Enum/ImmobilizationType';
318
318
  export * from './Enum/Nature';
319
319
  export * from './Enum/SurveyType';
320
320
  export * from './Enum/SurveyTypeDatas';
321
+ export * from './Enum/PaymentMethod';
321
322
  export * from './Enum/ReportType';
322
323
  export * from './Enum/ReportState';
323
324
  export * from './Enum/Proceding';
@@ -367,6 +368,8 @@ export * from './Enum/PartneredAccountantServiceState';
367
368
  export * from './Enum/AccountsSectors';
368
369
  export * from './Enum/ProductType';
369
370
  export * from './Enum/Unit';
371
+ export * from './Enum/MealExpenseTresholds';
372
+ export * from './Enum/MimeType';
370
373
 
371
374
  // Interfaces API
372
375
  export * from './Interface/api/businessPartner/ReadBusinessPartner';
@@ -412,6 +415,10 @@ export * from './Interface/api/BasePaginate';
412
415
  export * from './Interface/api/BaseRequest';
413
416
  export * from './Interface/api/generalLedger/IGeneralLedgerAccount';
414
417
  export * from './Interface/api/generalLedger/IGeneralLedgerAccountingEntry';
418
+ export * from './Interface/api/accountingFiles/queryAccountingFiles';
419
+ export * from './Interface/api/accountingFiles/Ocr';
420
+ export * from './Interface/api/accountingFiles/OcrPayload';
421
+ export * from './Interface/api/accountingFiles/OcrValue';
415
422
  // export * from './Interface/api/stock/stockEntries';
416
423
  export * from './Interface/api/stock/StockEntries';
417
424
  export * from './Interface/api/dashboard/QueryTurnoverProfitAndLoss';
@@ -433,6 +440,9 @@ export * from './Interface/api/accountant/ReadAccountantBalance';
433
440
  export * from './Interface/api/quotes/QueryQuotesAccount';
434
441
  export * from './Interface/api/quotes/CreateQuoteAccount';
435
442
  export * from './Interface/api/account/ReadQuoteAccount';
443
+ export * from './Interface/api/internalInvoicing/CreateInternalInvoicing';
444
+ export * from './Interface/api/exercice/QueryExercice';
445
+ export * from './Interface/api/exercice/CreateExercice';
436
446
 
437
447
  // export * from './Interface/api/survey/QuerySurvey';
438
448
  export * from './Interface/api/survey/ReadSurvey';
@@ -537,4 +547,11 @@ export * from './Interface/api/vehicle/UpdateSocietyVehicle';
537
547
  export * from './Interface/api/fecFile/QueryFecFile';
538
548
  export * from './Interface/api/product/CreateProduct';
539
549
  export * from './Interface/api/product/UpdateProduct';
540
- export * from './Interface/api/product/QueryProduct';
550
+ export * from './Interface/api/product/QueryProduct';
551
+ export * from './Interface/api/registration/ReadRegistration';
552
+ export * from './Interface/api/registration/CreateRegistration';
553
+ export * from './Interface/api/journal/Journals';
554
+ export * from './Interface/api/journal/QueryJournal';
555
+ export * from './Interface/api/balanceSheet/ReadBalanceSheetTransaction';
556
+ export * from './Interface/api/mealExpense/CreateMealExpense';
557
+ export * from './Interface/api/mealExpense/ReadMealExpense';
@@ -0,0 +1,24 @@
1
+ import {
2
+ registerDecorator, ValidationArguments, ValidationOptions,
3
+ } from 'class-validator';
4
+
5
+ export function IsFormattedDateString(validationOptions?: ValidationOptions) {
6
+ return function validator(object: any, propertyName: string) {
7
+ registerDecorator({
8
+ name: 'IsFormattedDateString',
9
+ target: object.constructor,
10
+ propertyName,
11
+ options: {
12
+ message: `${propertyName} should be a string date formatted in 'YYYY-MM-DD'`,
13
+ ...validationOptions,
14
+ },
15
+ validator: {
16
+ validate(value: any, args: ValidationArguments) {
17
+ const dateRegex = /^((\d{4}-((0[13578]-|1[02]-)(0[1-9]|[12]\d|3[01])|(0[13456789]-|1[012]-)(0[1-9]|[12]\d|30)|02-(0[1-9]|1\d|2[0-8])))|((([02468][048]|[13579][26])00|\d{2}([13579][26]|0[48]|[2468][048])))-02-29)$/;
18
+ return typeof value === 'string'
19
+ && dateRegex.test(value);
20
+ },
21
+ },
22
+ });
23
+ };
24
+ }