@silexpert/core 1.1.24 → 1.1.26
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/AccountingFiles.d.ts +1 -1
- package/es/api/resources/AccountingFiles.d.ts.map +1 -1
- package/es/api/resources/AccountingFiles.js +4 -1
- package/es/api/resources/AccountingFiles.js.map +1 -1
- package/es/api/resources/CashAndExpense.d.ts +8 -0
- package/es/api/resources/CashAndExpense.d.ts.map +1 -0
- package/es/api/resources/CashAndExpense.js +27 -0
- package/es/api/resources/CashAndExpense.js.map +1 -0
- package/es/api/resources/FIle.d.ts +3 -1
- package/es/api/resources/FIle.d.ts.map +1 -1
- package/es/api/resources/FIle.js +3 -0
- package/es/api/resources/FIle.js.map +1 -1
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +5 -0
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/Prestations.d.ts +6 -0
- package/es/api/resources/Prestations.d.ts.map +1 -1
- package/es/api/resources/Prestations.js +8 -0
- package/es/api/resources/Prestations.js.map +1 -1
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/Account.d.ts +8 -0
- package/es/types/Enum/Account.d.ts.map +1 -1
- package/es/types/Enum/Account.js +8 -0
- package/es/types/Enum/Account.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +1 -1
- package/es/types/Enum/BalanceSheet.js +1 -1
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/BrandClementine.js +2 -2
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/CashDeskTransactionType.d.ts +7 -0
- package/es/types/Enum/CashDeskTransactionType.d.ts.map +1 -0
- package/es/types/Enum/CashDeskTransactionType.js +8 -0
- package/es/types/Enum/CashDeskTransactionType.js.map +1 -0
- package/es/types/Enum/Compensation.d.ts +15 -0
- package/es/types/Enum/Compensation.d.ts.map +1 -0
- package/es/types/Enum/Compensation.js +15 -0
- package/es/types/Enum/Compensation.js.map +1 -0
- package/es/types/Enum/ConstitutionState.d.ts +0 -2
- package/es/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/es/types/Enum/ConstitutionState.js +10 -10
- package/es/types/Enum/ConstitutionState.js.map +1 -1
- package/es/types/Enum/InternalService.d.ts +12 -0
- package/es/types/Enum/InternalService.d.ts.map +1 -1
- package/es/types/Enum/InternalService.js +12 -0
- package/es/types/Enum/InternalService.js.map +1 -1
- package/es/types/Enum/JobTitle.d.ts +7 -1
- package/es/types/Enum/JobTitle.d.ts.map +1 -1
- package/es/types/Enum/JobTitle.js +36 -0
- package/es/types/Enum/JobTitle.js.map +1 -1
- package/es/types/Enum/Log.d.ts +201 -1
- package/es/types/Enum/Log.d.ts.map +1 -1
- package/es/types/Enum/Log.js +200 -0
- package/es/types/Enum/Log.js.map +1 -1
- package/es/types/Enum/MealExpenseThresholds.d.ts.map +1 -1
- package/es/types/Enum/MealExpenseThresholds.js +6 -2
- package/es/types/Enum/MealExpenseThresholds.js.map +1 -1
- package/es/types/Enum/PrestationType.js +1 -1
- package/es/types/Enum/PrestationType.js.map +1 -1
- package/es/types/Enum/ReportService.d.ts +9 -4
- package/es/types/Enum/ReportService.d.ts.map +1 -1
- package/es/types/Enum/ReportService.js +17 -6
- package/es/types/Enum/ReportService.js.map +1 -1
- package/es/types/Enum/Role.d.ts +3 -1
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +2 -0
- package/es/types/Enum/Role.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +14 -0
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +15 -1
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/TaskResponseType.d.ts +3 -1
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +57 -0
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Enum/ThirdParty.d.ts +7 -0
- package/es/types/Enum/ThirdParty.d.ts.map +1 -0
- package/es/types/Enum/ThirdParty.js +7 -0
- package/es/types/Enum/ThirdParty.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +5 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts.map +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.js +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -1
- package/es/types/Interface/api/cashAndExpense/Create.d.ts +27 -0
- package/es/types/Interface/api/cashAndExpense/Create.d.ts.map +1 -0
- package/es/types/Interface/api/cashAndExpense/Create.js +91 -0
- package/es/types/Interface/api/cashAndExpense/Create.js.map +1 -0
- package/es/types/Interface/api/file/Query.d.ts +4 -0
- package/es/types/Interface/api/file/Query.d.ts.map +1 -0
- package/es/types/Interface/api/file/Query.js +17 -0
- package/es/types/Interface/api/file/Query.js.map +1 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccount.d.ts +2 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccount.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccount.js.map +1 -1
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts +7 -0
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts.map +1 -0
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js +39 -0
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +1 -0
- package/es/types/Interface/api/report/ReadReportStats.d.ts +1 -0
- package/es/types/Interface/api/report/ReadReportStats.d.ts.map +1 -1
- package/es/types/Interface/api/report/ReadReportStats.js.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +2 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +9 -4
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +3 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +13 -2
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.d.ts +2 -0
- 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 +2 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +2 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.d.ts +1 -0
- package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/es/types/Interface/models/IExercice.d.ts +2 -0
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/Interface/models/IKilometricAllowanceScale.d.ts +1 -0
- package/es/types/Interface/models/IKilometricAllowanceScale.d.ts.map +1 -1
- package/es/types/Interface/models/IKilometricAllowanceScale.js.map +1 -1
- package/es/types/Interface/models/ILog.d.ts +0 -2
- package/es/types/Interface/models/ILog.d.ts.map +1 -1
- package/es/types/Interface/models/ILog.js.map +1 -1
- package/es/types/Interface/models/IPayment.d.ts +1 -0
- package/es/types/Interface/models/IPayment.d.ts.map +1 -1
- package/es/types/Interface/models/IPayment.js.map +1 -1
- package/es/types/Interface/models/IRegulate.d.ts +5 -3
- package/es/types/Interface/models/IRegulate.d.ts.map +1 -1
- package/es/types/Interface/models/IRegulate.js.map +1 -1
- package/es/types/Interface/models/IReport.d.ts +3 -0
- 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/ISociety.d.ts +2 -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/IThirdPartySociety.d.ts +2 -0
- package/es/types/Interface/models/IThirdPartySociety.d.ts.map +1 -1
- package/es/types/Interface/models/IThirdPartySociety.js.map +1 -1
- package/es/types/index.d.ts +6 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +6 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/email/templates/signature.d.ts.map +1 -1
- package/es/utils/email/templates/signature.js +6 -7
- package/es/utils/email/templates/signature.js.map +1 -1
- package/es/utils/quotation.d.ts.map +1 -1
- package/es/utils/quotation.js +5 -3
- package/es/utils/quotation.js.map +1 -1
- package/es/utils/vat/3517/century23.js +9 -9
- package/es/utils/vat/3517/century23.js.map +1 -1
- package/es/utils/vat/utils.d.ts.map +1 -1
- package/es/utils/vat/utils.js +1 -3
- package/es/utils/vat/utils.js.map +1 -1
- package/js/api/resources/AccountingFiles.js +4 -1
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/api/resources/CashAndExpense.js +37 -0
- package/js/api/resources/CashAndExpense.js.map +1 -0
- package/js/api/resources/FIle.js +6 -0
- package/js/api/resources/FIle.js.map +1 -1
- package/js/api/resources/Mail.js +5 -0
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/Prestations.js +8 -0
- package/js/api/resources/Prestations.js.map +1 -1
- package/js/api/resources.js +3 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/Account.js +8 -0
- package/js/types/Enum/Account.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +1 -1
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +2 -2
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/CashDeskTransactionType.js +13 -0
- package/js/types/Enum/CashDeskTransactionType.js.map +1 -0
- package/js/types/Enum/Compensation.js +20 -0
- package/js/types/Enum/Compensation.js.map +1 -0
- package/js/types/Enum/ConstitutionState.js +6 -6
- package/js/types/Enum/ConstitutionState.js.map +1 -1
- package/js/types/Enum/InternalService.js +12 -0
- package/js/types/Enum/InternalService.js.map +1 -1
- package/js/types/Enum/JobTitle.js +30 -0
- package/js/types/Enum/JobTitle.js.map +1 -1
- package/js/types/Enum/Log.js +200 -0
- package/js/types/Enum/Log.js.map +1 -1
- package/js/types/Enum/MealExpenseThresholds.js +6 -2
- package/js/types/Enum/MealExpenseThresholds.js.map +1 -1
- package/js/types/Enum/PrestationType.js +1 -1
- package/js/types/Enum/PrestationType.js.map +1 -1
- package/js/types/Enum/ReportService.js +21 -9
- package/js/types/Enum/ReportService.js.map +1 -1
- package/js/types/Enum/Role.js +2 -0
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +15 -1
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/TaskResponseType.js +52 -0
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Enum/ThirdParty.js +12 -0
- package/js/types/Enum/ThirdParty.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/js/types/Interface/api/archive/ImportSocietyArchive.js +1 -1
- package/js/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -1
- package/js/types/Interface/api/cashAndExpense/Create.js +44 -0
- package/js/types/Interface/api/cashAndExpense/Create.js.map +1 -0
- package/js/types/Interface/api/file/Query.js +21 -0
- package/js/types/Interface/api/file/Query.js.map +1 -0
- package/js/types/Interface/api/generalLedger/IGeneralLedgerAccount.js.map +1 -1
- package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js +30 -0
- package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +1 -0
- package/js/types/Interface/api/report/ReadReportStats.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +2 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +3 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/js/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +2 -0
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/js/types/Interface/models/IExercice.js.map +1 -1
- package/js/types/Interface/models/IKilometricAllowanceScale.js.map +1 -1
- package/js/types/Interface/models/ILog.js.map +1 -1
- package/js/types/Interface/models/IPayment.js.map +1 -1
- package/js/types/Interface/models/IRegulate.js.map +1 -1
- package/js/types/Interface/models/IReport.js.map +1 -1
- package/js/types/Interface/models/ISociety.js.map +1 -1
- package/js/types/Interface/models/IThirdPartySociety.js.map +1 -1
- package/js/types/index.js +66 -6
- package/js/types/index.js.map +1 -1
- package/js/utils/email/templates/signature.js +6 -7
- package/js/utils/email/templates/signature.js.map +1 -1
- package/js/utils/quotation.js +5 -3
- package/js/utils/quotation.js.map +1 -1
- package/js/utils/vat/3517/century23.js +9 -9
- package/js/utils/vat/3517/century23.js.map +1 -1
- package/js/utils/vat/utils.js +1 -3
- package/js/utils/vat/utils.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +5 -2
- package/ts/api/resources/CashAndExpense.ts +31 -0
- package/ts/api/resources/FIle.ts +5 -0
- package/ts/api/resources/Mail.ts +5 -0
- package/ts/api/resources/Prestations.ts +9 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Account.ts +8 -0
- package/ts/types/Enum/BalanceSheet.ts +1 -1
- package/ts/types/Enum/BrandClementine.ts +2 -2
- package/ts/types/Enum/CashDeskTransactionType.ts +6 -0
- package/ts/types/Enum/Compensation.ts +14 -0
- package/ts/types/Enum/ConstitutionState.ts +4 -4
- package/ts/types/Enum/InternalService.ts +12 -0
- package/ts/types/Enum/JobTitle.ts +36 -0
- package/ts/types/Enum/Log.ts +202 -1
- package/ts/types/Enum/MealExpenseThresholds.ts +6 -2
- package/ts/types/Enum/PrestationType.ts +1 -1
- package/ts/types/Enum/ReportService.ts +20 -8
- package/ts/types/Enum/Role.ts +2 -0
- package/ts/types/Enum/RoleDetail.ts +15 -1
- package/ts/types/Enum/TaskResponseType.ts +57 -0
- package/ts/types/Enum/ThirdParty.ts +6 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +4 -1
- package/ts/types/Interface/api/archive/ImportSocietyArchive.ts +1 -1
- package/ts/types/Interface/api/cashAndExpense/Create.ts +67 -0
- package/ts/types/Interface/api/file/Query.ts +6 -0
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccount.ts +3 -1
- package/ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts +27 -0
- package/ts/types/Interface/api/report/ReadReportStats.ts +2 -1
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +7 -3
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +11 -2
- package/ts/types/Interface/models/IAccountingTransaction.ts +2 -0
- package/ts/types/Interface/models/IApiError.ts +3 -0
- package/ts/types/Interface/models/IEstimateInvoice.ts +1 -0
- package/ts/types/Interface/models/IExercice.ts +2 -0
- package/ts/types/Interface/models/IKilometricAllowanceScale.ts +1 -0
- package/ts/types/Interface/models/ILog.ts +0 -2
- package/ts/types/Interface/models/IPayment.ts +1 -0
- package/ts/types/Interface/models/IRegulate.ts +5 -3
- package/ts/types/Interface/models/IReport.ts +3 -0
- package/ts/types/Interface/models/ISociety.ts +2 -0
- package/ts/types/Interface/models/IThirdPartySociety.ts +5 -0
- package/ts/types/index.ts +6 -0
- package/ts/utils/email/templates/signature.ts +6 -7
- package/ts/utils/quotation.ts +5 -3
- package/ts/utils/vat/3517/century23.ts +9 -9
- package/ts/utils/vat/utils.ts +1 -3
package/js/utils/vat/utils.js
CHANGED
|
@@ -14,9 +14,7 @@ function getAmountByAccountNumber(accountingEntries, accountsNumber, precision =
|
|
|
14
14
|
let accTmp = acc;
|
|
15
15
|
accountsNumber.some(number => {
|
|
16
16
|
if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {
|
|
17
|
-
|
|
18
|
-
accTmp += accountingEntry.debit - accountingEntry.credit;
|
|
19
|
-
}
|
|
17
|
+
accTmp += accountingEntry.debit - accountingEntry.credit;
|
|
20
18
|
return true;
|
|
21
19
|
}
|
|
22
20
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["getAmountByAccountNumber","exports","getTaxAmountByAccountNumber","textFormatting","_lodash","require","_Vat","accountingEntries","accountsNumber","precision","isAbs","accountingEntriesUniq","_uniqBy","result","_round","reduce","acc","accountingEntry","accTmp","some","number","account","toString","startsWith","debit","credit","Math","abs","_b","_a","Object","values","Vat","find","v","id","idVat","value","length","formattedValue","replace","slice"],"sources":["../../../ts/utils/vat/utils.ts"],"sourcesContent":["import { round as _round, uniqBy as _uniqBy } from 'lodash';\nimport { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';\nimport { Vat } from '../../types/Enum/Vat';\n\nexport function getAmountByAccountNumber(accountingEntries: IAccountingEntry[], accountsNumber: string[], precision = 0, isAbs = false): number {\n const accountingEntriesUniq = _uniqBy(accountingEntries, 'id');\n const result = _round(accountingEntriesUniq.reduce((acc, accountingEntry) => {\n let accTmp = acc;\n accountsNumber.some((number) => {\n if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {\n
|
|
1
|
+
{"version":3,"file":"utils.js","names":["getAmountByAccountNumber","exports","getTaxAmountByAccountNumber","textFormatting","_lodash","require","_Vat","accountingEntries","accountsNumber","precision","isAbs","accountingEntriesUniq","_uniqBy","result","_round","reduce","acc","accountingEntry","accTmp","some","number","account","toString","startsWith","debit","credit","Math","abs","_b","_a","Object","values","Vat","find","v","id","idVat","value","length","formattedValue","replace","slice"],"sources":["../../../ts/utils/vat/utils.ts"],"sourcesContent":["import { round as _round, uniqBy as _uniqBy } from 'lodash';\nimport { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';\nimport { Vat } from '../../types/Enum/Vat';\n\nexport function getAmountByAccountNumber(accountingEntries: IAccountingEntry[], accountsNumber: string[], precision = 0, isAbs = false): number {\n const accountingEntriesUniq = _uniqBy(accountingEntries, 'id');\n const result = _round(accountingEntriesUniq.reduce((acc, accountingEntry) => {\n let accTmp = acc;\n accountsNumber.some((number) => {\n if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {\n accTmp += (accountingEntry.debit - accountingEntry.credit);\n return true;\n }\n return false;\n });\n return accTmp;\n }, 0), precision);\n return isAbs ? Math.abs(result) : result;\n}\n\nexport function getTaxAmountByAccountNumber(accountingEntries: IAccountingEntry[], accountsNumber: string[], precision = 0): number {\n const accountingEntriesUniq = _uniqBy(accountingEntries, 'id');\n return _round(accountingEntriesUniq.reduce((acc, accountingEntry) => {\n let accTmp = acc;\n accountsNumber.some((number) => {\n if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {\n accTmp += ((accountingEntry.debit - accountingEntry.credit) * (((Object.values(Vat).find((v) => v.id === accountingEntry.idVat)?.value ?? 0) / 100)));\n return true;\n }\n return false;\n });\n return accTmp;\n }, precision));\n}\n\nexport function textFormatting(value: any, length: number | null = null): string | null {\n if (value && typeof value === 'string') {\n let formattedValue = value.replace(/[\\u2018\\u2019]/g, '\\''); // Suppression des \"Curly Quotes\"\n formattedValue = formattedValue.replace(/&/g, ''); // Suppression des &\n formattedValue = formattedValue.replace(/!/g, ''); // Suppression des !\n formattedValue = formattedValue.replace(/[\\t]/g, ''); // Suppression des tabulations\n formattedValue = formattedValue.replace(/`/g, '\\''); // Suppression des `\n formattedValue = formattedValue.replace(/\"/g, ''); // Suppression des \"\n formattedValue = formattedValue.replace(/^ */, ''); // Suppression des espaces de début\n formattedValue = formattedValue.replace(/ *$/, ''); // Suppression des espaces de fin\n if (length) formattedValue = formattedValue.slice(0, length);\n return formattedValue;\n }\n return null;\n}"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26",
|
|
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": "js/index.js",
|
|
@@ -4,19 +4,22 @@ import {
|
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class AccountingFiles extends Resource {
|
|
7
|
-
accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]> {
|
|
7
|
+
accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[] | IAccountingFile[] > {
|
|
8
8
|
const sendAccountingFiles = new FormData();
|
|
9
9
|
|
|
10
10
|
sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());
|
|
11
11
|
sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());
|
|
12
12
|
sendAccountingFiles.append('split', params.split.toString());
|
|
13
13
|
sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());
|
|
14
|
+
if (params.emissionDate) {
|
|
15
|
+
sendAccountingFiles.append('emissionDate', params.emissionDate.toString());
|
|
16
|
+
}
|
|
14
17
|
|
|
15
18
|
params.files.forEach((file) => {
|
|
16
19
|
sendAccountingFiles.append('files', file);
|
|
17
20
|
});
|
|
18
21
|
|
|
19
|
-
return this.axios.$post('/society/accountingFiles',
|
|
22
|
+
return this.axios.$post('/society/accountingFiles', sendAccountingFiles, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
delete(id: number): Promise<true> {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { forEach } from 'lodash';
|
|
2
|
+
import {
|
|
3
|
+
CreateCashDesk, CreateCashAndExpenseTransaction, IBankAccount, IAccountingTransaction, CreateKilometricAllowance,
|
|
4
|
+
} from '../../types';
|
|
5
|
+
import { Resource } from '../Resource';
|
|
6
|
+
|
|
7
|
+
export class CashAndExpense extends Resource {
|
|
8
|
+
create(idSociety: number, payload: CreateCashDesk): Promise<IBankAccount> {
|
|
9
|
+
return this.axios.$post(`/societies/${idSociety}/bank-accounts/cash-desk`, payload);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
createTransaction(payload: CreateCashAndExpenseTransaction): Promise<IAccountingTransaction> {
|
|
13
|
+
const formData = new FormData();
|
|
14
|
+
forEach(payload, (value, key) => {
|
|
15
|
+
if (value) {
|
|
16
|
+
if (key === 'entries') {
|
|
17
|
+
formData.append(key, `${JSON.stringify(value)}`);
|
|
18
|
+
} else {
|
|
19
|
+
formData.append(key, `${value}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
formData.append('file', payload.file);
|
|
25
|
+
return this.axios.$post('/societies/cash-and-expense/transaction', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
createKilometricAllowance(idSociety: number, payload: CreateKilometricAllowance): Promise<IAccountingTransaction> {
|
|
29
|
+
return this.axios.$post(`/societies/${idSociety}/kilometric-allowance`, payload);
|
|
30
|
+
}
|
|
31
|
+
}
|
package/ts/api/resources/FIle.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Resource } from '../Resource';
|
|
|
3
3
|
import {
|
|
4
4
|
ReadFile,
|
|
5
5
|
CreateFile,
|
|
6
|
+
QueryFileBuffer,
|
|
6
7
|
} from '../../types';
|
|
7
8
|
|
|
8
9
|
export class File extends Resource {
|
|
@@ -21,4 +22,8 @@ export class File extends Resource {
|
|
|
21
22
|
get(id: number, idSociety: number): Promise<ReadFile> {
|
|
22
23
|
return this.axios.$get(`societies/${idSociety}/files/${id}`);
|
|
23
24
|
}
|
|
25
|
+
|
|
26
|
+
getBuffer(idSociety: number, id: number, params: QueryFileBuffer): Promise<Buffer> {
|
|
27
|
+
return this.axios.$get(`societies/${idSociety}/files/${id}/buffer`, { params, responseType: 'blob' });
|
|
28
|
+
}
|
|
24
29
|
}
|
package/ts/api/resources/Mail.ts
CHANGED
|
@@ -151,6 +151,7 @@ export class Mail extends Resource {
|
|
|
151
151
|
...(cancelToken ? { cancelToken } : {}),
|
|
152
152
|
params: {
|
|
153
153
|
idUser,
|
|
154
|
+
isProcessed: false,
|
|
154
155
|
isSent: false,
|
|
155
156
|
},
|
|
156
157
|
});
|
|
@@ -172,6 +173,8 @@ export class Mail extends Resource {
|
|
|
172
173
|
...(cancelToken ? { cancelToken } : {}),
|
|
173
174
|
params: {
|
|
174
175
|
idUser,
|
|
176
|
+
isProcessed: false,
|
|
177
|
+
isSent: false,
|
|
175
178
|
isWithoutSociety: true,
|
|
176
179
|
},
|
|
177
180
|
});
|
|
@@ -182,6 +185,8 @@ export class Mail extends Resource {
|
|
|
182
185
|
...(cancelToken ? { cancelToken } : {}),
|
|
183
186
|
params: {
|
|
184
187
|
idUser,
|
|
188
|
+
isProcessed: false,
|
|
189
|
+
isSent: false,
|
|
185
190
|
handlingManagerRoleMails: true,
|
|
186
191
|
},
|
|
187
192
|
});
|
|
@@ -31,4 +31,13 @@ export class Prestations extends Resource {
|
|
|
31
31
|
getAll(params: QueryGetAllPrestations): Promise<IPrestationList[]> {
|
|
32
32
|
return this.axios.$get('prestations/all', { params });
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* delete un enregistrement dans la table prestation
|
|
37
|
+
* @param { number } id
|
|
38
|
+
* @returns { boolean }
|
|
39
|
+
*/
|
|
40
|
+
public delete(id: number): Promise<number> {
|
|
41
|
+
return this.axios.$delete(`/prestations/${id}`);
|
|
42
|
+
}
|
|
34
43
|
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -124,6 +124,7 @@ import { StatisticCustomerSuccess } from './resources/statistic/CustomerSuccess'
|
|
|
124
124
|
import { UnpaidCallHistory } from './resources/UnpaidCallHistory';
|
|
125
125
|
import { CommercialImport } from './resources/CommercialImport';
|
|
126
126
|
import { Team } from './resources/Team';
|
|
127
|
+
import { CashAndExpense } from './resources/CashAndExpense';
|
|
127
128
|
|
|
128
129
|
export const resources = {
|
|
129
130
|
simulation: Simulation,
|
|
@@ -252,4 +253,5 @@ export const resources = {
|
|
|
252
253
|
unpaidCallHistory: UnpaidCallHistory,
|
|
253
254
|
commercialImport: CommercialImport,
|
|
254
255
|
team: Team,
|
|
256
|
+
cashAndExpense: CashAndExpense,
|
|
255
257
|
};
|
package/ts/types/Enum/Account.ts
CHANGED
|
@@ -29,7 +29,7 @@ export const BalanceSheetDetails = [
|
|
|
29
29
|
text: 'À faire',
|
|
30
30
|
color: 'grey',
|
|
31
31
|
textColor: 'grey--text',
|
|
32
|
-
forRoles: [['front_office'], ['front_office_express'], ['expert'], ['customer_success']],
|
|
32
|
+
forRoles: [['front_office'], ['front_office_express'], ['expert'], ['customer_success'], ['facturation']],
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
text: 'En cours de prod.',
|
|
@@ -55,11 +55,11 @@ export const BrandClementine = [
|
|
|
55
55
|
logoUrl: 'logo-dark.svg',
|
|
56
56
|
miniLogoUrl: 'logo.svg',
|
|
57
57
|
hiddenPages: [],
|
|
58
|
-
urlApp: 'https://app.
|
|
58
|
+
urlApp: 'https://app.clementine.fr',
|
|
59
59
|
urlApi1: 'https://api.compta-clementine.fr',
|
|
60
60
|
urlApi2: 'https://api-next.compta-clementine.fr',
|
|
61
61
|
urlExpert: 'https://expert.compta-clementine.fr',
|
|
62
|
-
urlClient: 'https://www.
|
|
62
|
+
urlClient: 'https://www.clementine.fr',
|
|
63
63
|
bank: {
|
|
64
64
|
IBAN: 'FR7616106840138646838239863',
|
|
65
65
|
BIC: 'AGRIFRPP861',
|
|
@@ -8,8 +8,8 @@ export enum ConstitutionState {
|
|
|
8
8
|
// TODO : A delete une fois plus utilisé
|
|
9
9
|
// ========================
|
|
10
10
|
WAITING_KBIS = 7,
|
|
11
|
-
WAITING_RIB_OR_SEPA = 8,
|
|
12
|
-
INVOICING_TO_D0 = 9,
|
|
11
|
+
/* WAITING_RIB_OR_SEPA = 8,
|
|
12
|
+
INVOICING_TO_D0 = 9, */
|
|
13
13
|
// ========================
|
|
14
14
|
ABANDONED_CASE = 10,
|
|
15
15
|
}
|
|
@@ -50,7 +50,7 @@ export const ConstitutionStateDetail: ConstitutionStateType = {
|
|
|
50
50
|
text: 'Attente KBIS greffe',
|
|
51
51
|
color: 'purple lighten-4',
|
|
52
52
|
},
|
|
53
|
-
WAITING_RIB_OR_SEPA: {
|
|
53
|
+
/* WAITING_RIB_OR_SEPA: {
|
|
54
54
|
value: ConstitutionState.WAITING_RIB_OR_SEPA,
|
|
55
55
|
text: 'Envoi de KBIS',
|
|
56
56
|
color: 'yellow lighten-4',
|
|
@@ -59,7 +59,7 @@ export const ConstitutionStateDetail: ConstitutionStateType = {
|
|
|
59
59
|
value: ConstitutionState.INVOICING_TO_D0,
|
|
60
60
|
text: 'Facturation à faire',
|
|
61
61
|
color: 'primary lighten-2',
|
|
62
|
-
},
|
|
62
|
+
}, */
|
|
63
63
|
// ========================================
|
|
64
64
|
ABANDONED_CASE: {
|
|
65
65
|
value: ConstitutionState.ABANDONED_CASE,
|
|
@@ -21,4 +21,16 @@ export const InternalService = {
|
|
|
21
21
|
idRole: Role.FACTURATION,
|
|
22
22
|
name: 'Facturation',
|
|
23
23
|
},
|
|
24
|
+
REFERENT_LITIGE: {
|
|
25
|
+
idRole: Role.REFERENT_LITIGE,
|
|
26
|
+
name: 'Référent litige',
|
|
27
|
+
},
|
|
28
|
+
REFERENT_CLIENT: {
|
|
29
|
+
idRole: Role.REFERENT_CLIENT,
|
|
30
|
+
name: 'Référent client',
|
|
31
|
+
},
|
|
32
|
+
EXPERT_ACCOUNTANT: {
|
|
33
|
+
idRole: Role.EXPERT_ACCOUNTANT,
|
|
34
|
+
name: 'Expert Comptable',
|
|
35
|
+
},
|
|
24
36
|
};
|
|
@@ -18,6 +18,12 @@ export enum JobTitle {
|
|
|
18
18
|
BILLING_ASSISTANT = 17,
|
|
19
19
|
COMMERCIAL = 18,
|
|
20
20
|
ACCOUNTING_CONSULTANT = 19,
|
|
21
|
+
COMMUNICATION_MANAGER = 20,
|
|
22
|
+
INTERNAL_CONTROL_REFERENT = 21,
|
|
23
|
+
TRAFIC_MANAGER = 22,
|
|
24
|
+
EXECUTIVE_ASSISTANT = 23,
|
|
25
|
+
INTERNAL_CONTROL_MANAGER = 24,
|
|
26
|
+
HUMAN_RESOURCES_MANAGER = 25,
|
|
21
27
|
}
|
|
22
28
|
|
|
23
29
|
export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: string }> = [
|
|
@@ -116,4 +122,34 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
|
|
|
116
122
|
menText: 'Conseiller comptable',
|
|
117
123
|
womenText: 'Conseillère comptable',
|
|
118
124
|
},
|
|
125
|
+
{
|
|
126
|
+
id: JobTitle.COMMUNICATION_MANAGER,
|
|
127
|
+
menText: 'Chargé de communication',
|
|
128
|
+
womenText: 'Chargée de communication',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: JobTitle.INTERNAL_CONTROL_REFERENT,
|
|
132
|
+
menText: 'Référent du contrôle interne',
|
|
133
|
+
womenText: 'Référente du contrôle interne',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: JobTitle.TRAFIC_MANAGER,
|
|
137
|
+
menText: 'Trafic Manager',
|
|
138
|
+
womenText: 'Trafic Manager',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: JobTitle.EXECUTIVE_ASSISTANT,
|
|
142
|
+
menText: 'Assistant de Direction',
|
|
143
|
+
womenText: 'Assistante de Direction',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: JobTitle.INTERNAL_CONTROL_MANAGER,
|
|
147
|
+
menText: 'Chargé du contrôle interne',
|
|
148
|
+
womenText: 'Chargée du contrôle interne',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: JobTitle.HUMAN_RESOURCES_MANAGER,
|
|
152
|
+
menText: 'Chargé des ressources humaines',
|
|
153
|
+
womenText: 'Chargée des ressources humaines',
|
|
154
|
+
},
|
|
119
155
|
];
|
package/ts/types/Enum/Log.ts
CHANGED
|
@@ -33,7 +33,208 @@ export enum LogType {
|
|
|
33
33
|
UNPAID = 21,
|
|
34
34
|
DELETE = 22,
|
|
35
35
|
REGULATION_DELETE = 23,
|
|
36
|
+
TERMINATION = 24,
|
|
37
|
+
CHECKLIST = 25,
|
|
36
38
|
TRANSACTION_DELETE = 26,
|
|
37
39
|
INPI_DELETE = 27,
|
|
38
40
|
VALIDATE_CALENDAR = 28,
|
|
39
|
-
|
|
41
|
+
INACTIVITY = 29,
|
|
42
|
+
SOCIAL = 30,
|
|
43
|
+
CONSTITUTION = 31,
|
|
44
|
+
APPROBATION = 32,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const LogTypeDetail = {
|
|
48
|
+
VAT: {
|
|
49
|
+
id: LogType.VAT,
|
|
50
|
+
label: 'TVA',
|
|
51
|
+
color: 'light-blue darken-1',
|
|
52
|
+
icon: null,
|
|
53
|
+
},
|
|
54
|
+
TAX: {
|
|
55
|
+
id: LogType.TAX,
|
|
56
|
+
label: 'IS',
|
|
57
|
+
color: 'teal darken-1',
|
|
58
|
+
icon: null,
|
|
59
|
+
},
|
|
60
|
+
BALANCESHEET: {
|
|
61
|
+
id: LogType.BALANCESHEET,
|
|
62
|
+
label: 'Bilan',
|
|
63
|
+
color: 'light-greendarken-1',
|
|
64
|
+
icon: null,
|
|
65
|
+
},
|
|
66
|
+
SUPERVISION: {
|
|
67
|
+
id: LogType.SUPERVISION,
|
|
68
|
+
label: 'Supervision',
|
|
69
|
+
color: 'amber darken-1',
|
|
70
|
+
icon: null,
|
|
71
|
+
},
|
|
72
|
+
TASK: {
|
|
73
|
+
id: LogType.TASK,
|
|
74
|
+
label: 'Tâche',
|
|
75
|
+
color: 'green darken-1',
|
|
76
|
+
icon: null,
|
|
77
|
+
},
|
|
78
|
+
COMMENT: {
|
|
79
|
+
id: LogType.COMMENT,
|
|
80
|
+
label: 'Commentaire',
|
|
81
|
+
color: 'blue-grey darken-1',
|
|
82
|
+
icon: null,
|
|
83
|
+
},
|
|
84
|
+
MAIL: {
|
|
85
|
+
id: LogType.MAIL,
|
|
86
|
+
label: 'Mail',
|
|
87
|
+
color: 'grey',
|
|
88
|
+
icon: null,
|
|
89
|
+
},
|
|
90
|
+
REPORT: {
|
|
91
|
+
id: LogType.REPORT,
|
|
92
|
+
label: 'Signalement',
|
|
93
|
+
color: 'lred darken-2',
|
|
94
|
+
icon: null,
|
|
95
|
+
},
|
|
96
|
+
EXPORT: {
|
|
97
|
+
id: LogType.EXPORT,
|
|
98
|
+
label: 'Exportation',
|
|
99
|
+
color: 'cyan darken-1',
|
|
100
|
+
icon: null,
|
|
101
|
+
},
|
|
102
|
+
REVISION: {
|
|
103
|
+
id: LogType.REVISION,
|
|
104
|
+
label: 'Révision',
|
|
105
|
+
color: null,
|
|
106
|
+
icon: null,
|
|
107
|
+
},
|
|
108
|
+
ARCHIVING: {
|
|
109
|
+
id: LogType.ARCHIVING,
|
|
110
|
+
label: 'Archivage',
|
|
111
|
+
color: 'grey lighten-1',
|
|
112
|
+
icon: null,
|
|
113
|
+
},
|
|
114
|
+
UNARCHIVING: {
|
|
115
|
+
id: LogType.UNARCHIVING,
|
|
116
|
+
label: 'Désarchivage',
|
|
117
|
+
color: 'grey lighten-2',
|
|
118
|
+
icon: null,
|
|
119
|
+
},
|
|
120
|
+
PAYMENT_DELETED: {
|
|
121
|
+
id: LogType.PAYMENT_DELETED,
|
|
122
|
+
label: 'Paiement supprimé',
|
|
123
|
+
color: 'red',
|
|
124
|
+
icon: null,
|
|
125
|
+
},
|
|
126
|
+
LOGIN: {
|
|
127
|
+
id: LogType.LOGIN,
|
|
128
|
+
label: 'Connexion',
|
|
129
|
+
color: 'grey darken-2',
|
|
130
|
+
icon: null,
|
|
131
|
+
},
|
|
132
|
+
PAUSE: {
|
|
133
|
+
id: LogType.PAUSE,
|
|
134
|
+
label: 'Pause',
|
|
135
|
+
color: 'grey darken-2',
|
|
136
|
+
icon: null,
|
|
137
|
+
},
|
|
138
|
+
DAY_END: {
|
|
139
|
+
id: LogType.DAY_END,
|
|
140
|
+
label: 'Journée terminée',
|
|
141
|
+
color: 'grey darken-2',
|
|
142
|
+
icon: null,
|
|
143
|
+
},
|
|
144
|
+
GENERIC_ACCOUNT: {
|
|
145
|
+
id: LogType.GENERIC_ACCOUNT,
|
|
146
|
+
label: 'Plan comptable générique',
|
|
147
|
+
color: 'purple darken-4',
|
|
148
|
+
icon: null,
|
|
149
|
+
},
|
|
150
|
+
BANK_ACCOUNT_FUSION: {
|
|
151
|
+
id: LogType.BANK_ACCOUNT_FUSION,
|
|
152
|
+
label: 'Fusion compte bancaire',
|
|
153
|
+
color: 'purple',
|
|
154
|
+
icon: null,
|
|
155
|
+
},
|
|
156
|
+
IMPORT: {
|
|
157
|
+
id: LogType.IMPORT,
|
|
158
|
+
label: 'Importation',
|
|
159
|
+
color: 'cyan darken-1',
|
|
160
|
+
icon: null,
|
|
161
|
+
},
|
|
162
|
+
PAUSE_END: {
|
|
163
|
+
id: LogType.PAUSE_END,
|
|
164
|
+
label: 'Pause terminée',
|
|
165
|
+
color: 'cyan darken-1',
|
|
166
|
+
icon: null,
|
|
167
|
+
},
|
|
168
|
+
UNPAID: {
|
|
169
|
+
id: LogType.UNPAID,
|
|
170
|
+
label: 'Impayé',
|
|
171
|
+
color: 'red lighten-2',
|
|
172
|
+
icon: null,
|
|
173
|
+
},
|
|
174
|
+
DELETE: {
|
|
175
|
+
id: LogType.DELETE,
|
|
176
|
+
label: 'Suppression',
|
|
177
|
+
color: 'cyan darken-1',
|
|
178
|
+
icon: null,
|
|
179
|
+
},
|
|
180
|
+
REGULATION_DELETE: {
|
|
181
|
+
id: LogType.REGULATION_DELETE,
|
|
182
|
+
label: 'Suppression régule',
|
|
183
|
+
color: '#c21530',
|
|
184
|
+
icon: null,
|
|
185
|
+
},
|
|
186
|
+
TERMINATION: {
|
|
187
|
+
id: LogType.TERMINATION,
|
|
188
|
+
label: 'Résiliation',
|
|
189
|
+
color: 'cyan darken-1',
|
|
190
|
+
icon: null,
|
|
191
|
+
},
|
|
192
|
+
CHECKLIST: {
|
|
193
|
+
id: LogType.CHECKLIST,
|
|
194
|
+
label: 'Checklist',
|
|
195
|
+
color: 'cyan darken-1',
|
|
196
|
+
icon: null,
|
|
197
|
+
},
|
|
198
|
+
TRANSACTION_DELETE: {
|
|
199
|
+
id: LogType.TRANSACTION_DELETE,
|
|
200
|
+
label: 'Suppression de transaction',
|
|
201
|
+
color: 'red darken-3',
|
|
202
|
+
icon: null,
|
|
203
|
+
},
|
|
204
|
+
INPI_DELETE: {
|
|
205
|
+
id: LogType.INPI_DELETE,
|
|
206
|
+
label: 'Suppression INPI',
|
|
207
|
+
color: 'red darken-2',
|
|
208
|
+
icon: null,
|
|
209
|
+
},
|
|
210
|
+
VALIDATE_CALENDAR: {
|
|
211
|
+
id: LogType.VALIDATE_CALENDAR,
|
|
212
|
+
label: 'Validation de journée',
|
|
213
|
+
color: 'green lighten-1',
|
|
214
|
+
icon: null,
|
|
215
|
+
},
|
|
216
|
+
INACTIVITY: {
|
|
217
|
+
id: LogType.INACTIVITY,
|
|
218
|
+
label: 'Inactivité',
|
|
219
|
+
color: 'red darken-2',
|
|
220
|
+
icon: null,
|
|
221
|
+
},
|
|
222
|
+
SOCIAL: {
|
|
223
|
+
id: LogType.SOCIAL,
|
|
224
|
+
label: 'Social',
|
|
225
|
+
color: 'cyan darken-2',
|
|
226
|
+
icon: null,
|
|
227
|
+
},
|
|
228
|
+
CONSTITUTION: {
|
|
229
|
+
id: LogType.CONSTITUTION,
|
|
230
|
+
label: 'Constitution',
|
|
231
|
+
color: 'blue-grey lighten-1',
|
|
232
|
+
icon: null,
|
|
233
|
+
},
|
|
234
|
+
APPROBATION: {
|
|
235
|
+
id: LogType.APPROBATION,
|
|
236
|
+
label: 'Approbation',
|
|
237
|
+
color: 'blue-grey lighten-2',
|
|
238
|
+
icon: null,
|
|
239
|
+
},
|
|
240
|
+
};
|
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RoleDetail } from './RoleDetail';
|
|
2
|
+
|
|
3
|
+
export type ListReport = Array<{ label: string; id: number; idRole: number; idTaskType: number; }>;
|
|
2
4
|
|
|
3
5
|
export enum ReportService {
|
|
4
|
-
|
|
6
|
+
REFERENT_LITIGE = 1,
|
|
5
7
|
COMPTABLE = 2,
|
|
6
8
|
CUSTOMER_SUCCESS = 3,
|
|
7
9
|
EXPERT_ACCOUNTANT = 4,
|
|
8
|
-
|
|
10
|
+
REFERENT_CLIENT = 5,
|
|
9
11
|
}
|
|
10
12
|
|
|
11
|
-
export const ReportServiceList:
|
|
13
|
+
export const ReportServiceList: ListReport = [
|
|
12
14
|
{
|
|
13
|
-
id: ReportService.
|
|
14
|
-
label: '
|
|
15
|
+
id: ReportService.REFERENT_LITIGE,
|
|
16
|
+
label: 'Référent litige',
|
|
17
|
+
idRole: RoleDetail.REFERENT_LITIGE.id,
|
|
18
|
+
idTaskType: 12,
|
|
15
19
|
},
|
|
16
20
|
{
|
|
17
21
|
id: ReportService.COMPTABLE,
|
|
18
22
|
label: 'Comptable',
|
|
23
|
+
idRole: RoleDetail.FRONT_OFFICE.id,
|
|
24
|
+
idTaskType: 16,
|
|
19
25
|
},
|
|
20
26
|
{
|
|
21
27
|
id: ReportService.CUSTOMER_SUCCESS,
|
|
22
28
|
label: 'Customer Success',
|
|
29
|
+
idRole: RoleDetail.CUSTOMER_SUCCESS.id,
|
|
30
|
+
idTaskType: 14,
|
|
23
31
|
},
|
|
24
32
|
{
|
|
25
33
|
id: ReportService.EXPERT_ACCOUNTANT,
|
|
26
34
|
label: 'Expert Comptable',
|
|
35
|
+
idRole: RoleDetail.EXPERT_ACCOUNTANT.id,
|
|
36
|
+
idTaskType: 15,
|
|
27
37
|
},
|
|
28
38
|
{
|
|
29
|
-
id: ReportService.
|
|
30
|
-
label: '
|
|
39
|
+
id: ReportService.REFERENT_CLIENT,
|
|
40
|
+
label: 'Référent client',
|
|
41
|
+
idRole: RoleDetail.REFERENT_CLIENT.id,
|
|
42
|
+
idTaskType: 13,
|
|
31
43
|
},
|
|
32
44
|
];
|
package/ts/types/Enum/Role.ts
CHANGED
|
@@ -38,7 +38,7 @@ export const RoleDetail = {
|
|
|
38
38
|
colorSecondary: '#DAEEFC',
|
|
39
39
|
subRole: false,
|
|
40
40
|
handledInUserSocietyPermissionTable: false,
|
|
41
|
-
phoneNumber: '',
|
|
41
|
+
phoneNumber: '+33757597512',
|
|
42
42
|
phoneNumberPourcentage: '',
|
|
43
43
|
},
|
|
44
44
|
SOCIAL: {
|
|
@@ -292,4 +292,18 @@ export const RoleDetail = {
|
|
|
292
292
|
colorSecondary: '#FFF',
|
|
293
293
|
subRole: true,
|
|
294
294
|
},
|
|
295
|
+
REFERENT_LITIGE: {
|
|
296
|
+
id: 47,
|
|
297
|
+
name: 'Référent litige',
|
|
298
|
+
colorPrimary: '#FFF',
|
|
299
|
+
colorSecondary: '#FFF',
|
|
300
|
+
subRole: false,
|
|
301
|
+
},
|
|
302
|
+
REFERENT_CLIENT: {
|
|
303
|
+
id: 48,
|
|
304
|
+
name: 'Référent client',
|
|
305
|
+
colorPrimary: '#FFF',
|
|
306
|
+
colorSecondary: '#FFF',
|
|
307
|
+
subRole: false,
|
|
308
|
+
},
|
|
295
309
|
};
|