@silexpert/core 0.4.14 → 0.4.16
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.
- package/es/api/resources/Authenticate.d.ts +9 -0
- package/es/api/resources/Authenticate.d.ts.map +1 -0
- package/es/api/resources/Authenticate.js +7 -0
- package/es/api/resources/Authenticate.js.map +1 -0
- package/es/api/resources/Cerfa.d.ts +10 -0
- package/es/api/resources/Cerfa.d.ts.map +1 -0
- package/es/api/resources/Cerfa.js +12 -0
- package/es/api/resources/Cerfa.js.map +1 -0
- package/es/api/resources/LegalForm.d.ts +6 -0
- package/es/api/resources/LegalForm.d.ts.map +1 -0
- package/es/api/resources/LegalForm.js +7 -0
- package/es/api/resources/LegalForm.js.map +1 -0
- package/es/api/resources/Society.d.ts +3 -1
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +7 -0
- package/es/api/resources/Society.js.map +1 -1
- package/es/api/resources.d.ts +6 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +6 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/DefaultPermissions.d.ts +13 -0
- package/es/types/Enum/DefaultPermissions.d.ts.map +1 -0
- package/es/types/Enum/DefaultPermissions.js +13 -0
- package/es/types/Enum/DefaultPermissions.js.map +1 -0
- package/es/types/Enum/LegalForm.d.ts +1 -0
- package/es/types/Enum/LegalForm.d.ts.map +1 -1
- package/es/types/Enum/LegalForm.js +1 -0
- package/es/types/Enum/LegalForm.js.map +1 -1
- package/es/types/Enum/Vehicle.d.ts +8 -0
- package/es/types/Enum/Vehicle.d.ts.map +1 -0
- package/es/types/Enum/Vehicle.js +9 -0
- package/es/types/Enum/Vehicle.js.map +1 -0
- package/es/types/Enum/VehicleType.d.ts +15 -0
- package/es/types/Enum/VehicleType.d.ts.map +1 -0
- package/es/types/Enum/VehicleType.js +15 -0
- package/es/types/Enum/VehicleType.js.map +1 -0
- package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +292 -0
- package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -0
- package/es/types/Interface/api/cerfa/CreateCerfa.js +113 -0
- package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -0
- package/es/types/Interface/api/society/CreateSociety.d.ts +13 -0
- package/es/types/Interface/api/society/CreateSociety.d.ts.map +1 -0
- package/es/types/Interface/api/society/CreateSociety.js +41 -0
- package/es/types/Interface/api/society/CreateSociety.js.map +1 -0
- package/es/types/Interface/api/society/GetDataSociety.d.ts +5 -0
- package/es/types/Interface/api/society/GetDataSociety.d.ts.map +1 -0
- package/es/types/Interface/api/society/GetDataSociety.js +2 -0
- package/es/types/Interface/api/society/GetDataSociety.js.map +1 -0
- package/es/types/Interface/api/society/LegalFormSiren.d.ts +6 -0
- package/es/types/Interface/api/society/LegalFormSiren.d.ts.map +1 -0
- package/es/types/Interface/api/society/LegalFormSiren.js +2 -0
- package/es/types/Interface/api/society/LegalFormSiren.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +3 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +3 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/index.d.ts +7 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +8 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/objectUtils/overwrite.d.ts.map +1 -1
- package/es/utils/objectUtils/overwrite.js.map +1 -1
- package/js/api/resources/Authenticate.js +18 -0
- package/js/api/resources/Authenticate.js.map +1 -0
- package/js/api/resources/Cerfa.js +23 -0
- package/js/api/resources/Cerfa.js.map +1 -0
- package/js/api/resources/LegalForm.js +18 -0
- package/js/api/resources/LegalForm.js.map +1 -0
- package/js/api/resources/Society.js +11 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/api/resources.js +10 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/DefaultPermissions.js +18 -0
- package/js/types/Enum/DefaultPermissions.js.map +1 -0
- package/js/types/Enum/LegalForm.js +1 -0
- package/js/types/Enum/LegalForm.js.map +1 -1
- package/js/types/Enum/Vehicle.js +15 -0
- package/js/types/Enum/Vehicle.js.map +1 -0
- package/js/types/Enum/VehicleType.js +20 -0
- package/js/types/Enum/VehicleType.js.map +1 -0
- package/js/types/Interface/api/cerfa/CreateCerfa.js +75 -0
- package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -0
- package/js/types/Interface/api/society/CreateSociety.js +39 -0
- package/js/types/Interface/api/society/CreateSociety.js.map +1 -0
- package/js/types/Interface/api/society/{ReadSociety.js → GetDataSociety.js} +1 -1
- package/js/types/Interface/api/society/{ReadSociety.js.map → GetDataSociety.js.map} +1 -1
- package/js/types/Interface/api/society/LegalFormSiren.js +6 -0
- package/js/types/Interface/api/society/LegalFormSiren.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +5 -2
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +84 -0
- package/js/types/index.js.map +1 -1
- package/package.json +15 -15
- package/ts/api/resources/Authenticate.ts +7 -0
- package/ts/api/resources/Cerfa.ts +13 -0
- package/ts/api/resources/LegalForm.ts +8 -0
- package/ts/api/resources/Society.ts +11 -0
- package/ts/api/resources.ts +6 -0
- package/ts/types/Enum/DefaultPermissions.ts +12 -0
- package/ts/types/Enum/LegalForm.ts +1 -0
- package/ts/types/Enum/Vehicle.ts +7 -0
- package/ts/types/Enum/VehicleType.ts +14 -0
- package/ts/types/Interface/api/cerfa/CreateCerfa.ts +350 -0
- package/ts/types/Interface/api/society/CreateSociety.ts +24 -0
- package/ts/types/Interface/api/society/GetDataSociety.ts +4 -0
- package/ts/types/Interface/api/society/LegalFormSiren.ts +5 -0
- package/ts/types/Interface/models/IApiError.ts +3 -0
- package/ts/types/index.ts +8 -0
- package/ts/utils/objectUtils/overwrite.ts +1 -1
- package/es/types/Interface/api/society/ReadSociety.d.ts +0 -5
- package/es/types/Interface/api/society/ReadSociety.d.ts.map +0 -1
- package/es/types/Interface/api/society/ReadSociety.js +0 -2
- package/es/types/Interface/api/society/ReadSociety.js.map +0 -1
- package/ts/types/Interface/api/society/ReadSociety.ts +0 -5
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { VehicleCerfaFuel } from '../../../Enum/Vehicle';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export interface DeterminedResult {
|
|
5
|
+
incomeExpenditure: boolean; // d'après les règles « recettes-dépenses »
|
|
6
|
+
debts: boolean; // d'après les règles « créances-dettes »
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type AccountingKept = 'dutyFree' | 'taxIncluded' | 'notSubjectToVat';
|
|
10
|
+
export type CerfaCivility = 'M' | 'Mme' | 'Mlle';
|
|
11
|
+
|
|
12
|
+
export interface AccreditedOrganization {
|
|
13
|
+
isMember: boolean;
|
|
14
|
+
memberSince: Date;
|
|
15
|
+
numberOfEmployees: string;
|
|
16
|
+
netWagesReceived: number; // Salaires nets perçus
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface Vehicle {
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
fiscalPower: number;
|
|
23
|
+
isBNCScale: boolean;
|
|
24
|
+
isBICScale: boolean;
|
|
25
|
+
fuel: VehicleCerfaFuel;
|
|
26
|
+
professionalKilometers: number;
|
|
27
|
+
deductible: number;
|
|
28
|
+
depreciationPracticedAtReintegrate: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface MoralShareholder {
|
|
32
|
+
legalForm: string;
|
|
33
|
+
name: string;
|
|
34
|
+
siren?: string;
|
|
35
|
+
percentShares: number;
|
|
36
|
+
shares: number;
|
|
37
|
+
address: {
|
|
38
|
+
number: number | undefined;
|
|
39
|
+
street: string;
|
|
40
|
+
zipCode: string;
|
|
41
|
+
city: string;
|
|
42
|
+
country: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface PhysicShareholder {
|
|
47
|
+
civility: CerfaCivility;
|
|
48
|
+
firstname: string;
|
|
49
|
+
lastname: string;
|
|
50
|
+
percentShares: number;
|
|
51
|
+
marriedName: string | null | undefined;
|
|
52
|
+
shares: number | null;
|
|
53
|
+
birth: {
|
|
54
|
+
date: string;
|
|
55
|
+
department: string | undefined;
|
|
56
|
+
city: string;
|
|
57
|
+
country: string;
|
|
58
|
+
}
|
|
59
|
+
address: {
|
|
60
|
+
street: string | undefined;
|
|
61
|
+
zipCode: string | undefined;
|
|
62
|
+
city: string | undefined;
|
|
63
|
+
country: string | undefined;
|
|
64
|
+
number: string | undefined;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface Subsidiarie {
|
|
69
|
+
legalForm: string;
|
|
70
|
+
name: string;
|
|
71
|
+
siren?: string;
|
|
72
|
+
percentShares: number;
|
|
73
|
+
address: {
|
|
74
|
+
number: number;
|
|
75
|
+
street: string;
|
|
76
|
+
zipCode: string;
|
|
77
|
+
city: string;
|
|
78
|
+
country: string;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* CERFA 2035 TYPES
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
export interface Cerfa2035Society {
|
|
87
|
+
name: string;
|
|
88
|
+
activity: string | null;
|
|
89
|
+
siret: string;
|
|
90
|
+
activityCode?: string; // Code activité pour les praticiens médicaux
|
|
91
|
+
ifExerciceInSociety?: boolean; // Si exercice en société
|
|
92
|
+
partnersCount?: number;
|
|
93
|
+
determinedResult?: DeterminedResult; // Résultat déterminé
|
|
94
|
+
accountingKept: AccountingKept; // Comptabilité tenue
|
|
95
|
+
accreditedOrganization?: AccreditedOrganization // Si vous êtes adhérent d'un organisme agréé (association ou organisme mixte) ou client d'un viseur fiscal
|
|
96
|
+
address: string;
|
|
97
|
+
zipCode: string;
|
|
98
|
+
city: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface Cerfa2035ProfessionalRecipes {
|
|
102
|
+
collected: number;
|
|
103
|
+
toDeduce: {
|
|
104
|
+
disbursements: number;
|
|
105
|
+
retrocededFees: {
|
|
106
|
+
total: number;
|
|
107
|
+
supplement: number;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
net: number;
|
|
111
|
+
financialProducts: number;
|
|
112
|
+
miscellaneousGain: number;
|
|
113
|
+
total: number;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface Cerfa2035ProfessionalExpenses {
|
|
117
|
+
purchases: number;
|
|
118
|
+
personnelCosts: {
|
|
119
|
+
netSalariesAndBenefitsInKind: number;
|
|
120
|
+
socialChargesOnSalaries: number;
|
|
121
|
+
}
|
|
122
|
+
duesAndTaxes: {
|
|
123
|
+
valueAddedTax: number;
|
|
124
|
+
territorialEconomicContribution: number;
|
|
125
|
+
otherTaxes: number;
|
|
126
|
+
generalDeductibleSocialContribution: number;
|
|
127
|
+
};
|
|
128
|
+
rentAndRentalCharges: number;
|
|
129
|
+
equipmentRental: {
|
|
130
|
+
total: number;
|
|
131
|
+
collaborationFees: number;
|
|
132
|
+
};
|
|
133
|
+
maintenance: number;
|
|
134
|
+
temporaryStaff: number;
|
|
135
|
+
smallTools: number;
|
|
136
|
+
heatingWaterGasElectricity: number;
|
|
137
|
+
feesNotRetrocessions: number;
|
|
138
|
+
insurancePremiums: number;
|
|
139
|
+
vehicleCosts: {
|
|
140
|
+
total: number;
|
|
141
|
+
lumpSumAssessment: boolean;
|
|
142
|
+
};
|
|
143
|
+
otherTravelExpenses: number;
|
|
144
|
+
totalWorkSupplies: number;
|
|
145
|
+
totalTransport: number;
|
|
146
|
+
personalSocialCharges: {
|
|
147
|
+
obligatory: number;
|
|
148
|
+
contributionsMadelin: number;
|
|
149
|
+
retirementSavingsPlans: number;
|
|
150
|
+
total: number;
|
|
151
|
+
};
|
|
152
|
+
receptionFees: number;
|
|
153
|
+
officeSupplies: number;
|
|
154
|
+
legalCosts: number;
|
|
155
|
+
unionDues: number;
|
|
156
|
+
otherManagementFees: number;
|
|
157
|
+
totalDues: number;
|
|
158
|
+
financialExpenses: number;
|
|
159
|
+
miscellaneousLosses: number;
|
|
160
|
+
total: number;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface Cerfa2035Determination {
|
|
164
|
+
surplus: number;
|
|
165
|
+
shortTermCapitalGains: number;
|
|
166
|
+
miscellaneousToBeReinstated: number;
|
|
167
|
+
civilSocietyBenefit: number;
|
|
168
|
+
totalSurplus: number;
|
|
169
|
+
insufficiency: number;
|
|
170
|
+
administrationFees: number;
|
|
171
|
+
depreciationAllowance: number;
|
|
172
|
+
shortTermLoss: number;
|
|
173
|
+
miscellaneousToBeDeducted: {
|
|
174
|
+
freeZone: {
|
|
175
|
+
amount: number;
|
|
176
|
+
};
|
|
177
|
+
newBusiness: {
|
|
178
|
+
onSavingsSalary: number;
|
|
179
|
+
amount: number;
|
|
180
|
+
};
|
|
181
|
+
innovativeCompanies: {
|
|
182
|
+
amount: number;
|
|
183
|
+
youngArtists: number;
|
|
184
|
+
}
|
|
185
|
+
doctorsExemption: {
|
|
186
|
+
amount: number;
|
|
187
|
+
sectorApprovedDoctors: number;
|
|
188
|
+
};
|
|
189
|
+
total: number;
|
|
190
|
+
}
|
|
191
|
+
civilSocietyDeficit: number;
|
|
192
|
+
totalInsufficiency: number;
|
|
193
|
+
profit: number;
|
|
194
|
+
deficit: number;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface Cerfa2035ValueAddedTax {
|
|
198
|
+
grossReceipts: number;
|
|
199
|
+
relatedToPurchases: {
|
|
200
|
+
amount: number;
|
|
201
|
+
retrocededFees: number;
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface Cerfa2035KilometricAllowance {
|
|
206
|
+
vehicles: Vehicle[];
|
|
207
|
+
costsNotCoveredByKilometricAllowances: number;
|
|
208
|
+
totalDeductible: number;
|
|
209
|
+
totalDepreciationPracticedAtReintegrate: number;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export interface Cerfa2035Recipes {
|
|
213
|
+
fees: number;
|
|
214
|
+
miscellaneousGains: number;
|
|
215
|
+
deductibleVat: number;
|
|
216
|
+
capitalGains: number;
|
|
217
|
+
total: number;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface Cerfa2035Expenses {
|
|
221
|
+
purchases: number;
|
|
222
|
+
stockVariation: number;
|
|
223
|
+
externalServices: number;
|
|
224
|
+
rentsAndRoyalties: number;
|
|
225
|
+
transport: number;
|
|
226
|
+
management: number;
|
|
227
|
+
vatInRecipes: number;
|
|
228
|
+
turnoverTax: number;
|
|
229
|
+
amortization: number;
|
|
230
|
+
capitalLosses: number;
|
|
231
|
+
total: number;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface Cerfa2035MonoEstablishment {
|
|
235
|
+
is: boolean; // Est mono établissement
|
|
236
|
+
benchmarkTurnover: number;
|
|
237
|
+
groupTurnover: number;
|
|
238
|
+
workforce: number;
|
|
239
|
+
period: { startDate: Date, endDate: Date };
|
|
240
|
+
cessationDate: Date;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface Cerfa2035ShareCapital {
|
|
244
|
+
moralAssociates: number;
|
|
245
|
+
moralAssociatesShares: number;
|
|
246
|
+
physicAssociates: number;
|
|
247
|
+
physicAssociatesShares: number;
|
|
248
|
+
moralShareholder: MoralShareholder[];
|
|
249
|
+
physicShareholder: PhysicShareholder[];
|
|
250
|
+
idDeposit?: number;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface Cerfa2035 {
|
|
254
|
+
isNil: boolean;
|
|
255
|
+
society: Cerfa2035Society;
|
|
256
|
+
immobilizations: number;
|
|
257
|
+
professionalRecipes: Cerfa2035ProfessionalRecipes;
|
|
258
|
+
professionalExpenses: Cerfa2035ProfessionalExpenses;
|
|
259
|
+
determination: Cerfa2035Determination;
|
|
260
|
+
valueAddedTax: Cerfa2035ValueAddedTax;
|
|
261
|
+
territorialContribution: number;
|
|
262
|
+
kilometricAllowances: Cerfa2035KilometricAllowance;
|
|
263
|
+
period: { startDate: Date, endDate: Date, months: string };
|
|
264
|
+
shareCapital: Cerfa2035ShareCapital;
|
|
265
|
+
subsidiaries: { total: number, list: Subsidiarie[] };
|
|
266
|
+
annex?: {
|
|
267
|
+
recipes: Cerfa2035Recipes;
|
|
268
|
+
expenses: Cerfa2035Expenses;
|
|
269
|
+
addedValue: number;
|
|
270
|
+
addedValueContribution: number;
|
|
271
|
+
monoEstablishment: Cerfa2035MonoEstablishment | null;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export class ParamsGenerate2035 {
|
|
276
|
+
@ApiProperty()
|
|
277
|
+
isTest?: boolean; // Modifie le chemin du PDF
|
|
278
|
+
|
|
279
|
+
@ApiProperty()
|
|
280
|
+
isNil: boolean; // Néant
|
|
281
|
+
|
|
282
|
+
@ApiPropertyOptional()
|
|
283
|
+
disbursements?: number | null; // Débours payés pour le compte des clients
|
|
284
|
+
|
|
285
|
+
@ApiPropertyOptional()
|
|
286
|
+
supplement?: number | null; // Honoraires rétrocédés (dont suppléments rétrocédés)
|
|
287
|
+
|
|
288
|
+
@ApiPropertyOptional()
|
|
289
|
+
activityCode?: string | null; // Code activité pour les praticiens médicaux
|
|
290
|
+
|
|
291
|
+
@ApiPropertyOptional()
|
|
292
|
+
valueAddedTax?: number | null; // Impôts et taxes : Taxe sur la valeur ajoutée
|
|
293
|
+
|
|
294
|
+
@ApiPropertyOptional()
|
|
295
|
+
equipmentRentalCollaborationFees?: number | null; // Location de matériel et de mobilier – dont redevances de collaboration
|
|
296
|
+
|
|
297
|
+
@ApiPropertyOptional()
|
|
298
|
+
lumpSumAssessment?: boolean | null; // Frais de véhicules - (cocher la case si évaluation forfaitaire)
|
|
299
|
+
|
|
300
|
+
@ApiPropertyOptional()
|
|
301
|
+
personalSocialChargesObligatory?: number | null; // Charges sociales personnelles - dont obligatoires
|
|
302
|
+
|
|
303
|
+
@ApiPropertyOptional()
|
|
304
|
+
contributionsMadelin?: number | null; // Charges sociales personnelles - dont cotisations facultatives Madelin
|
|
305
|
+
|
|
306
|
+
@ApiPropertyOptional()
|
|
307
|
+
retirementSavingsPlans?: number | null; // Dont facultatives aux nouveaux plans d’épargne retraite
|
|
308
|
+
|
|
309
|
+
@ApiPropertyOptional()
|
|
310
|
+
miscellaneousToBeReinstated?: number | null; // Divers à réintégrer
|
|
311
|
+
|
|
312
|
+
@ApiPropertyOptional()
|
|
313
|
+
civilSocietyBenefit?: number | null; // Bénéfice Société civile de moyen
|
|
314
|
+
|
|
315
|
+
@ApiPropertyOptional()
|
|
316
|
+
administrationFees?: number | null; // Frais d'établissement
|
|
317
|
+
|
|
318
|
+
@ApiPropertyOptional()
|
|
319
|
+
mtbdFreeZoneAmount?: number | null; // dont exonération sur le bénéfice « zone franche urbaine territoire entrepreneur »
|
|
320
|
+
|
|
321
|
+
@ApiPropertyOptional()
|
|
322
|
+
mtbdNewBusinessAmount?: number | null; // dont exonération sur le bénéfice « entreprise nouvelle »
|
|
323
|
+
|
|
324
|
+
@ApiPropertyOptional()
|
|
325
|
+
mtbdInnovativeCompaniesAmount?: number | null; // dont exonération « jeunes entreprises innovantes »
|
|
326
|
+
|
|
327
|
+
@ApiPropertyOptional()
|
|
328
|
+
mtbdInnovativeCompaniesYoungArtists?: number | null; // dont exonération sur le bénéfice « jeunes artistes »
|
|
329
|
+
|
|
330
|
+
@ApiPropertyOptional()
|
|
331
|
+
mtbdDoctorsExemptionAmount?: number | null; // dont exonération médecins « zones déficitaires en offre de soins »
|
|
332
|
+
|
|
333
|
+
@ApiPropertyOptional()
|
|
334
|
+
mtbdDoctorsExemptionSectorApprovedDoctors?: number | null; // dont déductions « médecins conventionnés de secteur I »
|
|
335
|
+
|
|
336
|
+
@ApiPropertyOptional()
|
|
337
|
+
grossReceipts?: number | null; // Montant de la TVA afférente aux recettes brutes
|
|
338
|
+
|
|
339
|
+
@ApiPropertyOptional()
|
|
340
|
+
relatedToPurchasesAmount?: number | null; // Montant de la TVA afférente aux achats (biens et services autres qu'immobilisations) :
|
|
341
|
+
|
|
342
|
+
@ApiPropertyOptional()
|
|
343
|
+
retrocededFees?: number | null; // dont montant de la TVA afférente aux honoraires rétrocédés
|
|
344
|
+
|
|
345
|
+
@ApiPropertyOptional()
|
|
346
|
+
territorialContribution?: number | null; // Recettes provenant d'activités exonérées à titre permanent
|
|
347
|
+
|
|
348
|
+
@ApiPropertyOptional()
|
|
349
|
+
miscellaneousToBeDeductedTotal?: number | null; // Divers à déduire (CL)
|
|
350
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class CreateSociety {
|
|
4
|
+
@ApiProperty()
|
|
5
|
+
idUser: number;
|
|
6
|
+
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
idTypeCompta: number;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
name?: string;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
idActivity?: number;
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
idTvaRegime?: number;
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
idLegalForm?: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
exercicePeriod?: { start: string, end: string };
|
|
24
|
+
}
|
|
@@ -39,6 +39,7 @@ export enum Code {
|
|
|
39
39
|
|
|
40
40
|
// PDF error
|
|
41
41
|
mergeFailed = 'merge_failed',
|
|
42
|
+
generationError = 'generation_error',
|
|
42
43
|
|
|
43
44
|
// Email error
|
|
44
45
|
emailAlreadyExist = 'email_already_exist',
|
|
@@ -66,6 +67,8 @@ export enum Code {
|
|
|
66
67
|
userNotInFmaProcess = 'user-not-in-maf-process',
|
|
67
68
|
wrongSmsCode = 'wrong-sms-code',
|
|
68
69
|
|
|
70
|
+
// Cerfa
|
|
71
|
+
civilityNotFound = 'civility_not_found',
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
export interface IApiError {
|
package/ts/types/index.ts
CHANGED
|
@@ -304,7 +304,10 @@ export * from './Enum/PartnerType';
|
|
|
304
304
|
export * from './Enum/ThirdPartyType';
|
|
305
305
|
export * from './Enum/FecFileDelimiter';
|
|
306
306
|
export * from './Enum/IncomeStatement';
|
|
307
|
+
export * from './Enum/Vehicle';
|
|
308
|
+
export * from './Enum/VehicleType';
|
|
307
309
|
export * from './Enum/BalanceSheet';
|
|
310
|
+
export * from './Enum/DefaultPermissions';
|
|
308
311
|
|
|
309
312
|
// Interfaces API
|
|
310
313
|
export * from './Interface/api/businessPartner/ReadBusinessPartner';
|
|
@@ -326,6 +329,10 @@ export * from './Interface/api/account/ReadAccounts';
|
|
|
326
329
|
export * from './Interface/api/simulationColors/ReadSimulationColors';
|
|
327
330
|
export * from './Interface/api/survey/QuerySurveys';
|
|
328
331
|
export * from './Interface/api/file/TFile';
|
|
332
|
+
export * from './Interface/api/cerfa/CreateCerfa';
|
|
333
|
+
export * from './Interface/api/society/LegalFormSiren';
|
|
334
|
+
export * from './Interface/api/society/GetDataSociety';
|
|
335
|
+
export * from './Interface/api/society/CreateSociety';
|
|
329
336
|
|
|
330
337
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
331
338
|
export * from './Interface/api/survey/ReadSurvey';
|
|
@@ -338,6 +345,7 @@ export * from './Interface/api/letter/CreateLetter';
|
|
|
338
345
|
export * from './Interface/api/mailInvoice/CreateInvoiceMail';
|
|
339
346
|
export * from './Interface/api/mailInvoice/UpdateInvoiceMail';
|
|
340
347
|
export * from './Interface/api/partner/CreatePartner';
|
|
348
|
+
// export * from './Interface/api/generalLedger/GeneralLedgerQuery';
|
|
341
349
|
export * from './Interface/api/fecFile/CreateFecFile';
|
|
342
350
|
export * from './Interface/api/fecFile/ReadFecFile';
|
|
343
351
|
export * from './Interface/api/generalLedger/QueryGeneralLedger';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Find the difference
|
|
2
|
-
type Diff<T extends string | number | symbol, U extends string | number | symbol> =({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T];
|
|
2
|
+
type Diff<T extends string | number | symbol, U extends string | number | symbol> = ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T];
|
|
3
3
|
// Overwrite any differences between T and U with U taking precedence
|
|
4
4
|
export type Overwrite<T, U> = Pick<T, Diff<keyof T, keyof U>> & U;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadSociety.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/society/ReadSociety.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,oBAAY,WAAW,GAAG,QAAQ,GAAG;IACnC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadSociety.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/society/ReadSociety.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from '../../..';\n\nexport type ReadSociety = ISociety & {\n pommeDeTerre: string;\n};\n"]}
|