@silexpert/core 0.4.119 → 0.4.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/es/api/resources/Cerfa.d.ts +2 -2
  2. package/es/api/resources/Cerfa.d.ts.map +1 -1
  3. package/es/api/resources/Cerfa.js.map +1 -1
  4. package/es/api/resources/Tax.d.ts +3 -1
  5. package/es/api/resources/Tax.d.ts.map +1 -1
  6. package/es/api/resources/Tax.js +6 -0
  7. package/es/api/resources/Tax.js.map +1 -1
  8. package/es/types/Enum/Account.d.ts +4 -0
  9. package/es/types/Enum/Account.d.ts.map +1 -1
  10. package/es/types/Enum/Account.js +4 -0
  11. package/es/types/Enum/Account.js.map +1 -1
  12. package/es/types/Enum/AnswerTypeValue.d.ts +15 -1
  13. package/es/types/Enum/AnswerTypeValue.d.ts.map +1 -1
  14. package/es/types/Enum/AnswerTypeValue.js +17 -2
  15. package/es/types/Enum/AnswerTypeValue.js.map +1 -1
  16. package/es/types/Enum/Aspone.d.ts +42 -0
  17. package/es/types/Enum/Aspone.d.ts.map +1 -0
  18. package/es/types/Enum/Aspone.js +48 -0
  19. package/es/types/Enum/Aspone.js.map +1 -0
  20. package/es/types/Enum/BalanceSheetQuestion.d.ts +41 -125
  21. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  22. package/es/types/Enum/BalanceSheetQuestion.js +42 -127
  23. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  24. package/es/types/Enum/BalanceSheetQuestionWording.d.ts +221 -0
  25. package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -0
  26. package/es/types/Enum/BalanceSheetQuestionWording.js +224 -0
  27. package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -0
  28. package/es/types/Enum/GlobalRegime.d.ts.map +1 -1
  29. package/es/types/Enum/GlobalRegime.js +66 -14
  30. package/es/types/Enum/GlobalRegime.js.map +1 -1
  31. package/es/types/Enum/LegalInformation.d.ts +9 -0
  32. package/es/types/Enum/LegalInformation.d.ts.map +1 -0
  33. package/es/types/Enum/LegalInformation.js +10 -0
  34. package/es/types/Enum/LegalInformation.js.map +1 -0
  35. package/es/types/Enum/Prestation.d.ts +7 -1
  36. package/es/types/Enum/Prestation.d.ts.map +1 -1
  37. package/es/types/Enum/Prestation.js +6 -0
  38. package/es/types/Enum/Prestation.js.map +1 -1
  39. package/es/types/Enum/Util.d.ts +4 -0
  40. package/es/types/Enum/Util.d.ts.map +1 -1
  41. package/es/types/Enum/Util.js +5 -0
  42. package/es/types/Enum/Util.js.map +1 -1
  43. package/es/types/Interface/api/aspone/ReadInterchange.d.ts +76 -0
  44. package/es/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -0
  45. package/es/types/Interface/api/aspone/ReadInterchange.js +9 -0
  46. package/es/types/Interface/api/aspone/ReadInterchange.js.map +1 -0
  47. package/es/types/Interface/api/aspone/Util.d.ts +109 -0
  48. package/es/types/Interface/api/aspone/Util.d.ts.map +1 -0
  49. package/es/types/Interface/api/aspone/Util.js +17 -0
  50. package/es/types/Interface/api/aspone/Util.js.map +1 -0
  51. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +5 -3
  52. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
  53. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +27 -4
  54. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  55. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +5 -2
  56. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
  57. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +29 -2
  58. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  59. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +379 -88
  60. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
  61. package/es/types/Interface/api/cerfa/CreateCerfa.js +24 -327
  62. package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  63. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +4 -0
  64. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  65. package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  66. package/es/types/Interface/api/registration/CreateRegistration.d.ts +13 -2
  67. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  68. package/es/types/Interface/api/registration/CreateRegistration.js +20 -4
  69. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  70. package/es/types/Interface/api/registration/DeclareRegistration.d.ts +4 -0
  71. package/es/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -0
  72. package/es/types/Interface/api/registration/DeclareRegistration.js +22 -0
  73. package/es/types/Interface/api/registration/DeclareRegistration.js.map +1 -0
  74. package/es/types/Interface/api/registration/ReadRegistration.d.ts +18 -1
  75. package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  76. package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  77. package/es/types/Interface/api/tax/ReadCompanyTax.d.ts +11 -0
  78. package/es/types/Interface/api/tax/ReadCompanyTax.d.ts.map +1 -0
  79. package/es/types/Interface/api/tax/ReadCompanyTax.js +2 -0
  80. package/es/types/Interface/api/tax/ReadCompanyTax.js.map +1 -0
  81. package/es/types/Interface/api/tax/ReadTax.d.ts +6 -1
  82. package/es/types/Interface/api/tax/ReadTax.d.ts.map +1 -1
  83. package/es/types/Interface/api/tax/ReadTax.js.map +1 -1
  84. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +2 -1
  85. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
  86. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +8 -1
  87. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  88. package/es/types/Interface/models/IApiError.d.ts +1 -0
  89. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  90. package/es/types/Interface/models/IApiError.js +1 -0
  91. package/es/types/Interface/models/IApiError.js.map +1 -1
  92. package/es/types/Interface/models/IBalanceSheetModule.d.ts +7 -4
  93. package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  94. package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  95. package/es/types/Interface/models/IBalanceSheetQuestion.d.ts +1 -0
  96. package/es/types/Interface/models/IBalanceSheetQuestion.d.ts.map +1 -1
  97. package/es/types/Interface/models/IBalanceSheetQuestion.js.map +1 -1
  98. package/es/types/Interface/models/ICountry.d.ts +1 -0
  99. package/es/types/Interface/models/ICountry.d.ts.map +1 -1
  100. package/es/types/Interface/models/ICountry.js.map +1 -1
  101. package/es/types/Interface/models/ISocietySocial.d.ts +2 -2
  102. package/es/types/Interface/models/ISocietySocial.d.ts.map +1 -1
  103. package/es/types/Interface/models/ISocietySocial.js.map +1 -1
  104. package/es/types/index.d.ts +10 -3
  105. package/es/types/index.d.ts.map +1 -1
  106. package/es/types/index.js +10 -3
  107. package/es/types/index.js.map +1 -1
  108. package/js/api/resources/Cerfa.js.map +1 -1
  109. package/js/api/resources/Tax.js +8 -0
  110. package/js/api/resources/Tax.js.map +1 -1
  111. package/js/types/Enum/Account.js +4 -0
  112. package/js/types/Enum/Account.js.map +1 -1
  113. package/js/types/Enum/AnswerTypeValue.js +21 -2
  114. package/js/types/Enum/AnswerTypeValue.js.map +1 -1
  115. package/js/types/Enum/Aspone.js +64 -0
  116. package/js/types/Enum/Aspone.js.map +1 -0
  117. package/js/types/Enum/BalanceSheetQuestion.js +46 -126
  118. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  119. package/js/types/Enum/BalanceSheetQuestionWording.js +238 -0
  120. package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -0
  121. package/js/types/Enum/GlobalRegime.js +68 -21
  122. package/js/types/Enum/GlobalRegime.js.map +1 -1
  123. package/js/types/Enum/LegalInformation.js +16 -0
  124. package/js/types/Enum/LegalInformation.js.map +1 -0
  125. package/js/types/Enum/Prestation.js +6 -0
  126. package/js/types/Enum/Prestation.js.map +1 -1
  127. package/js/types/Enum/Util.js +7 -0
  128. package/js/types/Enum/Util.js.map +1 -1
  129. package/js/types/Interface/api/aspone/ReadInterchange.js +22 -0
  130. package/js/types/Interface/api/aspone/ReadInterchange.js.map +1 -0
  131. package/js/types/Interface/api/aspone/Util.js +38 -0
  132. package/js/types/Interface/api/aspone/Util.js.map +1 -0
  133. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -3
  134. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  135. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +8 -2
  136. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  137. package/js/types/Interface/api/cerfa/CreateCerfa.js +24 -174
  138. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  139. package/js/types/Interface/api/registration/CreateRegistration.js +11 -3
  140. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  141. package/js/types/Interface/api/registration/DeclareRegistration.js +31 -0
  142. package/js/types/Interface/api/registration/DeclareRegistration.js.map +1 -0
  143. package/js/types/Interface/{models/IPrestationSocial.js → api/tax/ReadCompanyTax.js} +1 -1
  144. package/js/types/Interface/{models/IPrestationSocial.js.map → api/tax/ReadCompanyTax.js.map} +1 -1
  145. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +6 -0
  146. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  147. package/js/types/Interface/models/IApiError.js +2 -1
  148. package/js/types/Interface/models/IApiError.js.map +1 -1
  149. package/js/types/index.js +108 -24
  150. package/js/types/index.js.map +1 -1
  151. package/package.json +1 -1
  152. package/ts/api/resources/Cerfa.ts +2 -2
  153. package/ts/api/resources/Tax.ts +9 -1
  154. package/ts/types/Enum/Account.ts +4 -0
  155. package/ts/types/Enum/AnswerTypeValue.ts +16 -0
  156. package/ts/types/Enum/Aspone.ts +46 -0
  157. package/ts/types/Enum/BalanceSheetQuestion.ts +44 -193
  158. package/ts/types/Enum/BalanceSheetQuestionWording.ts +283 -0
  159. package/ts/types/Enum/GlobalRegime.ts +67 -21
  160. package/ts/types/Enum/LegalInformation.ts +8 -0
  161. package/ts/types/Enum/Prestation.ts +6 -0
  162. package/ts/types/Enum/Util.ts +4 -0
  163. package/ts/types/Interface/api/aspone/ReadInterchange.ts +75 -0
  164. package/ts/types/Interface/api/aspone/Util.ts +108 -0
  165. package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +24 -3
  166. package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +26 -2
  167. package/ts/types/Interface/api/cerfa/CreateCerfa.ts +533 -178
  168. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +4 -0
  169. package/ts/types/Interface/api/registration/CreateRegistration.ts +28 -4
  170. package/ts/types/Interface/api/registration/DeclareRegistration.ts +11 -0
  171. package/ts/types/Interface/api/registration/ReadRegistration.ts +19 -1
  172. package/ts/types/Interface/api/tax/ReadCompanyTax.ts +12 -0
  173. package/ts/types/Interface/api/tax/ReadTax.ts +6 -1
  174. package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +7 -1
  175. package/ts/types/Interface/models/IApiError.ts +1 -0
  176. package/ts/types/Interface/models/IBalanceSheetModule.ts +7 -4
  177. package/ts/types/Interface/models/IBalanceSheetQuestion.ts +1 -0
  178. package/ts/types/Interface/models/ICountry.ts +1 -0
  179. package/ts/types/Interface/models/ISocietySocial.ts +2 -2
  180. package/ts/types/index.ts +11 -3
  181. package/es/types/Interface/models/IPrestationSocial.d.ts +0 -7
  182. package/es/types/Interface/models/IPrestationSocial.d.ts.map +0 -1
  183. package/es/types/Interface/models/IPrestationSocial.js +0 -2
  184. package/es/types/Interface/models/IPrestationSocial.js.map +0 -1
  185. package/ts/types/Interface/models/IPrestationSocial.ts +0 -7
