@silexpert/core 0.4.12 → 0.4.14
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/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/FecFile.d.ts +8 -0
- package/es/api/resources/FecFile.d.ts.map +1 -0
- package/es/api/resources/FecFile.js +13 -0
- package/es/api/resources/FecFile.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/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 +8 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +8 -0
- 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/FecFileDelimiter.d.ts +6 -0
- package/es/types/Enum/FecFileDelimiter.d.ts.map +1 -0
- package/es/types/Enum/FecFileDelimiter.js +7 -0
- package/es/types/Enum/FecFileDelimiter.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/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/ThirdPartyType.js.map +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +1 -0
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +4 -0
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- 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/fecFile/CreateFecFile.d.ts +11 -0
- package/es/types/Interface/api/fecFile/CreateFecFile.d.ts.map +1 -0
- package/es/types/Interface/api/fecFile/CreateFecFile.js +28 -0
- package/es/types/Interface/api/fecFile/CreateFecFile.js.map +1 -0
- package/es/types/Interface/api/fecFile/ReadFecFile.d.ts +23 -0
- package/es/types/Interface/api/fecFile/ReadFecFile.d.ts.map +1 -0
- package/es/types/Interface/api/fecFile/ReadFecFile.js +2 -0
- package/es/types/Interface/api/fecFile/ReadFecFile.js.map +1 -0
- package/es/types/Interface/api/file/TFile.d.ts +10 -0
- package/es/types/Interface/api/file/TFile.d.ts.map +1 -0
- package/es/types/Interface/api/file/TFile.js +2 -0
- package/es/types/Interface/api/file/TFile.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/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/IAccount.d.ts +20 -20
- package/es/types/Interface/models/IAccount.d.ts.map +1 -1
- package/es/types/Interface/models/IAccount.js.map +1 -1
- package/es/types/Interface/models/IAccountingEntry.d.ts +3 -3
- package/es/types/Interface/models/IAccountingEntry.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingEntry.js.map +1 -1
- 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/IAccountingTransaction.d.ts +25 -24
- package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +8 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +10 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IFecFile.d.ts +14 -0
- package/es/types/Interface/models/IFecFile.d.ts.map +1 -0
- package/es/types/Interface/models/IFecFile.js +2 -0
- package/es/types/Interface/models/IFecFile.js.map +1 -0
- 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/Interface/models/IThirdParty.d.ts +5 -6
- package/es/types/Interface/models/IThirdParty.d.ts.map +1 -1
- package/es/types/Interface/models/IThirdParty.js.map +1 -1
- package/es/types/index.d.ts +16 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +16 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/BalanceSheet.js +23 -0
- package/js/api/resources/BalanceSheet.js.map +1 -0
- package/js/api/resources/FecFile.js +26 -0
- package/js/api/resources/FecFile.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/User.js +14 -0
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources.js +13 -1
- 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/FecFileDelimiter.js +13 -0
- package/js/types/Enum/FecFileDelimiter.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/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/ThirdPartyType.js.map +1 -1
- package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +2 -0
- package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- 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/fecFile/CreateFecFile.js +37 -0
- package/js/types/Interface/api/fecFile/CreateFecFile.js.map +1 -0
- package/js/types/Interface/api/fecFile/ReadFecFile.js +6 -0
- package/js/types/Interface/api/fecFile/ReadFecFile.js.map +1 -0
- package/js/types/Interface/api/file/TFile.js +6 -0
- package/js/types/Interface/api/file/TFile.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/report/ReadReport.js +6 -0
- package/js/types/Interface/api/report/ReadReport.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 +11 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IFecFile.js +6 -0
- package/js/types/Interface/models/IFecFile.js.map +1 -0
- package/js/types/index.js +192 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BalanceSheet.ts +12 -0
- package/ts/api/resources/FecFile.ts +21 -0
- package/ts/api/resources/Letter.ts +10 -0
- package/ts/api/resources/Report.ts +22 -0
- package/ts/api/resources/User.ts +12 -1
- package/ts/api/resources.ts +8 -0
- package/ts/types/Enum/AccountingJournal.ts +1 -0
- package/ts/types/Enum/BalanceSheet.ts +555 -0
- package/ts/types/Enum/FecFileDelimiter.ts +5 -0
- package/ts/types/Enum/IncomeStatement.ts +6 -2
- 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/ThirdPartyType.ts +1 -1
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +2 -0
- package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +10 -0
- package/ts/types/Interface/api/fecFile/CreateFecFile.ts +15 -0
- package/ts/types/Interface/api/fecFile/ReadFecFile.ts +25 -0
- package/ts/types/Interface/api/file/TFile.ts +8 -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/user/CreateUser.ts +18 -0
- package/ts/types/Interface/api/user/QueryUserSmsConfirmation.ts +6 -0
- package/ts/types/Interface/models/IAccount.ts +20 -20
- package/ts/types/Interface/models/IAccountingEntry.ts +3 -3
- package/ts/types/Interface/models/IAccountingJournal.ts +2 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +25 -24
- package/ts/types/Interface/models/IApiError.ts +14 -0
- package/ts/types/Interface/models/IFecFile.ts +17 -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/Interface/models/IThirdParty.ts +5 -6
- package/ts/types/index.ts +17 -0
|
@@ -16,6 +16,7 @@ export type IncomeStatement = {
|
|
|
16
16
|
calculation?: boolean; // Doit être calculé avec calculationAdd & calculationSubtract
|
|
17
17
|
calculationAdd?: string[]; // Tableau des keys à additionner pour obtenir le total
|
|
18
18
|
calculationSubtract?: string[]; // Tableau des keys à soustraire pour obtenir le total
|
|
19
|
+
isProduct?: boolean; // Si c'est un produit, on fait x -1
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
|
|
@@ -23,6 +24,7 @@ export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
|
|
|
23
24
|
name: 'Total des produits d\'exploitation',
|
|
24
25
|
key: 'totalOperatingIncome',
|
|
25
26
|
total: 0,
|
|
27
|
+
isProduct: true,
|
|
26
28
|
fields: [
|
|
27
29
|
{
|
|
28
30
|
name: 'Chiffre d\'Affaires',
|
|
@@ -148,6 +150,7 @@ export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
|
|
|
148
150
|
name: 'Total des produits financiers',
|
|
149
151
|
key: 'totalFinancialProducts',
|
|
150
152
|
total: 0,
|
|
153
|
+
isProduct: true,
|
|
151
154
|
fields: [
|
|
152
155
|
{
|
|
153
156
|
name: 'De participations',
|
|
@@ -227,6 +230,7 @@ export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
|
|
|
227
230
|
name: 'Total des produits exceptionnels',
|
|
228
231
|
total: 0,
|
|
229
232
|
key: 'totalExceptionalProducts',
|
|
233
|
+
isProduct: true,
|
|
230
234
|
fields: [
|
|
231
235
|
{
|
|
232
236
|
name: 'Sur opérations de gestion',
|
|
@@ -307,8 +311,8 @@ export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
|
|
|
307
311
|
name: 'Résultat exceptionnel',
|
|
308
312
|
total: 0,
|
|
309
313
|
calculation: true,
|
|
310
|
-
calculationAdd: [],
|
|
311
|
-
calculationSubtract: ['
|
|
314
|
+
calculationAdd: ['totalExceptionalProducts'],
|
|
315
|
+
calculationSubtract: ['totalExceptionalExpenses'],
|
|
312
316
|
key: 'exceptionalResult',
|
|
313
317
|
},
|
|
314
318
|
{
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export const LetterType = {
|
|
2
|
+
TERMINATION: {
|
|
3
|
+
id: 1,
|
|
4
|
+
name: 'Résiliation',
|
|
5
|
+
},
|
|
6
|
+
SATISFIED_OR_REFUNDED: {
|
|
7
|
+
id: 2,
|
|
8
|
+
name: 'Satisfait ou remboursé',
|
|
9
|
+
},
|
|
10
|
+
DOCUMENT: {
|
|
11
|
+
id: 3,
|
|
12
|
+
name: 'Documents',
|
|
13
|
+
},
|
|
14
|
+
CHEQUE: {
|
|
15
|
+
id: 4,
|
|
16
|
+
name: 'Chèque',
|
|
17
|
+
},
|
|
18
|
+
CANCELLATION: {
|
|
19
|
+
id: 5,
|
|
20
|
+
name: 'Radiation',
|
|
21
|
+
},
|
|
22
|
+
RECOVERY: {
|
|
23
|
+
id: 6,
|
|
24
|
+
name: 'Demande de reprise',
|
|
25
|
+
},
|
|
26
|
+
ORDER_LETTER: {
|
|
27
|
+
id: 7,
|
|
28
|
+
name: 'Lettre à l\'Ordre',
|
|
29
|
+
},
|
|
30
|
+
CLAIM: {
|
|
31
|
+
id: 8,
|
|
32
|
+
name: 'Réclamation',
|
|
33
|
+
},
|
|
34
|
+
OTHER: {
|
|
35
|
+
id: 9,
|
|
36
|
+
name: 'Autre',
|
|
37
|
+
},
|
|
38
|
+
RECOVERY_RESPONSE: {
|
|
39
|
+
id: 10,
|
|
40
|
+
name: 'Rép. lettre de reprise',
|
|
41
|
+
},
|
|
42
|
+
NO_RESPONSE: {
|
|
43
|
+
id: 11,
|
|
44
|
+
name: 'Pas de réponse',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const ReportState = {
|
|
2
|
+
TODO: {
|
|
3
|
+
id: 0,
|
|
4
|
+
name: 'Non traité',
|
|
5
|
+
},
|
|
6
|
+
SOLVED: {
|
|
7
|
+
id: 1,
|
|
8
|
+
name: 'Résolu',
|
|
9
|
+
},
|
|
10
|
+
ACCOUNTANT_WAITING: {
|
|
11
|
+
id: 2,
|
|
12
|
+
name: 'En attente du comptable',
|
|
13
|
+
},
|
|
14
|
+
CUSTOMER_WAITING: {
|
|
15
|
+
id: 3,
|
|
16
|
+
name: 'En attente du client',
|
|
17
|
+
},
|
|
18
|
+
REPLIED: {
|
|
19
|
+
id: 4,
|
|
20
|
+
name: 'Répondu',
|
|
21
|
+
},
|
|
22
|
+
SENT_LETTER: {
|
|
23
|
+
id: 5,
|
|
24
|
+
name: 'Courrier envoyé',
|
|
25
|
+
},
|
|
26
|
+
TO_BE_TERMINATED: {
|
|
27
|
+
id: 6,
|
|
28
|
+
name: 'À résilier',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -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,15 @@
|
|
|
1
|
+
import { ApiProperty } from '../../../../utils';
|
|
2
|
+
import { FecFileDelimiter } from '../../../Enum/FecFileDelimiter';
|
|
3
|
+
import { TFile } from '../file/TFile';
|
|
4
|
+
import { MappingFecFile } from './ReadFecFile';
|
|
5
|
+
|
|
6
|
+
export class CreateFecFile {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
file?: TFile;
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
delimiter: FecFileDelimiter;
|
|
11
|
+
}
|
|
12
|
+
export class CreateMappingFecFile {
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
mapping?: MappingFecFile;
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IFecFile } from '../../models/IFecFile';
|
|
2
|
+
|
|
3
|
+
export interface AccountToMap {
|
|
4
|
+
number: number,
|
|
5
|
+
name: string,
|
|
6
|
+
suggestedIdAccount?: number | null,
|
|
7
|
+
targetIdAccount?: number | null,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface JournalToMap {
|
|
11
|
+
alias: string,
|
|
12
|
+
name: string,
|
|
13
|
+
suggestedIdAccountingJournal?: number | null,
|
|
14
|
+
targetIdAccountingJournal?: number | null,
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ReadFecFile {
|
|
18
|
+
fecFile: IFecFile,
|
|
19
|
+
accountsToMap: AccountToMap[],
|
|
20
|
+
journalsToMap: JournalToMap[],
|
|
21
|
+
}
|
|
22
|
+
export interface MappingFecFile {
|
|
23
|
+
accountsToMap: AccountToMap[],
|
|
24
|
+
journalsToMap: JournalToMap[],
|
|
25
|
+
}
|
|
@@ -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,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
|
+
}
|
|
@@ -12,28 +12,28 @@ export interface IAccount {
|
|
|
12
12
|
id?: number;
|
|
13
13
|
number: number;
|
|
14
14
|
name: string;
|
|
15
|
-
originalName
|
|
16
|
-
forceVat
|
|
17
|
-
blockVat
|
|
18
|
-
forceFile
|
|
19
|
-
isHidden
|
|
20
|
-
isImmo
|
|
21
|
-
isCorporal
|
|
22
|
-
icone
|
|
23
|
-
iconePNG
|
|
24
|
-
color
|
|
25
|
-
isOnlyTreso
|
|
26
|
-
isOnlyEnga
|
|
27
|
-
isGeneric
|
|
28
|
-
forClient
|
|
29
|
-
forFournisseur
|
|
30
|
-
juridicalSociety
|
|
15
|
+
originalName?: string | null;
|
|
16
|
+
forceVat?: boolean;
|
|
17
|
+
blockVat?: boolean;
|
|
18
|
+
forceFile?: boolean;
|
|
19
|
+
isHidden?: boolean;
|
|
20
|
+
isImmo?: boolean;
|
|
21
|
+
isCorporal?: boolean;
|
|
22
|
+
icone?: string | null;
|
|
23
|
+
iconePNG?: string | null;
|
|
24
|
+
color?: string | null;
|
|
25
|
+
isOnlyTreso?: boolean;
|
|
26
|
+
isOnlyEnga?: boolean;
|
|
27
|
+
isGeneric?: boolean;
|
|
28
|
+
forClient?: boolean;
|
|
29
|
+
forFournisseur?: boolean;
|
|
30
|
+
juridicalSociety?: number | null;
|
|
31
31
|
idNature: number;
|
|
32
32
|
idAccountType: number;
|
|
33
|
-
idVat
|
|
34
|
-
idRegisterCategorie
|
|
35
|
-
idSector
|
|
36
|
-
idParentAccount
|
|
33
|
+
idVat?: number | null;
|
|
34
|
+
idRegisterCategorie?: number | null;
|
|
35
|
+
idSector?: number | null;
|
|
36
|
+
idParentAccount?: number | null;
|
|
37
37
|
createdAt?: Date | null;
|
|
38
38
|
updatedAt?: Date | null;
|
|
39
39
|
deletedAt?: Date | null;
|
|
@@ -11,11 +11,11 @@ export interface IAccountingEntry {
|
|
|
11
11
|
master: boolean;
|
|
12
12
|
dateValue: Date;
|
|
13
13
|
designation: string;
|
|
14
|
-
comment
|
|
14
|
+
comment?: string | null;
|
|
15
15
|
debit: number;
|
|
16
16
|
credit: number;
|
|
17
|
-
isPerso
|
|
18
|
-
autoAnnotate
|
|
17
|
+
isPerso?: boolean;
|
|
18
|
+
autoAnnotate?: boolean;
|
|
19
19
|
idInherit: number | null;
|
|
20
20
|
idAccount: number | null;
|
|
21
21
|
idThirdParty: number | null;
|
|
@@ -19,36 +19,37 @@ export interface IAccountingTransaction {
|
|
|
19
19
|
invoiceNumber: string | null;
|
|
20
20
|
budgeaTransactionId: string | null;
|
|
21
21
|
dateValue: Date;
|
|
22
|
-
dateLocked
|
|
23
|
-
dateVerified
|
|
22
|
+
dateLocked?: Date | null;
|
|
23
|
+
dateVerified?: Date | null;
|
|
24
24
|
originalValue?: number | null;
|
|
25
|
-
idUser
|
|
26
|
-
isBlocked
|
|
27
|
-
isMerged
|
|
28
|
-
isAsset
|
|
29
|
-
isPayPerso
|
|
25
|
+
idUser?: number | null;
|
|
26
|
+
isBlocked?: boolean;
|
|
27
|
+
isMerged?: boolean;
|
|
28
|
+
isAsset?: boolean;
|
|
29
|
+
isPayPerso?: boolean;
|
|
30
|
+
isFecImport?: boolean;
|
|
30
31
|
exported: Date | null;
|
|
31
|
-
kilometers
|
|
32
|
-
purchaseTtc
|
|
33
|
-
internComment
|
|
34
|
-
isReadMobile
|
|
35
|
-
invoiceRequested
|
|
36
|
-
isLockedMobile
|
|
37
|
-
isAlreadyProcessByOcr
|
|
32
|
+
kilometers?: number | null;
|
|
33
|
+
purchaseTtc?: number | null;
|
|
34
|
+
internComment?: string | null;
|
|
35
|
+
isReadMobile?: boolean;
|
|
36
|
+
invoiceRequested?: boolean;
|
|
37
|
+
isLockedMobile?: boolean;
|
|
38
|
+
isAlreadyProcessByOcr?: boolean | null;
|
|
38
39
|
idBankAccount: number | null;
|
|
39
40
|
idSociety: number;
|
|
40
41
|
idCurrency?: number | null;
|
|
41
|
-
idPaymentMethod
|
|
42
|
-
idSocietyVehicle
|
|
43
|
-
idSocietyPartner
|
|
44
|
-
idRule
|
|
45
|
-
idLettering
|
|
42
|
+
idPaymentMethod?: number | null;
|
|
43
|
+
idSocietyVehicle?: number | null;
|
|
44
|
+
idSocietyPartner?: number | null;
|
|
45
|
+
idRule?: number | null;
|
|
46
|
+
idLettering?: number | null;
|
|
46
47
|
idAccountingJournal: number;
|
|
47
|
-
idTypeCompta
|
|
48
|
-
idEstimateInvoice
|
|
49
|
-
idFile
|
|
50
|
-
idEBT
|
|
51
|
-
idEAF
|
|
48
|
+
idTypeCompta?: number | null;
|
|
49
|
+
idEstimateInvoice?: number | null;
|
|
50
|
+
idFile?: number | null;
|
|
51
|
+
idEBT?: number | null;
|
|
52
|
+
idEAF?: number | null;
|
|
52
53
|
createdAt?: Date | null;
|
|
53
54
|
updatedAt?: Date | null;
|
|
54
55
|
deletedAt?: Date | null;
|
|
@@ -52,6 +52,20 @@ export enum Code {
|
|
|
52
52
|
|
|
53
53
|
// Income statement
|
|
54
54
|
invalidIncomeStatementList = 'invalid_income_statement_list',
|
|
55
|
+
|
|
56
|
+
// Balance Sheet
|
|
57
|
+
invalidBalanceSheetList = 'invalid_balance_sheet_list',
|
|
58
|
+
|
|
59
|
+
// FecFile
|
|
60
|
+
insertAccountingTransactionFailed = 'insert_accounting_transaction_failed',
|
|
61
|
+
|
|
62
|
+
// User creation
|
|
63
|
+
userAlreadyExistWithSociety = 'user-already-exists',
|
|
64
|
+
userDoesNotExists = 'user-does-not-exist',
|
|
65
|
+
expiredSmsCode = 'expired-sms-code',
|
|
66
|
+
userNotInFmaProcess = 'user-not-in-maf-process',
|
|
67
|
+
wrongSmsCode = 'wrong-sms-code',
|
|
68
|
+
|
|
55
69
|
}
|
|
56
70
|
|
|
57
71
|
export interface IApiError {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ISociety } from './ISociety';
|
|
2
|
+
import { IFile } from './IFile';
|
|
3
|
+
|
|
4
|
+
// files
|
|
5
|
+
export interface IFecFile {
|
|
6
|
+
id?: number;
|
|
7
|
+
importComplete: boolean;
|
|
8
|
+
delimiter: string;
|
|
9
|
+
idFile: number;
|
|
10
|
+
idSociety: number;
|
|
11
|
+
createdAt?: Date | null;
|
|
12
|
+
updatedAt?: Date | null;
|
|
13
|
+
|
|
14
|
+
// Associations
|
|
15
|
+
file?: IFile;
|
|
16
|
+
society?: ISociety;
|
|
17
|
+
}
|
|
@@ -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
|
}
|
|
@@ -5,19 +5,20 @@ import { ISociety } from './ISociety';
|
|
|
5
5
|
// report
|
|
6
6
|
export interface IReport {
|
|
7
7
|
id?: number;
|
|
8
|
-
idSociety
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
idSociety?: number | null;
|
|
9
|
+
idReportType?: number | null;
|
|
10
|
+
idLetterType?: number | null;
|
|
11
|
+
declareSoupcons?: boolean | null;
|
|
12
|
+
etat?: number | null;
|
|
13
|
+
informerjlb?: boolean | null;
|
|
14
|
+
ressenti?: number | null;
|
|
15
|
+
action?: number | null;
|
|
16
|
+
processed?: boolean | null;
|
|
16
17
|
createdAt?: Date | null;
|
|
17
18
|
updatedAt?: Date | null;
|
|
18
19
|
|
|
19
20
|
// Associations
|
|
20
|
-
reportComment
|
|
21
|
-
|
|
22
|
-
society
|
|
21
|
+
reportComment?: IReportMessage[];
|
|
22
|
+
reportType?: IReportType;
|
|
23
|
+
society?: ISociety;
|
|
23
24
|
}
|