@silexpert/core 0.4.129 → 0.4.131

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 (252) hide show
  1. package/es/api/resources/BalanceSheetCompletion.d.ts +19 -0
  2. package/es/api/resources/BalanceSheetCompletion.d.ts.map +1 -0
  3. package/es/api/resources/BalanceSheetCompletion.js +22 -0
  4. package/es/api/resources/BalanceSheetCompletion.js.map +1 -0
  5. package/es/api/resources/Vehicle.d.ts +6 -6
  6. package/es/api/resources/Vehicle.d.ts.map +1 -1
  7. package/es/api/resources/Vehicle.js +18 -10
  8. package/es/api/resources/Vehicle.js.map +1 -1
  9. package/es/api/resources/WorkingSchedule.d.ts +1 -1
  10. package/es/api/resources/WorkingSchedule.d.ts.map +1 -1
  11. package/es/api/resources/WorkingSchedule.js +2 -1
  12. package/es/api/resources/WorkingSchedule.js.map +1 -1
  13. package/es/api/resources.d.ts +2 -0
  14. package/es/api/resources.d.ts.map +1 -1
  15. package/es/api/resources.js +2 -0
  16. package/es/api/resources.js.map +1 -1
  17. package/es/types/Enum/AnswerTypeValue.d.ts +15 -2
  18. package/es/types/Enum/AnswerTypeValue.d.ts.map +1 -1
  19. package/es/types/Enum/AnswerTypeValue.js +13 -0
  20. package/es/types/Enum/AnswerTypeValue.js.map +1 -1
  21. package/es/types/Enum/BalanceSheetModule.d.ts +31 -0
  22. package/es/types/Enum/BalanceSheetModule.d.ts.map +1 -0
  23. package/es/types/Enum/BalanceSheetModule.js +63 -0
  24. package/es/types/Enum/BalanceSheetModule.js.map +1 -0
  25. package/es/types/Enum/BalanceSheetQuestion.d.ts +92 -2
  26. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  27. package/es/types/Enum/BalanceSheetQuestion.js +90 -0
  28. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  29. package/es/types/Enum/BalanceSheetQuestionWording.d.ts +3 -1
  30. package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  31. package/es/types/Enum/BalanceSheetQuestionWording.js +2 -0
  32. package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  33. package/es/types/Enum/BalanceSheetStatus.d.ts +6 -0
  34. package/es/types/Enum/BalanceSheetStatus.d.ts.map +1 -0
  35. package/es/types/Enum/BalanceSheetStatus.js +7 -0
  36. package/es/types/Enum/BalanceSheetStatus.js.map +1 -0
  37. package/es/types/Enum/FuelType.d.ts +42 -0
  38. package/es/types/Enum/FuelType.d.ts.map +1 -0
  39. package/es/types/Enum/FuelType.js +74 -0
  40. package/es/types/Enum/FuelType.js.map +1 -0
  41. package/es/types/Enum/Ged.d.ts +1 -0
  42. package/es/types/Enum/Ged.d.ts.map +1 -1
  43. package/es/types/Enum/Ged.js +1 -1
  44. package/es/types/Enum/Ged.js.map +1 -1
  45. package/es/types/Enum/GlobalRegime.d.ts.map +1 -1
  46. package/es/types/Enum/GlobalRegime.js +38 -30
  47. package/es/types/Enum/GlobalRegime.js.map +1 -1
  48. package/es/types/Enum/TypeCustomerProviderOperation.d.ts +1 -1
  49. package/es/types/Enum/TypeCustomerProviderOperation.d.ts.map +1 -1
  50. package/es/types/Enum/TypeCustomerProviderOperation.js +1 -1
  51. package/es/types/Enum/TypeCustomerProviderOperation.js.map +1 -1
  52. package/es/types/Enum/Vehicle.d.ts +110 -0
  53. package/es/types/Enum/Vehicle.d.ts.map +1 -1
  54. package/es/types/Enum/Vehicle.js +193 -0
  55. package/es/types/Enum/Vehicle.js.map +1 -1
  56. package/es/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.d.ts +4 -0
  57. package/es/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.d.ts.map +1 -0
  58. package/es/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.js +20 -0
  59. package/es/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.js.map +1 -0
  60. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +1 -0
  61. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
  62. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -0
  63. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  64. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +1 -0
  65. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
  66. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +7 -0
  67. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  68. package/es/types/Interface/api/cerfa/2033.d.ts +5 -4
  69. package/es/types/Interface/api/cerfa/2033.d.ts.map +1 -1
  70. package/es/types/Interface/api/cerfa/2033.js.map +1 -1
  71. package/es/types/Interface/api/cerfa/2035.d.ts +45 -43
  72. package/es/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  73. package/es/types/Interface/api/cerfa/2035.js +1 -5
  74. package/es/types/Interface/api/cerfa/2035.js.map +1 -1
  75. package/es/types/Interface/api/cerfa/2065.d.ts +3 -4
  76. package/es/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  77. package/es/types/Interface/api/cerfa/2065.js.map +1 -1
  78. package/es/types/Interface/api/cerfa/2572.d.ts +3 -3
  79. package/es/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  80. package/es/types/Interface/api/cerfa/2572.js.map +1 -1
  81. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +4 -3
  82. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
  83. package/es/types/Interface/api/cerfa/CreateCerfa.js +1 -0
  84. package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  85. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +13 -1
  86. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  87. package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  88. package/es/types/Interface/api/cerfa/Utils.d.ts +56 -0
  89. package/es/types/Interface/api/cerfa/Utils.d.ts.map +1 -0
  90. package/es/types/Interface/api/cerfa/Utils.js +2 -0
  91. package/es/types/Interface/api/cerfa/Utils.js.map +1 -0
  92. package/es/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.d.ts +2 -1
  93. package/es/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.d.ts.map +1 -1
  94. package/es/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.js.map +1 -1
  95. package/es/types/Interface/api/immobilization/ReadFormattedImmobilization.d.ts +10 -0
  96. package/es/types/Interface/api/immobilization/ReadFormattedImmobilization.d.ts.map +1 -1
  97. package/es/types/Interface/api/immobilization/ReadFormattedImmobilization.js.map +1 -1
  98. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts +2 -0
  99. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts.map +1 -1
  100. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +16 -1
  101. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -1
  102. package/es/types/Interface/api/registration/CreateRegistration.d.ts +1 -2
  103. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  104. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  105. package/es/types/Interface/api/society/UpdateSociety.d.ts +2 -1
  106. package/es/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
  107. package/es/types/Interface/api/society/UpdateSociety.js +11 -2
  108. package/es/types/Interface/api/society/UpdateSociety.js.map +1 -1
  109. package/es/types/Interface/api/vehicle/CreateSocietyVehicle.d.ts.map +1 -1
  110. package/es/types/Interface/api/vehicle/CreateSocietyVehicle.js +8 -0
  111. package/es/types/Interface/api/vehicle/CreateSocietyVehicle.js.map +1 -1
  112. package/es/types/Interface/api/vehicle/UpdateSocietyVehicle.d.ts.map +1 -1
  113. package/es/types/Interface/api/vehicle/UpdateSocietyVehicle.js +8 -0
  114. package/es/types/Interface/api/vehicle/UpdateSocietyVehicle.js.map +1 -1
  115. package/es/types/Interface/models/IApiError.d.ts +2 -1
  116. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  117. package/es/types/Interface/models/IApiError.js +2 -0
  118. package/es/types/Interface/models/IApiError.js.map +1 -1
  119. package/es/types/Interface/models/IBalanceSheetCompletion.d.ts +12 -0
  120. package/es/types/Interface/models/IBalanceSheetCompletion.d.ts.map +1 -0
  121. package/es/types/Interface/models/IBalanceSheetCompletion.js +2 -0
  122. package/es/types/Interface/models/IBalanceSheetCompletion.js.map +1 -0
  123. package/es/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
  124. package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  125. package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  126. package/es/types/Interface/models/IBalanceSheetModule2.d.ts +7 -0
  127. package/es/types/Interface/models/IBalanceSheetModule2.d.ts.map +1 -0
  128. package/es/types/Interface/models/IBalanceSheetModule2.js +2 -0
  129. package/es/types/Interface/models/IBalanceSheetModule2.js.map +1 -0
  130. package/es/types/Interface/models/IBalanceSheetStatus.d.ts +7 -0
  131. package/es/types/Interface/models/IBalanceSheetStatus.d.ts.map +1 -0
  132. package/es/types/Interface/models/IBalanceSheetStatus.js +2 -0
  133. package/es/types/Interface/models/IBalanceSheetStatus.js.map +1 -0
  134. package/es/types/index.d.ts +7 -0
  135. package/es/types/index.d.ts.map +1 -1
  136. package/es/types/index.js +7 -0
  137. package/es/types/index.js.map +1 -1
  138. package/es/utils/balanceSheetModule.d.ts +3 -0
  139. package/es/utils/balanceSheetModule.d.ts.map +1 -0
  140. package/es/utils/balanceSheetModule.js +12 -0
  141. package/es/utils/balanceSheetModule.js.map +1 -0
  142. package/es/utils/index.d.ts +1 -0
  143. package/es/utils/index.d.ts.map +1 -1
  144. package/es/utils/index.js +1 -0
  145. package/es/utils/index.js.map +1 -1
  146. package/js/api/resources/BalanceSheetCompletion.js +37 -0
  147. package/js/api/resources/BalanceSheetCompletion.js.map +1 -0
  148. package/js/api/resources/Vehicle.js +23 -10
  149. package/js/api/resources/Vehicle.js.map +1 -1
  150. package/js/api/resources/WorkingSchedule.js +4 -1
  151. package/js/api/resources/WorkingSchedule.js.map +1 -1
  152. package/js/api/resources.js +4 -1
  153. package/js/api/resources.js.map +1 -1
  154. package/js/types/Enum/AnswerTypeValue.js +14 -0
  155. package/js/types/Enum/AnswerTypeValue.js.map +1 -1
  156. package/js/types/Enum/BalanceSheetModule.js +48 -0
  157. package/js/types/Enum/BalanceSheetModule.js.map +1 -0
  158. package/js/types/Enum/BalanceSheetQuestion.js +91 -0
  159. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  160. package/js/types/Enum/BalanceSheetQuestionWording.js +2 -0
  161. package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  162. package/js/types/Enum/BalanceSheetStatus.js +13 -0
  163. package/js/types/Enum/BalanceSheetStatus.js.map +1 -0
  164. package/js/types/Enum/FuelType.js +148 -0
  165. package/js/types/Enum/FuelType.js.map +1 -0
  166. package/js/types/Enum/Ged.js +2 -2
  167. package/js/types/Enum/Ged.js.map +1 -1
  168. package/js/types/Enum/GlobalRegime.js +38 -27
  169. package/js/types/Enum/GlobalRegime.js.map +1 -1
  170. package/js/types/Enum/TypeCustomerProviderOperation.js +1 -1
  171. package/js/types/Enum/TypeCustomerProviderOperation.js.map +1 -1
  172. package/js/types/Enum/Vehicle.js +375 -0
  173. package/js/types/Enum/Vehicle.js.map +1 -1
  174. package/js/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.js +31 -0
  175. package/js/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.js.map +1 -0
  176. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +2 -0
  177. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  178. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +2 -0
  179. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  180. package/js/types/Interface/api/cerfa/2033.js.map +1 -1
  181. package/js/types/Interface/api/cerfa/2035.js +1 -3
  182. package/js/types/Interface/api/cerfa/2035.js.map +1 -1
  183. package/js/types/Interface/api/cerfa/2065.js.map +1 -1
  184. package/js/types/Interface/api/cerfa/2572.js.map +1 -1
  185. package/js/types/Interface/api/cerfa/CreateCerfa.js +12 -0
  186. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  187. package/js/types/Interface/api/cerfa/Utils.js +6 -0
  188. package/js/types/Interface/api/cerfa/Utils.js.map +1 -0
  189. package/js/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.js.map +1 -1
  190. package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +8 -2
  191. package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -1
  192. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  193. package/js/types/Interface/api/society/UpdateSociety.js +7 -1
  194. package/js/types/Interface/api/society/UpdateSociety.js.map +1 -1
  195. package/js/types/Interface/api/vehicle/CreateSocietyVehicle.js +6 -2
  196. package/js/types/Interface/api/vehicle/CreateSocietyVehicle.js.map +1 -1
  197. package/js/types/Interface/api/vehicle/UpdateSocietyVehicle.js +6 -2
  198. package/js/types/Interface/api/vehicle/UpdateSocietyVehicle.js.map +1 -1
  199. package/js/types/Interface/models/IApiError.js +3 -1
  200. package/js/types/Interface/models/IApiError.js.map +1 -1
  201. package/js/types/Interface/models/IBalanceSheetCompletion.js +6 -0
  202. package/js/types/Interface/models/IBalanceSheetCompletion.js.map +1 -0
  203. package/js/types/Interface/models/IBalanceSheetModule2.js +6 -0
  204. package/js/types/Interface/models/IBalanceSheetModule2.js.map +1 -0
  205. package/js/types/Interface/models/IBalanceSheetStatus.js +6 -0
  206. package/js/types/Interface/models/IBalanceSheetStatus.js.map +1 -0
  207. package/js/types/index.js +84 -0
  208. package/js/types/index.js.map +1 -1
  209. package/js/utils/balanceSheetModule.js +21 -0
  210. package/js/utils/balanceSheetModule.js.map +1 -0
  211. package/js/utils/index.js +12 -0
  212. package/js/utils/index.js.map +1 -1
  213. package/package.json +1 -1
  214. package/ts/api/resources/BalanceSheetCompletion.ts +26 -0
  215. package/ts/api/resources/Vehicle.ts +21 -12
  216. package/ts/api/resources/WorkingSchedule.ts +2 -1
  217. package/ts/api/resources.ts +2 -0
  218. package/ts/types/Enum/AnswerTypeValue.ts +14 -0
  219. package/ts/types/Enum/BalanceSheetModule.ts +71 -0
  220. package/ts/types/Enum/BalanceSheetQuestion.ts +91 -0
  221. package/ts/types/Enum/BalanceSheetQuestionWording.ts +3 -0
  222. package/ts/types/Enum/BalanceSheetStatus.ts +5 -0
  223. package/ts/types/Enum/FuelType.ts +75 -0
  224. package/ts/types/Enum/Ged.ts +1 -1
  225. package/ts/types/Enum/GlobalRegime.ts +38 -30
  226. package/ts/types/Enum/TypeCustomerProviderOperation.ts +1 -1
  227. package/ts/types/Enum/Vehicle.ts +203 -1
  228. package/ts/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.ts +9 -0
  229. package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +6 -0
  230. package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +6 -0
  231. package/ts/types/Interface/api/cerfa/2033.ts +6 -4
  232. package/ts/types/Interface/api/cerfa/2035.ts +43 -45
  233. package/ts/types/Interface/api/cerfa/2065.ts +3 -4
  234. package/ts/types/Interface/api/cerfa/2572.ts +3 -3
  235. package/ts/types/Interface/api/cerfa/CreateCerfa.ts +4 -3
  236. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +14 -1
  237. package/ts/types/Interface/api/cerfa/Utils.ts +61 -0
  238. package/ts/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.ts +2 -1
  239. package/ts/types/Interface/api/immobilization/ReadFormattedImmobilization.ts +12 -1
  240. package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +16 -1
  241. package/ts/types/Interface/api/registration/CreateRegistration.ts +1 -2
  242. package/ts/types/Interface/api/society/UpdateSociety.ts +11 -3
  243. package/ts/types/Interface/api/vehicle/CreateSocietyVehicle.ts +8 -0
  244. package/ts/types/Interface/api/vehicle/UpdateSocietyVehicle.ts +8 -0
  245. package/ts/types/Interface/models/IApiError.ts +4 -0
  246. package/ts/types/Interface/models/IBalanceSheetCompletion.ts +14 -0
  247. package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
  248. package/ts/types/Interface/models/IBalanceSheetModule2.ts +7 -0
  249. package/ts/types/Interface/models/IBalanceSheetStatus.ts +7 -0
  250. package/ts/types/index.ts +8 -0
  251. package/ts/utils/balanceSheetModule.ts +21 -0
  252. package/ts/utils/index.ts +1 -0
