@silexpert/core 0.4.129 → 0.4.130

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 (112) hide show
  1. package/es/api/resources/Vehicle.d.ts +6 -6
  2. package/es/api/resources/Vehicle.d.ts.map +1 -1
  3. package/es/api/resources/Vehicle.js +18 -10
  4. package/es/api/resources/Vehicle.js.map +1 -1
  5. package/es/api/resources.d.ts +2 -0
  6. package/es/api/resources.d.ts.map +1 -1
  7. package/es/api/resources.js +2 -0
  8. package/es/api/resources.js.map +1 -1
  9. package/es/types/Enum/AnswerTypeValue.d.ts +15 -2
  10. package/es/types/Enum/AnswerTypeValue.d.ts.map +1 -1
  11. package/es/types/Enum/AnswerTypeValue.js +13 -0
  12. package/es/types/Enum/AnswerTypeValue.js.map +1 -1
  13. package/es/types/Enum/BalanceSheetQuestion.d.ts +92 -2
  14. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  15. package/es/types/Enum/BalanceSheetQuestion.js +90 -0
  16. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  17. package/es/types/Enum/BalanceSheetQuestionWording.d.ts +3 -1
  18. package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  19. package/es/types/Enum/BalanceSheetQuestionWording.js +2 -0
  20. package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  21. package/es/types/Enum/Ged.d.ts +1 -0
  22. package/es/types/Enum/Ged.d.ts.map +1 -1
  23. package/es/types/Enum/Ged.js +1 -1
  24. package/es/types/Enum/Ged.js.map +1 -1
  25. package/es/types/Enum/GlobalRegime.d.ts.map +1 -1
  26. package/es/types/Enum/GlobalRegime.js +38 -30
  27. package/es/types/Enum/GlobalRegime.js.map +1 -1
  28. package/es/types/Enum/Vehicle.d.ts +110 -0
  29. package/es/types/Enum/Vehicle.d.ts.map +1 -1
  30. package/es/types/Enum/Vehicle.js +193 -0
  31. package/es/types/Enum/Vehicle.js.map +1 -1
  32. package/es/types/Interface/api/cerfa/2033.d.ts +5 -4
  33. package/es/types/Interface/api/cerfa/2033.d.ts.map +1 -1
  34. package/es/types/Interface/api/cerfa/2033.js.map +1 -1
  35. package/es/types/Interface/api/cerfa/2035.d.ts +45 -43
  36. package/es/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  37. package/es/types/Interface/api/cerfa/2035.js +1 -5
  38. package/es/types/Interface/api/cerfa/2035.js.map +1 -1
  39. package/es/types/Interface/api/cerfa/2065.d.ts +3 -4
  40. package/es/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  41. package/es/types/Interface/api/cerfa/2065.js.map +1 -1
  42. package/es/types/Interface/api/cerfa/2572.d.ts +3 -3
  43. package/es/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  44. package/es/types/Interface/api/cerfa/2572.js.map +1 -1
  45. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +4 -3
  46. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
  47. package/es/types/Interface/api/cerfa/CreateCerfa.js +1 -0
  48. package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  49. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +13 -1
  50. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  51. package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  52. package/es/types/Interface/api/cerfa/Utils.d.ts +56 -0
  53. package/es/types/Interface/api/cerfa/Utils.d.ts.map +1 -0
  54. package/es/types/Interface/api/cerfa/Utils.js +2 -0
  55. package/es/types/Interface/api/cerfa/Utils.js.map +1 -0
  56. package/es/types/Interface/api/immobilization/ReadFormattedImmobilization.d.ts +10 -0
  57. package/es/types/Interface/api/immobilization/ReadFormattedImmobilization.d.ts.map +1 -1
  58. package/es/types/Interface/api/immobilization/ReadFormattedImmobilization.js.map +1 -1
  59. package/es/types/Interface/api/registration/CreateRegistration.d.ts +1 -2
  60. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  61. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  62. package/es/types/Interface/models/IApiError.d.ts +2 -1
  63. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  64. package/es/types/Interface/models/IApiError.js +2 -0
  65. package/es/types/Interface/models/IApiError.js.map +1 -1
  66. package/js/api/resources/Vehicle.js +23 -10
  67. package/js/api/resources/Vehicle.js.map +1 -1
  68. package/js/api/resources.js +4 -1
  69. package/js/api/resources.js.map +1 -1
  70. package/js/types/Enum/AnswerTypeValue.js +14 -0
  71. package/js/types/Enum/AnswerTypeValue.js.map +1 -1
  72. package/js/types/Enum/BalanceSheetQuestion.js +91 -0
  73. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  74. package/js/types/Enum/BalanceSheetQuestionWording.js +2 -0
  75. package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  76. package/js/types/Enum/Ged.js +2 -2
  77. package/js/types/Enum/Ged.js.map +1 -1
  78. package/js/types/Enum/GlobalRegime.js +38 -27
  79. package/js/types/Enum/GlobalRegime.js.map +1 -1
  80. package/js/types/Enum/Vehicle.js +375 -0
  81. package/js/types/Enum/Vehicle.js.map +1 -1
  82. package/js/types/Interface/api/cerfa/2033.js.map +1 -1
  83. package/js/types/Interface/api/cerfa/2035.js +1 -3
  84. package/js/types/Interface/api/cerfa/2035.js.map +1 -1
  85. package/js/types/Interface/api/cerfa/2065.js.map +1 -1
  86. package/js/types/Interface/api/cerfa/2572.js.map +1 -1
  87. package/js/types/Interface/api/cerfa/CreateCerfa.js +12 -0
  88. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  89. package/js/types/Interface/api/cerfa/Utils.js +6 -0
  90. package/js/types/Interface/api/cerfa/Utils.js.map +1 -0
  91. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  92. package/js/types/Interface/models/IApiError.js +3 -1
  93. package/js/types/Interface/models/IApiError.js.map +1 -1
  94. package/package.json +1 -1
  95. package/ts/api/resources/Vehicle.ts +21 -12
  96. package/ts/api/resources.ts +2 -0
  97. package/ts/types/Enum/AnswerTypeValue.ts +14 -0
  98. package/ts/types/Enum/BalanceSheetQuestion.ts +91 -0
  99. package/ts/types/Enum/BalanceSheetQuestionWording.ts +3 -0
  100. package/ts/types/Enum/Ged.ts +1 -1
  101. package/ts/types/Enum/GlobalRegime.ts +38 -30
  102. package/ts/types/Enum/Vehicle.ts +203 -1
  103. package/ts/types/Interface/api/cerfa/2033.ts +6 -4
  104. package/ts/types/Interface/api/cerfa/2035.ts +43 -45
  105. package/ts/types/Interface/api/cerfa/2065.ts +3 -4
  106. package/ts/types/Interface/api/cerfa/2572.ts +3 -3
  107. package/ts/types/Interface/api/cerfa/CreateCerfa.ts +4 -3
  108. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +14 -1
  109. package/ts/types/Interface/api/cerfa/Utils.ts +61 -0
  110. package/ts/types/Interface/api/immobilization/ReadFormattedImmobilization.ts +12 -1
  111. package/ts/types/Interface/api/registration/CreateRegistration.ts +1 -2
  112. package/ts/types/Interface/models/IApiError.ts +4 -0
