@silexpert/core 1.2.12 → 1.2.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/dist/cjs/api/resources/Checklist.d.ts +2 -1
- package/dist/cjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/cjs/api/resources/Checklist.js +3 -0
- package/dist/cjs/api/resources/Checklist.js.map +1 -1
- package/dist/cjs/api/resources/FIle.d.ts +1 -0
- package/dist/cjs/api/resources/FIle.d.ts.map +1 -1
- package/dist/cjs/api/resources/FIle.js +3 -0
- package/dist/cjs/api/resources/FIle.js.map +1 -1
- package/dist/cjs/api/resources/Society.d.ts +3 -1
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +6 -0
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/api/resources/TimeRecorder.d.ts +3 -2
- package/dist/cjs/api/resources/TimeRecorder.d.ts.map +1 -1
- package/dist/cjs/api/resources/TimeRecorder.js +3 -0
- package/dist/cjs/api/resources/TimeRecorder.js.map +1 -1
- package/dist/cjs/api/resources/Wallet.d.ts +2 -1
- package/dist/cjs/api/resources/Wallet.d.ts.map +1 -1
- package/dist/cjs/api/resources/Wallet.js +3 -0
- package/dist/cjs/api/resources/Wallet.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +0 -1
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/Sepa.d.ts +7 -0
- package/dist/cjs/types/Enum/Sepa.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Sepa.js +46 -0
- package/dist/cjs/types/Enum/Sepa.js.map +1 -0
- package/dist/cjs/types/Enum/UnpaidReason.d.ts +12 -0
- package/dist/cjs/types/Enum/UnpaidReason.d.ts.map +1 -0
- package/dist/cjs/types/Enum/UnpaidReason.js +34 -0
- package/dist/cjs/types/Enum/UnpaidReason.js.map +1 -0
- package/dist/cjs/types/Interface/api/PaymentRecovery/Create.d.ts +1 -1
- package/dist/cjs/types/Interface/api/PaymentRecovery/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/PaymentRecovery/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +2 -0
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts +7 -0
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.js +32 -1
- package/dist/cjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts +37 -29
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +89 -31
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts +46 -29
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.d.ts +11 -0
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.js +69 -0
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.js.map +1 -0
- package/dist/cjs/types/Interface/api/society/ReadSocietyUnpaidStats.d.ts +5 -0
- package/dist/cjs/types/Interface/api/society/ReadSocietyUnpaidStats.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/society/ReadSocietyUnpaidStats.js +3 -0
- package/dist/cjs/types/Interface/api/society/ReadSocietyUnpaidStats.js.map +1 -0
- package/dist/cjs/types/Interface/api/society/UpdateSociety.d.ts +1 -0
- package/dist/cjs/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/UpdateSociety.js +7 -0
- package/dist/cjs/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/dist/cjs/types/Interface/api/timeRecorder/CreateRecorder.d.ts +15 -0
- package/dist/cjs/types/Interface/api/timeRecorder/CreateRecorder.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/timeRecorder/CreateRecorder.js +82 -0
- package/dist/cjs/types/Interface/api/timeRecorder/CreateRecorder.js.map +1 -0
- package/dist/cjs/types/Interface/api/timeRecorder/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/timeRecorder/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/timeRecorder/Query.js +9 -1
- package/dist/cjs/types/Interface/api/timeRecorder/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/timeRecorder/UpdateRecorder.d.ts +1 -0
- package/dist/cjs/types/Interface/api/timeRecorder/UpdateRecorder.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/timeRecorder/UpdateRecorder.js +7 -0
- package/dist/cjs/types/Interface/api/timeRecorder/UpdateRecorder.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentRecovery.d.ts +0 -3
- package/dist/cjs/types/Interface/models/IPaymentRecovery.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentRecovery.js.map +1 -1
- package/dist/cjs/types/index.d.ts +5 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +5 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/brands.d.ts +1 -0
- package/dist/cjs/utils/brands.d.ts.map +1 -1
- package/dist/cjs/utils/brands.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/recovery.d.ts +5 -0
- package/dist/cjs/utils/commercialManagement/recovery.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/recovery.js +5 -0
- package/dist/cjs/utils/commercialManagement/recovery.js.map +1 -1
- package/dist/cjs/utils/documents.d.ts.map +1 -1
- package/dist/cjs/utils/documents.js +2 -5
- package/dist/cjs/utils/documents.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century23.js +1 -1
- package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century24.js +1 -1
- package/dist/cjs/utils/vat/3310/century24.js.map +1 -1
- package/dist/mjs/api/resources/Checklist.d.ts +2 -1
- package/dist/mjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/mjs/api/resources/Checklist.js +6 -0
- package/dist/mjs/api/resources/Checklist.js.map +1 -1
- package/dist/mjs/api/resources/FIle.d.ts +1 -0
- package/dist/mjs/api/resources/FIle.d.ts.map +1 -1
- package/dist/mjs/api/resources/FIle.js +3 -0
- package/dist/mjs/api/resources/FIle.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +3 -1
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +11 -0
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/api/resources/TimeRecorder.d.ts +3 -2
- package/dist/mjs/api/resources/TimeRecorder.d.ts.map +1 -1
- package/dist/mjs/api/resources/TimeRecorder.js +3 -0
- package/dist/mjs/api/resources/TimeRecorder.js.map +1 -1
- package/dist/mjs/api/resources/Wallet.d.ts +2 -1
- package/dist/mjs/api/resources/Wallet.d.ts.map +1 -1
- package/dist/mjs/api/resources/Wallet.js +6 -0
- package/dist/mjs/api/resources/Wallet.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +0 -1
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/Sepa.d.ts +7 -0
- package/dist/mjs/types/Enum/Sepa.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Sepa.js +43 -0
- package/dist/mjs/types/Enum/Sepa.js.map +1 -0
- package/dist/mjs/types/Enum/UnpaidReason.d.ts +12 -0
- package/dist/mjs/types/Enum/UnpaidReason.d.ts.map +1 -0
- package/dist/mjs/types/Enum/UnpaidReason.js +31 -0
- package/dist/mjs/types/Enum/UnpaidReason.js.map +1 -0
- package/dist/mjs/types/Interface/api/PaymentRecovery/Create.d.ts +1 -1
- package/dist/mjs/types/Interface/api/PaymentRecovery/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/PaymentRecovery/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +2 -0
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts +7 -0
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.js +36 -1
- package/dist/mjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts +37 -29
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +101 -35
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts +46 -29
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.d.ts +11 -0
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.js +73 -0
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.js.map +1 -0
- package/dist/mjs/types/Interface/api/society/ReadSocietyUnpaidStats.d.ts +5 -0
- package/dist/mjs/types/Interface/api/society/ReadSocietyUnpaidStats.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/society/ReadSocietyUnpaidStats.js +2 -0
- package/dist/mjs/types/Interface/api/society/ReadSocietyUnpaidStats.js.map +1 -0
- package/dist/mjs/types/Interface/api/society/UpdateSociety.d.ts +1 -0
- package/dist/mjs/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/UpdateSociety.js +9 -1
- package/dist/mjs/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/dist/mjs/types/Interface/api/timeRecorder/CreateRecorder.d.ts +15 -0
- package/dist/mjs/types/Interface/api/timeRecorder/CreateRecorder.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/timeRecorder/CreateRecorder.js +89 -0
- package/dist/mjs/types/Interface/api/timeRecorder/CreateRecorder.js.map +1 -0
- package/dist/mjs/types/Interface/api/timeRecorder/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/timeRecorder/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/timeRecorder/Query.js +8 -0
- package/dist/mjs/types/Interface/api/timeRecorder/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/timeRecorder/UpdateRecorder.d.ts +1 -0
- package/dist/mjs/types/Interface/api/timeRecorder/UpdateRecorder.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/timeRecorder/UpdateRecorder.js +8 -0
- package/dist/mjs/types/Interface/api/timeRecorder/UpdateRecorder.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentRecovery.d.ts +0 -3
- package/dist/mjs/types/Interface/models/IPaymentRecovery.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentRecovery.js.map +1 -1
- package/dist/mjs/types/index.d.ts +5 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +5 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/brands.d.ts +1 -0
- package/dist/mjs/utils/brands.d.ts.map +1 -1
- package/dist/mjs/utils/brands.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/recovery.d.ts +5 -0
- package/dist/mjs/utils/commercialManagement/recovery.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/recovery.js +5 -0
- package/dist/mjs/utils/commercialManagement/recovery.js.map +1 -1
- package/dist/mjs/utils/documents.d.ts.map +1 -1
- package/dist/mjs/utils/documents.js +2 -5
- package/dist/mjs/utils/documents.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century23.js +1 -1
- package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century24.js +1 -1
- package/dist/mjs/utils/vat/3310/century24.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Checklist.ts +8 -1
- package/ts/api/resources/FIle.ts +4 -0
- package/ts/api/resources/Society.ts +14 -0
- package/ts/api/resources/TimeRecorder.ts +7 -2
- package/ts/api/resources/Wallet.ts +8 -1
- package/ts/types/Enum/BalanceSheet.ts +0 -1
- package/ts/types/Enum/BrandClementine.ts +1 -1
- package/ts/types/Enum/BrandLegalstart.ts +1 -1
- package/ts/types/Enum/Sepa.ts +48 -0
- package/ts/types/Enum/UnpaidReason.ts +30 -0
- package/ts/types/Interface/api/PaymentRecovery/Create.ts +1 -1
- package/ts/types/Interface/api/cerfa/2035.ts +2 -0
- package/ts/types/Interface/api/checklist/Query.ts +26 -0
- package/ts/types/Interface/api/previsionalForm/CreatePrevisionalForm.ts +88 -32
- package/ts/types/Interface/api/previsionalForm/PrevisionalFormPayload.ts +50 -30
- package/ts/types/Interface/api/society/QueryUnpaid.ts +47 -0
- package/ts/types/Interface/api/society/ReadSocietyUnpaidStats.ts +4 -0
- package/ts/types/Interface/api/society/UpdateSociety.ts +7 -1
- package/ts/types/Interface/api/timeRecorder/CreateRecorder.ts +59 -0
- package/ts/types/Interface/api/timeRecorder/Query.ts +6 -0
- package/ts/types/Interface/api/timeRecorder/UpdateRecorder.ts +6 -0
- package/ts/types/Interface/models/IPaymentRecovery.ts +0 -3
- package/ts/types/index.ts +5 -0
- package/ts/utils/brands.ts +1 -0
- package/ts/utils/commercialManagement/recovery.ts +5 -0
- package/ts/utils/documents.ts +2 -5
- package/ts/utils/vat/3310/century23.ts +1 -1
- package/ts/utils/vat/3310/century24.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CancelToken } from 'axios';
|
|
2
2
|
import {
|
|
3
3
|
BasePaginate,
|
|
4
|
-
IChecklist, IChecklistType, QueryChecklistStatistic, QueryChecklistUpdate, QueryChecklistWallet, QueryGenerateAdvice, QueryGetAllBlockingIssues, QueryGetAllDeadlines, QueryGetAllQuestions, ReadChecklistDeadline, ReadChecklistWallet, UpdateAnswer,
|
|
4
|
+
IChecklist, IChecklistType, QueryChecklistGetPaginated, QueryChecklistStatistic, QueryChecklistUpdate, QueryChecklistWallet, QueryGenerateAdvice, QueryGetAllBlockingIssues, QueryGetAllDeadlines, QueryGetAllQuestions, ReadChecklistDeadline, ReadChecklistWallet, UpdateAnswer,
|
|
5
5
|
} from '../../types';
|
|
6
6
|
import { getAllBlockingIssues } from '../../utils/checklist';
|
|
7
7
|
import { Resource } from '../Resource';
|
|
@@ -39,6 +39,13 @@ export class Checklist extends Resource {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
getPaginated(params: QueryChecklistGetPaginated, signal?: AbortSignal): Promise<BasePaginate<ReadChecklistWallet>> {
|
|
43
|
+
return this.axios.$get('/checklists/paginate', {
|
|
44
|
+
...(signal ? { signal } : {}),
|
|
45
|
+
params,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
42
49
|
getStatisticsByAccountant(params: QueryChecklistStatistic, cancelToken?: CancelToken, signal?: AbortSignal): Promise<ReadChecklistWallet> {
|
|
43
50
|
return this.axios.$get('/checklists/statistics', {
|
|
44
51
|
...(cancelToken ? { cancelToken } : {}),
|
package/ts/api/resources/FIle.ts
CHANGED
|
@@ -28,6 +28,10 @@ export class File extends Resource {
|
|
|
28
28
|
return this.axios.$get(`societies/${idSociety}/files/${id}/buffer`, { responseType: 'blob' });
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
getConfigBuffer(id: number): Promise<Buffer> {
|
|
32
|
+
return this.axios.$get(`/files/${id}/buffer`, { responseType: 'arraybuffer' });
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
update(id: number, payload: Partial<IFile>): Promise<IFile> {
|
|
32
36
|
return this.axios.$patch(`files/${id}`, payload);
|
|
33
37
|
}
|
|
@@ -25,6 +25,8 @@ import {
|
|
|
25
25
|
QueryExportSociety,
|
|
26
26
|
QueryAccountingExport,
|
|
27
27
|
GetSocietyState,
|
|
28
|
+
QueryUnpaidSociety,
|
|
29
|
+
ReadSocietyUnpaidStats,
|
|
28
30
|
} from '../../types';
|
|
29
31
|
import { CancelToken } from 'axios';
|
|
30
32
|
|
|
@@ -116,6 +118,18 @@ export class Society extends Resource {
|
|
|
116
118
|
return this.axios.$get('/society/archived', { params: query });
|
|
117
119
|
}
|
|
118
120
|
|
|
121
|
+
getUnpaids(query: QueryUnpaidSociety, signal?: AbortSignal): Promise<ISociety[]> {
|
|
122
|
+
return this.axios.$get('/society/unpaids', {
|
|
123
|
+
...(signal ? { signal } : {}),
|
|
124
|
+
params: query });
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
getUnpaidsStats(signal?: AbortSignal): Promise<ReadSocietyUnpaidStats> {
|
|
128
|
+
return this.axios.$get('/society/unpaids/stats', {
|
|
129
|
+
...(signal ? { signal } : {}),
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
119
133
|
public getPaginatedNewJuridical(params: QueryPaginatedSociety, cancelToken?: CancelToken): Promise<BasePaginate<ISociety>> {
|
|
120
134
|
return this.axios.$get('/society/paginated-juridical', {
|
|
121
135
|
...(cancelToken ? { cancelToken } : {}),
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected,
|
|
3
|
+
ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, UpdateRecorder, QueryTimeRecorderGetStats, ReadUsersAbsent, ReadPlaceToWork, QueryAttendanceForLastConnexion,
|
|
4
|
+
CreateRecorder,
|
|
5
|
+
QueryGetTimeRecorder,
|
|
4
6
|
} from '../../types';
|
|
5
7
|
|
|
6
8
|
export class TimeRecorder extends Resource {
|
|
7
|
-
create(payload:
|
|
9
|
+
create(payload: CreateRecorder): Promise<TimeRecorder> {
|
|
8
10
|
return this.axios.$post('/time-recorders', payload);
|
|
9
11
|
}
|
|
10
12
|
update(payload: UpdateRecorder): Promise<TimeRecorder> {
|
|
11
13
|
return this.axios.$put('/time-recorders', payload);
|
|
12
14
|
}
|
|
15
|
+
getCurrent(idUser: number, params: QueryGetTimeRecorder): Promise<TimeRecorder> {
|
|
16
|
+
return this.axios.$get(`/users/${idUser}/current`, { params });
|
|
17
|
+
}
|
|
13
18
|
getAllPresenceHoursByUser(idUser: number, params: QueryAttendance): Promise<ReadAttendanceHours> {
|
|
14
19
|
return this.axios.$get(`/users/${idUser}/attendances`,
|
|
15
20
|
{ params });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CancelToken } from 'axios';
|
|
1
|
+
import { AxiosResponse, CancelToken } from 'axios';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
import { UpdateAttribution } from '../../types/Interface/api/wallet/UpdateAttribution';
|
|
4
4
|
import {
|
|
@@ -16,6 +16,13 @@ export class Wallet extends Resource {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
getAccountantCsv(idUser: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<AxiosResponse> {
|
|
20
|
+
return this.axios.$get(`/accountant-wallets/${idUser}/csv`, {
|
|
21
|
+
...(cancelToken ? { cancelToken } : {}),
|
|
22
|
+
...(signal ? { signal } : {}),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
19
26
|
update(idUser: number, payload: UpdateAttribution): Promise<{ message: string }> {
|
|
20
27
|
return this.axios.$put(`/users/${idUser}/wallets`, payload);
|
|
21
28
|
}
|
|
@@ -756,7 +756,6 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
|
|
|
756
756
|
name: 'Autres dettes',
|
|
757
757
|
key: 'OtherDebts',
|
|
758
758
|
accounts: ['411', '418', '4196', '4197', '464', '467', '4686', '471', '472', '478', '509'],
|
|
759
|
-
accountsDeducted: ['4198'],
|
|
760
759
|
accountsForceToDeduce: ['4198'],
|
|
761
760
|
// PASSIF Autres = lorsque l'entreprise doit de l'argent au client = somme débit > crédit (modifié)
|
|
762
761
|
idThirdPartyTypeToAdd: [ThirdPartyType.CUSTOMER, MathematicalSign.LESS],
|
|
@@ -163,7 +163,7 @@ export const BrandClementine: Brand[] = [
|
|
|
163
163
|
urlApp: 'https://app.compta-clementine.fr',
|
|
164
164
|
urlApi1: 'https://api-legalstart.compta-clementine.fr',
|
|
165
165
|
urlApi2: 'https://api-next-legalstart.compta-clementine.fr',
|
|
166
|
-
urlExpert: 'https://
|
|
166
|
+
urlExpert: 'https://expert.compta-clementine.fr',
|
|
167
167
|
urlClient: 'https://www.compta-clementine.fr',
|
|
168
168
|
bank: {
|
|
169
169
|
IBAN: 'FR7616106840138646838239863',
|
|
@@ -66,7 +66,7 @@ export const BrandLegalstart: Brand[] = [
|
|
|
66
66
|
urlApp: 'https://gestion.legalstart.fr',
|
|
67
67
|
urlApi1: 'https://api-legalstart.compta-clementine.fr',
|
|
68
68
|
urlApi2: 'https://api-next-legalstart.compta-clementine.fr',
|
|
69
|
-
urlExpert: 'https://pro.
|
|
69
|
+
urlExpert: 'https://pro.comptastartier.com',
|
|
70
70
|
urlClient: 'https://clementine.fr',
|
|
71
71
|
bank: {
|
|
72
72
|
IBAN: 'FR7616106840138646838239863',
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
type ErrorCodeSepaType = {
|
|
2
|
+
refXml:string,
|
|
3
|
+
motifXml:string,
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export const ErrorCodeSepa:ErrorCodeSepaType[] = [
|
|
7
|
+
{ refXml: 'AC01', motifXml: 'Coordonnées bancaires inexploitables' },
|
|
8
|
+
{ refXml: 'RC01', motifXml: 'Code BIC erroné' },
|
|
9
|
+
{
|
|
10
|
+
refXml: 'RR01',
|
|
11
|
+
motifXml: 'Motif réglementaire - Le compte ou identifiant débiteur est insuffisant ou manquant.',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
refXml: 'RR02',
|
|
15
|
+
motifXml:
|
|
16
|
+
'Motif réglementaire - Les renseignements du nom ou de l’adresse du débiteur sont insuffisants ou manquants.',
|
|
17
|
+
},
|
|
18
|
+
{ refXml: 'RR04', motifXml: 'Motif réglementaire - Autre' },
|
|
19
|
+
{
|
|
20
|
+
refXml: 'BE01',
|
|
21
|
+
motifXml: 'Le nom du débiteur ne correspond pas au nom du titulaire du compte',
|
|
22
|
+
},
|
|
23
|
+
{ refXml: 'AM05', motifXml: 'Prélèvement en double' },
|
|
24
|
+
{ refXml: 'BE05', motifXml: 'Identifiant créancier incorrect' },
|
|
25
|
+
{ refXml: 'FF01', motifXml: 'Code de transaction incorrect ou format fichier invalide' },
|
|
26
|
+
{ refXml: 'FF05', motifXml: 'Type de prélèvement incorrect' },
|
|
27
|
+
{ refXml: 'MD02', motifXml: 'Données du mandat manquantes ou inexactes' },
|
|
28
|
+
{
|
|
29
|
+
refXml: 'RR03',
|
|
30
|
+
motifXml: 'Motif réglementaire - Le nom ou l\'adresse du créancier est incorrect ou manquant.',
|
|
31
|
+
},
|
|
32
|
+
{ refXml: 'AG02', motifXml: 'Code de transaction incorrect ou erreur de séquence' },
|
|
33
|
+
{ refXml: 'MD01', motifXml: 'Aucun mandat valide ou opération non autorisée' },
|
|
34
|
+
{
|
|
35
|
+
refXml: 'AG01',
|
|
36
|
+
motifXml: 'Prélèvements interdits sur ce compte pour des raisons législatives',
|
|
37
|
+
},
|
|
38
|
+
{ refXml: 'AC04', motifXml: 'Compte fermé' },
|
|
39
|
+
{ refXml: 'MD07', motifXml: 'Débiteur décédé' },
|
|
40
|
+
{ refXml: 'AC06', motifXml: 'Compte bloqué pour les prélèvements SEPA par le débiteur' },
|
|
41
|
+
{ refXml: 'SL01', motifXml: 'Service spécifique' },
|
|
42
|
+
{ refXml: 'AC13', motifXml: 'Le compte débiteur est le compte d\'une personne physique' },
|
|
43
|
+
{ refXml: 'AM04', motifXml: 'Fonds insuffisants' },
|
|
44
|
+
{ refXml: 'MS02', motifXml: 'Prélèvement refusé par le débiteur' },
|
|
45
|
+
{ refXml: 'MS03', motifXml: 'Raison non précisée' },
|
|
46
|
+
{ refXml: 'MD06', motifXml: 'Opération autorisée contestée' },
|
|
47
|
+
{ refXml: 'MD01', motifXml: 'Aucun mandat valide ou opération non autorisée' },
|
|
48
|
+
];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export enum UnpaidReason {
|
|
2
|
+
INSUFFICIENT_PROVISION = 1,
|
|
3
|
+
LITIGE = 2,
|
|
4
|
+
TRANSACTION_ERROR = 3,
|
|
5
|
+
INCORRECT_RIB = 4,
|
|
6
|
+
IMPORT_XML = 5,
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const UnpaidReasonList: Array<{ value: UnpaidReason; text: string }> = [
|
|
10
|
+
{
|
|
11
|
+
value: UnpaidReason.INSUFFICIENT_PROVISION,
|
|
12
|
+
text: 'Provision insuffisante',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
value: UnpaidReason.LITIGE,
|
|
16
|
+
text: 'Litige',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
value: UnpaidReason.TRANSACTION_ERROR,
|
|
20
|
+
text: 'Erreur transaction',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: UnpaidReason.INCORRECT_RIB,
|
|
24
|
+
text: 'RIB incorrect',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: UnpaidReason.IMPORT_XML,
|
|
28
|
+
text: 'Import XML',
|
|
29
|
+
},
|
|
30
|
+
];
|
|
@@ -282,6 +282,7 @@ export interface Cerfa2035 {
|
|
|
282
282
|
isPageENil: boolean;
|
|
283
283
|
isPageFNil: boolean;
|
|
284
284
|
isPageGNil: boolean;
|
|
285
|
+
isSuiteNil?: boolean;
|
|
285
286
|
society: Cerfa2035Society;
|
|
286
287
|
immobilizations: number;
|
|
287
288
|
professionalRecipes: Cerfa2035ProfessionalRecipes;
|
|
@@ -643,6 +644,7 @@ export interface Cerfa2035_2024 {
|
|
|
643
644
|
isPageENil: boolean;
|
|
644
645
|
isPageFNil: boolean;
|
|
645
646
|
isPageGNil: boolean;
|
|
647
|
+
isSuiteNil?: boolean;
|
|
646
648
|
society: Cerfa2035Society;
|
|
647
649
|
immobilizations: number;
|
|
648
650
|
professionalRecipes: Cerfa2035ProfessionalRecipes;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IsArray,
|
|
3
3
|
IsBoolean,
|
|
4
|
+
IsDate,
|
|
4
5
|
IsDateString, IsEnum, IsInt, IsNumber, IsOptional, IsPositive, IsString,
|
|
5
6
|
} from 'class-validator';
|
|
6
7
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
@@ -85,6 +86,31 @@ export class QueryChecklistWallet extends RequiredQueryPaginate {
|
|
|
85
86
|
onlyChecklistPossible: boolean;
|
|
86
87
|
}
|
|
87
88
|
|
|
89
|
+
export class QueryChecklistGetPaginated extends RequiredQueryPaginate {
|
|
90
|
+
@ApiPropertyOptional()
|
|
91
|
+
@IsString()
|
|
92
|
+
@IsOptional()
|
|
93
|
+
search?: string;
|
|
94
|
+
|
|
95
|
+
@ApiProperty()
|
|
96
|
+
@IsArray()
|
|
97
|
+
idUser: number[];
|
|
98
|
+
|
|
99
|
+
@ApiPropertyOptional()
|
|
100
|
+
@IsArray()
|
|
101
|
+
@IsOptional()
|
|
102
|
+
vatRegime?: number[];
|
|
103
|
+
|
|
104
|
+
@ApiPropertyOptional()
|
|
105
|
+
@IsNumber()
|
|
106
|
+
@IsOptional()
|
|
107
|
+
state?: number;
|
|
108
|
+
|
|
109
|
+
@ApiProperty()
|
|
110
|
+
@IsDate()
|
|
111
|
+
closingDate: Date;
|
|
112
|
+
}
|
|
113
|
+
|
|
88
114
|
export class QueryGetAllQuestions {
|
|
89
115
|
@ApiPropertyOptional()
|
|
90
116
|
@IsOptional()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
|
|
2
2
|
import { TaxSystem } from '../../../Enum/TaxSystem';
|
|
3
|
-
import { NumberFiscalYears, PrevisionalFormActivity, PrevisionalFormPayload } from '../../..';
|
|
4
|
-
import { ApiProperty } from '../../../../utils';
|
|
5
|
-
import { IsNumber, IsBoolean, IsEnum,
|
|
3
|
+
import { LoanInformation, NumberFiscalYears, OptionNumberFiscalYears, PrevisionalFormActivity, PrevisionalFormPayload } from '../../..';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { IsNumber, IsBoolean, IsEnum, IsOptional, ValidateNested, IsArray } from 'class-validator';
|
|
6
6
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
7
7
|
|
|
8
8
|
export class NumberFiscalYearsValidation implements NumberFiscalYears {
|
|
@@ -17,6 +17,11 @@ export class NumberFiscalYearsValidation implements NumberFiscalYears {
|
|
|
17
17
|
@ApiProperty()
|
|
18
18
|
@IsNumber()
|
|
19
19
|
n2: number;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional()
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsNumber()
|
|
24
|
+
vat?: number;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
export class CreatePrevisionalFormData implements PrevisionalFormPayload {
|
|
@@ -37,113 +42,146 @@ export class CreatePrevisionalFormData implements PrevisionalFormPayload {
|
|
|
37
42
|
idTaxSystem: TaxSystem;
|
|
38
43
|
|
|
39
44
|
@ApiProperty()
|
|
40
|
-
@
|
|
45
|
+
@IsEnum(PrevisionalFormActivity)
|
|
41
46
|
activity: PrevisionalFormActivity;
|
|
42
47
|
|
|
43
48
|
/**
|
|
44
49
|
* Investissement
|
|
45
50
|
*/
|
|
46
51
|
@ApiProperty()
|
|
47
|
-
|
|
52
|
+
@ValidateNested()
|
|
53
|
+
computerHardware: Required<NumberFiscalYearsValidation>;
|
|
54
|
+
|
|
55
|
+
@ApiProperty()
|
|
56
|
+
@ValidateNested()
|
|
57
|
+
utilityVehicle: Required<NumberFiscalYearsValidation>;
|
|
48
58
|
|
|
49
59
|
@ApiProperty()
|
|
50
|
-
|
|
60
|
+
@ValidateNested()
|
|
61
|
+
personalVehicle: Required<NumberFiscalYearsValidation>;
|
|
51
62
|
|
|
52
63
|
@ApiProperty()
|
|
53
|
-
|
|
64
|
+
@ValidateNested()
|
|
65
|
+
toolsEquipment: Required<NumberFiscalYearsValidation>;
|
|
54
66
|
|
|
55
67
|
@ApiProperty()
|
|
56
|
-
|
|
68
|
+
@ValidateNested()
|
|
69
|
+
software: Required<NumberFiscalYearsValidation>;
|
|
57
70
|
|
|
58
71
|
@ApiProperty()
|
|
59
|
-
|
|
72
|
+
@ValidateNested()
|
|
73
|
+
website: Required<NumberFiscalYearsValidation>;
|
|
60
74
|
|
|
61
75
|
@ApiProperty()
|
|
62
|
-
|
|
76
|
+
@ValidateNested()
|
|
77
|
+
businessAssets: Required<NumberFiscalYearsValidation>;
|
|
63
78
|
|
|
64
79
|
@ApiProperty()
|
|
65
|
-
|
|
80
|
+
@ValidateNested()
|
|
81
|
+
immobilizedSecurities: Required<NumberFiscalYearsValidation>;
|
|
66
82
|
|
|
67
83
|
@ApiProperty()
|
|
68
|
-
|
|
84
|
+
@ValidateNested()
|
|
85
|
+
deposit: Required<NumberFiscalYearsValidation>;
|
|
69
86
|
|
|
70
87
|
/**
|
|
71
88
|
* Financement
|
|
72
89
|
*/
|
|
73
90
|
@ApiProperty()
|
|
91
|
+
@ValidateNested()
|
|
74
92
|
socialCapital: NumberFiscalYearsValidation;
|
|
75
93
|
|
|
76
94
|
@ApiProperty()
|
|
95
|
+
@ValidateNested()
|
|
77
96
|
accountContribution: NumberFiscalYearsValidation;
|
|
78
97
|
|
|
79
98
|
@ApiProperty()
|
|
80
|
-
|
|
99
|
+
@IsArray()
|
|
100
|
+
loans: LoanInformation[];
|
|
81
101
|
|
|
82
102
|
/**
|
|
83
103
|
* Chiffres d’affaires et charge liées à l’activité
|
|
84
104
|
*/
|
|
85
105
|
@ApiProperty()
|
|
86
|
-
|
|
106
|
+
@ValidateNested()
|
|
107
|
+
turnover: Required<NumberFiscalYearsValidation>[];
|
|
87
108
|
|
|
88
109
|
@ApiProperty()
|
|
89
|
-
|
|
110
|
+
@ValidateNested()
|
|
111
|
+
outsourcing: Required<NumberFiscalYearsValidation>[];
|
|
90
112
|
|
|
91
113
|
@ApiProperty()
|
|
92
|
-
merchandisePurchase:
|
|
114
|
+
merchandisePurchase: OptionNumberFiscalYears[];
|
|
93
115
|
|
|
94
116
|
/**
|
|
95
117
|
* Consommables
|
|
96
118
|
*/
|
|
97
119
|
@ApiProperty()
|
|
98
|
-
|
|
120
|
+
@ValidateNested()
|
|
121
|
+
packaging: Required<NumberFiscalYearsValidation>;
|
|
99
122
|
|
|
100
123
|
@ApiProperty()
|
|
101
|
-
|
|
124
|
+
@ValidateNested()
|
|
125
|
+
utilities: Required<NumberFiscalYearsValidation>;
|
|
102
126
|
|
|
103
127
|
@ApiProperty()
|
|
104
|
-
|
|
128
|
+
@ValidateNested()
|
|
129
|
+
fuel: Required<NumberFiscalYearsValidation>;
|
|
105
130
|
|
|
106
131
|
@ApiProperty()
|
|
107
|
-
|
|
132
|
+
@ValidateNested()
|
|
133
|
+
equipmentAndSupplies: Required<NumberFiscalYearsValidation>;
|
|
108
134
|
|
|
109
135
|
@ApiProperty()
|
|
110
|
-
|
|
136
|
+
@ValidateNested()
|
|
137
|
+
administrativeSupplies: Required<NumberFiscalYearsValidation>;
|
|
111
138
|
|
|
112
139
|
/**
|
|
113
140
|
* Autes charges liées à l’activité
|
|
114
141
|
*/
|
|
115
142
|
@ApiProperty()
|
|
116
|
-
|
|
143
|
+
@ValidateNested()
|
|
144
|
+
realEstateRental: Required<NumberFiscalYearsValidation>;
|
|
117
145
|
|
|
118
146
|
@ApiProperty()
|
|
119
|
-
|
|
147
|
+
@ValidateNested()
|
|
148
|
+
otherRental: Required<NumberFiscalYearsValidation>;
|
|
120
149
|
|
|
121
150
|
@ApiProperty()
|
|
122
|
-
|
|
151
|
+
@ValidateNested()
|
|
152
|
+
maintenanceAndRepair: Required<NumberFiscalYearsValidation>;
|
|
123
153
|
|
|
124
154
|
@ApiProperty()
|
|
125
|
-
|
|
155
|
+
@ValidateNested()
|
|
156
|
+
insuranceAndProfessionalLiability: Required<NumberFiscalYearsValidation>;
|
|
126
157
|
|
|
127
158
|
@ApiProperty()
|
|
128
|
-
|
|
159
|
+
@ValidateNested()
|
|
160
|
+
accountingFees: Required<NumberFiscalYearsValidation>;
|
|
129
161
|
|
|
130
162
|
@ApiProperty()
|
|
131
|
-
|
|
163
|
+
@ValidateNested()
|
|
164
|
+
otherFees: Required<NumberFiscalYearsValidation>;
|
|
132
165
|
|
|
133
166
|
@ApiProperty()
|
|
134
|
-
|
|
167
|
+
@ValidateNested()
|
|
168
|
+
advertising: Required<NumberFiscalYearsValidation>;
|
|
135
169
|
|
|
136
170
|
@ApiProperty()
|
|
137
|
-
|
|
171
|
+
@ValidateNested()
|
|
172
|
+
kilometricAllowances: Required<NumberFiscalYearsValidation>;
|
|
138
173
|
|
|
139
174
|
@ApiProperty()
|
|
140
|
-
|
|
175
|
+
@ValidateNested()
|
|
176
|
+
otherTravelExpenses: Required<NumberFiscalYearsValidation>;
|
|
141
177
|
|
|
142
178
|
@ApiProperty()
|
|
143
|
-
|
|
179
|
+
@ValidateNested()
|
|
180
|
+
telephonyInternetNetworks: Required<NumberFiscalYearsValidation>;
|
|
144
181
|
|
|
145
182
|
@ApiProperty()
|
|
146
|
-
|
|
183
|
+
@ValidateNested()
|
|
184
|
+
bankFees: Required<NumberFiscalYearsValidation>;
|
|
147
185
|
|
|
148
186
|
/**
|
|
149
187
|
* Social et rémunération
|
|
@@ -152,19 +190,36 @@ export class CreatePrevisionalFormData implements PrevisionalFormPayload {
|
|
|
152
190
|
isACREBeneficiary: boolean;
|
|
153
191
|
|
|
154
192
|
@ApiProperty()
|
|
193
|
+
@ValidateNested()
|
|
155
194
|
employee1GrossSalary: NumberFiscalYearsValidation;
|
|
156
195
|
|
|
157
196
|
@ApiProperty()
|
|
197
|
+
@ValidateNested()
|
|
158
198
|
employee2GrossSalary: NumberFiscalYearsValidation;
|
|
159
199
|
|
|
160
200
|
@ApiProperty()
|
|
201
|
+
@ValidateNested()
|
|
161
202
|
employee3GrossSalary: NumberFiscalYearsValidation;
|
|
162
203
|
|
|
163
204
|
@ApiProperty()
|
|
205
|
+
@ValidateNested()
|
|
164
206
|
remunerationPresident: NumberFiscalYearsValidation;
|
|
165
207
|
|
|
166
208
|
@ApiProperty()
|
|
209
|
+
@ValidateNested()
|
|
167
210
|
remunerationManager: NumberFiscalYearsValidation;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Impôts
|
|
214
|
+
*/
|
|
215
|
+
@ApiProperty()
|
|
216
|
+
cfe: NumberFiscalYears | undefined;
|
|
217
|
+
|
|
218
|
+
@ApiProperty()
|
|
219
|
+
tvs: NumberFiscalYears | undefined;
|
|
220
|
+
|
|
221
|
+
@ApiProperty()
|
|
222
|
+
otherTaxes: NumberFiscalYears | undefined;
|
|
168
223
|
}
|
|
169
224
|
|
|
170
225
|
export class CreatePrevisionalForm {
|
|
@@ -173,5 +228,6 @@ export class CreatePrevisionalForm {
|
|
|
173
228
|
idSociety: number;
|
|
174
229
|
|
|
175
230
|
@ApiProperty()
|
|
231
|
+
@ValidateNested()
|
|
176
232
|
payload: CreatePrevisionalFormData;
|
|
177
233
|
}
|
|
@@ -6,6 +6,20 @@ export interface NumberFiscalYears {
|
|
|
6
6
|
n: number;
|
|
7
7
|
n1: number;
|
|
8
8
|
n2: number;
|
|
9
|
+
vat?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface LoanInformation {
|
|
13
|
+
year: 'n' | 'n1' | 'n2';
|
|
14
|
+
amount: number;
|
|
15
|
+
duration: number;
|
|
16
|
+
rate: number;
|
|
17
|
+
payment: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export interface OptionNumberFiscalYears extends Required<NumberFiscalYears> {
|
|
22
|
+
isMarginRate?: boolean;
|
|
9
23
|
}
|
|
10
24
|
|
|
11
25
|
export interface CompanyDescription {
|
|
@@ -13,55 +27,61 @@ export interface CompanyDescription {
|
|
|
13
27
|
idLegalForm: LegalFormTypeEnum; // Statut Juridique
|
|
14
28
|
idTaxSystem: TaxSystem; // Régime d'imposition prévu
|
|
15
29
|
activity: PrevisionalFormActivity; // Quelle est l'activité de la société ?
|
|
16
|
-
// + question "De combien est le capital initial apporté ?" socialCapital pour année N
|
|
17
30
|
}
|
|
18
31
|
|
|
19
32
|
export interface Investment {
|
|
20
|
-
computerHardware: NumberFiscalYears
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
computerHardware: Required<NumberFiscalYears>; // Matériel informatique
|
|
34
|
+
utilityVehicle: Required<NumberFiscalYears>; // Véhicule utilitaire
|
|
35
|
+
personalVehicle: Required<NumberFiscalYears>; // Véhicule particulier
|
|
36
|
+
toolsEquipment: Required<NumberFiscalYears>; // Outillage, matériel
|
|
37
|
+
software: Required<NumberFiscalYears>; // Logiciel
|
|
38
|
+
website: Required<NumberFiscalYears>; // Site internet
|
|
39
|
+
businessAssets: Required<NumberFiscalYears>; // Fonds de commerce
|
|
40
|
+
immobilizedSecurities: Required<NumberFiscalYears>; // Titres immobilisés
|
|
41
|
+
deposit: Required<NumberFiscalYears>; // Caution
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
export interface Financing {
|
|
31
45
|
socialCapital: NumberFiscalYears; // Augmentation social
|
|
32
46
|
accountContribution: NumberFiscalYears; // Apport en compte courant d'associé
|
|
33
|
-
|
|
47
|
+
loans: LoanInformation[]; // Emprunt bancaire
|
|
34
48
|
}
|
|
35
49
|
|
|
36
50
|
export interface Turnover {
|
|
37
|
-
turnover: NumberFiscalYears; //
|
|
51
|
+
turnover: Required<NumberFiscalYears>[]; // Ventes de marchandises / Ventes de matières premières / Ventes de prestations de services
|
|
52
|
+
merchandisePurchase: OptionNumberFiscalYears[]; // Achats de marchandises / matières premières
|
|
38
53
|
}
|
|
39
54
|
|
|
40
55
|
export interface Charges {
|
|
41
|
-
outsourcing: NumberFiscalYears; // Sous-traitance prévue
|
|
42
|
-
|
|
56
|
+
outsourcing: Required<NumberFiscalYears>[]; // Sous-traitance prévue
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface Taxes {
|
|
60
|
+
cfe: NumberFiscalYears | undefined; // CFE
|
|
61
|
+
tvs: NumberFiscalYears | undefined; // TVS
|
|
62
|
+
otherTaxes: NumberFiscalYears | undefined; // Autres impôts
|
|
43
63
|
}
|
|
44
64
|
|
|
45
65
|
export interface Consumables {
|
|
46
|
-
packaging: NumberFiscalYears
|
|
47
|
-
utilities: NumberFiscalYears
|
|
48
|
-
fuel: NumberFiscalYears
|
|
49
|
-
equipmentAndSupplies: NumberFiscalYears
|
|
50
|
-
administrativeSupplies: NumberFiscalYears
|
|
66
|
+
packaging: Required<NumberFiscalYears>; // Emballages
|
|
67
|
+
utilities: Required<NumberFiscalYears>; // Eau, électricité, gaz
|
|
68
|
+
fuel: Required<NumberFiscalYears>; // Carburant
|
|
69
|
+
equipmentAndSupplies: Required<NumberFiscalYears>; // Petit équipement et matériel
|
|
70
|
+
administrativeSupplies: Required<NumberFiscalYears>; // Fournitures administratives
|
|
51
71
|
}
|
|
52
72
|
|
|
53
73
|
export interface OtherCharges {
|
|
54
|
-
realEstateRental: NumberFiscalYears
|
|
55
|
-
otherRental: NumberFiscalYears
|
|
56
|
-
maintenanceAndRepair: NumberFiscalYears
|
|
57
|
-
insuranceAndProfessionalLiability: NumberFiscalYears
|
|
58
|
-
accountingFees: NumberFiscalYears
|
|
59
|
-
otherFees: NumberFiscalYears
|
|
60
|
-
advertising: NumberFiscalYears
|
|
61
|
-
kilometricAllowances: NumberFiscalYears
|
|
62
|
-
otherTravelExpenses: NumberFiscalYears
|
|
63
|
-
telephonyInternetNetworks: NumberFiscalYears
|
|
64
|
-
bankFees: NumberFiscalYears
|
|
74
|
+
realEstateRental: Required<NumberFiscalYears>; // Location immobilière
|
|
75
|
+
otherRental: Required<NumberFiscalYears>; // Autres locations et crédit bail
|
|
76
|
+
maintenanceAndRepair: Required<NumberFiscalYears>; // Entretien et réparation
|
|
77
|
+
insuranceAndProfessionalLiability: Required<NumberFiscalYears>; // Assurances et RC Pro
|
|
78
|
+
accountingFees: Required<NumberFiscalYears>; // Honoraires comptables
|
|
79
|
+
otherFees: Required<NumberFiscalYears>; // Autres frais de gestion
|
|
80
|
+
advertising: Required<NumberFiscalYears>; // Publicité
|
|
81
|
+
kilometricAllowances: Required<NumberFiscalYears>; // Indemnités kilométriques
|
|
82
|
+
otherTravelExpenses: Required<NumberFiscalYears>; // Autres frais de déplacement
|
|
83
|
+
telephonyInternetNetworks: Required<NumberFiscalYears>; // Téléphonie, interne, réseaux
|
|
84
|
+
bankFees: Required<NumberFiscalYears>; // Frais bancaires
|
|
65
85
|
}
|
|
66
86
|
|
|
67
87
|
export interface SocialAndRemuneration {
|
|
@@ -73,4 +93,4 @@ export interface SocialAndRemuneration {
|
|
|
73
93
|
remunerationManager: NumberFiscalYears; // Rémunération gérant
|
|
74
94
|
}
|
|
75
95
|
|
|
76
|
-
export interface PrevisionalFormPayload extends CompanyDescription, Investment, Financing, Turnover, Charges, Consumables, OtherCharges, SocialAndRemuneration {}
|
|
96
|
+
export interface PrevisionalFormPayload extends CompanyDescription, Investment, Financing, Turnover, Charges, Taxes, Consumables, OtherCharges, SocialAndRemuneration {}
|