@@ -9,8 +9,7 @@ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
9
9
  export class CreateRegistration {
10
10
  @ApiProperty()
11
11
  payload: {
12
- cerfa2035?: ParamsGenerate2035
13
- cerfa2035WithSuites?: ParamsGenerate2035WithSuites
12
+ cerfa2035?: ParamsGenerate2035 & ParamsGenerate2035WithSuites
14
13
  cerfa2033?: ParamsGenerate2033;
15
14
  cerfa2065?: ParamsGenerate2065;
16
15
  cerfa2031?: ParamsGenerate2031;
@@ -1,9 +1,11 @@
1
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
1
+ import { IsBoolean, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
2
3
  import { ISociety } from '../../models/ISociety';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
3
5
 
4
6
  export class UpdateSociety {
5
- @ApiProperty()
6
- idTypeCompta: number;
7
+ @ApiPropertyOptional()
8
+ idTypeCompta?: number;
7
9
 
8
10
  @ApiPropertyOptional()
9
11
  idUser?: number;
@@ -46,6 +48,12 @@ export class UpdateSociety {
46
48
 
47
49
  @ApiPropertyOptional()
48
50
  socialCapital?: string;
51
+
52
+ @ApiPropertyOptional()
53
+ @IsBoolean()
54
+ @ToBoolean()
55
+ @IsOptional()
56
+ showPopUpVehicleInformation?: boolean;
49
57
  }
50
58
 
51
59
  export class UpdateSocietyPayload {
@@ -1,10 +1,15 @@
1
+ import { IsBoolean, IsOptional } from 'class-validator';
1
2
  import { ApiPropertyOptional } from '../../../..';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
2
4
 
3
5
  export class CreateSocietyVehicle {
4
6
  @ApiPropertyOptional()
5
7
  name?: string;
6
8
 
7
9
  @ApiPropertyOptional()
10
+ @IsBoolean()
11
+ @ToBoolean()
12
+ @IsOptional()
8
13
  isPerso?: boolean;
9
14
 
10
15
  @ApiPropertyOptional()
@@ -41,5 +46,8 @@ export class CreateSocietyVehicle {
41
46
  dateOfFirstRegistration?: Date | null;
42
47
 
43
48
  @ApiPropertyOptional()
49
+ @IsBoolean()
50
+ @ToBoolean()
51
+ @IsOptional()
44
52
  isLeasing?: boolean | null;
45
53
  }
@@ -1,10 +1,15 @@
1
+ import { IsBoolean, IsOptional } from 'class-validator';
1
2
  import { ApiPropertyOptional } from '../../../..';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
2
4
 
3
5
  export class UpdateSocietyVehicle {
4
6
  @ApiPropertyOptional()
5
7
  name?: string;
6
8
 
7
9
  @ApiPropertyOptional()
10
+ @IsBoolean()
11
+ @ToBoolean()
12
+ @IsOptional()
8
13
  isPerso?: boolean;
9
14
 
10
15
  @ApiPropertyOptional()
@@ -41,5 +46,8 @@ export class UpdateSocietyVehicle {
41
46
  dateOfFirstRegistration?: Date | null;
42
47
 
43
48
  @ApiPropertyOptional()
49
+ @IsBoolean()
50
+ @ToBoolean()
51
+ @IsOptional()
44
52
  isLeasing?: boolean | null;
45
53
  }
@@ -153,6 +153,10 @@ export enum Code {
153
153
 
154
154
  // jeDeclare errors
155
155
  ERR_INVALID_ARG_TYPE = 'ERR_INVALID_ARG_TYPE',
156
+
157
+ // Society Vehicles
158
+
159
+ MISSING_REGISTRATION_CARD = 'MISSING_REGISTRATION_CARD',
156
160
  }
157
161
 
158
162
  export interface IApiError {
@@ -0,0 +1,14 @@
1
+ import { IBalanceSheetModule, IBalanceSheetStatus, IExercice } from '../..';
2
+
3
+ export interface IBalanceSheetCompletion {
4
+ idExercice: number;
5
+ idModule: number;
6
+ idStatus: number;
7
+
8
+ createdAt?: Date | null;
9
+ updatedAt?: Date | null;
10
+
11
+ exercice?: IExercice;
12
+ status?: IBalanceSheetStatus;
13
+ module?: IBalanceSheetModule;
14
+ }
@@ -22,6 +22,7 @@ export interface IBalanceSheetModule {
22
22
  hasFinancialCharges?: boolean | null;
23
23
  hasCheckedVAT?: boolean | null;
24
24
  hasCheckedCompanyTax?: boolean | null;
25
+ hasValidateKilometricAllowance?: boolean | null
25
26
  idSociety: number;
26
27
  idExercice: number;
27
28
  createdAt?: Date | null;
@@ -0,0 +1,7 @@
1
+ export interface IBalanceSheetModule2 {
2
+ id: number;
3
+ name: string;
4
+
5
+ createdAt?: Date | null;
6
+ updatedAt?: Date | null;
7
+ }
@@ -0,0 +1,7 @@
1
+ export interface IBalanceSheetStatus {
2
+ id: number;
3
+ name: string;
4
+
5
+ createdAt?: Date | null;
6
+ updatedAt?: Date | null;
7
+ }
package/ts/types/index.ts CHANGED
@@ -294,6 +294,9 @@ export * from './Interface/models/IBalanceSheetQuestion';
294
294
  export * from './Interface/models/IExerciceQuestion';
295
295
  export * from './Interface/models/IRelatedAccountingTransaction';
296
296
  export * from './Interface/models/IMachineLearningResult';
297
+ export * from './Interface/models/IBalanceSheetModule2';
298
+ export * from './Interface/models/IBalanceSheetStatus';
299
+ export * from './Interface/models/IBalanceSheetCompletion';
297
300
 
298
301
  // Forms
299
302
  export * from './Form/FormAuthenticate';
@@ -385,6 +388,9 @@ export * from './Enum/Ocr';
385
388
  export * from './Enum/MachineLearning';
386
389
  export * from './Enum/JeDeclare';
387
390
  export * from './Enum/Currency';
391
+ export * from './Enum/BalanceSheetModule';
392
+ export * from './Enum/BalanceSheetStatus';
393
+ export * from './Enum/FuelType';
388
394
 
389
395
  // Interfaces API
390
396
  export * from './Interface/api/aspone/ReadInterchange';
@@ -610,4 +616,6 @@ export * from './Interface/api/machineLearning/ResultCreateMachineLearningAnnota
610
616
  export * from './Interface/api/jeDeclare/Util';
611
617
  export * from './Interface/api/jeDeclare/CreateDocumentsParams';
612
618
  export * from './Interface/api/jeDeclare/UtilCFONB';
619
+ export * from './Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion';
620
+
613
621
  export * from '../utils/cerfa';
@@ -0,0 +1,21 @@
1
+ import { forEach } from 'lodash';
2
+ import {
3
+ BalanceSheetModule, BalanceSheetModuleByCompanyType, DEFAULT_MODULES, FiscalRegime, ProfitsType, TaxSystem,
4
+ } from '..';
5
+
6
+ export function getModulesByCompanyType(
7
+ idLegalForm: number,
8
+ idTaxSystem: TaxSystem,
9
+ idFiscalRegime: FiscalRegime,
10
+ profitsType: ProfitsType,
11
+ ): Array<BalanceSheetModule> {
12
+ const modules = [...DEFAULT_MODULES];
13
+
14
+ forEach(BalanceSheetModuleByCompanyType, (value, key) => {
15
+ if (!value?.excluded.legalFormIds.includes(idLegalForm)) {
16
+ modules.push(Number(key));
17
+ }
18
+ });
19
+
20
+ return modules;
21
+ }
package/ts/utils/index.ts CHANGED
@@ -2,3 +2,4 @@ export * from './objectUtils';
2
2
  export * from './stringUtils';
3
3
  export * from './brands';
4
4
  export * from './decorators';
5
+ export * from './balanceSheetModule';