@silexpert/core 1.3.169-2 → 1.3.169-4

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 (236) hide show
  1. package/dist/cjs/api/resources/DocumentRequest.d.ts +2 -1
  2. package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/DocumentRequest.js +3 -0
  4. package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
  5. package/dist/cjs/api/resources/InformationRequest.d.ts +11 -0
  6. package/dist/cjs/api/resources/InformationRequest.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/InformationRequest.js +26 -0
  8. package/dist/cjs/api/resources/InformationRequest.js.map +1 -0
  9. package/dist/cjs/api/resources/Revenue.d.ts +9 -0
  10. package/dist/cjs/api/resources/Revenue.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/Revenue.js +11 -0
  12. package/dist/cjs/api/resources/Revenue.js.map +1 -1
  13. package/dist/cjs/api/resources.d.ts +3 -1
  14. package/dist/cjs/api/resources.d.ts.map +1 -1
  15. package/dist/cjs/api/resources.js +3 -1
  16. package/dist/cjs/api/resources.js.map +1 -1
  17. package/dist/cjs/types/Enum/BalanceSheet.d.ts +14 -2
  18. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/BalanceSheet.js +48 -13
  20. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  21. package/dist/cjs/types/Enum/BalanceSheetModule.d.ts +2 -0
  22. package/dist/cjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/BalanceSheetModule.js +23 -1
  24. package/dist/cjs/types/Enum/BalanceSheetModule.js.map +1 -1
  25. package/dist/cjs/types/Enum/DepositDocumentType.js +1 -1
  26. package/dist/cjs/types/Enum/DepositDocumentType.js.map +1 -1
  27. package/dist/cjs/types/Enum/Ged.d.ts +19 -4
  28. package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
  29. package/dist/cjs/types/Enum/Ged.js +142 -5
  30. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  31. package/dist/cjs/types/Enum/InformationRequestState.d.ts +6 -0
  32. package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +1 -0
  33. package/dist/cjs/types/Enum/InformationRequestState.js +10 -0
  34. package/dist/cjs/types/Enum/InformationRequestState.js.map +1 -0
  35. package/dist/cjs/types/Enum/InformationRequestType.d.ts +17 -0
  36. package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +1 -0
  37. package/dist/cjs/types/Enum/InformationRequestType.js +44 -0
  38. package/dist/cjs/types/Enum/InformationRequestType.js.map +1 -0
  39. package/dist/cjs/types/Enum/LetterType.js +2 -2
  40. package/dist/cjs/types/Enum/LetterType.js.map +1 -1
  41. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  42. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  43. package/dist/cjs/types/Enum/ReasonTerminationType.js +6 -0
  44. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  45. package/dist/cjs/types/Enum/Revenue.d.ts +3 -1
  46. package/dist/cjs/types/Enum/Revenue.d.ts.map +1 -1
  47. package/dist/cjs/types/Enum/Revenue.js +2 -0
  48. package/dist/cjs/types/Enum/Revenue.js.map +1 -1
  49. package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts +1 -0
  50. package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
  51. package/dist/cjs/types/Interface/api/documentRequest/Create.js +8 -0
  52. package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +1 -1
  53. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
  54. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  55. package/dist/cjs/types/Interface/api/documentRequest/Query.js +12 -0
  56. package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  57. package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts +12 -0
  58. package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
  59. package/dist/cjs/types/Interface/api/documentRequest/Update.js +63 -0
  60. package/dist/cjs/types/Interface/api/documentRequest/Update.js.map +1 -0
  61. package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts +10 -0
  62. package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
  63. package/dist/cjs/types/Interface/api/informationRequest/Create.js +49 -0
  64. package/dist/cjs/types/Interface/api/informationRequest/Create.js.map +1 -0
  65. package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
  66. package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
  67. package/dist/cjs/types/Interface/api/informationRequest/Query.js +54 -0
  68. package/dist/cjs/types/Interface/api/informationRequest/Query.js.map +1 -0
  69. package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +12 -0
  70. package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
  71. package/dist/cjs/types/Interface/api/informationRequest/Update.js +58 -0
  72. package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +1 -0
  73. package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts +23 -0
  74. package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
  75. package/dist/cjs/types/Interface/api/revenue/revenueMovement.js +58 -1
  76. package/dist/cjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
  77. package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
  78. package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  79. package/dist/cjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  80. package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +7 -1
  81. package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
  82. package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +1 -1
  83. package/dist/cjs/types/Interface/models/IInformationRequest.d.ts +25 -0
  84. package/dist/cjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
  85. package/dist/cjs/types/Interface/models/IInformationRequest.js +3 -0
  86. package/dist/cjs/types/Interface/models/IInformationRequest.js.map +1 -0
  87. package/dist/cjs/types/index.d.ts +7 -0
  88. package/dist/cjs/types/index.d.ts.map +1 -1
  89. package/dist/cjs/types/index.js +7 -0
  90. package/dist/cjs/types/index.js.map +1 -1
  91. package/dist/cjs/utils/checkup.d.ts.map +1 -1
  92. package/dist/cjs/utils/checkup.js +3 -3
  93. package/dist/cjs/utils/checkup.js.map +1 -1
  94. package/dist/cjs/utils/exercice.d.ts +9 -0
  95. package/dist/cjs/utils/exercice.d.ts.map +1 -1
  96. package/dist/cjs/utils/exercice.js +15 -1
  97. package/dist/cjs/utils/exercice.js.map +1 -1
  98. package/dist/cjs/utils/vat/3310/century23.js +19 -18
  99. package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
  100. package/dist/cjs/utils/vat/3310/century24.js +19 -18
  101. package/dist/cjs/utils/vat/3310/century24.js.map +1 -1
  102. package/dist/cjs/utils/vat/3310/century25.js +18 -17
  103. package/dist/cjs/utils/vat/3310/century25.js.map +1 -1
  104. package/dist/mjs/api/resources/DocumentRequest.d.ts +2 -1
  105. package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
  106. package/dist/mjs/api/resources/DocumentRequest.js +3 -0
  107. package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
  108. package/dist/mjs/api/resources/InformationRequest.d.ts +11 -0
  109. package/dist/mjs/api/resources/InformationRequest.d.ts.map +1 -0
  110. package/dist/mjs/api/resources/InformationRequest.js +30 -0
  111. package/dist/mjs/api/resources/InformationRequest.js.map +1 -0
  112. package/dist/mjs/api/resources/Revenue.d.ts +9 -0
  113. package/dist/mjs/api/resources/Revenue.d.ts.map +1 -1
  114. package/dist/mjs/api/resources/Revenue.js +11 -0
  115. package/dist/mjs/api/resources/Revenue.js.map +1 -1
  116. package/dist/mjs/api/resources.d.ts +3 -1
  117. package/dist/mjs/api/resources.d.ts.map +1 -1
  118. package/dist/mjs/api/resources.js +3 -1
  119. package/dist/mjs/api/resources.js.map +1 -1
  120. package/dist/mjs/types/Enum/BalanceSheet.d.ts +14 -2
  121. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  122. package/dist/mjs/types/Enum/BalanceSheet.js +45 -13
  123. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  124. package/dist/mjs/types/Enum/BalanceSheetModule.d.ts +2 -0
  125. package/dist/mjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
  126. package/dist/mjs/types/Enum/BalanceSheetModule.js +22 -0
  127. package/dist/mjs/types/Enum/BalanceSheetModule.js.map +1 -1
  128. package/dist/mjs/types/Enum/DepositDocumentType.js +1 -1
  129. package/dist/mjs/types/Enum/DepositDocumentType.js.map +1 -1
  130. package/dist/mjs/types/Enum/Ged.d.ts +19 -4
  131. package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
  132. package/dist/mjs/types/Enum/Ged.js +142 -5
  133. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  134. package/dist/mjs/types/Enum/InformationRequestState.d.ts +6 -0
  135. package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +1 -0
  136. package/dist/mjs/types/Enum/InformationRequestState.js +7 -0
  137. package/dist/mjs/types/Enum/InformationRequestState.js.map +1 -0
  138. package/dist/mjs/types/Enum/InformationRequestType.d.ts +17 -0
  139. package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +1 -0
  140. package/dist/mjs/types/Enum/InformationRequestType.js +41 -0
  141. package/dist/mjs/types/Enum/InformationRequestType.js.map +1 -0
  142. package/dist/mjs/types/Enum/LetterType.js +2 -2
  143. package/dist/mjs/types/Enum/LetterType.js.map +1 -1
  144. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  145. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  146. package/dist/mjs/types/Enum/ReasonTerminationType.js +6 -0
  147. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  148. package/dist/mjs/types/Enum/Revenue.d.ts +3 -1
  149. package/dist/mjs/types/Enum/Revenue.d.ts.map +1 -1
  150. package/dist/mjs/types/Enum/Revenue.js +2 -0
  151. package/dist/mjs/types/Enum/Revenue.js.map +1 -1
  152. package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts +1 -0
  153. package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
  154. package/dist/mjs/types/Interface/api/documentRequest/Create.js +10 -1
  155. package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +1 -1
  156. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
  157. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  158. package/dist/mjs/types/Interface/api/documentRequest/Query.js +15 -1
  159. package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  160. package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts +12 -0
  161. package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
  162. package/dist/mjs/types/Interface/api/documentRequest/Update.js +66 -0
  163. package/dist/mjs/types/Interface/api/documentRequest/Update.js.map +1 -0
  164. package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts +10 -0
  165. package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
  166. package/dist/mjs/types/Interface/api/informationRequest/Create.js +50 -0
  167. package/dist/mjs/types/Interface/api/informationRequest/Create.js.map +1 -0
  168. package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
  169. package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
  170. package/dist/mjs/types/Interface/api/informationRequest/Query.js +56 -0
  171. package/dist/mjs/types/Interface/api/informationRequest/Query.js.map +1 -0
  172. package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +12 -0
  173. package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
  174. package/dist/mjs/types/Interface/api/informationRequest/Update.js +60 -0
  175. package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +1 -0
  176. package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts +23 -0
  177. package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
  178. package/dist/mjs/types/Interface/api/revenue/revenueMovement.js +57 -1
  179. package/dist/mjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
  180. package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
  181. package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  182. package/dist/mjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  183. package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +7 -1
  184. package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
  185. package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +1 -1
  186. package/dist/mjs/types/Interface/models/IInformationRequest.d.ts +25 -0
  187. package/dist/mjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
  188. package/dist/mjs/types/Interface/models/IInformationRequest.js +2 -0
  189. package/dist/mjs/types/Interface/models/IInformationRequest.js.map +1 -0
  190. package/dist/mjs/types/index.d.ts +7 -0
  191. package/dist/mjs/types/index.d.ts.map +1 -1
  192. package/dist/mjs/types/index.js +7 -0
  193. package/dist/mjs/types/index.js.map +1 -1
  194. package/dist/mjs/utils/checkup.d.ts.map +1 -1
  195. package/dist/mjs/utils/checkup.js +3 -3
  196. package/dist/mjs/utils/checkup.js.map +1 -1
  197. package/dist/mjs/utils/exercice.d.ts +9 -0
  198. package/dist/mjs/utils/exercice.d.ts.map +1 -1
  199. package/dist/mjs/utils/exercice.js +13 -0
  200. package/dist/mjs/utils/exercice.js.map +1 -1
  201. package/dist/mjs/utils/vat/3310/century23.js +19 -18
  202. package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
  203. package/dist/mjs/utils/vat/3310/century24.js +19 -18
  204. package/dist/mjs/utils/vat/3310/century24.js.map +1 -1
  205. package/dist/mjs/utils/vat/3310/century25.js +17 -16
  206. package/dist/mjs/utils/vat/3310/century25.js.map +1 -1
  207. package/package.json +1 -1
  208. package/ts/api/resources/DocumentRequest.ts +5 -1
  209. package/ts/api/resources/InformationRequest.ts +36 -0
  210. package/ts/api/resources/Revenue.ts +12 -0
  211. package/ts/api/resources.ts +3 -1
  212. package/ts/types/Enum/BalanceSheet.ts +59 -17
  213. package/ts/types/Enum/BalanceSheetModule.ts +24 -1
  214. package/ts/types/Enum/DepositDocumentType.ts +1 -1
  215. package/ts/types/Enum/Ged.ts +143 -5
  216. package/ts/types/Enum/InformationRequestState.ts +5 -0
  217. package/ts/types/Enum/InformationRequestType.ts +51 -0
  218. package/ts/types/Enum/LetterType.ts +2 -2
  219. package/ts/types/Enum/ReasonTerminationType.ts +6 -0
  220. package/ts/types/Enum/Revenue.ts +3 -0
  221. package/ts/types/Interface/api/documentRequest/Create.ts +8 -1
  222. package/ts/types/Interface/api/documentRequest/Query.ts +12 -1
  223. package/ts/types/Interface/api/documentRequest/Update.ts +43 -0
  224. package/ts/types/Interface/api/informationRequest/Create.ts +31 -0
  225. package/ts/types/Interface/api/informationRequest/Query.ts +36 -0
  226. package/ts/types/Interface/api/informationRequest/Update.ts +39 -0
  227. package/ts/types/Interface/api/revenue/revenueMovement.ts +61 -1
  228. package/ts/types/Interface/models/IBalanceSheetModule.ts +7 -1
  229. package/ts/types/Interface/models/IDocumentRequest.ts +8 -2
  230. package/ts/types/Interface/models/IInformationRequest.ts +27 -0
  231. package/ts/types/index.ts +7 -0
  232. package/ts/utils/checkup.ts +4 -4
  233. package/ts/utils/exercice.ts +14 -0
  234. package/ts/utils/vat/3310/century23.ts +16 -16
  235. package/ts/utils/vat/3310/century24.ts +18 -18
  236. package/ts/utils/vat/3310/century25.ts +19 -19