@@ -4,14 +4,12 @@ import { FiscalRegime } from './FiscalRegime';
4
4
  import { LegalForm } from './LegalForm';
5
5
  import { ProfitsType } from './ProfitsType';
6
6
  import { TaxSystem } from './TaxSystem';
7
-
8
7
  /** this enum is about all the choices by legalForm for a society a declaration. All choices return multiple informations:
9
8
  * idActivity: the activity of the society (1: Prestataire de services, 2: Commerçant, 3: Profession libérale, 4: Autres)
10
9
  * idTaxSystem: the taxSystem of the society (1: IS, 2:IR, 3: N/A)
11
10
  * profitsType: the type of profits of the society (1: BIC, 2:BNC)
12
11
  * realFiscalRegime: The FiscalRegime of the society (1: RS, 2: RN, 3:NA)
13
12
  */
14
-
15
13
  export type GlobalRegimeTypeChoicesContent = {
16
14
  name: string;
17
15
  idActivity: Activity,
@@ -21,18 +19,15 @@ export type GlobalRegimeTypeChoicesContent = {
21
19
  declaration: number;
22
20
  annexe?: number
23
21
  };
24
-
25
22
  export type GlobalRegimeTypeContent = {
26
23
  name: string;
27
24
  id: number;
28
25
  idLegalForms: number[];
29
26
  choices: GlobalRegimeTypeChoicesContent[]
30
27
  };
31
-
32
28
  export type GlobalRegimeType = {
33
29
  [key: string]: GlobalRegimeTypeContent
34
30
  };
35
-
36
31
  export const GlobalRegime: GlobalRegimeType = {
37
32
  ENTREPRISE_INDIVIDUELLE: {
38
33
  name: 'Entreprise Individuelle',
@@ -40,20 +35,22 @@ export const GlobalRegime: GlobalRegimeType = {
40
35
  idLegalForms: [LegalForm.EI.id],
41
36
  choices: [
42
37
  {
43
- name: 'Artisan - commerçant (BIC - IR - 2031)',
38
+ name: 'Artisan - commerçant (BIC - IR - 2031 + 2033)',
44
39
  idActivity: Activity.COMMERCANT,
45
40
  idTaxSystem: TaxSystem.IR,
46
41
  profitsType: ProfitsType.BIC,
47
- idFiscalRegime: FiscalRegime.NA,
42
+ idFiscalRegime: FiscalRegime.RS,
48
43
  declaration: CerfaType.CERFA_2031,
44
+ annexe: CerfaType.CERFA_2033,
49
45
  },
50
46
  {
51
- name: 'Presta de services (BIC - IR - 2031)',
47
+ name: 'Presta de services (BIC - IR - 2031 + 2050)',
52
48
  idActivity: Activity.PRESTA_SERVICE,
53
49
  idTaxSystem: TaxSystem.IR,
54
50
  profitsType: ProfitsType.BIC,
55
- idFiscalRegime: FiscalRegime.NA,
51
+ idFiscalRegime: FiscalRegime.RN,
56
52
  declaration: CerfaType.CERFA_2031,
53
+ annexe: CerfaType.CERFA_2050,
57
54
  },
58
55
  {
59
56
  name: 'Profession libérale (BNC - IR - 2035)',
@@ -71,19 +68,29 @@ export const GlobalRegime: GlobalRegimeType = {
71
68
  idLegalForms: [LegalForm.EIRL.id],
72
69
  choices: [
73
70
  {
74
- name: 'Artisan - commerçant (BIC - IR - 2031)',
71
+ name: 'Artisan - commerçant (BIC - IR - 2031 + 2033)',
75
72
  idActivity: Activity.COMMERCANT,
76
73
  idTaxSystem: TaxSystem.IR,
77
74
  profitsType: ProfitsType.BIC,
78
- idFiscalRegime: FiscalRegime.NA,
75
+ idFiscalRegime: FiscalRegime.RS,
79
76
  declaration: CerfaType.CERFA_2031,
77
+ annexe: CerfaType.CERFA_2033,
78
+ },
79
+ {
80
+ name: 'Artisan - commerçant (BIC - IR - 2031 + 2050)',
81
+ idActivity: Activity.COMMERCANT,
82
+ idTaxSystem: TaxSystem.IR,
83
+ profitsType: ProfitsType.BIC,
84
+ idFiscalRegime: FiscalRegime.RN,
85
+ declaration: CerfaType.CERFA_2031,
86
+ annexe: CerfaType.CERFA_2050,
80
87
  },
81
88
  {
82
89
  name: 'Profession libérale (BNC - IR - 2035)',
83
90
  idActivity: Activity.PROF_LIB,
84
91
  idTaxSystem: TaxSystem.IR,
85
92
  profitsType: ProfitsType.BNC,
86
- idFiscalRegime: FiscalRegime.NA,
93
+ idFiscalRegime: FiscalRegime.NA, // FIXME: Pas de RS/RN ?
87
94
  declaration: CerfaType.CERFA_2035,
88
95
  },
89
96
  {
@@ -193,12 +200,22 @@ export const GlobalRegime: GlobalRegimeType = {
193
200
  idLegalForms: [LegalForm.EURL.id, LegalForm.SARL.id],
194
201
  choices: [
195
202
  {
196
- name: 'Artisan - commerçant (BIC - IR - 2031)',
203
+ name: 'Artisan - commerçant (BIC - IR - 2031 + 2033)',
197
204
  idActivity: Activity.COMMERCANT,
198
205
  idTaxSystem: TaxSystem.IR,
199
206
  profitsType: ProfitsType.BIC,
200
- idFiscalRegime: FiscalRegime.NA,
207
+ idFiscalRegime: FiscalRegime.RS,
201
208
  declaration: CerfaType.CERFA_2031,
209
+ annexe: CerfaType.CERFA_2033,
210
+ },
211
+ {
212
+ name: 'Artisan - commerçant (BIC - IR - 2031 + 2050)',
213
+ idActivity: Activity.COMMERCANT,
214
+ idTaxSystem: TaxSystem.IR,
215
+ profitsType: ProfitsType.BIC,
216
+ idFiscalRegime: FiscalRegime.RN,
217
+ declaration: CerfaType.CERFA_2031,
218
+ annexe: CerfaType.CERFA_2050,
202
219
  },
203
220
  {
204
221
  name: 'Artisan - commerçant (BIC - IS - Réel simplifié - 2065 && 2033)',
@@ -219,12 +236,22 @@ export const GlobalRegime: GlobalRegimeType = {
219
236
  annexe: CerfaType.CERFA_2050,
220
237
  },
221
238
  {
222
- name: 'Presta de services (BIC - IR - 2031)',
239
+ name: 'Presta de services (BIC - IR - 2031 + 2033)',
223
240
  idActivity: Activity.PRESTA_SERVICE,
224
241
  idTaxSystem: TaxSystem.IR,
225
242
  profitsType: ProfitsType.BIC,
226
- idFiscalRegime: FiscalRegime.NA,
243
+ idFiscalRegime: FiscalRegime.RS,
227
244
  declaration: CerfaType.CERFA_2031,
245
+ annexe: CerfaType.CERFA_2033,
246
+ },
247
+ {
248
+ name: 'Presta de services (BIC - IR - 2031 + 2050)',
249
+ idActivity: Activity.PRESTA_SERVICE,
250
+ idTaxSystem: TaxSystem.IR,
251
+ profitsType: ProfitsType.BIC,
252
+ idFiscalRegime: FiscalRegime.RN,
253
+ declaration: CerfaType.CERFA_2031,
254
+ annexe: CerfaType.CERFA_2050,
228
255
  },
229
256
  {
230
257
  name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
@@ -252,12 +279,22 @@ export const GlobalRegime: GlobalRegimeType = {
252
279
  idLegalForms: [LegalForm.SAS.id, LegalForm.SASU.id],
253
280
  choices: [
254
281
  {
255
- name: 'Artisan - commerçant (BIC - IR - 2031)',
282
+ name: 'Artisan - commerçant (BIC - IR - 2031 + 2033)',
256
283
  idActivity: Activity.COMMERCANT,
257
284
  idTaxSystem: TaxSystem.IR,
258
285
  profitsType: ProfitsType.BIC,
259
- idFiscalRegime: FiscalRegime.NA,
286
+ idFiscalRegime: FiscalRegime.RS,
260
287
  declaration: CerfaType.CERFA_2031,
288
+ annexe: CerfaType.CERFA_2033,
289
+ },
290
+ {
291
+ name: 'Artisan - commerçant (BIC - IR - 2031 + 2050)',
292
+ idActivity: Activity.COMMERCANT,
293
+ idTaxSystem: TaxSystem.IR,
294
+ profitsType: ProfitsType.BIC,
295
+ idFiscalRegime: FiscalRegime.RN,
296
+ declaration: CerfaType.CERFA_2031,
297
+ annexe: CerfaType.CERFA_2050,
261
298
  },
262
299
  {
263
300
  name: 'Artisan - commerçant (BIC - IS - Réel simplifié - 2065 & 2033)',
@@ -278,12 +315,22 @@ export const GlobalRegime: GlobalRegimeType = {
278
315
  annexe: CerfaType.CERFA_2050,
279
316
  },
280
317
  {
281
- name: 'Presta de services (BIC - IR - 2031)',
318
+ name: 'Presta de services (BIC - IR - 2031 + 2033)',
282
319
  idActivity: Activity.PRESTA_SERVICE,
283
320
  idTaxSystem: TaxSystem.IR,
284
321
  profitsType: ProfitsType.BIC,
285
- idFiscalRegime: FiscalRegime.NA,
322
+ idFiscalRegime: FiscalRegime.RS,
286
323
  declaration: CerfaType.CERFA_2031,
324
+ annexe: CerfaType.CERFA_2033,
325
+ },
326
+ {
327
+ name: 'Presta de services (BIC - IR - 2031 + 2050)',
328
+ idActivity: Activity.PRESTA_SERVICE,
329
+ idTaxSystem: TaxSystem.IR,
330
+ profitsType: ProfitsType.BIC,
331
+ idFiscalRegime: FiscalRegime.RN,
332
+ declaration: CerfaType.CERFA_2031,
333
+ annexe: CerfaType.CERFA_2050,
287
334
  },
288
335
  {
289
336
  name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
@@ -336,7 +383,6 @@ export const GlobalRegime: GlobalRegimeType = {
336
383
  idFiscalRegime: FiscalRegime.RS,
337
384
  declaration: CerfaType.CERFA_2065,
338
385
  annexe: CerfaType.CERFA_2033,
339
-
340
386
  },
341
387
  {
342
388
  name: 'Presta de services (BIC - IS - Réel normal - 2065 & 2050)',
@@ -0,0 +1,8 @@
1
+ export enum LegalInformation {
2
+ ADDRESS_NUMBER = '9',
3
+ ADDRESS_STREET = 'AVENUE DU RHIN',
4
+ ADDRESS_ZIP_CODE = '54520',
5
+ ADDRESS_CITY = 'LAXOU',
6
+ ADDRESS_COUNTRY = 'FRANCE',
7
+ ADDRESS_COUNTRY_ISO3166 = 'FR',
8
+ }
@@ -1,6 +1,12 @@
1
1
  export enum Prestation {
2
+ PREVISIONNEL = 6, // à remplacer par 189
3
+ BILAN_INTERMEDIAIRE = 9,
2
4
  TELEDECLARATION = 13,
5
+ BILAN_LIQUIDATION = 22,
3
6
  CESSION_ACTIONS = 51,
7
+ DISSOLUTION_LIQUIDATION_A_DATE_CLOTURE = 61,
8
+ DISSOLUTION_LIQUIDATION_HORS_DATE_CLOTURE = 85,
4
9
  ATTESTATION_NON_REMUNERATION = 91,
5
10
  COMPTA_MICRO = 185,
11
+ BILAN_PREVISIONNEL = 189,
6
12
  }
@@ -2,4 +2,8 @@ export enum YesNoNstState {
2
2
  NO = 0,
3
3
  YES = 1,
4
4
  NOT_SUBJECT_TO = 2,
5
+ }
6
+ export enum ToDoOrDone {
7
+ TO_DO = 'TO_DO',
8
+ DONE = 'DONE',
5
9
  }
@@ -0,0 +1,75 @@
1
+ export type PaymentState = {
2
+ isError: boolean;
3
+ details: string[];
4
+ };
5
+
6
+ type Interchange = {
7
+ name: string |null;
8
+ label: string|null;
9
+ isError: boolean;
10
+ isFinal: boolean;
11
+ date: string|null;
12
+ detailledLabel?: string|null
13
+ };
14
+
15
+ export type InterchangeState = Array<Interchange>;
16
+
17
+ export type InterchangeHistory = Interchange & { stateDetailsHistory: InterchangeState };
18
+
19
+ export class ReadDeclaration {
20
+ idDeclaration: string;
21
+ type: string;
22
+ declarationType: {
23
+ code: string| null;
24
+ label: string | null
25
+ };
26
+ payment: PaymentState;
27
+ dld: any;
28
+ states: InterchangeHistory[];
29
+ }
30
+
31
+ export class ReadInterchange {
32
+ idDeposit: string;
33
+ date: string;
34
+ idInterchange: string;
35
+ history: InterchangeHistory[];
36
+ declarations: ReadDeclaration[];
37
+ }
38
+
39
+ export class RedactorAddress {
40
+ adresseNumero: string;
41
+ adresseType: string | null;
42
+ adresseVoie: string;
43
+ adresseComplement: string;
44
+ adresseCodePostal: string;
45
+ adresseVille: string;
46
+ adresseCodePays: string;
47
+ }
48
+
49
+ export class Redactor {
50
+ siret: string;
51
+ designation: string;
52
+ designationSuite1: string;
53
+ adresse: RedactorAddress;
54
+ referenceDossier: string;
55
+ }
56
+
57
+ type Tag = 'Valeur' | 'AdresseVille' | 'AdresseVoie' | 'AdresseCodePays' | 'AdresseComplement' | 'AdresseCodePostal' | 'AdresseHameau' | 'Telephone' | 'Designation' | 'DesignationSuite1' | 'DesignationSuite2' | 'Identifiant' | 'TexteLibre1' | 'TexteLibre2' | 'DesignationSuite3';
58
+ type Tags = Array<{ description: string; tag: Tag; value: any }>;
59
+
60
+ interface FieldForGeneration {
61
+ tag?: Tag;
62
+ tags?: Tags,
63
+ description?: string;
64
+ key: string;
65
+ value?: any;
66
+ isMultiple: boolean;
67
+ }
68
+
69
+ export interface PayloadForRegistration {
70
+ isTest: boolean;
71
+ redactor: Redactor;
72
+ indebted: any;
73
+ forms: Array<{ name: string; fields: FieldForGeneration[] }>;
74
+ xml: string
75
+ }
@@ -0,0 +1,108 @@
1
+ import { InterchangeHistory, PaymentState, Rof } from '../../..';
2
+
3
+ export class PasswordDigest {
4
+ nonce: string;
5
+ created: string;
6
+ passwordDigest: string;
7
+ }
8
+
9
+ export class WSDL {
10
+ deposit: string;
11
+ monitoring: string;
12
+ }
13
+
14
+ export class AccessKeys {
15
+ login: string;
16
+ password: string;
17
+ loginMB: string;
18
+ passwordMB: string;
19
+ apiKey: string;
20
+ wsdl: WSDL;
21
+ }
22
+
23
+ export class RegistrationParams {
24
+ subject: string;
25
+ idSociety: number;
26
+ file: {
27
+ buffer: Buffer,
28
+ token: string
29
+ };
30
+ forceTestMode: boolean;
31
+ }
32
+
33
+ export class RegistrationResponse {
34
+ status: number;
35
+ response: string;
36
+ depositId: string | null;
37
+ }
38
+
39
+ export class IndebtedIdentification {
40
+ identifiant: string;
41
+ designation: string;
42
+ adresseVoie: string;
43
+ adresseCodePostal: string;
44
+ adresseVille: string;
45
+ adresseCodePays: string;
46
+ rof: Rof;
47
+ }
48
+
49
+ export class StateHistory {
50
+ name: string[];
51
+ label: string[];
52
+ isError: string[];
53
+ isFinal: string[];
54
+ date: string[];
55
+ }
56
+
57
+ export type DeclarationStateHistory = StateHistory & { stateDetailsHistory: Array<{ stateDetail: InterchangeHistory[] }> };
58
+
59
+ export type DeclarationType = { code: string[]; libelle: string[] };
60
+
61
+ export class InterchangeDeclaration {
62
+ interchange: [];
63
+ numInterchangeDestinataire:string[];
64
+ recipient: {
65
+ name: string[];
66
+ type: string[]
67
+ };
68
+ periodStart: string[];
69
+ periodEnd: string[];
70
+ nameDosier: string[];
71
+ numDossier: string[];
72
+ declarationId: string[];
73
+ declarantSiret: string[];
74
+ declarationType: DeclarationType[];
75
+ statesHistory: Array<{ stateHistory: DeclarationStateHistory[] }>;
76
+ dld: any[];
77
+ }
78
+
79
+ export type DeclarationStates = {
80
+ status: number;
81
+ declarationType: {
82
+ code: string| null;
83
+ label: string | null
84
+ }; type: string;
85
+ payment: PaymentState;
86
+ states: InterchangeHistory[],
87
+ dld: any;
88
+ idDeclaration: string|null
89
+ };
90
+ export type InterchangeParsed = Array<{
91
+ interchange: Array<{
92
+ depositId: string[];
93
+ depositDate: string[];
94
+ depositSubject: string[];
95
+ interchangeId: string[];
96
+ numADS: string[];
97
+ adsDate: string[];
98
+ alias: string[];
99
+ version: string[];
100
+ isTest: string[];
101
+ deposantAccount: string[];
102
+ teleProdecure: string[];
103
+ statesHistory: Array<{
104
+ stateHistory: DeclarationStateHistory[]
105
+ }>;
106
+ declarationIds: string[];
107
+ }>
108
+ }>;
@@ -4,16 +4,31 @@ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
5
5
  export class CreateBalanceSheetModuleForm {
6
6
  @ApiPropertyOptional()
7
- inventory?: boolean;
7
+ @IsBoolean()
8
+ @ToBoolean()
9
+ @IsOptional()
10
+ inventory: boolean | null;
8
11
 
9
12
  @ApiPropertyOptional()
10
- loanToDeclare?: boolean;
13
+ @IsBoolean()
14
+ @ToBoolean()
15
+ @IsOptional()
16
+ recoveryImmobilization: boolean | null;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsBoolean()
20
+ @ToBoolean()
21
+ @IsOptional()
22
+ incomeAllocation:boolean | null;
11
23
 
12
24
  // @ApiPropertyOptional()
13
25
  // deadlinerecoveryImmobilization: boolean;
14
26
 
15
27
  @ApiPropertyOptional()
16
- salariesFile?: boolean;
28
+ @IsBoolean()
29
+ @ToBoolean()
30
+ @IsOptional()
31
+ salariesFile?: boolean | null;
17
32
 
18
33
  @ApiPropertyOptional()
19
34
  @IsBoolean()
@@ -63,6 +78,12 @@ export class CreateBalanceSheetModuleForm {
63
78
  @IsOptional()
64
79
  hasCheckedVAT?: boolean | null;
65
80
 
81
+ @ApiPropertyOptional()
82
+ @IsBoolean()
83
+ @ToBoolean()
84
+ @IsOptional()
85
+ hasCheckedCompanyTax?: boolean | null;
86
+
66
87
  @ApiProperty()
67
88
  idExercice: number;
68
89
  }
@@ -4,7 +4,22 @@ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
5
5
  export class UpdateBalanceSheetModuleForm {
6
6
  @ApiPropertyOptional()
7
- inventory: boolean;
7
+ @IsBoolean()
8
+ @ToBoolean()
9
+ @IsOptional()
10
+ inventory: boolean | null;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsBoolean()
14
+ @ToBoolean()
15
+ @IsOptional()
16
+ recoveryImmobilization: boolean | null;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsBoolean()
20
+ @ToBoolean()
21
+ @IsOptional()
22
+ incomeAllocation:boolean | null;
8
23
 
9
24
  @ApiPropertyOptional()
10
25
  loanToDeclare?: boolean;
@@ -37,7 +52,10 @@ export class UpdateBalanceSheetModuleForm {
37
52
  hasProviderInvoiceNotReceived?: boolean | null;
38
53
 
39
54
  @ApiPropertyOptional()
40
- salariesFile?: boolean;
55
+ @IsBoolean()
56
+ @ToBoolean()
57
+ @IsOptional()
58
+ salariesFile?: boolean | null;
41
59
 
42
60
  @ApiPropertyOptional()
43
61
  @IsBoolean()
@@ -63,6 +81,12 @@ export class UpdateBalanceSheetModuleForm {
63
81
  @IsOptional()
64
82
  hasCheckedVAT?: boolean | null;
65
83
 
84
+ @ApiPropertyOptional()
85
+ @IsBoolean()
86
+ @ToBoolean()
87
+ @IsOptional()
88
+ hasCheckedCompanyTax?: boolean | null;
89
+
66
90
  @ApiPropertyOptional()
67
91
  idExercice?: number;
68
92
  }