@silexpert/core 0.4.13 → 0.4.15
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/BalanceSheet.d.ts +8 -0
- package/es/api/resources/BalanceSheet.d.ts.map +1 -0
- package/es/api/resources/BalanceSheet.js +12 -0
- package/es/api/resources/BalanceSheet.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/Letter.d.ts +6 -0
- package/es/api/resources/Letter.d.ts.map +1 -0
- package/es/api/resources/Letter.js +7 -0
- package/es/api/resources/Letter.js.map +1 -0
- package/es/api/resources/Report.d.ts +14 -0
- package/es/api/resources/Report.d.ts.map +1 -0
- package/es/api/resources/Report.js +13 -0
- package/es/api/resources/Report.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/User.d.ts +4 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +9 -0
- package/es/api/resources/User.js.map +1 -1
- package/es/api/resources.d.ts +14 -2
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +14 -2
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AccountingJournal.d.ts +2 -1
- package/es/types/Enum/AccountingJournal.d.ts.map +1 -1
- package/es/types/Enum/AccountingJournal.js +1 -0
- package/es/types/Enum/AccountingJournal.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +21 -0
- package/es/types/Enum/BalanceSheet.d.ts.map +1 -0
- package/es/types/Enum/BalanceSheet.js +529 -0
- package/es/types/Enum/BalanceSheet.js.map +1 -0
- 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/IncomeStatement.d.ts +1 -0
- package/es/types/Enum/IncomeStatement.d.ts.map +1 -1
- package/es/types/Enum/IncomeStatement.js +5 -2
- package/es/types/Enum/IncomeStatement.js.map +1 -1
- 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/LetterType.d.ts +47 -0
- package/es/types/Enum/LetterType.d.ts.map +1 -0
- package/es/types/Enum/LetterType.js +47 -0
- package/es/types/Enum/LetterType.js.map +1 -0
- package/es/types/Enum/ReportState.d.ts +31 -0
- package/es/types/Enum/ReportState.d.ts.map +1 -0
- package/es/types/Enum/ReportState.js +31 -0
- package/es/types/Enum/ReportState.js.map +1 -0
- package/es/types/Enum/ReportType.d.ts +27 -0
- package/es/types/Enum/ReportType.d.ts.map +1 -0
- package/es/types/Enum/ReportType.js +27 -0
- package/es/types/Enum/ReportType.js.map +1 -0
- package/es/types/Enum/Role.d.ts +7 -2
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +6 -1
- package/es/types/Enum/Role.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/balanceSheet/ReadBalanceSheet.d.ts +11 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.js +2 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.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/letter/CreateLetter.d.ts +15 -0
- package/es/types/Interface/api/letter/CreateLetter.d.ts.map +1 -0
- package/es/types/Interface/api/letter/CreateLetter.js +57 -0
- package/es/types/Interface/api/letter/CreateLetter.js.map +1 -0
- package/es/types/Interface/api/report/CreateReport.d.ts +13 -0
- package/es/types/Interface/api/report/CreateReport.d.ts.map +1 -0
- package/es/types/Interface/api/report/CreateReport.js +45 -0
- package/es/types/Interface/api/report/CreateReport.js.map +1 -0
- package/es/types/Interface/api/report/QueryReports.d.ts +9 -0
- package/es/types/Interface/api/report/QueryReports.d.ts.map +1 -0
- package/es/types/Interface/api/report/QueryReports.js +37 -0
- package/es/types/Interface/api/report/QueryReports.js.map +1 -0
- package/es/types/Interface/api/report/ReadReport.d.ts +8 -0
- package/es/types/Interface/api/report/ReadReport.d.ts.map +1 -0
- package/es/types/Interface/api/report/ReadReport.js +2 -0
- package/es/types/Interface/api/report/ReadReport.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/api/user/CreateUser.d.ts +10 -0
- package/es/types/Interface/api/user/CreateUser.d.ts.map +1 -0
- package/es/types/Interface/api/user/CreateUser.js +41 -0
- package/es/types/Interface/api/user/CreateUser.js.map +1 -0
- package/es/types/Interface/api/user/QueryUserSmsConfirmation.d.ts +4 -0
- package/es/types/Interface/api/user/QueryUserSmsConfirmation.d.ts.map +1 -0
- package/es/types/Interface/api/user/QueryUserSmsConfirmation.js +17 -0
- package/es/types/Interface/api/user/QueryUserSmsConfirmation.js.map +1 -0
- package/es/types/Interface/models/IAccountingJournal.d.ts +2 -0
- package/es/types/Interface/models/IAccountingJournal.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingJournal.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +9 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +11 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/ILetter.d.ts +18 -14
- package/es/types/Interface/models/ILetter.d.ts.map +1 -1
- package/es/types/Interface/models/ILetter.js.map +1 -1
- package/es/types/Interface/models/IReport.d.ts +12 -11
- package/es/types/Interface/models/IReport.d.ts.map +1 -1
- package/es/types/Interface/models/IReport.js.map +1 -1
- package/es/types/Interface/models/IReportMessage.d.ts +1 -1
- package/es/types/Interface/models/IReportMessage.d.ts.map +1 -1
- package/es/types/Interface/models/IReportMessage.js.map +1 -1
- package/es/types/Interface/models/IReportType.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +0 -1
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +22 -4
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +23 -4
- 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/BalanceSheet.js +23 -0
- package/js/api/resources/BalanceSheet.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/Letter.js +18 -0
- package/js/api/resources/Letter.js.map +1 -0
- package/js/api/resources/Report.js +28 -0
- package/js/api/resources/Report.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/User.js +14 -0
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources.js +21 -3
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AccountingJournal.js +1 -0
- package/js/types/Enum/AccountingJournal.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +438 -0
- package/js/types/Enum/BalanceSheet.js.map +1 -0
- package/js/types/Enum/DefaultPermissions.js +18 -0
- package/js/types/Enum/DefaultPermissions.js.map +1 -0
- package/js/types/Enum/IncomeStatement.js +5 -2
- package/js/types/Enum/IncomeStatement.js.map +1 -1
- package/js/types/Enum/LegalForm.js +1 -0
- package/js/types/Enum/LegalForm.js.map +1 -1
- package/js/types/Enum/LetterType.js +52 -0
- package/js/types/Enum/LetterType.js.map +1 -0
- package/js/types/Enum/ReportState.js +36 -0
- package/js/types/Enum/ReportState.js.map +1 -0
- package/js/types/Enum/ReportType.js +32 -0
- package/js/types/Enum/ReportType.js.map +1 -0
- package/js/types/Enum/Role.js +6 -1
- package/js/types/Enum/Role.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/balanceSheet/ReadBalanceSheet.js +6 -0
- package/js/types/Interface/api/balanceSheet/ReadBalanceSheet.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/letter/CreateLetter.js +47 -0
- package/js/types/Interface/api/letter/CreateLetter.js.map +1 -0
- package/js/types/Interface/api/report/CreateReport.js +41 -0
- package/js/types/Interface/api/report/CreateReport.js.map +1 -0
- package/js/types/Interface/api/report/QueryReports.js +37 -0
- package/js/types/Interface/api/report/QueryReports.js.map +1 -0
- package/js/types/Interface/api/{society/ReadSociety.js → report/ReadReport.js} +1 -1
- package/js/types/Interface/api/{society/ReadSociety.js.map → report/ReadReport.js.map} +1 -1
- 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/GetDataSociety.js +6 -0
- package/js/types/Interface/api/society/GetDataSociety.js.map +1 -0
- 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/api/user/CreateUser.js +39 -0
- package/js/types/Interface/api/user/CreateUser.js.map +1 -0
- package/js/types/Interface/api/user/QueryUserSmsConfirmation.js +27 -0
- package/js/types/Interface/api/user/QueryUserSmsConfirmation.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +14 -3
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +240 -24
- package/js/types/index.js.map +1 -1
- package/package.json +16 -16
- package/ts/api/resources/Authenticate.ts +7 -0
- package/ts/api/resources/BalanceSheet.ts +12 -0
- package/ts/api/resources/Cerfa.ts +13 -0
- package/ts/api/resources/LegalForm.ts +8 -0
- package/ts/api/resources/Letter.ts +10 -0
- package/ts/api/resources/Report.ts +22 -0
- package/ts/api/resources/Society.ts +11 -0
- package/ts/api/resources/User.ts +12 -1
- package/ts/api/resources.ts +14 -2
- package/ts/types/Enum/AccountingJournal.ts +1 -0
- package/ts/types/Enum/BalanceSheet.ts +555 -0
- package/ts/types/Enum/DefaultPermissions.ts +12 -0
- package/ts/types/Enum/IncomeStatement.ts +6 -2
- package/ts/types/Enum/LegalForm.ts +1 -0
- package/ts/types/Enum/LetterType.ts +46 -0
- package/ts/types/Enum/ReportState.ts +30 -0
- package/ts/types/Enum/ReportType.ts +26 -0
- package/ts/types/Enum/Role.ts +6 -1
- package/ts/types/Enum/Vehicle.ts +7 -0
- package/ts/types/Enum/VehicleType.ts +14 -0
- package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +10 -0
- package/ts/types/Interface/api/cerfa/CreateCerfa.ts +350 -0
- package/ts/types/Interface/api/letter/CreateLetter.ts +37 -0
- package/ts/types/Interface/api/report/CreateReport.ts +29 -0
- package/ts/types/Interface/api/report/QueryReports.ts +21 -0
- package/ts/types/Interface/api/report/ReadReport.ts +9 -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/api/user/CreateUser.ts +18 -0
- package/ts/types/Interface/api/user/QueryUserSmsConfirmation.ts +6 -0
- package/ts/types/Interface/models/IAccountingJournal.ts +2 -0
- package/ts/types/Interface/models/IApiError.ts +14 -0
- package/ts/types/Interface/models/ILetter.ts +18 -14
- package/ts/types/Interface/models/IReport.ts +12 -11
- package/ts/types/Interface/models/IReportMessage.ts +1 -1
- package/ts/types/Interface/models/IReportType.ts +1 -1
- package/ts/types/Interface/models/ISociety.ts +0 -1
- package/ts/types/index.ts +23 -4
- 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,26 @@
|
|
|
1
|
+
export const ReportType = {
|
|
2
|
+
LETTER: {
|
|
3
|
+
id: 1,
|
|
4
|
+
name: 'Lettre à l\'ordre',
|
|
5
|
+
},
|
|
6
|
+
FRAUD: {
|
|
7
|
+
id: 2,
|
|
8
|
+
name: 'Suspicion de fraude',
|
|
9
|
+
},
|
|
10
|
+
ATTITUDE: {
|
|
11
|
+
id: 3,
|
|
12
|
+
name: 'Attitude déplacée',
|
|
13
|
+
},
|
|
14
|
+
BLOCKED: {
|
|
15
|
+
id: 4,
|
|
16
|
+
name: 'Dossier bloqué',
|
|
17
|
+
},
|
|
18
|
+
NO_RESPONSE: {
|
|
19
|
+
id: 5,
|
|
20
|
+
name: 'Pas de réponse',
|
|
21
|
+
},
|
|
22
|
+
NEGATIVE_OPINION: {
|
|
23
|
+
id: 6,
|
|
24
|
+
name: 'Avis négatif',
|
|
25
|
+
},
|
|
26
|
+
};
|
package/ts/types/Enum/Role.ts
CHANGED
|
@@ -3,7 +3,7 @@ export enum Role {
|
|
|
3
3
|
ADMIN = 2,
|
|
4
4
|
FRONT_OFFICE = 3,
|
|
5
5
|
COMMERCIAL = 9,
|
|
6
|
-
|
|
6
|
+
CUSTOMER_SUCCESS = 10,
|
|
7
7
|
SOCIAL = 11,
|
|
8
8
|
JURIDIC = 12,
|
|
9
9
|
CHIEF_ACCOUNTANT = 13,
|
|
@@ -21,4 +21,9 @@ export enum Role {
|
|
|
21
21
|
API = 26,
|
|
22
22
|
BACK_OFFICE = 27,
|
|
23
23
|
BACK_OFFICE_EXPRESS = 28,
|
|
24
|
+
BACK_MANAGER = 30,
|
|
25
|
+
FRONT_MANAGER = 31,
|
|
26
|
+
CUSTOMER_SUCCESS_MANAGER = 32,
|
|
27
|
+
COMMERCIAL_MANAGER = 33,
|
|
28
|
+
FACTURATION = 34,
|
|
24
29
|
}
|
|
@@ -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,37 @@
|
|
|
1
|
+
import { ILetter } from '../../..';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class CreateLetter implements ILetter {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
idLetterType: number;
|
|
7
|
+
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
idReport?: number;
|
|
10
|
+
|
|
11
|
+
@ApiProperty()
|
|
12
|
+
idSociety: number;
|
|
13
|
+
|
|
14
|
+
@ApiProperty()
|
|
15
|
+
letterDate: Date;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
complement?: string;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
fileType?: 'receivedFileObject' | 'responseFileObject' | null;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
isLRAR?: boolean;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
isDone?: boolean;
|
|
28
|
+
|
|
29
|
+
@ApiPropertyOptional()
|
|
30
|
+
needResponse?: boolean;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
ARNumber?: string;
|
|
34
|
+
|
|
35
|
+
@ApiPropertyOptional()
|
|
36
|
+
idAccountant?: number;
|
|
37
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IReport } from '../../..';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { TFile } from '../file/TFile';
|
|
4
|
+
|
|
5
|
+
export class CreateReport implements IReport {
|
|
6
|
+
@ApiPropertyOptional()
|
|
7
|
+
idReportType?: number;
|
|
8
|
+
|
|
9
|
+
@ApiPropertyOptional()
|
|
10
|
+
idSociety?: number;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
idUser: number;
|
|
14
|
+
|
|
15
|
+
@ApiProperty()
|
|
16
|
+
message: string;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
search?: string;
|
|
20
|
+
|
|
21
|
+
@ApiProperty()
|
|
22
|
+
letterDate: Date;
|
|
23
|
+
|
|
24
|
+
@ApiPropertyOptional()
|
|
25
|
+
receivedFile?: TFile;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
responseFile?: TFile;
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class QueryReports {
|
|
4
|
+
@ApiPropertyOptional()
|
|
5
|
+
idReportType?: number;
|
|
6
|
+
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
idSociety?: number;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
search?: string;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
year?: number;
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
state?: number;
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
idUser?: number;
|
|
21
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class CreateUser {
|
|
4
|
+
@ApiProperty()
|
|
5
|
+
email: string;
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
phone: string;
|
|
8
|
+
@ApiProperty()
|
|
9
|
+
password: string;
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
firstname: string;
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
lastname: string;
|
|
14
|
+
@ApiProperty()
|
|
15
|
+
acceptCgv?: boolean; // not sure if needed (maybe more a front notion)
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
acceptNewsletter?: boolean;
|
|
18
|
+
}
|
|
@@ -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',
|
|
@@ -53,8 +54,21 @@ export enum Code {
|
|
|
53
54
|
// Income statement
|
|
54
55
|
invalidIncomeStatementList = 'invalid_income_statement_list',
|
|
55
56
|
|
|
57
|
+
// Balance Sheet
|
|
58
|
+
invalidBalanceSheetList = 'invalid_balance_sheet_list',
|
|
59
|
+
|
|
56
60
|
// FecFile
|
|
57
61
|
insertAccountingTransactionFailed = 'insert_accounting_transaction_failed',
|
|
62
|
+
|
|
63
|
+
// User creation
|
|
64
|
+
userAlreadyExistWithSociety = 'user-already-exists',
|
|
65
|
+
userDoesNotExists = 'user-does-not-exist',
|
|
66
|
+
expiredSmsCode = 'expired-sms-code',
|
|
67
|
+
userNotInFmaProcess = 'user-not-in-maf-process',
|
|
68
|
+
wrongSmsCode = 'wrong-sms-code',
|
|
69
|
+
|
|
70
|
+
// Cerfa
|
|
71
|
+
civilityNotFound = 'civility_not_found',
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
export interface IApiError {
|
|
@@ -2,27 +2,31 @@ import { IUser } from './IUser';
|
|
|
2
2
|
import { ISociety } from './ISociety';
|
|
3
3
|
import { ILetterType } from './ILetterType';
|
|
4
4
|
import { IFile } from './IFile';
|
|
5
|
+
import { IReport } from './IReport';
|
|
5
6
|
|
|
6
7
|
// letters
|
|
7
8
|
export interface ILetter {
|
|
8
9
|
id?: number;
|
|
9
|
-
|
|
10
|
+
complement?: string | null;
|
|
11
|
+
isLRAR?: boolean;
|
|
12
|
+
isDone?: boolean;
|
|
13
|
+
needResponse?: boolean;
|
|
14
|
+
letterDate: Date;
|
|
15
|
+
ARNumber?: string | null;
|
|
16
|
+
idLetterType: number;
|
|
17
|
+
idReceivedFile?: number | null;
|
|
18
|
+
idResponseFile?: number | null;
|
|
10
19
|
idSociety: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
isLRAR: boolean;
|
|
14
|
-
idReceivedFile: number | null;
|
|
15
|
-
idResponseFile: number | null;
|
|
16
|
-
isDone: boolean;
|
|
17
|
-
needResponse: boolean;
|
|
18
|
-
receivedAt: Date;
|
|
20
|
+
idReport?: number;
|
|
21
|
+
idAccountant?: number;
|
|
19
22
|
createdAt?: Date | null;
|
|
20
23
|
updatedAt?: Date | null;
|
|
21
24
|
|
|
22
25
|
// Associations
|
|
23
|
-
user
|
|
24
|
-
society
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
user?: IUser;
|
|
27
|
+
society?: ISociety;
|
|
28
|
+
report?: IReport;
|
|
29
|
+
typeLetter?: ILetterType;
|
|
30
|
+
receivedFile?: IFile;
|
|
31
|
+
responseFile?: IFile;
|
|
28
32
|
}
|