@silexpert/core 0.4.138 → 0.4.140
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/InternalInvoicing.d.ts +2 -1
- package/es/api/resources/InternalInvoicing.d.ts.map +1 -1
- package/es/api/resources/InternalInvoicing.js +3 -0
- package/es/api/resources/InternalInvoicing.js.map +1 -1
- package/es/api/resources/KilometricAllowance.d.ts +6 -0
- package/es/api/resources/KilometricAllowance.d.ts.map +1 -0
- package/es/api/resources/KilometricAllowance.js +7 -0
- package/es/api/resources/KilometricAllowance.js.map +1 -0
- package/es/api/resources/Revision.d.ts +3 -2
- package/es/api/resources/Revision.d.ts.map +1 -1
- package/es/api/resources/Revision.js +4 -1
- package/es/api/resources/Revision.js.map +1 -1
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/Account.d.ts +8 -0
- package/es/types/Enum/Account.d.ts.map +1 -1
- package/es/types/Enum/Account.js +8 -0
- package/es/types/Enum/Account.js.map +1 -1
- package/es/types/Enum/AnswerTypeValue.d.ts +22 -2
- package/es/types/Enum/AnswerTypeValue.d.ts.map +1 -1
- package/es/types/Enum/AnswerTypeValue.js +22 -0
- package/es/types/Enum/AnswerTypeValue.js.map +1 -1
- package/es/types/Enum/Aspone.d.ts +15 -0
- package/es/types/Enum/Aspone.d.ts.map +1 -1
- package/es/types/Enum/Aspone.js +18 -0
- package/es/types/Enum/Aspone.js.map +1 -1
- package/es/types/Enum/BalanceSheetQuestion.d.ts +98 -18
- package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheetQuestion.js +96 -16
- package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/es/types/Enum/BalanceSheetQuestionWording.d.ts +113 -2
- package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheetQuestionWording.js +111 -0
- package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/es/types/Enum/ImmobilizationType.d.ts +5 -0
- package/es/types/Enum/ImmobilizationType.d.ts.map +1 -1
- package/es/types/Enum/ImmobilizationType.js +6 -0
- package/es/types/Enum/ImmobilizationType.js.map +1 -1
- package/es/types/Enum/KilometricAllowanceScale.d.ts +20 -0
- package/es/types/Enum/KilometricAllowanceScale.d.ts.map +1 -0
- package/es/types/Enum/KilometricAllowanceScale.js +120 -0
- package/es/types/Enum/KilometricAllowanceScale.js.map +1 -0
- package/es/types/Enum/ThirdPartyType.d.ts +3 -0
- package/es/types/Enum/ThirdPartyType.d.ts.map +1 -1
- package/es/types/Enum/ThirdPartyType.js +4 -0
- package/es/types/Enum/ThirdPartyType.js.map +1 -1
- package/es/types/Enum/VehicleType.d.ts +7 -3
- package/es/types/Enum/VehicleType.d.ts.map +1 -1
- package/es/types/Enum/VehicleType.js +7 -3
- package/es/types/Enum/VehicleType.js.map +1 -1
- package/es/types/Form/FormAuthenticate.d.ts.map +1 -1
- package/es/types/Form/FormAuthenticate.js +31 -0
- package/es/types/Form/FormAuthenticate.js.map +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.d.ts +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/es/types/Interface/api/cerfa/2031.d.ts +16 -4
- package/es/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/2031.js.map +1 -1
- package/es/types/Interface/api/cerfa/2033.d.ts +4 -1
- package/es/types/Interface/api/cerfa/2033.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/2033.js.map +1 -1
- package/es/types/Interface/api/cerfa/2035.d.ts +25 -5
- package/es/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/2035.js +1 -1
- package/es/types/Interface/api/cerfa/2035.js.map +1 -1
- package/es/types/Interface/api/cerfa/2065.d.ts +45 -30
- package/es/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/2065.js.map +1 -1
- package/es/types/Interface/api/cerfa/2572.d.ts +2 -0
- package/es/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/2572.js.map +1 -1
- package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +3 -0
- package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +28 -0
- package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/es/types/Interface/api/cerfa/Utils.d.ts +21 -3
- package/es/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/Utils.js.map +1 -1
- package/es/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.js.map +1 -1
- package/es/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts +6 -0
- package/es/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts.map +1 -0
- package/es/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js +30 -0
- package/es/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js.map +1 -0
- package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.d.ts +0 -2
- package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.d.ts.map +1 -1
- package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.js +3 -12
- package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.js.map +1 -1
- package/es/types/Interface/api/jeDeclare/ReadJeDeclare.d.ts +6 -0
- package/es/types/Interface/api/jeDeclare/ReadJeDeclare.d.ts.map +1 -0
- package/es/types/Interface/api/jeDeclare/ReadJeDeclare.js +2 -0
- package/es/types/Interface/api/jeDeclare/ReadJeDeclare.js.map +1 -0
- package/es/types/Interface/api/jeDeclare/UtilCFONB.js +1 -1
- package/es/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
- package/es/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.d.ts +10 -0
- package/es/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.d.ts.map +1 -0
- package/es/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js +36 -0
- package/es/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js.map +1 -0
- package/es/types/Interface/api/ocr/OcrTypeTransactions.d.ts +1 -1
- package/es/types/Interface/api/ocr/OcrTypeTransactions.d.ts.map +1 -1
- package/es/types/Interface/api/ocr/OcrTypeTransactions.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.js +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +15 -0
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -0
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js +87 -0
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -0
- package/es/types/Interface/models/IBalanceSheetQuestion.d.ts +1 -0
- package/es/types/Interface/models/IBalanceSheetQuestion.d.ts.map +1 -1
- package/es/types/Interface/models/IBalanceSheetQuestion.js.map +1 -1
- package/es/types/index.d.ts +5 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +5 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +1 -0
- package/es/utils/index.js.map +1 -1
- package/es/utils/siretValidation.d.ts +2 -0
- package/es/utils/siretValidation.d.ts.map +1 -0
- package/es/utils/siretValidation.js +29 -0
- package/es/utils/siretValidation.js.map +1 -0
- package/js/api/resources/InternalInvoicing.js +4 -0
- package/js/api/resources/InternalInvoicing.js.map +1 -1
- package/js/api/resources/KilometricAllowance.js +18 -0
- package/js/api/resources/KilometricAllowance.js.map +1 -0
- package/js/api/resources/Revision.js +7 -1
- package/js/api/resources/Revision.js.map +1 -1
- package/js/api/resources.js +4 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/Account.js +8 -0
- package/js/types/Enum/Account.js.map +1 -1
- package/js/types/Enum/AnswerTypeValue.js +26 -0
- package/js/types/Enum/AnswerTypeValue.js.map +1 -1
- package/js/types/Enum/Aspone.js +24 -0
- package/js/types/Enum/Aspone.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestion.js +98 -16
- package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestionWording.js +112 -0
- package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/js/types/Enum/ImmobilizationType.js +8 -0
- package/js/types/Enum/ImmobilizationType.js.map +1 -1
- package/js/types/Enum/KilometricAllowanceScale.js +245 -0
- package/js/types/Enum/KilometricAllowanceScale.js.map +1 -0
- package/js/types/Enum/ThirdPartyType.js +6 -0
- package/js/types/Enum/ThirdPartyType.js.map +1 -1
- package/js/types/Enum/VehicleType.js +10 -3
- package/js/types/Enum/VehicleType.js.map +1 -1
- package/js/types/Form/FormAuthenticate.js +25 -0
- package/js/types/Form/FormAuthenticate.js.map +1 -1
- package/js/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/js/types/Interface/api/cerfa/2031.js.map +1 -1
- package/js/types/Interface/api/cerfa/2033.js.map +1 -1
- package/js/types/Interface/api/cerfa/2035.js.map +1 -1
- package/js/types/Interface/api/cerfa/2065.js.map +1 -1
- package/js/types/Interface/api/cerfa/2572.js.map +1 -1
- package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
- package/js/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.js.map +1 -1
- package/js/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js +33 -0
- package/js/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js.map +1 -0
- package/js/types/Interface/api/jeDeclare/CreateDocumentsParams.js +3 -5
- package/js/types/Interface/api/jeDeclare/CreateDocumentsParams.js.map +1 -1
- package/js/types/Interface/api/jeDeclare/ReadJeDeclare.js +6 -0
- package/js/types/Interface/api/jeDeclare/ReadJeDeclare.js.map +1 -0
- package/js/types/Interface/api/jeDeclare/UtilCFONB.js +1 -1
- package/js/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
- package/js/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js +39 -0
- package/js/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js.map +1 -0
- package/js/types/Interface/api/revision/QueryRevisionAccount.js +3 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js +64 -0
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -0
- package/js/types/index.js +60 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/index.js +12 -0
- package/js/utils/index.js.map +1 -1
- package/js/utils/siretValidation.js +39 -0
- package/js/utils/siretValidation.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/InternalInvoicing.ts +4 -1
- package/ts/api/resources/KilometricAllowance.ts +8 -0
- package/ts/api/resources/Revision.ts +6 -1
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Account.ts +8 -0
- package/ts/types/Enum/AnswerTypeValue.ts +22 -0
- package/ts/types/Enum/Aspone.ts +18 -0
- package/ts/types/Enum/BalanceSheetQuestion.ts +103 -17
- package/ts/types/Enum/BalanceSheetQuestionWording.ts +113 -0
- package/ts/types/Enum/ImmobilizationType.ts +6 -0
- package/ts/types/Enum/KilometricAllowanceScale.ts +141 -0
- package/ts/types/Enum/ThirdPartyType.ts +4 -0
- package/ts/types/Enum/VehicleType.ts +8 -3
- package/ts/types/Form/FormAuthenticate.ts +14 -0
- package/ts/types/Interface/api/aspone/ReadInterchange.ts +1 -1
- package/ts/types/Interface/api/cerfa/2031.ts +17 -7
- package/ts/types/Interface/api/cerfa/2033.ts +4 -1
- package/ts/types/Interface/api/cerfa/2035.ts +24 -5
- package/ts/types/Interface/api/cerfa/2065.ts +42 -23
- package/ts/types/Interface/api/cerfa/2572.ts +3 -0
- package/ts/types/Interface/api/cerfa/CreateCerfa.ts +3 -0
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +29 -1
- package/ts/types/Interface/api/cerfa/Utils.ts +26 -4
- package/ts/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.ts +1 -1
- package/ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts +17 -0
- package/ts/types/Interface/api/jeDeclare/CreateDocumentsParams.ts +5 -10
- package/ts/types/Interface/api/jeDeclare/ReadJeDeclare.ts +6 -0
- package/ts/types/Interface/api/jeDeclare/UtilCFONB.ts +1 -1
- package/ts/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.ts +26 -0
- package/ts/types/Interface/api/ocr/OcrTypeTransactions.ts +1 -1
- package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +1 -1
- package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +65 -0
- package/ts/types/Interface/models/IBalanceSheetQuestion.ts +1 -0
- package/ts/types/index.ts +5 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/siretValidation.ts +28 -0
|
@@ -2,8 +2,11 @@ import { IsBoolean, IsOptional } from 'class-validator';
|
|
|
2
2
|
import {
|
|
3
3
|
Subsidiarie, DeterminedResult, AccountingKept, AccreditedOrganization, Vehicle, MoralShareholder, PhysicShareholder,
|
|
4
4
|
} from './CreateCerfa';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
ApiProperty, ApiPropertyOptional, CerfaAddress, ViewerDetails, Accountant, CouncilDetails, EcfDetails, Termination,
|
|
7
|
+
} from '../../../..';
|
|
6
8
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
9
|
+
import { OtherActivity } from './Utils';
|
|
7
10
|
|
|
8
11
|
/**
|
|
9
12
|
* CERFA 2035 TYPES
|
|
@@ -89,6 +92,11 @@ export interface Cerfa2035ProfessionalExpenses {
|
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
export interface ResultsDistributionList {
|
|
95
|
+
marriedName?: string;
|
|
96
|
+
legalForm?: string;
|
|
97
|
+
civility?: string;
|
|
98
|
+
firstname?: string;
|
|
99
|
+
lastname?: string;
|
|
92
100
|
basicInfos: string;
|
|
93
101
|
managerPartner: boolean;
|
|
94
102
|
slicePercentage: number;
|
|
@@ -109,6 +117,8 @@ export interface ResultsDistributionList {
|
|
|
109
117
|
city?: string;
|
|
110
118
|
country?: string;
|
|
111
119
|
countryCode?: string;
|
|
120
|
+
zipCode: string;
|
|
121
|
+
street: string;
|
|
112
122
|
}
|
|
113
123
|
|
|
114
124
|
export interface Cerfa2035Determination {
|
|
@@ -241,6 +251,7 @@ export interface Cerfa2035WithSuites {
|
|
|
241
251
|
activityType: string;
|
|
242
252
|
activityStartDate: string;
|
|
243
253
|
privateSocietyAddress: string;
|
|
254
|
+
privateSocietyAddressList: Array<{ name: string; address: CerfaAddress }>;
|
|
244
255
|
civilSocietyAddress: string;
|
|
245
256
|
informationsStartingPeriod: string;
|
|
246
257
|
informationsEndingPeriod: string;
|
|
@@ -274,11 +285,11 @@ export interface Cerfa2035WithSuites {
|
|
|
274
285
|
nonProfessionnalShortTermAddedValue: number;
|
|
275
286
|
productsAddedValue: { duodecies: number; }
|
|
276
287
|
chargesDeprecatedValue: { duodecies: number; };
|
|
277
|
-
|
|
278
|
-
|
|
288
|
+
accountant: Accountant;
|
|
289
|
+
council: CouncilDetails
|
|
279
290
|
certifiedAssociation: string;
|
|
280
291
|
serviceProvider: number;
|
|
281
|
-
ecf:
|
|
292
|
+
ecf: EcfDetails;
|
|
282
293
|
declarantSignature: string;
|
|
283
294
|
signatureDate: string;
|
|
284
295
|
signaturePlace: string;
|
|
@@ -289,7 +300,12 @@ export interface Cerfa2035WithSuites {
|
|
|
289
300
|
}
|
|
290
301
|
certifiedAccountingProfessionnal: boolean;
|
|
291
302
|
aaOrOmga: boolean;
|
|
292
|
-
|
|
303
|
+
aaOrOmgaDetails: {
|
|
304
|
+
name: string |null,
|
|
305
|
+
address: CerfaAddress | null
|
|
306
|
+
number: string | null;
|
|
307
|
+
},
|
|
308
|
+
viewer: ViewerDetails,
|
|
293
309
|
longTermExemptAddedValue151: number;
|
|
294
310
|
longTermExemptAddedValue151A: number;
|
|
295
311
|
longTermExemptAddedValue238: number;
|
|
@@ -299,6 +315,7 @@ export interface Cerfa2035WithSuites {
|
|
|
299
315
|
},
|
|
300
316
|
declaration: {
|
|
301
317
|
paidService: string[];
|
|
318
|
+
paidServiceList: OtherActivity[];
|
|
302
319
|
incomesAmount: number;
|
|
303
320
|
employees: {
|
|
304
321
|
total: number;
|
|
@@ -334,6 +351,7 @@ export interface Cerfa2035WithSuites {
|
|
|
334
351
|
vatAmount: number;
|
|
335
352
|
depreciableBase: number;
|
|
336
353
|
depreciationType: string;
|
|
354
|
+
depreciationRate: number;
|
|
337
355
|
pastDepreciationsAmounts: number;
|
|
338
356
|
currentYearDepreciationsAmounts: number;
|
|
339
357
|
type: string;
|
|
@@ -384,6 +402,7 @@ export interface Cerfa2035WithSuites {
|
|
|
384
402
|
}
|
|
385
403
|
name: string;
|
|
386
404
|
siret: string;
|
|
405
|
+
termination: Termination;
|
|
387
406
|
}
|
|
388
407
|
}
|
|
389
408
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ApiPropertyOptional } from '../../../..';
|
|
2
|
+
import {
|
|
3
|
+
CerfaAddress, ViewerDetails, Accountant, CouncilDetails, EcfDetails, Termination,
|
|
4
|
+
} from './ReadCerfa';
|
|
5
|
+
import { PartnersLegalEntity } from './Utils';
|
|
2
6
|
|
|
3
7
|
export type BusinessPartnersValue = {
|
|
4
8
|
idBusinessPartner: number,
|
|
@@ -14,19 +18,26 @@ export class ParamsGenerate2065 {
|
|
|
14
18
|
isTest?: boolean;
|
|
15
19
|
}
|
|
16
20
|
|
|
21
|
+
type LessValuesByRate = {
|
|
22
|
+
exonerated: number;
|
|
23
|
+
reduced: number;
|
|
24
|
+
normal: number;
|
|
25
|
+
};
|
|
26
|
+
|
|
17
27
|
export class Cerfa2065Society {
|
|
18
28
|
name: string;
|
|
19
29
|
addressFormatted: string;
|
|
20
30
|
siret: string;
|
|
21
31
|
email: string;
|
|
22
32
|
oldAddress: string | null;
|
|
33
|
+
oldAddressDetails: CerfaAddress;
|
|
23
34
|
}
|
|
24
35
|
|
|
25
36
|
export class Cerfa2065Remunerations {
|
|
26
37
|
name: string;
|
|
27
|
-
address:
|
|
38
|
+
address: CerfaAddress;
|
|
28
39
|
sharesHeld: number;
|
|
29
|
-
year:
|
|
40
|
+
year: number;
|
|
30
41
|
amount: number;
|
|
31
42
|
indemnities: number;
|
|
32
43
|
refund: number;
|
|
@@ -35,6 +46,7 @@ export class Cerfa2065Remunerations {
|
|
|
35
46
|
reason: string;
|
|
36
47
|
}
|
|
37
48
|
export interface Cerfa2065 {
|
|
49
|
+
termination: Termination;
|
|
38
50
|
isNil?: boolean;
|
|
39
51
|
society: Cerfa2065Society;
|
|
40
52
|
period: {
|
|
@@ -47,8 +59,17 @@ export interface Cerfa2065 {
|
|
|
47
59
|
isRealRegime: boolean;
|
|
48
60
|
isPME: boolean;
|
|
49
61
|
fillialeText: string | null;
|
|
62
|
+
affiliateHead: PartnersLegalEntity & { countryCode: string; siret: string; }| null;
|
|
50
63
|
isTonnageOption: boolean;
|
|
51
|
-
headOffice: {
|
|
64
|
+
headOffice: {
|
|
65
|
+
number: string;
|
|
66
|
+
addressFormatted: string;
|
|
67
|
+
country: string;
|
|
68
|
+
countryCode: string | null;
|
|
69
|
+
street: string;
|
|
70
|
+
zipCode: string;
|
|
71
|
+
city: string;
|
|
72
|
+
};
|
|
52
73
|
incomeDate: Date | null;
|
|
53
74
|
siret: string | null;
|
|
54
75
|
activity: string;
|
|
@@ -72,32 +93,25 @@ export interface Cerfa2065 {
|
|
|
72
93
|
isOther: boolean;
|
|
73
94
|
isPriorityZone: boolean;
|
|
74
95
|
isInvestmentBusiness: boolean;
|
|
75
|
-
benefitOrDeficit:
|
|
96
|
+
benefitOrDeficit: number;
|
|
76
97
|
exoneration15: number;
|
|
77
98
|
isImpositionDOMTOM: boolean;
|
|
78
99
|
furnitureIncome: number;
|
|
79
100
|
icomeOther: number;
|
|
80
101
|
income2Dot5: number;
|
|
81
102
|
isSocietyHead: boolean;
|
|
82
|
-
otherSocietyHead:
|
|
103
|
+
otherSocietyHead:{ name: string | null; has: boolean; address: CerfaAddress | null; number: string|null; };
|
|
83
104
|
isSocietyDesigned: boolean;
|
|
84
|
-
societyHead: { name: string; number: string };
|
|
105
|
+
societyHead: { name: string; number: string; fiscalNumber: string; } & CerfaAddress;
|
|
85
106
|
hasAccountancyComputerized: boolean;
|
|
86
107
|
hasNotAccountancyComputerized: boolean;
|
|
87
108
|
accountancyComputerizedName: string;
|
|
88
|
-
accountant:
|
|
89
|
-
name: string;
|
|
90
|
-
phone: string;
|
|
91
|
-
};
|
|
109
|
+
accountant: Accountant;
|
|
92
110
|
hasOGA: boolean;
|
|
93
111
|
hasViewer: boolean;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
council: {
|
|
98
|
-
name: string;
|
|
99
|
-
phone: string;
|
|
100
|
-
};
|
|
112
|
+
viewer: ViewerDetails;
|
|
113
|
+
council: CouncilDetails;
|
|
114
|
+
ecf: EcfDetails;
|
|
101
115
|
declarer: {
|
|
102
116
|
date: string;
|
|
103
117
|
place: string;
|
|
@@ -112,16 +126,21 @@ export interface Cerfa2065 {
|
|
|
112
126
|
amountRemunerations: number;
|
|
113
127
|
remunerations: Cerfa2065Remunerations[],
|
|
114
128
|
diverse: {
|
|
115
|
-
|
|
129
|
+
funds: {
|
|
130
|
+
name: string;
|
|
131
|
+
address: string;
|
|
132
|
+
addressDetails: CerfaAddress;
|
|
133
|
+
},
|
|
116
134
|
address: string;
|
|
117
|
-
|
|
135
|
+
otherAddresses: Array<{ name: string; address: CerfaAddress }>;
|
|
118
136
|
}
|
|
119
137
|
simplified: {
|
|
120
138
|
amount: number;
|
|
121
139
|
retrocessions: number;
|
|
122
|
-
remainingExerciceStart:
|
|
123
|
-
imputed:
|
|
124
|
-
realized:
|
|
125
|
-
remaining:
|
|
140
|
+
remainingExerciceStart: LessValuesByRate;
|
|
141
|
+
imputed: LessValuesByRate;
|
|
142
|
+
realized: LessValuesByRate;
|
|
143
|
+
remaining: LessValuesByRate;
|
|
126
144
|
}
|
|
145
|
+
donation: { amount: number; number: number; }
|
|
127
146
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Termination } from './ReadCerfa';
|
|
2
|
+
|
|
1
3
|
type BaseAndAmount = {
|
|
2
4
|
base: number;
|
|
3
5
|
amount: number;
|
|
@@ -143,6 +145,7 @@ export class Cerfa2572 {
|
|
|
143
145
|
summary: Summary;
|
|
144
146
|
payment: Payment;
|
|
145
147
|
administration?: Administration;
|
|
148
|
+
termination: Termination;
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
export type Prepare2572Params = { idSociety: number; idExercice: number; values: Cerfa2572 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VehicleCerfaFuel } from '../../../Enum/Vehicle';
|
|
2
|
+
import { AsponeTTV, AsponeTTC } from '../../..';
|
|
2
3
|
|
|
3
4
|
export * from './2031';
|
|
4
5
|
export * from './2033';
|
|
@@ -26,10 +27,12 @@ export interface AccreditedOrganization {
|
|
|
26
27
|
export interface Vehicle {
|
|
27
28
|
name: string;
|
|
28
29
|
type: string;
|
|
30
|
+
asponeType: AsponeTTV;
|
|
29
31
|
fiscalPower: number;
|
|
30
32
|
isBNCScale: boolean;
|
|
31
33
|
isBICScale: boolean;
|
|
32
34
|
fuel: VehicleCerfaFuel;
|
|
35
|
+
asponeFuel: AsponeTTC | null;
|
|
33
36
|
professionalKilometers: number;
|
|
34
37
|
deductible: number;
|
|
35
38
|
depreciationPracticedAtReintegrate: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CerfaType } from '../../../Enum/CerfaType';
|
|
2
2
|
import { QuestionWording } from '../../..';
|
|
3
3
|
import { Question } from '../../../Enum/BalanceSheetQuestion';
|
|
4
|
+
import { TerminationType } from '../../../Enum/AnswerTypeValue';
|
|
4
5
|
|
|
5
6
|
export interface ReadCerfaToComplete {
|
|
6
7
|
declaration: CerfaType;
|
|
@@ -10,7 +11,29 @@ export interface ReadCerfaDocument {
|
|
|
10
11
|
file: any;
|
|
11
12
|
payload: any;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
export interface Accountant {
|
|
15
|
+
has: boolean;
|
|
16
|
+
name: string | null;
|
|
17
|
+
phone: string | null;
|
|
18
|
+
address: CerfaAddress;
|
|
19
|
+
}
|
|
20
|
+
export interface CouncilDetails {
|
|
21
|
+
has: boolean;
|
|
22
|
+
name: string | null;
|
|
23
|
+
phone: string | null;
|
|
24
|
+
address: CerfaAddress;
|
|
25
|
+
}
|
|
26
|
+
export interface EcfDetails {
|
|
27
|
+
has: boolean;
|
|
28
|
+
name: string | null;
|
|
29
|
+
address: CerfaAddress;
|
|
30
|
+
}
|
|
31
|
+
export interface ViewerDetails {
|
|
32
|
+
has: boolean;
|
|
33
|
+
name: string;
|
|
34
|
+
address: CerfaAddress
|
|
35
|
+
number: string | null;
|
|
36
|
+
}
|
|
14
37
|
export interface CerfaAddress {
|
|
15
38
|
number: string;
|
|
16
39
|
street: string;
|
|
@@ -25,4 +48,9 @@ export interface CerfaAddress {
|
|
|
25
48
|
|
|
26
49
|
export type CerfaAnswers = {
|
|
27
50
|
[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
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type Termination = {
|
|
54
|
+
type: TerminationType,
|
|
55
|
+
date: string | null
|
|
28
56
|
};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
export interface PartnersLegalEntity {
|
|
2
2
|
address: CerfaAddressFromQuestion;
|
|
3
3
|
holdingPercent: number;
|
|
4
|
+
legalForm: string;
|
|
4
5
|
name: string;
|
|
5
6
|
shareNumber: number;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
siret: string;
|
|
8
|
+
isParentCompany?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface PartnersNaturalPersonPayment {
|
|
12
|
+
paymentYear: number;
|
|
13
|
+
emolumentsAndCompensations?: number;
|
|
14
|
+
fixedCompensations?: number;
|
|
15
|
+
reimbursements?: number;
|
|
8
16
|
}
|
|
9
17
|
|
|
10
18
|
export interface PartnersNaturalPerson {
|
|
@@ -14,12 +22,21 @@ export interface PartnersNaturalPerson {
|
|
|
14
22
|
birthPlace: string;
|
|
15
23
|
firstname: string;
|
|
16
24
|
holdingPercent: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Should be an id from the country list
|
|
28
|
+
*/
|
|
17
29
|
idBirthCountry: number;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Should be an id from the civility list
|
|
33
|
+
*/
|
|
18
34
|
idCivility: number;
|
|
19
35
|
individualProfessionalExpenses: number;
|
|
20
36
|
isOwner: boolean;
|
|
21
37
|
lastname: string;
|
|
22
38
|
marriedName: string;
|
|
39
|
+
payments?: PartnersNaturalPersonPayment[];
|
|
23
40
|
shareNumber: number;
|
|
24
41
|
taxNumber: string;
|
|
25
42
|
}
|
|
@@ -51,11 +68,16 @@ export interface Affiliate {
|
|
|
51
68
|
holdingPercent: number;
|
|
52
69
|
legalForm: string;
|
|
53
70
|
name: string;
|
|
54
|
-
|
|
71
|
+
siret: string;
|
|
55
72
|
}
|
|
56
73
|
|
|
57
74
|
export interface OtherActivity {
|
|
58
75
|
legalForm: string;
|
|
59
76
|
name: string;
|
|
60
77
|
salary: number;
|
|
61
|
-
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface LabelAndAmount {
|
|
81
|
+
amount: number;
|
|
82
|
+
label: string;
|
|
83
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IsArray, IsNumber, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class RegenerateInternalInvoicing {
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsArray()
|
|
8
|
+
idSociety: Array<number>;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsNumber()
|
|
12
|
+
month: number;
|
|
13
|
+
|
|
14
|
+
@ApiProperty()
|
|
15
|
+
@IsNumber()
|
|
16
|
+
year: number;
|
|
17
|
+
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean, IsOptional, IsEnum,
|
|
3
|
+
} from 'class-validator';
|
|
2
4
|
import { ApiProperty, ApiPropertyOptional } from '../../../..';
|
|
3
5
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
+
import { ItemStatus } from '../../../Enum/JeDeclare';
|
|
4
7
|
|
|
5
8
|
export class CreateDocumentsParams {
|
|
6
9
|
@ApiProperty()
|
|
7
|
-
@
|
|
10
|
+
@IsEnum(ItemStatus)
|
|
8
11
|
itemStatus: string;
|
|
9
12
|
|
|
10
|
-
@ApiProperty()
|
|
11
|
-
@IsString()
|
|
12
|
-
procedureType: string;
|
|
13
|
-
|
|
14
|
-
@ApiProperty()
|
|
15
|
-
@IsString()
|
|
16
|
-
listType: string;
|
|
17
|
-
|
|
18
13
|
@ApiPropertyOptional()
|
|
19
14
|
@IsBoolean()
|
|
20
15
|
@ToBoolean()
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArrayUnique,
|
|
3
|
+
IsArray,
|
|
4
|
+
ValidateNested,
|
|
5
|
+
} from 'class-validator';
|
|
6
|
+
import { ApiProperty } from '../../../..';
|
|
7
|
+
|
|
8
|
+
class KilometricAllowanceValidation {
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
idVehicle!: number;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
idSocietyPartner!: number;
|
|
14
|
+
|
|
15
|
+
@ApiProperty()
|
|
16
|
+
amount!: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class CreateKilometricAllowanceValidation {
|
|
20
|
+
@IsArray()
|
|
21
|
+
@ArrayUnique((q) => q.idVehicle)
|
|
22
|
+
@ValidateNested({
|
|
23
|
+
each: true,
|
|
24
|
+
})
|
|
25
|
+
kilometricAllowances: Array<KilometricAllowanceValidation>;
|
|
26
|
+
}
|
|
@@ -6,7 +6,7 @@ import { ApiPropertyOptional } from '../../../../utils';
|
|
|
6
6
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
7
7
|
|
|
8
8
|
export class QueryRevisionAccount implements QueryPaginate {
|
|
9
|
-
@ApiProperty()
|
|
9
|
+
@ApiProperty({ default: 1 })
|
|
10
10
|
@IsNumber()
|
|
11
11
|
page: number;
|
|
12
12
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsDate, IsEnum, IsNumber, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { AccountingJournal, ApiProperty } from '../../../..';
|
|
5
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
6
|
+
|
|
7
|
+
export class QueryRevisionSearchEntries {
|
|
8
|
+
// Mandatory
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsNumber()
|
|
11
|
+
idSociety: number;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsDate()
|
|
15
|
+
startDate: Date;
|
|
16
|
+
|
|
17
|
+
@ApiProperty()
|
|
18
|
+
@IsDate()
|
|
19
|
+
endDate: Date;
|
|
20
|
+
|
|
21
|
+
// Optional
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsNumber()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
idThirdParty?: number;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsNumber()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
amount?: number;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsNumber()
|
|
34
|
+
@IsOptional()
|
|
35
|
+
difference?: number;
|
|
36
|
+
|
|
37
|
+
@ApiPropertyOptional()
|
|
38
|
+
@IsString()
|
|
39
|
+
@IsOptional()
|
|
40
|
+
designation?: string;
|
|
41
|
+
|
|
42
|
+
@ApiPropertyOptional()
|
|
43
|
+
@IsString()
|
|
44
|
+
@IsOptional()
|
|
45
|
+
startAccountNumber?: string;
|
|
46
|
+
|
|
47
|
+
@ApiPropertyOptional()
|
|
48
|
+
@IsString()
|
|
49
|
+
@IsOptional()
|
|
50
|
+
endAccountNumber?: string;
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
@IsEnum(AccountingJournal)
|
|
54
|
+
@IsOptional()
|
|
55
|
+
idAccountingJournal?: number;
|
|
56
|
+
|
|
57
|
+
// Interface paginate
|
|
58
|
+
@ApiProperty({ default: 25 })
|
|
59
|
+
@IsNumber()
|
|
60
|
+
limit?: number = 25;
|
|
61
|
+
|
|
62
|
+
@ApiProperty({ default: 1 })
|
|
63
|
+
@IsNumber()
|
|
64
|
+
page?: number = 1;
|
|
65
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -391,8 +391,10 @@ export * from './Enum/Currency';
|
|
|
391
391
|
export * from './Enum/BalanceSheetModule';
|
|
392
392
|
export * from './Enum/BalanceSheetStatus';
|
|
393
393
|
export * from './Enum/FuelType';
|
|
394
|
+
export * from './Enum/KilometricAllowanceScale';
|
|
394
395
|
|
|
395
396
|
// Interfaces API
|
|
397
|
+
export * from './Interface/api/jeDeclare/ReadJeDeclare';
|
|
396
398
|
export * from './Interface/api/aspone/ReadInterchange';
|
|
397
399
|
export * from './Interface/api/aspone/Util';
|
|
398
400
|
export * from './Interface/api/businessPartner/ReadBusinessPartner';
|
|
@@ -468,6 +470,7 @@ export * from './Interface/api/quotes/CreateQuoteAccount';
|
|
|
468
470
|
export * from './Interface/api/account/ReadQuoteAccount';
|
|
469
471
|
export * from './Interface/api/internalInvoicing/CreateInternalInvoicing';
|
|
470
472
|
export * from './Interface/api/internalInvoicing/CreateInternalInvoicing2in';
|
|
473
|
+
export * from './Interface/api/internalInvoicing/RegenerateInternalInvoicing';
|
|
471
474
|
export * from './Interface/api/exercice/QueryExercice';
|
|
472
475
|
export * from './Interface/api/exercice/CreateExercice';
|
|
473
476
|
export * from './Interface/api/accountingIncome/ReadAccountingIncome';
|
|
@@ -486,6 +489,7 @@ export * from './Interface/api/revision/ReadRevisionAccount';
|
|
|
486
489
|
export * from './Interface/api/revision/ReadRevisionTransactionDetail';
|
|
487
490
|
export * from './Interface/api/revision/QueryRevisionMergeIntoAccount';
|
|
488
491
|
export * from './Interface/api/revision/ReadRevisionMergeIntoAccount';
|
|
492
|
+
export * from './Interface/api/revision/QueryRevisionSearchEntries';
|
|
489
493
|
|
|
490
494
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
491
495
|
export * from './Interface/api/survey/ReadSurvey';
|
|
@@ -622,5 +626,6 @@ export * from './Interface/api/jeDeclare/Util';
|
|
|
622
626
|
export * from './Interface/api/jeDeclare/CreateDocumentsParams';
|
|
623
627
|
export * from './Interface/api/jeDeclare/UtilCFONB';
|
|
624
628
|
export * from './Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion';
|
|
629
|
+
export * from './Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation';
|
|
625
630
|
|
|
626
631
|
export * from '../utils/cerfa';
|
package/ts/utils/index.ts
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function validateSiret(siret: string) {
|
|
2
|
+
if (!/^\d{14}$/.test(siret)) throw new Error('Invalid SIRET format');
|
|
3
|
+
|
|
4
|
+
const siretArray = Array.from(siret).map(Number).reverse();
|
|
5
|
+
const luhnSum = siretArray.reduce((acc, v, i) => {
|
|
6
|
+
if (i % 2 === 1) {
|
|
7
|
+
const currentVal = v * 2;
|
|
8
|
+
if (currentVal > 9) {
|
|
9
|
+
const array = Array.from(currentVal.toString());
|
|
10
|
+
return acc + Number(array[0]) + Number(array[1]);
|
|
11
|
+
}
|
|
12
|
+
return acc + currentVal;
|
|
13
|
+
}
|
|
14
|
+
return acc + v;
|
|
15
|
+
}, 0);
|
|
16
|
+
|
|
17
|
+
if (luhnSum % 10 !== 0) {
|
|
18
|
+
// Specific rule for some La Poste SIRET
|
|
19
|
+
if (siret.startsWith('356000000')) {
|
|
20
|
+
const sum = siretArray.reduce((acc, v) => acc + v, 0);
|
|
21
|
+
if (sum % 5 !== 0) {
|
|
22
|
+
throw new Error('Invalid SIRET');
|
|
23
|
+
}
|
|
24
|
+
} else {
|
|
25
|
+
throw new Error('Invalid SIRET');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|