@@ -4,4 +4,206 @@ export enum VehicleCerfaFuel {
4
4
  ESSENCE_95_98 = 'super sans plomb',
5
5
  GAS = 'GPL',
6
6
  ELECTRIC = 'électrique',
7
- }
7
+ }
8
+
9
+ export enum VehiclePower {
10
+ POWER_1 = 1,
11
+ POWER_2 = 2,
12
+ POWER_3 = 3,
13
+ POWER_4 = 4,
14
+ POWER_5 = 5,
15
+ POWER_6 = 6,
16
+ POWER_7_PLUS = 7,
17
+ }
18
+
19
+ export type VehiclePowerList = { text: string, value: VehiclePower }[];
20
+
21
+ export const vehiclePowerList: VehiclePowerList = [
22
+ { text: '1', value: VehiclePower.POWER_1 },
23
+ { text: '2', value: VehiclePower.POWER_2 },
24
+ { text: '3', value: VehiclePower.POWER_3 },
25
+ { text: '4', value: VehiclePower.POWER_4 },
26
+ { text: '5', value: VehiclePower.POWER_5 },
27
+ { text: '6', value: VehiclePower.POWER_6 },
28
+ { text: '7+', value: VehiclePower.POWER_7_PLUS },
29
+ ];
30
+
31
+ export enum CarType {
32
+ CAM = 'CAM',
33
+ CL = 'CL',
34
+ CTTE = 'CTTE',
35
+ CYCL = 'CYCL',
36
+ MAGA = 'MAGA',
37
+ MIAR = 'MIAR',
38
+ MTL = 'MTL',
39
+ MTT1 = 'MTT1',
40
+ MTT2 = 'MTT2',
41
+ QM = 'QM',
42
+ REA = 'REA',
43
+ REM = 'REM',
44
+ RESP = 'RESP',
45
+ RETC = 'RETC',
46
+ SRAT = 'SRAT',
47
+ SREA = 'SREA',
48
+ SREM = 'SREM',
49
+ SRSP = 'SRSP',
50
+ SRTC = 'SRTC',
51
+ TCP = 'TCP',
52
+ TM = 'TM',
53
+ TRA = 'TRA',
54
+ TRR = 'TRR',
55
+ VASP = 'VASP',
56
+ VP = 'VP',
57
+ }
58
+
59
+ export type CarTypeList = { text: string, value: CarType }[];
60
+
61
+ export const carTypeList: CarTypeList = [
62
+ { text: 'Camions (véhicules d\'un PTAC supérieur à 3,5 tonnes autres que les tracteurs routiers) - CAM', value: CarType.CAM },
63
+ { text: 'Cyclomoteurs à deux roues ou cyclomoteurs non carrossés à trois roues - CL', value: CarType.CL },
64
+ { text: 'Camionnettes (véhicules d\'un PTAC inférieur ou égal à 3 500 kg autres que les tracteurs routiers) - CTTE', value: CarType.CTTE },
65
+ { text: 'Cyclomoteurs à trois roues - CYCL', value: CarType.CYCL },
66
+ { text: 'Machines agricoles automotrices - MAGA', value: CarType.MAGA },
67
+ { text: 'Machines et instruments remorqués - MIAR', value: CarType.MIAR },
68
+ { text: 'Motocyclettes légères - MTL', value: CarType.MTL },
69
+ { text: 'Motocyclettes dont la puissance maximale nette CE est inférieure ou égale à 25 kW avec un rapport puissance /poids ne dépasse pas 0,16 kW/kg - MTT1', value: CarType.MTT1 },
70
+ { text: 'Autres motocyclettes - MTTA', value: CarType.MTT2 },
71
+ { text: 'Quadricycles à moteur - QM', value: CarType.QM },
72
+ { text: 'Remorques agricoles - REA', value: CarType.REA },
73
+ { text: 'Remorques routières - REM', value: CarType.REM },
74
+ { text: 'Remorques spécialisées - RESP', value: CarType.RESP },
75
+ { text: 'Remorques pour transports combinés - RETC', value: CarType.RETC },
76
+ { text: 'Semi-remorques avant-train - SRAT', value: CarType.SRAT },
77
+ { text: 'Semi-remorques agricoles - SREA', value: CarType.SREA },
78
+ { text: 'Semi-remorques routières - SREM', value: CarType.SREM },
79
+ { text: 'Semi-remorques spécialisées - SRSP', value: CarType.SRSP },
80
+ { text: 'Semi-remorques pour transports combinés - SRTC', value: CarType.SRTC },
81
+ { text: 'Transports en commun de personne - TCP', value: CarType.TCP },
82
+ { text: 'Tricycles à moteur - TM', value: CarType.TM },
83
+ { text: 'Tracteurs agricoles - TRA', value: CarType.TRA },
84
+ { text: 'Tracteurs routiers - TRR', value: CarType.TRR },
85
+ { text: 'Véhicules automoteur spécialisés - VASP', value: CarType.VASP },
86
+ { text: 'Voitures particulières - VP', value: CarType.VP },
87
+ ];
88
+
89
+ export enum SheetMetalType {
90
+ AR_TRAIN = 'AR TRAIN',
91
+ AV_TRAIN = 'AV TRAIN',
92
+ BACHE = 'BACHE',
93
+ BEN_AMO = 'BEN AMO',
94
+ BEN_CERE = 'BEN CERE',
95
+ BENNE = 'BENNE',
96
+ BETAIL = 'BETAIL',
97
+ BETON = 'BETON',
98
+ BREAK = 'BREAK',
99
+ BUS = 'BUS',
100
+ CABR = 'CABR',
101
+ CAR = 'CAR',
102
+ CARB_LEG = 'CARB LEG',
103
+ CARB_LRD = 'CARB LRD',
104
+ CASIERS = '',
105
+ CHAS_CAB = 'CHAS-CAB',
106
+ CI = 'CI',
107
+ CIALE = 'CIALE',
108
+ CIT_ALIM = 'CIT ALIM',
109
+ CIT_ALTD = 'CIT ALTD',
110
+ CIT_BETA = 'CIT BETA',
111
+ CIT_CHIM = 'CIT CHIM',
112
+ CIT_EAU = 'CIT EAU',
113
+ CIT_GAZ = 'CIT GAZ',
114
+ CIT_PULV = 'CIT PULV',
115
+ CIT_VID = 'CIT VID',
116
+ CLTRM = 'CLTRM',
117
+ CLTRP = 'CLTRP',
118
+ CYCLM = 'CYCLM',
119
+ DERIV_VP = 'DERIV VP',
120
+ FG_TD = 'FG TD',
121
+ FOREST = 'FOREST',
122
+ FOURGON = 'FOURGON',
123
+ HANDICAP = 'HANDICAP',
124
+ SPEC = 'SPEC',
125
+ PLATEAU = 'PLATEAU',
126
+ PLSC = 'PLSC',
127
+ PR_REM = 'PR REM',
128
+ PR_SREM = 'PR SREM',
129
+ PTE_BAT = 'PTE BAT',
130
+ PTE_CONT = 'PTE CONT',
131
+ PTE_ENG = 'PTE ENG',
132
+ PTE_FER = 'PTE FER',
133
+ PTE_VOIT = 'PTE VOIT',
134
+ QLEM = 'QLEM',
135
+ QLOMM = 'QLOMM',
136
+ QLOMP = 'QLOMP',
137
+ SAVOYARD = 'SAVOYARD',
138
+ SIDE_CAR = 'SIDE-CAR',
139
+ SOLO = 'SOLO',
140
+ SOLO_SIDE_CAR = 'SOLO-SIDE-CAR',
141
+ TB = 'TB',
142
+ TMM1 = 'TMM1',
143
+ TMM2 = 'TMM2',
144
+ TMP1 = 'TMP1',
145
+ TMP2 = 'TMP2',
146
+ VTTE = 'VTTE',
147
+ }
148
+
149
+ export type SheetMetalTypeList = { text: string, value: SheetMetalType }[];
150
+
151
+ export const sheetMetalTypeList: SheetMetalTypeList = [
152
+ { text: 'Arrière-train routier - AR TRAIN', value: SheetMetalType.AR_TRAIN },
153
+ { text: 'Avant-train routier - AV TRAIN', value: SheetMetalType.AV_TRAIN },
154
+ { text: 'Fourgon bâché avec parois rigides - BACHE', value: SheetMetalType.BACHE },
155
+ { text: 'Bennes amovibles - BEN AMO', value: SheetMetalType.BEN_AMO },
156
+ { text: 'Bennes céréalières - BEN CERE', value: SheetMetalType.BEN_CERE },
157
+ { text: 'Bennes dont le déchargement est effectué mécaniquement - BENNE', value: SheetMetalType.BENNE },
158
+ { text: 'Bétaillère - BETAIL', value: SheetMetalType.BETAIL },
159
+ { text: 'Bétonnière - BETON', value: SheetMetalType.BETON },
160
+ { text: 'Break - BREAK', value: SheetMetalType.BREAK },
161
+ { text: 'Autobus - BUS', value: SheetMetalType.BUS },
162
+ { text: 'Cabriolet - CABR', value: SheetMetalType.CABR },
163
+ { text: 'Autocar - CAR', value: SheetMetalType.CAR },
164
+ { text: 'Citerne à hydrocarbures légers - CARB_LEG', value: SheetMetalType.CARB_LEG },
165
+ { text: 'Citerne à hydrocarbures lourds - CARB_LRD', value: SheetMetalType.CARB_LRD },
166
+ { text: 'Casiers - CASIERS', value: SheetMetalType.CASIERS },
167
+ { text: 'Châssis-cabine - CHAS_CAB', value: SheetMetalType.CHAS_CAB },
168
+ { text: 'Conduite intérieure - CI', value: SheetMetalType.CI },
169
+ { text: 'Commerciale - CIALE', value: SheetMetalType.CIALE },
170
+ { text: 'Citerne à produits alimentaires - CIT_ALIM', value: SheetMetalType.CIT_ALIM },
171
+ { text: 'Citerne à produit alimentaire à température dirigée - CIT_ALTD', value: SheetMetalType.CIT_ALTD },
172
+ { text: 'Citerne pour aliments du bétail - CIT_BETA', value: SheetMetalType.CIT_BETA },
173
+ { text: 'Citerne à produits chimiques - CIT_CHIM', value: SheetMetalType.CIT_CHIM },
174
+ { text: 'Citerne à eau - CIT_EAU', value: SheetMetalType.CIT_EAU },
175
+ { text: 'Citerne à gaz liquéfiés - CIT_GAZ', value: SheetMetalType.CIT_GAZ },
176
+ { text: 'Citerne à produits pulvérulents ou granulaires - CIT_PULV', value: SheetMetalType.CIT_PULV },
177
+ { text: 'Citerne à vidange - CIT_VID', value: SheetMetalType.CIT_VID },
178
+ { text: 'Cyclomoteurs non carrossés à trois roues affectés au transport de marchandises - CLTRM', value: SheetMetalType.CLTRM },
179
+ { text: 'Cyclomoteurs non carrossés à trois roues - CLTRP', value: SheetMetalType.CLTRP },
180
+ { text: 'Cyclomoteurs carrossés à trois roues affectés au transport de marchandises - CYCLM', value: SheetMetalType.CYCLM },
181
+ { text: 'Fourgonnette dérivée de VP - DERIV_VP', value: SheetMetalType.DERIV_VP },
182
+ { text: 'Fourgon à température dirigée - FG_TD', value: SheetMetalType.FG_TD },
183
+ { text: 'Forestier - FOREST', value: SheetMetalType.FOREST },
184
+ { text: 'Fourgon avec parois et toit rigides - FOURGON', value: SheetMetalType.FOURGON },
185
+ { text: 'Handicapés - HANDICAP', value: SheetMetalType.HANDICAP },
186
+ { text: 'Divers (non spécifiée) - SPEC', value: SheetMetalType.SPEC },
187
+ { text: 'Plateau - PLATEAU', value: SheetMetalType.PLATEAU },
188
+ { text: 'Carrosserie à parois latérales souples coulissantes - PLSC', value: SheetMetalType.PLSC },
189
+ { text: 'Pour remorques - PR_REM', value: SheetMetalType.PR_REM },
190
+ { text: 'Pour semi-remorques - PR_SREM', value: SheetMetalType.PR_SREM },
191
+ { text: 'Porte-bateau - PTE_BAT', value: SheetMetalType.PTE_BAT },
192
+ { text: 'Porte-conteneurs ou caisses mobiles ou amovibles - PTE_CONT', value: SheetMetalType.PTE_CONT },
193
+ { text: 'Porte-engins - PTE_ENG', value: SheetMetalType.PTE_ENG },
194
+ { text: 'Porte-fers - PTE_FER', value: SheetMetalType.PTE_FER },
195
+ { text: 'Porte-voitures - PTE_VOIT', value: SheetMetalType.PTE_VOIT },
196
+ { text: 'Quadricycles légers à moteur - QLEM', value: SheetMetalType.QLEM },
197
+ { text: 'Quadricycles lourds à moteur affectés au transport de marchandises - QLOMM', value: SheetMetalType.QLOMM },
198
+ { text: 'Quadricycles lourds à moteur affectés au transport de personnes - QLOMP', value: SheetMetalType.QLOMP },
199
+ { text: 'Savoyardes - SAVOYARD', value: SheetMetalType.SAVOYARD },
200
+ { text: 'Motocyclettes avec side-car intégré (véhicule à trois roues non symétriques) - SIDE_CAR', value: SheetMetalType.SIDE_CAR },
201
+ { text: 'Cyclomoteurs à deux roues (sans side-car) - SOLO', value: SheetMetalType.SOLO },
202
+ { text: 'Motocyclettes avec side-car adjoint - SOLO_SIDE_CAR', value: SheetMetalType.SOLO_SIDE_CAR },
203
+ { text: 'Triqueballe - TB', value: SheetMetalType.TB },
204
+ { text: 'Tricycles de poids à vide ≤ 550 kg et puissance maximale nette CE ≤ 15 kw affectés au transport de marchandises - TMM1', value: SheetMetalType.TMM1 },
205
+ { text: 'Autres tricycles affectés au transport de marchandises - TMM2', value: SheetMetalType.TMM2 },
206
+ { text: 'Tricycles dont le poids à vide n’excède pas 550 kg et dont la puissance maximale nette CE n’excède pas 15 kW affectés au transport de personnes - TMP1', value: SheetMetalType.TMP1 },
207
+ { text: 'Autres tricycles affectés au transport de personnes - TMP2', value: SheetMetalType.TMP2 },
208
+ { text: 'Cyclomoteurs carrossés à trois roues (voiturettes) - VTTE', value: SheetMetalType.VTTE },
209
+ ];
@@ -342,7 +342,6 @@ export class Cerfa2033ApplicationDiverse {
342
342
  }