@@ -22,6 +22,9 @@ export enum RevenueMovementType {
22
22
 
23
23
  /** Reactivation (client qui revient) */
24
24
  REACTIVATION = 7,
25
+
26
+ /** PCA - Produit Constaté d'Avance (revenu différé spécifique) */
27
+ PCA = 8,
25
28
  }
26
29
 
27
30
  /**
@@ -1,7 +1,8 @@
1
- import { IsEnum, IsInt, IsOptional } from 'class-validator';
1
+ import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { IDocumentRequest } from '../../models/IDocumentRequest';
4
4
  import { TypeFile } from '../../../Enum/Ged';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
6
 
6
7
  export class CreateDocumentRequest implements Omit<IDocumentRequest, 'id' | 'idRequestedBy'> {
7
8
  @ApiProperty()
@@ -25,4 +26,10 @@ export class CreateDocumentRequest implements Omit<IDocumentRequest, 'id' | 'idR
25
26
  @ApiPropertyOptional()
26
27
  @IsOptional()
27
28
  comment?: string;
29
+
30
+ @ApiPropertyOptional()
31
+ @IsOptional()
32
+ @IsBoolean()
33
+ @ToBoolean()
34
+ isMandatory?: boolean;
28
35
  }
@@ -1,5 +1,6 @@
1
- import { IsInt, IsOptional } from 'class-validator';
1
+ import { IsArray, IsInt, IsOptional } from 'class-validator';
2
2
  import { ApiPropertyOptional } from '../../../../utils';
3
+ import { TypeFile } from '../../../Enum/Ged';
3
4
 
4
5
  export class QueryDocumentRequest {
5
6
  @ApiPropertyOptional()
@@ -11,4 +12,14 @@ export class QueryDocumentRequest {
11
12
  @IsOptional()
12
13
  @IsInt()
13
14
  idBalanceSheet?: number;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsInt()
19
+ idRequestedBy?: number;
20
+
21
+ @ApiPropertyOptional()
22
+ @IsOptional()
23
+ @IsArray()
24
+ typeFile?: TypeFile[];
14
25
  }
@@ -0,0 +1,43 @@
1
+ import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { IDocumentRequest } from '../../models/IDocumentRequest';
4
+ import { TypeFile } from '../../../Enum/Ged';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+
7
+ export class UpdateDocumentRequest implements Partial<Omit<IDocumentRequest, 'id' | 'idRequestedBy' | 'notConcernedAt'>> {
8
+ @ApiPropertyOptional()
9
+ @IsOptional()
10
+ @IsInt()
11
+ idSociety?: number;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsEnum(TypeFile)
16
+ typeFile?: TypeFile;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsInt()
21
+ idExercice?: number;
22
+
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ @IsInt()
26
+ idBalanceSheet?: number;
27
+
28
+ @ApiPropertyOptional()
29
+ @IsOptional()
30
+ comment?: string;
31
+
32
+ @ApiPropertyOptional()
33
+ @IsOptional()
34
+ @IsBoolean()
35
+ @ToBoolean()
36
+ isNotConcerned?: boolean;
37
+
38
+ @ApiPropertyOptional()
39
+ @IsOptional()
40
+ @IsBoolean()
41
+ @ToBoolean()
42
+ isMandatory?: boolean;
43
+ }
@@ -0,0 +1,31 @@
1
+ import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { IInformationRequest } from '../../models/IInformationRequest';
4
+ import { InformationRequestType } from '../../../Enum/InformationRequestType';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+
7
+ export class CreateInformationRequest implements Omit<IInformationRequest, 'id' | 'idRequestedBy' | 'state'> {
8
+ @ApiProperty()
9
+ @IsInt()
10
+ idSociety: number;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsInt()
15
+ idExercice?: number | null;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsInt()
20
+ idBalanceSheet?: number | null;
21
+
22
+ @ApiProperty()
23
+ @IsEnum(InformationRequestType)
24
+ type: InformationRequestType;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsBoolean()
29
+ @ToBoolean()
30
+ isMandatory?: boolean;
31
+ }
@@ -0,0 +1,36 @@
1
+ import { IsArray, IsInt, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { InformationRequestType } from '../../../Enum/InformationRequestType';
4
+ import { InformationRequestState } from '../../../Enum/InformationRequestState';
5
+
6
+ export class QueryInformationRequest {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsInt()
10
+ idSociety?: number;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsInt()
15
+ idExercice?: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsInt()
20
+ idBalanceSheet?: number;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ @IsInt()
25
+ idRequestedBy?: number;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsArray()
30
+ type?: InformationRequestType[];
31
+
32
+ @ApiPropertyOptional()
33
+ @IsOptional()
34
+ @IsArray()
35
+ state?: InformationRequestState[];
36
+ }
@@ -0,0 +1,39 @@
1
+ import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { IInformationRequest } from '../../models/IInformationRequest';
4
+ import { InformationRequestType } from '../../../Enum/InformationRequestType';
5
+ import { InformationRequestState } from '../../../Enum/InformationRequestState';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
+
8
+ export class UpdateInformationRequest implements Partial<Omit<IInformationRequest, 'id'>> {
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsInt()
12
+ idSociety?: number;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsOptional()
16
+ @IsInt()
17
+ idExercice?: number;
18
+
19
+ @ApiPropertyOptional()
20
+ @IsOptional()
21
+ @IsInt()
22
+ idRequestedBy?: number;
23
+
24
+ @ApiPropertyOptional()
25
+ @IsOptional()
26
+ @IsEnum(InformationRequestType)
27
+ type?: InformationRequestType;
28
+
29
+ @ApiPropertyOptional()
30
+ @IsOptional()
31
+ @IsEnum(InformationRequestState)
32
+ state?: InformationRequestState;
33
+
34
+ @ApiPropertyOptional()
35
+ @IsOptional()
36
+ @IsBoolean()
37
+ @ToBoolean()
38
+ isMandatory?: boolean;
39
+ }
@@ -1,4 +1,4 @@
1
- import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';
1
+ import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray, Min } from 'class-validator';
2
2
  import { RevenueMovementType } from '../../../Enum/Revenue';
3
3
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
4
4
 
@@ -248,6 +248,7 @@ export interface IManageRetroactivityResponse {
248
248
  details: {
249
249
  type: string;
250
250
  idPrestation?: number;
251
+ idExercice?: number;
251
252
  prestationName?: string;
252
253
  date: Date;
253
254
  amount: number;
@@ -255,3 +256,62 @@ export interface IManageRetroactivityResponse {
255
256
  arr: number;
256
257
  }[];
257
258
  }
259
+
260
+ /**
261
+ * DTO pour gérer la rétroactivité batch de toutes les sociétés sans mouvements
262
+ */
263
+ export class IManageRetroactivityBatchRequest {
264
+ @ApiPropertyOptional({
265
+ description: 'Limite du nombre de sociétés à traiter',
266
+ example: 10,
267
+ })
268
+ @IsOptional()
269
+ @IsInt()
270
+ limit?: number = 10;
271
+
272
+ @ApiPropertyOptional({
273
+ description: 'Offset pour pagination',
274
+ example: 0,
275
+ })
276
+ @IsOptional()
277
+ @IsInt()
278
+ offset?: number = 0;
279
+
280
+ @ApiPropertyOptional({
281
+ description: 'Date de référence pour la rétroactivité',
282
+ })
283
+ @IsOptional()
284
+ @IsDate()
285
+ date?: Date;
286
+
287
+ @ApiPropertyOptional({
288
+ description: "Liste d'IDs de sociétés à traiter explicitement",
289
+ example: [101, 202, 303],
290
+ })
291
+ @IsOptional()
292
+ @IsArray()
293
+ @IsInt({ each: true })
294
+ idSociety?: number[];
295
+
296
+ @ApiPropertyOptional({
297
+ description: 'Taille du lot de traitement en parallèle',
298
+ example: 5,
299
+ })
300
+ @IsOptional()
301
+ @IsInt()
302
+ @Min(1)
303
+ batchSize?: number = 5;
304
+ }
305
+
306
+ /**
307
+ * Réponse pour la gestion batch de la rétroactivité
308
+ */
309
+ export interface IManageRetroactivityBatchResponse {
310
+ message: string;
311
+ totalSocietiesProcessed: number;
312
+ results: IManageRetroactivityResponse[];
313
+ errors: Array<{
314
+ idSociety: number;
315
+ error: string;
316
+ }>;
317
+ }
@@ -1,4 +1,6 @@
1
- // balanceSheetModule
1
+ import { IExercice } from './IExercice';
2
+ import { ISociety } from './ISociety';
3
+
2
4
  export interface IBalanceSheetModule {
3
5
  id?: number;
4
6
  inventory: boolean | null;
@@ -32,4 +34,8 @@ export interface IBalanceSheetModule {
32
34
  idExercice: number;
33
35
  createdAt?: Date | null;
34
36
  updatedAt?: Date | null;
37
+
38
+ // Associations
39
+ society?: ISociety;
40
+ exercice?: IExercice;
35
41
  }
@@ -7,13 +7,19 @@ import { IFile } from './IFile';
7
7
  import { IGedFile } from './IGedFile';
8
8
 
9
9
  export interface IDocumentRequest {
10
- id: number;
10
+ id?: number;
11
11
  idSociety: number;
12
12
  idExercice?: number | null;
13
13
  idBalanceSheet?: number | null;
14
- idRequestedBy: number;
14
+ idRequestedBy: number; // IUser who requested the document
15
15
  typeFile: TypeFile;
16
16
  comment?: string | null;
17
+ isNotConcerned?: boolean; // This can't be null (default false in db)
18
+ isMandatory?: boolean; // If true, client cannot mark this request as not concerned
19
+ notConcernedAt?: Date | null;
20
+ createdAt?: Date | null;
21
+ updatedAt?: Date | null;
22
+ deletedAt?: Date | null;
17
23
 
18
24
  // Associations
19
25
  society?: ISociety;
@@ -0,0 +1,27 @@
1
+ import { InformationRequestType } from '../../Enum/InformationRequestType';
2
+ import { InformationRequestState } from '../../Enum/InformationRequestState';
3
+ import { IUser } from './IUser';
4
+ import { ISociety } from './ISociety';
5
+ import { IExercice } from './IExercice';
6
+ import { IBalanceSheet } from './IBalanceSheet';
7
+
8
+ export interface IInformationRequest {
9
+ id?: number;
10
+ idSociety: number;
11
+ idExercice?: number | null;
12
+ idBalanceSheet?: number | null;
13
+ idRequestedBy: number; // IUser who requested the information
14
+ type: InformationRequestType; // Type of information request
15
+ state: InformationRequestState; // State of the request (pending, completed, not concerned)
16
+ isMandatory?: boolean; // If true, client cannot mark this request as not concerned
17
+ answeredAt?: Date | null; // Date when client answered (completed or marked as not concerned)
18
+ createdAt?: Date | null;
19
+ updatedAt?: Date | null;
20
+ deletedAt?: Date | null;
21
+
22
+ // Associations
23
+ society?: ISociety;
24
+ exercice?: IExercice;
25
+ balanceSheet?: IBalanceSheet;
26
+ requestedBy?: IUser;
27
+ }
package/ts/types/index.ts CHANGED
@@ -324,6 +324,7 @@ export * from './Interface/models/IAIQuestion';
324
324
  export * from './Interface/models/IAIConversation';
325
325
  export * from './Interface/models/IPaymentAttempt';
326
326
  export * from './Interface/models/IDocumentRequest';
327
+ export * from './Interface/models/IInformationRequest';
327
328
  export * from './Interface/models/IRevenueMovement';
328
329
  export * from './Interface/models/IRevenueSnapshot';
329
330
 
@@ -557,6 +558,8 @@ export * from './Enum/TeamType';
557
558
  export * from './Enum/PartneredAccountantServiceType';
558
559
  export * from './Enum/PartneredAccountantServiceTypeId';
559
560
  export * from './Enum/PaymentAttempt';
561
+ export * from './Enum/InformationRequestType';
562
+ export * from './Enum/InformationRequestState';
560
563
  export * from './Enum/Revenue';
561
564
 
562
565
  // Interfaces API
@@ -1143,6 +1146,10 @@ export * from './Interface/api/recurrence/Query';
1143
1146
  export * from './Interface/api/recurrence/Read';
1144
1147
  export * from './Interface/api/documentRequest/Query';
1145
1148
  export * from './Interface/api/documentRequest/Create';
1149
+ export * from './Interface/api/documentRequest/Update';
1150
+ export * from './Interface/api/informationRequest/Query';
1151
+ export * from './Interface/api/informationRequest/Create';
1152
+ export * from './Interface/api/informationRequest/Update';
1146
1153
  export * from './Interface/api/automaticRegistration/Query';
1147
1154
  export * from './Interface/api/automaticRegistration/Read';
1148
1155
 
@@ -1,4 +1,3 @@
1
-
2
1
  /* eslint-disable @typescript-eslint/no-unsafe-return */
3
2
 
4
3
  import { SelectYesNoStatementBool } from '../types/Enum/Constants';
@@ -63,7 +62,7 @@ export const getCheckupDetailForm = (
63
62
  },
64
63
  {
65
64
  component: 'FormInputSelect',
66
- text: 'Avez-vous un logiciel de facturation?',
65
+ text: 'Avez-vous un logiciel de facturation ?',
67
66
  value: 'hasBillingSoftware',
68
67
  required: true,
69
68
  meta: {
@@ -72,6 +71,7 @@ export const getCheckupDetailForm = (
72
71
  },
73
72
  lg: 12,
74
73
  },
74
+
75
75
  {
76
76
  component: 'FormInputSelect',
77
77
  text: 'Quels sont les modes de réglements dont vous disposez ?',
@@ -176,7 +176,7 @@ export const getCheckupDetailForm = (
176
176
  {
177
177
  component: 'FormInputSelect',
178
178
  text: 'Avez-vous des responsabilités politiques ?',
179
- value: 'politicalResponsibility',
179
+ value: 'politicalResponsability',
180
180
  required: true,
181
181
  meta: {
182
182
  items: SelectYesNoStatementBool.map((i) => ({ ...i, value: i.value.toString() })),
@@ -470,7 +470,7 @@ export const getCheckupDetailForm = (
470
470
  {
471
471
  component: 'FormInputSelect',
472
472
  text: 'Avez-vous des responsabilités politiques ?',
473
- value: 'politicalResponsibility',
473
+ value: 'politicalResponsability',
474
474
  required: true,
475
475
  meta: {
476
476
  items: SelectYesNoStatementBool.map((i) => ({ ...i, value: i.value.toString() })),
@@ -32,3 +32,17 @@ const exerciceNumber = (endDate: Date, exerciceList: IExercice[]): number => {
32
32
  };
33
33
 
34
34
  export { exerciceNumber, isExerciceAfterRecoveryDate };
35
+
36
+ /**
37
+ * Compute the real number of months in an exercice, inclusive of the last day.
38
+ * For accounting correctness, we include the end day in the diff.
39
+ *
40
+ * @param startDate - Exercice start date
41
+ * @param endDate - Exercice end date
42
+ * @returns Number of months in the exercice
43
+ */
44
+ export const getNbExerciceMonths = (startDate: Date, endDate: Date): number => {
45
+ const start = dayjs(startDate);
46
+ const end = dayjs(endDate).add(1, 'day');
47
+ return Math.round(end.diff(start, 'months', true));
48
+ };
@@ -462,12 +462,12 @@ export function getCerfa3310Century23Payload(
462
462
  ),
463
463
  ) + (payload?.vatControl?.deducted?.other ?? 0);
464
464
 
465
- const report =
465
+ const isNil = payload.isNil === true;
466
+ const report = isNil ? 0 :
466
467
  (payload.vat?.deductible?.toReport && payload.vat?.deductible?.toReport >= 0
467
468
  ? _round(payload.vat?.deductible?.toReport ?? 0)
468
469
  : (payload.previousVatDeclaration?.credit?.toReport ?? 0)) + (payload?.vatControl?.deducted?.reported ?? 0);
469
470
  const coefficient = _round(payload.vat?.deductible?.coefficient ?? 100, 2);
470
- const isNil = payload.isNil === true;
471
471
  const isHolidayDeposit = payload.isHolidayDeposit === true;
472
472
 
473
473
  const sumToAdd =
@@ -1048,7 +1048,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1048
1048
  tag: 'Valeur',
1049
1049
  isMultiple: false,
1050
1050
  description:
1051
- "MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid imposables en France, base hors taxe",
1051
+ 'MOA Livraisons d\'electricité, de gaz naturel, de chaleur ou de froid imposables en France, base hors taxe',
1052
1052
  value: data.taxedOperations.energyDelivery,
1053
1053
  },
1054
1054
  {
@@ -1056,7 +1056,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1056
1056
  tag: 'Valeur',
1057
1057
  isMultiple: false,
1058
1058
  description:
1059
- "MOA Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France, art 283-1 du CGI",
1059
+ 'MOA Achats de biens ou de prestations de services réalisés auprès d\'un assujetti non établi en France, art 283-1 du CGI',
1060
1060
  value: data.taxedOperations.purchaseOfServicesNotInFrance,
1061
1061
  },
1062
1062
  {
@@ -1105,7 +1105,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1105
1105
  key: 'DC',
1106
1106
  tag: 'Valeur',
1107
1107
  isMultiple: false,
1108
- description: "MOA Livraisons intracommunautaires à destination d'une personne assujettie 100077",
1108
+ description: 'MOA Livraisons intracommunautaires à destination d\'une personne assujettie 100077',
1109
1109
  value: data.untaxedOperations.intracommunityDelivery,
1110
1110
  },
1111
1111
  {
@@ -1127,7 +1127,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1127
1127
  tag: 'Valeur',
1128
1128
  isMultiple: false,
1129
1129
  description:
1130
- "MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid non imposables en France 100122",
1130
+ 'MOA Livraisons d\'electricité, de gaz naturel, de chaleur ou de froid non imposables en France 100122',
1131
1131
  value: data.untaxedOperations.energyDelivery,
1132
1132
  },
1133
1133
  {
@@ -1334,7 +1334,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1334
1334
  tag: 'Valeur',
1335
1335
  isMultiple: false,
1336
1336
  description:
1337
- "PCD Pourcentage de déduction applicable pour la période s'il est différent de 100% Valeur entière et au plus 2 décimales",
1337
+ 'PCD Pourcentage de déduction applicable pour la période s\'il est différent de 100% Valeur entière et au plus 2 décimales',
1338
1338
  value:
1339
1339
  isDefined(data.vat.deductible.coefficient) && data.vat.deductible.coefficient !== 100
1340
1340
  ? data.vat.deductible.coefficient
@@ -1365,7 +1365,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1365
1365
  key: 'HJ',
1366
1366
  tag: 'Valeur',
1367
1367
  isMultiple: false,
1368
- description: "CCITBX Mention membre d'un groupe Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
1368
+ description: 'CCITBX Mention membre d\'un groupe Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =',
1369
1369
  value: null,
1370
1370
  },
1371
1371
  {
@@ -1571,7 +1571,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1571
1571
  tag: 'Valeur',
1572
1572
  isMultiple: false,
1573
1573
  description:
1574
- "CCITBX Mention de qualité de représentant d'un assujetti unique Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
1574
+ 'CCITBX Mention de qualité de représentant d\'un assujetti unique Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =',
1575
1575
  value: null,
1576
1576
  },
1577
1577
  {
@@ -1592,7 +1592,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1592
1592
  key: 'MD',
1593
1593
  tag: 'Valeur',
1594
1594
  isMultiple: false,
1595
- description: "MOA Retenue de TVA sur droits d'auteur taxe due",
1595
+ description: 'MOA Retenue de TVA sur droits d\'auteur taxe due',
1596
1596
  value: data.vat.otherRate.author.tax,
1597
1597
  },
1598
1598
  {
@@ -1613,7 +1613,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
1613
1613
  key: 'MG',
1614
1614
  tag: 'Valeur',
1615
1615
  isMultiple: false,
1616
- description: "MOA Retenue de TVA sur droits d'auteur base HT",
1616
+ description: 'MOA Retenue de TVA sur droits d\'auteur base HT',
1617
1617
  value: data.vat.otherRate.oldRate.base,
1618
1618
  },
1619
1619
  {
@@ -1799,12 +1799,12 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1799
1799
  type: 'number',
1800
1800
  },
1801
1801
  {
1802
- label: "B3 - Achats d'electricité, de gaz naturel, de chaleur ou de froid imposables en France",
1802
+ label: 'B3 - Achats d\'electricité, de gaz naturel, de chaleur ou de froid imposables en France',
1803
1803
  key: 'taxedOperations.energyDelivery',
1804
1804
  type: 'number',
1805
1805
  },
1806
1806
  {
1807
- label: "B4 - Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France",
1807
+ label: 'B4 - Achats de biens ou de prestations de services réalisés auprès d\'un assujetti non établi en France',
1808
1808
  key: 'taxedOperations.regularizations',
1809
1809
  type: 'number',
1810
1810
  },
@@ -1834,7 +1834,7 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1834
1834
  type: 'number',
1835
1835
  },
1836
1836
  {
1837
- label: "F3 - Livraisons d'électricité, de gaz naturel, de chaleur ou de froid non imposables en France",
1837
+ label: 'F3 - Livraisons d\'électricité, de gaz naturel, de chaleur ou de froid non imposables en France',
1838
1838
  key: 'untaxedOperations.energyDelivery',
1839
1839
  type: 'number',
1840
1840
  },
@@ -1864,7 +1864,7 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1864
1864
  type: 'number',
1865
1865
  },
1866
1866
  {
1867
- label: "F9 - Opérations internes réalisées entre membres d'un assujetti unique",
1867
+ label: 'F9 - Opérations internes réalisées entre membres d\'un assujetti unique',
1868
1868
  key: 'untaxedOperations.internalUniq',
1869
1869
  type: 'number',
1870
1870
  },
@@ -1951,7 +1951,7 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
1951
1951
  type: 'number',
1952
1952
  },
1953
1953
  {
1954
- label: "29 - Taxes assimilées calculées sur l'annexe n° 3310 A",
1954
+ label: '29 - Taxes assimilées calculées sur l\'annexe n° 3310 A',
1955
1955
  key: 'credit.assimiledTaxes',
1956
1956
  type: 'number',
1957
1957
  },