343
343
 
344
344
  export class Cerfa2033WorkForce {
345
- isNil: boolean;
346
345
  declaration?: {
347
346
  average: number;
348
347
  apprentices: number;
@@ -400,8 +399,8 @@ export interface Cerfa2033 {
400
399
  isNil: boolean;
401
400
  society: Cerfa2033Society;
402
401
  period: {
403
- startDate: Date,
404
- endDate: Date,
402
+ startDate: string,
403
+ endDate: string,
405
404
  endDay: string,
406
405
  endMonth: string,
407
406
  endYear: string,
@@ -434,7 +433,10 @@ export interface Cerfa2033 {
434
433
  diverse: Cerfa2033ApplicationDiverse;
435
434
  workForce: Cerfa2033WorkForce;
436
435
  shareCapital: Cerfa2033ShareCapital;
437
- subsidiaries: { total: number, list: Subsidiarie[], isSubsidiariesNil: boolean };
436
+ subsidiaries: { total: number, list: Subsidiarie[] };
437
+ isPageGNil: boolean;
438
+ isPageFNil: boolean;
439
+ isPageENil: boolean;
438
440
  }
439
441
 
440
442
  export class ParamsGenerate2033 {
@@ -2,7 +2,7 @@ import { IsBoolean, IsOptional } from 'class-validator';
2
2
  import {
3
3
  Subsidiarie, DeterminedResult, AccountingKept, AccreditedOrganization, Vehicle, MoralShareholder, PhysicShareholder,
4
4
  } from './CreateCerfa';
5
- import { ApiProperty, ApiPropertyOptional } from '../../../..';
5
+ import { ApiProperty, ApiPropertyOptional, CerfaAddress } from '../../../..';
6
6
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
7
 
8
8
  /**
@@ -88,6 +88,29 @@ export interface Cerfa2035ProfessionalExpenses {
88
88
  total: number;
89
89
  }
90
90
 
91
+ export interface ResultsDistributionList {
92
+ basicInfos: string;
93
+ managerPartner: boolean;
94
+ slicePercentage: number;
95
+ resultShare: number;
96
+ individualProCharges: number;
97
+ netAmount: number;
98
+ longTermAddedValue: number
99
+ birthdate?: string;
100
+ birthplace?: string;
101
+ birthCountry?: string;
102
+ birthCountryCode: string | null;
103
+ birthDepartment?: string;
104
+ siren?: string;
105
+ fiscalNumber?: string;
106
+ name: string;
107
+ address: string;
108
+ isPhysic: boolean
109
+ city?: string;
110
+ country?: string;
111
+ countryCode?: string;
112
+ }
113
+
91
114
  export interface Cerfa2035Determination {
92
115
  surplus: number;
93
116
  shortTermCapitalGains: number;
@@ -114,6 +137,7 @@ export interface Cerfa2035Determination {
114
137
  amount: number;
115
138
  sectorApprovedDoctors: number;
116
139
  };
140
+ covid: number;
117
141
  total: number;
118
142
  }
119
143
  civilSocietyDeficit: number;
@@ -164,8 +188,8 @@ export interface Cerfa2035MonoEstablishment {
164
188
  benchmarkTurnover: number;
165
189
  groupTurnover: number;
166
190
  workforce: number;
167
- period: { startDate: Date, endDate: Date };
168
- cessationDate: Date;
191
+ period: { startDate: string, endDate: string };
192
+ cessationDate: string;
169
193
  }
170
194
 
171
195
  export interface Cerfa2035ShareCapital {
@@ -180,6 +204,9 @@ export interface Cerfa2035ShareCapital {
180
204
 
181
205
  export interface Cerfa2035 {
182
206
  isNil: boolean;
207
+ isPageENil: boolean;
208
+ isPageFNil: boolean;
209
+ isPageGNil: boolean;
183
210
  society: Cerfa2035Society;
184
211
  immobilizations: number;
185
212
  professionalRecipes: Cerfa2035ProfessionalRecipes;
@@ -188,7 +215,7 @@ export interface Cerfa2035 {
188
215
  valueAddedTax: Cerfa2035ValueAddedTax;
189
216
  territorialContribution: number;
190
217
  kilometricAllowances: Cerfa2035KilometricAllowance;
191
- period: { startDate: Date, endDate: Date, months: string };
218
+ period: { startDate: string, endDate: string, months: string };
192
219
  shareCapital: Cerfa2035ShareCapital;
193
220
  subsidiaries: { total: number, list: Subsidiarie[] };
194
221
  annex?: {
@@ -207,29 +234,24 @@ export interface Cerfa2035WithSuites {
207
234
  phone: string;
208
235
  name: string;
209
236
  change: {
210
- st: string;
211
- nd: string;
237
+ st: CerfaAddress;
212
238
  },
213
239
  declarantAddress: string;
240
+ declarantAddressDetails: CerfaAddress;
214
241
  activityType: string;
215
242
  activityStartDate: string;
216
243
  privateSocietyAddress: string;
217
244
  civilSocietyAddress: string;
218
245
  informationsStartingPeriod: string;
219
246
  informationsEndingPeriod: string;
220
- address: {
221
- st: string;
222
- nd: string;
223
- city: string;
224
- country: string;
225
- countryCode: string | null;
226
- },
247
+ address: CerfaAddress,
227
248
  secondaryPracticeAddress: string;
249
+ secondaryPracticeAddressList: CerfaAddress[]
228
250
  },
229
251
  taxation: {
230
252
  profitResult: number;
231
253
  deficitResult: number;
232
- exemptCharges: number;
254
+ exemptCharges: string;
233
255
  depreciationCharges: number;
234
256
  addedValueProducts: number;
235
257
  portfolioCapitalIncome: number;
@@ -253,8 +275,8 @@ export interface Cerfa2035WithSuites {
253
275
  productsAddedValue: { duodecies: number; }
254
276
  chargesDeprecatedValue: { duodecies: number; };
255
277
  accountantInfos: number;
256
- committeeInfos: number;
257
- certifiedAssociation: number;
278
+ committeeInfos: string;
279
+ certifiedAssociation: string;
258
280
  serviceProvider: number;
259
281
  ecf: boolean;
260
282
  declarantSignature: string;
@@ -265,7 +287,7 @@ export interface Cerfa2035WithSuites {
265
287
  yes: boolean;
266
288
  no: boolean;
267
289
  }
268
- certifiedAccountingProfessionnal: string;
290
+ certifiedAccountingProfessionnal: boolean;
269
291
  aaOrOmga: boolean;
270
292
  aaOmgaAgreementNumber: string;
271
293
  longTermExemptAddedValue151: number;
@@ -329,7 +351,6 @@ export interface Cerfa2035WithSuites {
329
351
  handoverPrice: number;
330
352
  shortTermValue: number;
331
353
  longTermValue: number;
332
- longTermSpread: number;
333
354
  }>,
334
355
  shortTermExemptArt151: number;
335
356
  shortTermExemptArt151A: number;
@@ -338,7 +359,8 @@ export interface Cerfa2035WithSuites {
338
359
  longTermExemptArt151A: number;
339
360
  longTermExemptArt238: number;
340
361
  longTermExemptArt151B: number;
341
- shortTermValue: { toReport: number }
362
+ shortTermValue: { toReport: number };
363
+ longTermValue: { toReport: number };
342
364
  longTermSpread: number;
343
365
  shortTermSpread: number;
344
366
  },
@@ -358,28 +380,7 @@ export interface Cerfa2035WithSuites {
358
380
  longTermAddedValue: {
359
381
  annexTotal: number
360
382
  }
361
- list: Array<{
362
- basicInfos: string;
363
- managerPartner: boolean;
364
- slicePercentage: number;
365
- resultShare: number;
366
- individualProCharges: number;
367
- netAmount: number;
368
- longTermAddedValue: number
369
- birthdate?: string;
370
- birthplace?: string;
371
- birthCountry?: string;
372
- birthCountryCode: string | null;
373
- birthDepartment?: string;
374
- siren?: string;
375
- fiscalNumber?: string;
376
- name: string;
377
- address: string;
378
- isPhysic: boolean
379
- city?: string;
380
- country?: string;
381
- countryCode?: string;
382
- }>
383
+ list: Array<ResultsDistributionList>
383
384
  }
384
385
  name: string;
385
386
  siret: string;
@@ -405,10 +406,7 @@ export class ParamsGenerate2035FullDocument {
405
406
  isTest?: boolean;
406
407
 
407
408
  @ApiProperty()
408
- cerfa2035?: ParamsGenerate2035;
409
-
410
- @ApiProperty()
411
- cerfa2035WithSuites?: ParamsGenerate2035WithSuites;
409
+ cerfa2035?: ParamsGenerate2035 & ParamsGenerate2035WithSuites;
412
410
  }
413
411
 
414
412
  export type ParamsGenerate2035WithSuites = Record<string, unknown>;
@@ -38,8 +38,8 @@ export interface Cerfa2065 {
38
38
  isNil?: boolean;
39
39
  society: Cerfa2065Society;
40
40
  period: {
41
- startDate: Date,
42
- endDate: Date,
41
+ startDate: string,
42
+ endDate: string,
43
43
  months: string;
44
44
  };
45
45
  isSimplifiedRegime: boolean;
@@ -53,8 +53,7 @@ export interface Cerfa2065 {
53
53
  siret: string | null;
54
54
  activity: string;
55
55
  hasActivityChanged: boolean;
56
- benefit31: number;
57
- benefit28: number;
56
+ benefitNormalRate: number;
58
57
  deficit: number;
59
58
  benefit15: number;
60
59
  resultNet: number;
@@ -117,9 +117,9 @@ type Summary = {
117
117
  type Payment = {
118
118
  date: number;
119
119
  phone: number;
120
- isTransfer: number;
121
- isCheck: number;
122
- isElectronicPayment: number;
120
+ isTransfer: boolean;
121
+ isCheck: boolean;
122
+ isElectronicPayment: boolean;
123
123
  contribution: number;
124
124
  limitDate: number;
125
125
  amountToInpute: number;
@@ -6,6 +6,7 @@ export * from './2035';
6
6
  export * from './2050';
7
7
  export * from './2065';
8
8
  export * from './2572';
9
+ export * from './Utils';
9
10
 
10
11
  export interface DeterminedResult {
11
12
  incomeExpenditure: boolean; // d'après les règles « recettes-dépenses »
@@ -17,7 +18,7 @@ export type CerfaCivility = 'M' | 'Mme' | 'Mlle';
17
18
 
18
19
  export interface AccreditedOrganization {
19
20
  isMember: boolean;
20
- memberSince: Date;
21
+ memberSince: string;
21
22
  numberOfEmployees: string;
22
23
  netWagesReceived: number; // Salaires nets perçus
23
24
  }
@@ -41,7 +42,7 @@ export interface MoralShareholder {
41
42
  percentShares: number;
42
43
  shares: number;
43
44
  address: {
44
- number: number | undefined;
45
+ number: string | undefined;
45
46
  street: string;
46
47
  zipCode: string;
47
48
  city: string;
@@ -80,7 +81,7 @@ export interface Subsidiarie {
80
81
  siren?: string;
81
82
  percentShares: number;
82
83
  address: {
83
- number: number;
84
+ number: string;
84
85
  street: string;
85
86
  zipCode: string;
86
87
  city: string;
@@ -1,5 +1,6 @@
1
1
  import { CerfaType } from '../../../Enum/CerfaType';
2
2
  import { QuestionWording } from '../../..';
3
+ import { Question } from '../../../Enum/BalanceSheetQuestion';
3
4
 
4
5
  export interface ReadCerfaToComplete {
5
6
  declaration: CerfaType;
@@ -10,6 +11,18 @@ export interface ReadCerfaDocument {
10
11
  payload: any;
11
12
  }
12
13
 
14
+ export interface CerfaAddress {
15
+ number: string;
16
+ street: string;
17
+ zipCode: string;
18
+ city: string;
19
+ country: {
20
+ name: string | null,
21
+ code: string | null
22
+ }
23
+ full: string;
24
+ }
25
+
13
26
  export type CerfaAnswers = {
14
- [key in keyof typeof QuestionWording | 'OTHER_TAX_DEDUCTION_AMOUNT_1' | 'OTHER_TAX_DEDUCTION_AMOUNT_2'| 'OTHER_TAX_DEDUCTION_AMOUNT_3' | 'OTHER_TAX_DEDUCTION_AMOUNT_4'| 'OTHER_TAX_DEDUCTION_AMOUNT_5' | 'OTHER_ADDITION_AMOUNT_1' | 'OTHER_ADDITION_AMOUNT_2' | 'OTHER_ADDITION_AMOUNT_3' | 'OTHER_ADDITION_AMOUNT_4' | 'OTHER_ADDITION_AMOUNT_5' | '39_DECIES' | '39_DECIES_A' | '39_DECIES_B' | '39_DECIES_C' | '39_DECIES_D' | '39_DECIES_E' | '39_DECIES_F' | '39_DECIES_G']: number
27
+ [key in keyof typeof QuestionWording | keyof typeof Question | 'OTHER_TAX_DEDUCTION_AMOUNT_1' | 'OTHER_TAX_DEDUCTION_AMOUNT_2'| 'OTHER_TAX_DEDUCTION_AMOUNT_3' | 'OTHER_TAX_DEDUCTION_AMOUNT_4'| 'OTHER_TAX_DEDUCTION_AMOUNT_5' | 'OTHER_ADDITION_AMOUNT_1' | 'OTHER_ADDITION_AMOUNT_2' | 'OTHER_ADDITION_AMOUNT_3' | 'OTHER_ADDITION_AMOUNT_4' | 'OTHER_ADDITION_AMOUNT_5' | '39_DECIES' | '39_DECIES_A' | '39_DECIES_B' | '39_DECIES_C' | '39_DECIES_D' | '39_DECIES_E' | '39_DECIES_F' | '39_DECIES_G']: any
15
28
  };
@@ -0,0 +1,61 @@
1
+ export interface PartnersLegalEntity {
2
+ address: CerfaAddressFromQuestion;
3
+ holdingPercent: number;
4
+ name: string;
5
+ shareNumber: number;
6
+ siren: string;
7
+ legalForm: string;
8
+ }
9
+
10
+ export interface PartnersNaturalPerson {
11
+ address: CerfaAddressFromQuestion;
12
+ birthDate: string;
13
+ birthDepartment: string;
14
+ birthPlace: string;
15
+ firstname: string;
16
+ holdingPercent: number;
17
+ idBirthCountry: number;
18
+ idCivility: number;
19
+ individualProfessionalExpenses: number;
20
+ isOwner: boolean;
21
+ lastname: string;
22
+ marriedName: string;
23
+ shareNumber: number;
24
+ taxNumber: string;
25
+ }
26
+
27
+ export interface CerfaPartners {
28
+ legalEntities: PartnersLegalEntity[];
29
+ naturalPersons: PartnersNaturalPerson[];
30
+ }
31
+
32
+ export interface CerfaAddressFromQuestion {
33
+ city: string;
34
+ idCountry: number;
35
+ number: string;
36
+ street: string;
37
+ zipCode: string;
38
+ }
39
+
40
+ export interface NameAndAddress {
41
+ city: string;
42
+ idCountry: number;
43
+ name: string;
44
+ number: string;
45
+ street: string;
46
+ zipCode: string;
47
+ }
48
+
49
+ export interface Affiliate {
50
+ address: CerfaAddressFromQuestion;
51
+ holdingPercent: number;
52
+ legalForm: string;
53
+ name: string;
54
+ siren: string;
55
+ }
56
+
57
+ export interface OtherActivity {
58
+ legalForm: string;
59
+ name: string;
60
+ salary: number;
61
+ }
@@ -1,5 +1,6 @@
1
1
  import { IImmobilization } from '../../..';
2
2
  import { IAccount } from '../../models/IAccount';
3
+ import { IAccountingEntry } from '../../models/IAccountingEntry';
3
4
 
4
5
  export interface ReadHydratedImmobilization extends IImmobilization {
5
6
  account: Partial<IAccount>
@@ -31,4 +32,14 @@ export interface ReadFormattedImmobilizationsByAccount {
31
32
  totalCurrentEndowment: number,
32
33
  totalEndAmortization: number,
33
34
  totalVnc: number
34
- }
35
+ }
36
+
37
+ export type ReadImmobilizationWithDetails = FormattedImmobilization & {
38
+ vatAmount: number;
39
+ cessionEntries: IAccountingEntry[];
40
+ shortTermValue: number;
41
+ longTermValue: number;
42
+ residualValue: number;
43
+ saleDate: string | null;
44
+ salePrice: number | null;
45
+ };
@@ -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;
@@ -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 {