@silexpert/core 0.4.286 → 1.0.5
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/CHANGELOG.md +0 -17
- package/es/api/resources/BudgetInsight.d.ts +7 -0
- package/es/api/resources/BudgetInsight.d.ts.map +1 -1
- package/es/api/resources/BudgetInsight.js +8 -0
- package/es/api/resources/BudgetInsight.js.map +1 -1
- package/es/api/resources/CalendarEvent.d.ts +1 -2
- package/es/api/resources/CalendarEvent.d.ts.map +1 -1
- package/es/api/resources/CalendarEvent.js +2 -2
- package/es/api/resources/CalendarEvent.js.map +1 -1
- package/es/api/resources/CommercialSetting.d.ts +7 -0
- package/es/api/resources/CommercialSetting.d.ts.map +1 -0
- package/es/api/resources/CommercialSetting.js +10 -0
- package/es/api/resources/CommercialSetting.js.map +1 -0
- package/es/api/resources/Connector.d.ts +4 -1
- package/es/api/resources/Connector.d.ts.map +1 -1
- package/es/api/resources/Connector.js +9 -0
- package/es/api/resources/Connector.js.map +1 -1
- package/es/api/resources/Dashboard.d.ts +1 -2
- package/es/api/resources/Dashboard.d.ts.map +1 -1
- package/es/api/resources/Dashboard.js +0 -3
- package/es/api/resources/Dashboard.js.map +1 -1
- package/es/api/resources/Exercice.d.ts +0 -1
- package/es/api/resources/Exercice.d.ts.map +1 -1
- package/es/api/resources/Exercice.js +0 -3
- package/es/api/resources/Exercice.js.map +1 -1
- package/es/api/resources/FecFile.d.ts +0 -6
- package/es/api/resources/FecFile.d.ts.map +1 -1
- package/es/api/resources/FecFile.js +6 -26
- package/es/api/resources/FecFile.js.map +1 -1
- package/es/api/resources/GeneralLedger.d.ts +1 -1
- package/es/api/resources/GeneralLedger.d.ts.map +1 -1
- package/es/api/resources/GeneralLedger.js +2 -2
- package/es/api/resources/GeneralLedger.js.map +1 -1
- package/es/api/resources/Invoice.d.ts +11 -0
- package/es/api/resources/Invoice.d.ts.map +1 -0
- package/es/api/resources/Invoice.js +19 -0
- package/es/api/resources/Invoice.js.map +1 -0
- package/es/api/resources/Loan.js +1 -1
- package/es/api/resources/Loan.js.map +1 -1
- package/es/api/resources/Mail.d.ts +1 -1
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +3 -4
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/Partner.d.ts +0 -1
- package/es/api/resources/Partner.d.ts.map +1 -1
- package/es/api/resources/Partner.js +0 -3
- package/es/api/resources/Partner.js.map +1 -1
- package/es/api/resources/Qonto.d.ts +1 -6
- package/es/api/resources/Qonto.d.ts.map +1 -1
- package/es/api/resources/Qonto.js +1 -16
- package/es/api/resources/Qonto.js.map +1 -1
- package/es/api/resources/User.d.ts +2 -2
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +11 -2
- package/es/api/resources/User.js.map +1 -1
- package/es/api/resources/commercialDocument.d.ts +18 -0
- package/es/api/resources/commercialDocument.d.ts.map +1 -0
- package/es/api/resources/commercialDocument.js +41 -0
- package/es/api/resources/commercialDocument.js.map +1 -0
- package/es/api/resources/reminder.d.ts +8 -0
- package/es/api/resources/reminder.d.ts.map +1 -0
- package/es/api/resources/reminder.js +13 -0
- package/es/api/resources/reminder.js.map +1 -0
- package/es/api/resources.d.ts +8 -16
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +8 -16
- package/es/api/resources.js.map +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.d.ts.map +1 -1
- package/es/index.js +1 -0
- package/es/index.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/BrandClementine.d.ts +1 -12
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +1 -10
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandComptalib.d.ts +0 -87
- package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/es/types/Enum/BrandComptalib.js +4 -13
- package/es/types/Enum/BrandComptalib.js.map +1 -1
- package/es/types/Enum/BrandLegalstart.d.ts +0 -3
- package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/es/types/Enum/BrandLegalstart.js +0 -3
- package/es/types/Enum/BrandLegalstart.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.d.ts +0 -4
- package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +3 -7
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- package/es/types/Enum/BudgetInsight.js.map +1 -1
- package/es/types/Enum/CommercialManagement.d.ts +32 -0
- package/es/types/Enum/CommercialManagement.d.ts.map +1 -0
- package/es/types/Enum/CommercialManagement.js +39 -0
- package/es/types/Enum/CommercialManagement.js.map +1 -0
- package/es/types/Enum/EstimateInvoice.d.ts +1 -1
- package/es/types/Enum/EstimateInvoice.d.ts.map +1 -1
- package/es/types/Enum/EstimateInvoice.js +1 -1
- package/es/types/Enum/EstimateInvoice.js.map +1 -1
- package/es/types/Enum/Log.d.ts +1 -2
- package/es/types/Enum/Log.d.ts.map +1 -1
- package/es/types/Enum/Log.js +0 -1
- package/es/types/Enum/Log.js.map +1 -1
- package/es/types/Enum/{PrestationType.d.ts → Prestation.d.ts} +3 -4
- package/es/types/Enum/Prestation.d.ts.map +1 -0
- package/es/types/Enum/Prestation.js +16 -0
- package/es/types/Enum/Prestation.js.map +1 -0
- package/es/types/Enum/Role.d.ts +11 -6
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +10 -15
- package/es/types/Enum/Role.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +51 -42
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +64 -127
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/SheetMonthScheduleDetailType.js +1 -1
- package/es/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
- package/es/types/Enum/TaskResponseType.d.ts +0 -9
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +2 -57
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Enum/TimeCounterType.d.ts +12 -40
- package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/es/types/Enum/TimeCounterType.js +19 -47
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Enum/Vat.d.ts +1 -17
- package/es/types/Enum/Vat.d.ts.map +1 -1
- package/es/types/Enum/Vat.js +26 -24
- package/es/types/Enum/Vat.js.map +1 -1
- package/es/types/Interface/api/3cx/Query3cxSearch.d.ts +0 -1
- package/es/types/Interface/api/3cx/Query3cxSearch.d.ts.map +1 -1
- package/es/types/Interface/api/3cx/Query3cxSearch.js +0 -6
- package/es/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
- package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts +0 -1
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.d.ts.map +1 -1
- package/es/types/Interface/api/calendarEvent/readAllCalendarEvent.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.d.ts +107 -0
- package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -0
- package/es/types/Interface/api/commercialManagement/Create.js +496 -0
- package/es/types/Interface/api/commercialManagement/Create.js.map +1 -0
- package/es/types/Interface/api/commercialManagement/Query.d.ts +45 -0
- package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -0
- package/es/types/Interface/api/commercialManagement/Query.js +121 -0
- package/es/types/Interface/api/commercialManagement/Query.js.map +1 -0
- package/es/types/Interface/api/commercialManagement/Read.d.ts +60 -0
- package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -0
- package/es/types/Interface/api/commercialManagement/Read.js +2 -0
- package/es/types/Interface/api/commercialManagement/Read.js.map +1 -0
- package/es/types/Interface/api/commercialManagement/Update.d.ts +16 -0
- package/es/types/Interface/api/commercialManagement/Update.d.ts.map +1 -0
- package/es/types/Interface/api/{societyConfig/update.js → commercialManagement/Update.js} +21 -61
- package/es/types/Interface/api/commercialManagement/Update.js.map +1 -0
- package/es/types/Interface/api/connector/CreateConnector.d.ts +13 -0
- package/es/types/Interface/api/connector/CreateConnector.d.ts.map +1 -0
- package/es/types/Interface/api/connector/CreateConnector.js +68 -0
- package/es/types/Interface/api/connector/CreateConnector.js.map +1 -0
- package/es/types/Interface/api/connector/QueryConnector.d.ts +7 -0
- package/es/types/Interface/api/connector/QueryConnector.d.ts.map +1 -0
- package/es/types/Interface/api/{qonto/ProcessBankAccount.js → connector/QueryConnector.js} +10 -7
- package/es/types/Interface/api/connector/QueryConnector.js.map +1 -0
- package/es/types/Interface/api/dashboard/ReadGescom.d.ts +2 -3
- package/es/types/Interface/api/dashboard/ReadGescom.d.ts.map +1 -1
- package/es/types/Interface/api/dashboard/ReadGescom.js.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +0 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +1 -7
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +0 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -7
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -2
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +2 -8
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -2
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -7
- package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.d.ts +1 -0
- package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.js +9 -6
- package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.d.ts +2 -0
- package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.js +15 -1
- package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevision.d.ts +0 -2
- package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevision.js +2 -16
- package/es/types/Interface/api/revision/QueryRevision.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.js +5 -11
- package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +0 -2
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js +2 -16
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/es/types/Interface/api/revision/ReadRevision.d.ts +1 -2
- package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -1
- package/es/types/Interface/api/revision/ReadRevision.js.map +1 -1
- package/es/types/Interface/api/simulation/CreateSimulation.d.ts +0 -2
- package/es/types/Interface/api/simulation/CreateSimulation.d.ts.map +1 -1
- package/es/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
- package/es/types/Interface/api/task/QueryCountTask.d.ts +1 -1
- package/es/types/Interface/api/task/QueryCountTask.d.ts.map +1 -1
- package/es/types/Interface/api/task/QueryCountTask.js +1 -1
- package/es/types/Interface/api/task/QueryCountTask.js.map +1 -1
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts +0 -2
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts.map +1 -1
- package/es/types/Interface/api/task/QueryPaginatedTask.js +0 -11
- package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
- package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts +0 -1
- package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts.map +1 -1
- package/es/types/Interface/api/thirdParty/QueryThirdParty.js +1 -7
- package/es/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +0 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +1 -10
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +0 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js +1 -11
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
- package/es/types/Interface/models/IAccount.d.ts +0 -2
- 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/IAccountingTransaction.d.ts +1 -1
- 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 +4 -2
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +4 -2
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IAttributionHistory.d.ts +4 -4
- package/es/types/Interface/models/IAttributionHistory.d.ts.map +1 -1
- package/es/types/Interface/models/IAttributionHistory.js.map +1 -1
- package/es/types/Interface/models/ICommercialMail.d.ts +14 -0
- package/es/types/Interface/models/ICommercialMail.d.ts.map +1 -0
- package/es/types/Interface/models/ICommercialMail.js +2 -0
- package/es/types/Interface/models/ICommercialMail.js.map +1 -0
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts +2 -0
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.d.ts +24 -28
- 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 +0 -1
- 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/{ISocietyRelance.d.ts → IInvoiceReminder.d.ts} +8 -8
- package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -0
- package/es/types/Interface/models/IInvoiceReminder.js +2 -0
- package/es/types/Interface/models/IInvoiceReminder.js.map +1 -0
- package/es/types/Interface/models/ILegalNotice.d.ts +0 -1
- package/es/types/Interface/models/ILegalNotice.d.ts.map +1 -1
- package/es/types/Interface/models/ILegalNotice.js.map +1 -1
- package/es/types/Interface/models/ILoan.d.ts +0 -2
- package/es/types/Interface/models/ILoan.d.ts.map +1 -1
- package/es/types/Interface/models/ILoan.js.map +1 -1
- package/es/types/Interface/models/IPartnerTransaction.d.ts +1 -0
- package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
- package/es/types/Interface/models/IPaymentExpectation.d.ts +0 -1
- package/es/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/es/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/es/types/Interface/models/IPrestationComplementary.d.ts +1 -1
- package/es/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
- package/es/types/Interface/models/IPrestationComplementary.js.map +1 -1
- package/es/types/Interface/models/IProduct.d.ts +1 -0
- package/es/types/Interface/models/IProduct.d.ts.map +1 -1
- package/es/types/Interface/models/IProduct.js.map +1 -1
- package/es/types/Interface/models/IProductInvoice.d.ts +5 -3
- package/es/types/Interface/models/IProductInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IProductInvoice.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +1 -2
- 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/ISocietyGescom.d.ts +13 -1
- package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
- package/es/types/Interface/models/ISocietyPartner.d.ts +1 -2
- package/es/types/Interface/models/ISocietyPartner.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyPartner.js.map +1 -1
- package/es/types/Interface/models/ITask.d.ts +2 -2
- package/es/types/Interface/models/ITask.d.ts.map +1 -1
- package/es/types/Interface/models/ITask.js.map +1 -1
- package/es/types/index.d.ts +11 -35
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +11 -35
- package/es/types/index.js.map +1 -1
- package/es/utils/amount.d.ts +2 -0
- package/es/utils/amount.d.ts.map +1 -0
- package/es/utils/amount.js +12 -0
- package/es/utils/amount.js.map +1 -0
- package/es/utils/brands.d.ts +1 -1
- package/es/utils/brands.d.ts.map +1 -1
- package/es/utils/brands.js +26 -8
- package/es/utils/brands.js.map +1 -1
- package/es/utils/commercialManagement/document.d.ts +6 -0
- package/es/utils/commercialManagement/document.d.ts.map +1 -0
- package/es/utils/commercialManagement/document.js +54 -0
- package/es/utils/commercialManagement/document.js.map +1 -0
- package/es/utils/commercialManagement/product.d.ts +5 -0
- package/es/utils/commercialManagement/product.d.ts.map +1 -0
- package/es/utils/commercialManagement/product.js +27 -0
- package/es/utils/commercialManagement/product.js.map +1 -0
- package/es/utils/commercialManagement/templates/body.d.ts +2 -0
- package/es/utils/commercialManagement/templates/body.d.ts.map +1 -0
- package/es/utils/commercialManagement/templates/body.js +111 -0
- package/es/utils/commercialManagement/templates/body.js.map +1 -0
- package/es/utils/commercialManagement/templates/common.d.ts +12 -0
- package/es/utils/commercialManagement/templates/common.d.ts.map +1 -0
- package/es/utils/commercialManagement/templates/common.js +199 -0
- package/es/utils/commercialManagement/templates/common.js.map +1 -0
- package/es/utils/commercialManagement/vat.d.ts +6 -0
- package/es/utils/commercialManagement/vat.d.ts.map +1 -0
- package/es/utils/commercialManagement/vat.js +22 -0
- package/es/utils/commercialManagement/vat.js.map +1 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +2 -0
- package/es/utils/index.js.map +1 -1
- package/es/utils/task.d.ts +2 -3
- package/es/utils/task.d.ts.map +1 -1
- package/es/utils/task.js +19 -23
- package/es/utils/task.js.map +1 -1
- package/es/utils/webmail.d.ts.map +1 -1
- package/es/utils/webmail.js +4 -1
- package/es/utils/webmail.js.map +1 -1
- package/importInterfaces.ts +1 -1
- package/js/api/resources/BudgetInsight.js +10 -0
- package/js/api/resources/BudgetInsight.js.map +1 -1
- package/js/api/resources/CalendarEvent.js +3 -5
- package/js/api/resources/CalendarEvent.js.map +1 -1
- package/js/api/resources/CommercialSetting.js +22 -0
- package/js/api/resources/CommercialSetting.js.map +1 -0
- package/js/api/resources/Connector.js +14 -0
- package/js/api/resources/Connector.js.map +1 -1
- package/js/api/resources/Dashboard.js +0 -6
- package/js/api/resources/Dashboard.js.map +1 -1
- package/js/api/resources/Exercice.js +0 -4
- package/js/api/resources/Exercice.js.map +1 -1
- package/js/api/resources/FecFile.js +6 -34
- package/js/api/resources/FecFile.js.map +1 -1
- package/js/api/resources/GeneralLedger.js +2 -2
- package/js/api/resources/GeneralLedger.js.map +1 -1
- package/js/api/resources/Invoice.js +42 -0
- package/js/api/resources/Invoice.js.map +1 -0
- package/js/api/resources/Loan.js +1 -1
- package/js/api/resources/Loan.js.map +1 -1
- package/js/api/resources/Mail.js +3 -4
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/Partner.js +0 -4
- package/js/api/resources/Partner.js.map +1 -1
- package/js/api/resources/Qonto.js +1 -23
- package/js/api/resources/Qonto.js.map +1 -1
- package/js/api/resources/User.js +3 -5
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources/commercialDocument.js +74 -0
- package/js/api/resources/commercialDocument.js.map +1 -0
- package/js/api/resources/reminder.js +26 -0
- package/js/api/resources/reminder.js.map +1 -0
- package/js/api/resources.js +9 -21
- package/js/api/resources.js.map +1 -1
- package/js/index.js +12 -0
- package/js/index.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/BrandClementine.js +1 -10
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandComptalib.js +5 -14
- package/js/types/Enum/BrandComptalib.js.map +1 -1
- package/js/types/Enum/BrandLegalstart.js +0 -3
- package/js/types/Enum/BrandLegalstart.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +3 -7
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- package/js/types/Enum/BudgetInsight.js.map +1 -1
- package/js/types/Enum/CommercialManagement.js +67 -0
- package/js/types/Enum/CommercialManagement.js.map +1 -0
- package/js/types/Enum/EstimateInvoice.js +1 -1
- package/js/types/Enum/EstimateInvoice.js.map +1 -1
- package/js/types/Enum/Log.js +0 -1
- package/js/types/Enum/Log.js.map +1 -1
- package/js/types/Enum/Prestation.js +22 -0
- package/js/types/Enum/Prestation.js.map +1 -0
- package/js/types/Enum/Role.js +13 -18
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +86 -149
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/SheetMonthScheduleDetailType.js +1 -1
- package/js/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
- package/js/types/Enum/TaskResponseType.js +3 -56
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Enum/TimeCounterType.js +40 -68
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Enum/Vat.js +46 -45
- package/js/types/Enum/Vat.js.map +1 -1
- package/js/types/Interface/api/3cx/Query3cxSearch.js +0 -2
- package/js/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
- package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Create.js +235 -0
- package/js/types/Interface/api/commercialManagement/Create.js.map +1 -0
- package/js/types/Interface/api/commercialManagement/Query.js +79 -0
- package/js/types/Interface/api/commercialManagement/Query.js.map +1 -0
- package/js/types/Interface/api/{qonto/Query.js → commercialManagement/Read.js} +1 -1
- package/js/types/Interface/api/commercialManagement/Read.js.map +1 -0
- package/js/types/Interface/api/commercialManagement/Update.js +55 -0
- package/js/types/Interface/api/commercialManagement/Update.js.map +1 -0
- package/js/types/Interface/api/connector/CreateConnector.js +47 -0
- package/js/types/Interface/api/connector/CreateConnector.js.map +1 -0
- package/js/types/Interface/api/{qonto/ProcessBankAccount.js → connector/QueryConnector.js} +10 -6
- package/js/types/Interface/api/connector/QueryConnector.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadGescom.js.map +1 -1
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +0 -2
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +0 -2
- package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -5
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -3
- package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/js/types/Interface/api/product/CreateProduct.js +5 -5
- package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/js/types/Interface/api/product/QueryProduct.js +6 -0
- package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevision.js +0 -6
- package/js/types/Interface/api/revision/QueryRevision.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js +5 -7
- package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js +0 -6
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/js/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
- package/js/types/Interface/api/task/QueryCountTask.js +1 -1
- package/js/types/Interface/api/task/QueryCountTask.js.map +1 -1
- package/js/types/Interface/api/task/QueryPaginatedTask.js +0 -6
- package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
- package/js/types/Interface/api/thirdParty/QueryThirdParty.js +0 -2
- package/js/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +0 -6
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js +0 -8
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +5 -3
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/{IStatistic.js → ICommercialMail.js} +1 -1
- package/js/types/Interface/models/ICommercialMail.js.map +1 -0
- package/js/types/Interface/{api/dashboard/ReadVatDisbursed.js → models/IInvoiceReminder.js} +1 -1
- package/js/types/Interface/models/IInvoiceReminder.js.map +1 -0
- package/js/types/index.js +64 -352
- package/js/types/index.js.map +1 -1
- package/js/utils/amount.js +23 -0
- package/js/utils/amount.js.map +1 -0
- package/js/utils/brands.js +26 -7
- package/js/utils/brands.js.map +1 -1
- package/js/utils/commercialManagement/document.js +148 -0
- package/js/utils/commercialManagement/document.js.map +1 -0
- package/js/utils/commercialManagement/product.js +56 -0
- package/js/utils/commercialManagement/product.js.map +1 -0
- package/js/utils/commercialManagement/templates/body.js +120 -0
- package/js/utils/commercialManagement/templates/body.js.map +1 -0
- package/js/utils/commercialManagement/templates/common.js +211 -0
- package/js/utils/commercialManagement/templates/common.js.map +1 -0
- package/js/utils/commercialManagement/vat.js +44 -0
- package/js/utils/commercialManagement/vat.js.map +1 -0
- package/js/utils/index.js +24 -0
- package/js/utils/index.js.map +1 -1
- package/js/utils/task.js +20 -29
- package/js/utils/task.js.map +1 -1
- package/js/utils/webmail.js +3 -1
- package/js/utils/webmail.js.map +1 -1
- package/package.json +3 -1
- package/ts/api/resources/BudgetInsight.ts +13 -0
- package/ts/api/resources/CalendarEvent.ts +2 -3
- package/ts/api/resources/CommercialSetting.ts +12 -0
- package/ts/api/resources/Connector.ts +16 -1
- package/ts/api/resources/Dashboard.ts +0 -6
- package/ts/api/resources/Exercice.ts +0 -4
- package/ts/api/resources/FecFile.ts +6 -32
- package/ts/api/resources/GeneralLedger.ts +2 -2
- package/ts/api/resources/Invoice.ts +39 -0
- package/ts/api/resources/Loan.ts +1 -1
- package/ts/api/resources/Mail.ts +3 -4
- package/ts/api/resources/Partner.ts +0 -4
- package/ts/api/resources/Qonto.ts +5 -27
- package/ts/api/resources/User.ts +12 -3
- package/ts/api/resources/commercialDocument.ts +66 -0
- package/ts/api/resources/reminder.ts +20 -0
- package/ts/api/resources.ts +8 -16
- package/ts/index.ts +1 -0
- package/ts/types/Enum/Account.ts +8 -0
- package/ts/types/Enum/BrandClementine.ts +1 -10
- package/ts/types/Enum/BrandComptalib.ts +4 -13
- package/ts/types/Enum/BrandLegalstart.ts +0 -3
- package/ts/types/Enum/BrandPourcentage.ts +3 -7
- package/ts/types/Enum/BudgetInsight.ts +1 -1
- package/ts/types/Enum/CommercialManagement.ts +38 -0
- package/ts/types/Enum/EstimateInvoice.ts +1 -1
- package/ts/types/Enum/Log.ts +0 -1
- package/ts/types/Enum/{PrestationType.ts → Prestation.ts} +1 -2
- package/ts/types/Enum/Role.ts +10 -15
- package/ts/types/Enum/RoleDetail.ts +64 -127
- package/ts/types/Enum/SheetMonthScheduleDetailType.ts +1 -1
- package/ts/types/Enum/TaskResponseType.ts +2 -57
- package/ts/types/Enum/TimeCounterType.ts +19 -47
- package/ts/types/Enum/Vat.ts +28 -25
- package/ts/types/Interface/api/3cx/Query3cxSearch.ts +0 -5
- package/ts/types/Interface/api/calendarEvent/getAllCalendarEvent.ts +1 -1
- package/ts/types/Interface/api/calendarEvent/readAllCalendarEvent.ts +0 -1
- package/ts/types/Interface/api/commercialManagement/Create.ts +423 -0
- package/ts/types/Interface/api/commercialManagement/Query.ts +115 -0
- package/ts/types/Interface/api/commercialManagement/Read.ts +64 -0
- package/ts/types/Interface/api/commercialManagement/Update.ts +72 -0
- package/ts/types/Interface/api/connector/CreateConnector.ts +51 -0
- package/ts/types/Interface/api/connector/QueryConnector.ts +16 -0
- package/ts/types/Interface/api/dashboard/ReadGescom.ts +2 -3
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +0 -6
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +1 -6
- package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -7
- package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -6
- package/ts/types/Interface/api/product/CreateProduct.ts +8 -5
- package/ts/types/Interface/api/product/QueryProduct.ts +13 -0
- package/ts/types/Interface/api/revision/QueryRevision.ts +2 -15
- package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +4 -11
- package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +2 -15
- package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +1 -1
- package/ts/types/Interface/api/revision/ReadRevision.ts +1 -2
- package/ts/types/Interface/api/simulation/CreateSimulation.ts +0 -2
- package/ts/types/Interface/api/task/QueryCountTask.ts +1 -1
- package/ts/types/Interface/api/task/QueryPaginatedTask.ts +0 -9
- package/ts/types/Interface/api/thirdParty/QueryThirdParty.ts +1 -8
- package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +0 -9
- package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +1 -10
- package/ts/types/Interface/models/IAccount.ts +0 -2
- package/ts/types/Interface/models/IAccountingTransaction.ts +1 -1
- package/ts/types/Interface/models/IApiError.ts +5 -3
- package/ts/types/Interface/models/IAttributionHistory.ts +4 -4
- package/ts/types/Interface/models/ICommercialMail.ts +15 -0
- package/ts/types/Interface/models/IEngagementBankTransaction.ts +2 -0
- package/ts/types/Interface/models/IEstimateInvoice.ts +24 -28
- package/ts/types/Interface/models/IExercice.ts +0 -1
- package/ts/types/Interface/models/{ISocietyRelance.ts → IInvoiceReminder.ts} +7 -7
- package/ts/types/Interface/models/ILegalNotice.ts +0 -1
- package/ts/types/Interface/models/ILoan.ts +0 -2
- package/ts/types/Interface/models/IPartnerTransaction.ts +1 -0
- package/ts/types/Interface/models/IPaymentExpectation.ts +0 -1
- package/ts/types/Interface/models/IPrestationComplementary.ts +1 -1
- package/ts/types/Interface/models/IProduct.ts +1 -0
- package/ts/types/Interface/models/IProductInvoice.ts +5 -3
- package/ts/types/Interface/models/ISociety.ts +1 -2
- package/ts/types/Interface/models/ISocietyGescom.ts +14 -1
- package/ts/types/Interface/models/ISocietyPartner.ts +1 -2
- package/ts/types/Interface/models/ITask.ts +2 -2
- package/ts/types/index.ts +11 -35
- package/ts/utils/amount.ts +13 -0
- package/ts/utils/brands.ts +25 -7
- package/ts/utils/commercialManagement/document.ts +105 -0
- package/ts/utils/commercialManagement/product.ts +36 -0
- package/ts/utils/commercialManagement/templates/body.ts +113 -0
- package/ts/utils/commercialManagement/templates/common.ts +205 -0
- package/ts/utils/commercialManagement/vat.ts +24 -0
- package/ts/utils/index.ts +2 -0
- package/ts/utils/task.ts +16 -24
- package/ts/utils/webmail.ts +3 -1
- package/es/api/resources/LegalNotice.d.ts +0 -6
- package/es/api/resources/LegalNotice.d.ts.map +0 -1
- package/es/api/resources/LegalNotice.js +0 -7
- package/es/api/resources/LegalNotice.js.map +0 -1
- package/es/api/resources/PaymentExpectation.d.ts +0 -6
- package/es/api/resources/PaymentExpectation.d.ts.map +0 -1
- package/es/api/resources/PaymentExpectation.js +0 -7
- package/es/api/resources/PaymentExpectation.js.map +0 -1
- package/es/api/resources/SocietyConfig.d.ts +0 -7
- package/es/api/resources/SocietyConfig.d.ts.map +0 -1
- package/es/api/resources/SocietyConfig.js +0 -10
- package/es/api/resources/SocietyConfig.js.map +0 -1
- package/es/api/resources/TerminationList.d.ts +0 -7
- package/es/api/resources/TerminationList.d.ts.map +0 -1
- package/es/api/resources/TerminationList.js +0 -10
- package/es/api/resources/TerminationList.js.map +0 -1
- package/es/api/resources/Wallet.d.ts +0 -8
- package/es/api/resources/Wallet.d.ts.map +0 -1
- package/es/api/resources/Wallet.js +0 -7
- package/es/api/resources/Wallet.js.map +0 -1
- package/es/api/resources/statistic/Accountant.d.ts +0 -59
- package/es/api/resources/statistic/Accountant.d.ts.map +0 -1
- package/es/api/resources/statistic/Accountant.js +0 -86
- package/es/api/resources/statistic/Accountant.js.map +0 -1
- package/es/api/resources/statistic/Direction.d.ts +0 -11
- package/es/api/resources/statistic/Direction.d.ts.map +0 -1
- package/es/api/resources/statistic/Direction.js +0 -14
- package/es/api/resources/statistic/Direction.js.map +0 -1
- package/es/api/resources/statistic/ExpertAccountant.d.ts +0 -29
- package/es/api/resources/statistic/ExpertAccountant.d.ts.map +0 -1
- package/es/api/resources/statistic/ExpertAccountant.js +0 -41
- package/es/api/resources/statistic/ExpertAccountant.js.map +0 -1
- package/es/types/Enum/AdditionnalSells.d.ts +0 -7
- package/es/types/Enum/AdditionnalSells.d.ts.map +0 -1
- package/es/types/Enum/AdditionnalSells.js +0 -8
- package/es/types/Enum/AdditionnalSells.js.map +0 -1
- package/es/types/Enum/CustomerVat.d.ts +0 -24
- package/es/types/Enum/CustomerVat.d.ts.map +0 -1
- package/es/types/Enum/CustomerVat.js +0 -26
- package/es/types/Enum/CustomerVat.js.map +0 -1
- package/es/types/Enum/OperationLegalNotice.d.ts +0 -4
- package/es/types/Enum/OperationLegalNotice.d.ts.map +0 -1
- package/es/types/Enum/OperationLegalNotice.js +0 -5
- package/es/types/Enum/OperationLegalNotice.js.map +0 -1
- package/es/types/Enum/OrderStatus.d.ts +0 -6
- package/es/types/Enum/OrderStatus.d.ts.map +0 -1
- package/es/types/Enum/OrderStatus.js +0 -7
- package/es/types/Enum/OrderStatus.js.map +0 -1
- package/es/types/Enum/PrestationType.d.ts.map +0 -1
- package/es/types/Enum/PrestationType.js +0 -17
- package/es/types/Enum/PrestationType.js.map +0 -1
- package/es/types/Enum/Reason.d.ts +0 -4
- package/es/types/Enum/Reason.d.ts.map +0 -1
- package/es/types/Enum/Reason.js +0 -5
- package/es/types/Enum/Reason.js.map +0 -1
- package/es/types/Enum/Rules.d.ts +0 -2
- package/es/types/Enum/Rules.d.ts.map +0 -1
- package/es/types/Enum/Rules.js +0 -19
- package/es/types/Enum/Rules.js.map +0 -1
- package/es/types/Enum/StatisticType.d.ts +0 -16
- package/es/types/Enum/StatisticType.d.ts.map +0 -1
- package/es/types/Enum/StatisticType.js +0 -17
- package/es/types/Enum/StatisticType.js.map +0 -1
- package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts +0 -5
- package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -24
- package/es/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
- package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts +0 -13
- package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/ReadVatDisbursed.js +0 -2
- package/es/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
- package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts +0 -5
- package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts.map +0 -1
- package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -25
- package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
- package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +0 -4
- package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +0 -1
- package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -17
- package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
- package/es/types/Interface/api/prestation/CreatePrestation.d.ts +0 -6
- package/es/types/Interface/api/prestation/CreatePrestation.d.ts.map +0 -1
- package/es/types/Interface/api/prestation/CreatePrestation.js +0 -28
- package/es/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
- package/es/types/Interface/api/qonto/CreateImportation.d.ts +0 -5
- package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/CreateImportation.js +0 -26
- package/es/types/Interface/api/qonto/CreateImportation.js.map +0 -1
- package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +0 -5
- package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/CreateQontoConnection.js +0 -24
- package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
- package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +0 -4
- package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/GetConnectionInformation.js +0 -19
- package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
- package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +0 -5
- package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
- package/es/types/Interface/api/qonto/Query.d.ts +0 -77
- package/es/types/Interface/api/qonto/Query.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/Query.js +0 -2
- package/es/types/Interface/api/qonto/Query.js.map +0 -1
- package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts +0 -6
- package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/ReadCreateConnection.js +0 -2
- package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
- package/es/types/Interface/api/qonto/UpdateConnection.d.ts +0 -4
- package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +0 -1
- package/es/types/Interface/api/qonto/UpdateConnection.js +0 -19
- package/es/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
- package/es/types/Interface/api/societyConfig/update.d.ts +0 -21
- package/es/types/Interface/api/societyConfig/update.d.ts.map +0 -1
- package/es/types/Interface/api/societyConfig/update.js.map +0 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts +0 -108
- package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/ExitRequest.js +0 -2
- package/es/types/Interface/api/statistic/ExitRequest.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryAccountant.d.ts +0 -6
- package/es/types/Interface/api/statistic/QueryAccountant.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryAccountant.js +0 -31
- package/es/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryDirection.d.ts +0 -6
- package/es/types/Interface/api/statistic/QueryDirection.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryDirection.js +0 -31
- package/es/types/Interface/api/statistic/QueryDirection.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts +0 -6
- package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryExpertAccountant.js +0 -31
- package/es/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts +0 -5
- package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetAccountant.js +0 -24
- package/es/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetDirection.d.ts +0 -5
- package/es/types/Interface/api/statistic/QueryGetDirection.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetDirection.js +0 -24
- package/es/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts +0 -5
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts.map +0 -1
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -24
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
- package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts +0 -17
- package/es/types/Interface/api/terminationList/DestroyTerminationList.d.ts.map +0 -1
- package/es/types/Interface/api/terminationList/DestroyTerminationList.js +0 -96
- package/es/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
- package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts +0 -17
- package/es/types/Interface/api/terminationList/QueryTerminationList.d.ts.map +0 -1
- package/es/types/Interface/api/terminationList/QueryTerminationList.js +0 -98
- package/es/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
- package/es/types/Interface/api/wallet/UpdateAttribution.d.ts +0 -6
- package/es/types/Interface/api/wallet/UpdateAttribution.d.ts.map +0 -1
- package/es/types/Interface/api/wallet/UpdateAttribution.js +0 -34
- package/es/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
- package/es/types/Interface/models/IPrestationHistory.d.ts +0 -13
- package/es/types/Interface/models/IPrestationHistory.d.ts.map +0 -1
- package/es/types/Interface/models/IPrestationHistory.js +0 -2
- package/es/types/Interface/models/IPrestationHistory.js.map +0 -1
- package/es/types/Interface/models/ISocietyRelance.d.ts.map +0 -1
- package/es/types/Interface/models/ISocietyRelance.js +0 -2
- package/es/types/Interface/models/ISocietyRelance.js.map +0 -1
- package/es/types/Interface/models/IStatistic.d.ts +0 -11
- package/es/types/Interface/models/IStatistic.d.ts.map +0 -1
- package/es/types/Interface/models/IStatistic.js +0 -2
- package/es/types/Interface/models/IStatistic.js.map +0 -1
- package/js/api/resources/LegalNotice.js +0 -18
- package/js/api/resources/LegalNotice.js.map +0 -1
- package/js/api/resources/PaymentExpectation.js +0 -20
- package/js/api/resources/PaymentExpectation.js.map +0 -1
- package/js/api/resources/SocietyConfig.js +0 -22
- package/js/api/resources/SocietyConfig.js.map +0 -1
- package/js/api/resources/TerminationList.js +0 -26
- package/js/api/resources/TerminationList.js.map +0 -1
- package/js/api/resources/Wallet.js +0 -18
- package/js/api/resources/Wallet.js.map +0 -1
- package/js/api/resources/statistic/Accountant.js +0 -150
- package/js/api/resources/statistic/Accountant.js.map +0 -1
- package/js/api/resources/statistic/Direction.js +0 -30
- package/js/api/resources/statistic/Direction.js.map +0 -1
- package/js/api/resources/statistic/ExpertAccountant.js +0 -75
- package/js/api/resources/statistic/ExpertAccountant.js.map +0 -1
- package/js/types/Enum/AdditionnalSells.js +0 -14
- package/js/types/Enum/AdditionnalSells.js.map +0 -1
- package/js/types/Enum/CustomerVat.js +0 -34
- package/js/types/Enum/CustomerVat.js.map +0 -1
- package/js/types/Enum/OperationLegalNotice.js +0 -11
- package/js/types/Enum/OperationLegalNotice.js.map +0 -1
- package/js/types/Enum/OrderStatus.js +0 -13
- package/js/types/Enum/OrderStatus.js.map +0 -1
- package/js/types/Enum/PrestationType.js +0 -23
- package/js/types/Enum/PrestationType.js.map +0 -1
- package/js/types/Enum/Reason.js +0 -11
- package/js/types/Enum/Reason.js.map +0 -1
- package/js/types/Enum/Rules.js +0 -7
- package/js/types/Enum/Rules.js.map +0 -1
- package/js/types/Enum/StatisticType.js +0 -23
- package/js/types/Enum/StatisticType.js.map +0 -1
- package/js/types/Interface/api/dashboard/QueryVatDisbursed.js +0 -31
- package/js/types/Interface/api/dashboard/QueryVatDisbursed.js.map +0 -1
- package/js/types/Interface/api/dashboard/ReadVatDisbursed.js.map +0 -1
- package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js +0 -31
- package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +0 -1
- package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +0 -27
- package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +0 -1
- package/js/types/Interface/api/prestation/CreatePrestation.js +0 -33
- package/js/types/Interface/api/prestation/CreatePrestation.js.map +0 -1
- package/js/types/Interface/api/qonto/CreateImportation.js +0 -31
- package/js/types/Interface/api/qonto/CreateImportation.js.map +0 -1
- package/js/types/Interface/api/qonto/CreateQontoConnection.js +0 -31
- package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
- package/js/types/Interface/api/qonto/GetConnectionInformation.js +0 -29
- package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +0 -1
- package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
- package/js/types/Interface/api/qonto/Query.js.map +0 -1
- package/js/types/Interface/api/qonto/ReadCreateConnection.js +0 -6
- package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +0 -1
- package/js/types/Interface/api/qonto/UpdateConnection.js +0 -29
- package/js/types/Interface/api/qonto/UpdateConnection.js.map +0 -1
- package/js/types/Interface/api/societyConfig/update.js +0 -65
- package/js/types/Interface/api/societyConfig/update.js.map +0 -1
- package/js/types/Interface/api/statistic/ExitRequest.js +0 -6
- package/js/types/Interface/api/statistic/ExitRequest.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryAccountant.js +0 -35
- package/js/types/Interface/api/statistic/QueryAccountant.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryDirection.js +0 -35
- package/js/types/Interface/api/statistic/QueryDirection.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryExpertAccountant.js +0 -35
- package/js/types/Interface/api/statistic/QueryExpertAccountant.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryGetAccountant.js +0 -31
- package/js/types/Interface/api/statistic/QueryGetAccountant.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryGetDirection.js +0 -31
- package/js/types/Interface/api/statistic/QueryGetDirection.js.map +0 -1
- package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js +0 -31
- package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +0 -1
- package/js/types/Interface/api/terminationList/DestroyTerminationList.js +0 -55
- package/js/types/Interface/api/terminationList/DestroyTerminationList.js.map +0 -1
- package/js/types/Interface/api/terminationList/QueryTerminationList.js +0 -55
- package/js/types/Interface/api/terminationList/QueryTerminationList.js.map +0 -1
- package/js/types/Interface/api/wallet/UpdateAttribution.js +0 -35
- package/js/types/Interface/api/wallet/UpdateAttribution.js.map +0 -1
- package/js/types/Interface/models/IPrestationHistory.js +0 -6
- package/js/types/Interface/models/IPrestationHistory.js.map +0 -1
- package/js/types/Interface/models/ISocietyRelance.js +0 -6
- package/js/types/Interface/models/ISocietyRelance.js.map +0 -1
- package/js/types/Interface/models/IStatistic.js.map +0 -1
- package/ts/api/resources/LegalNotice.ts +0 -8
- package/ts/api/resources/PaymentExpectation.ts +0 -8
- package/ts/api/resources/SocietyConfig.ts +0 -12
- package/ts/api/resources/TerminationList.ts +0 -12
- package/ts/api/resources/Wallet.ts +0 -8
- package/ts/api/resources/statistic/Accountant.ts +0 -121
- package/ts/api/resources/statistic/Direction.ts +0 -17
- package/ts/api/resources/statistic/ExpertAccountant.ts +0 -56
- package/ts/types/Enum/AdditionnalSells.ts +0 -6
- package/ts/types/Enum/CustomerVat.ts +0 -24
- package/ts/types/Enum/OperationLegalNotice.ts +0 -3
- package/ts/types/Enum/OrderStatus.ts +0 -5
- package/ts/types/Enum/Reason.ts +0 -3
- package/ts/types/Enum/Rules.ts +0 -18
- package/ts/types/Enum/StatisticType.ts +0 -15
- package/ts/types/Interface/api/dashboard/QueryVatDisbursed.ts +0 -12
- package/ts/types/Interface/api/dashboard/ReadVatDisbursed.ts +0 -14
- package/ts/types/Interface/api/legalNotice/UpdateLegalNotice.ts +0 -13
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +0 -6
- package/ts/types/Interface/api/prestation/CreatePrestation.ts +0 -15
- package/ts/types/Interface/api/qonto/CreateImportation.ts +0 -14
- package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +0 -12
- package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +0 -8
- package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +0 -12
- package/ts/types/Interface/api/qonto/Query.ts +0 -80
- package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +0 -6
- package/ts/types/Interface/api/qonto/UpdateConnection.ts +0 -8
- package/ts/types/Interface/api/societyConfig/update.ts +0 -103
- package/ts/types/Interface/api/statistic/ExitRequest.ts +0 -120
- package/ts/types/Interface/api/statistic/QueryAccountant.ts +0 -20
- package/ts/types/Interface/api/statistic/QueryDirection.ts +0 -20
- package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +0 -20
- package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +0 -14
- package/ts/types/Interface/api/statistic/QueryGetDirection.ts +0 -14
- package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +0 -14
- package/ts/types/Interface/api/terminationList/DestroyTerminationList.ts +0 -74
- package/ts/types/Interface/api/terminationList/QueryTerminationList.ts +0 -76
- package/ts/types/Interface/api/wallet/UpdateAttribution.ts +0 -23
- package/ts/types/Interface/models/IPrestationHistory.ts +0 -16
- package/ts/types/Interface/models/IStatistic.ts +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,23 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
### [0.4.284](https://gitlab.compta-clementine.fr/dev/silex-api/compare/v0.4.283...v0.4.284) (2023-01-02)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* **statistics:** Generation ([471d93f](https://gitlab.compta-clementine.fr/dev/silex-api/commits/471d93fc3cbb48c33eb4fec56dd46332b1ed3958))
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Others
|
|
14
|
-
|
|
15
|
-
* update core 0.4.283 ([0041682](https://gitlab.compta-clementine.fr/dev/silex-api/commits/0041682a33f58bc9d1a07b2dc6c8f5db0f56f16b))
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Tests
|
|
19
|
-
|
|
20
|
-
* legal notice, tax deadline ([b84604b](https://gitlab.compta-clementine.fr/dev/silex-api/commits/b84604bc363528695de08b4e63514de313e25af6))
|
|
21
|
-
|
|
22
5
|
### [0.4.110](https://gitlab.compta-clementine.fr/dev/silex-api/compare/v0.4.109...v0.4.110) (2021-11-29)
|
|
23
6
|
|
|
24
7
|
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
+
import { UpdateBudgetPermanentToken } from '../../types/Interface/api/budgetInsight/UpdateBudgetPermanentToken';
|
|
3
|
+
import { IAccountingTransaction } from '../../types/Interface/models/IAccountingTransaction';
|
|
2
4
|
import { CreateOrUpdateAccessToken, IAccessToken } from '../../types';
|
|
3
5
|
export declare class BudgetInsight extends Resource {
|
|
6
|
+
updateUserWithNewPermanentToken(data: UpdateBudgetPermanentToken): Promise<string>;
|
|
7
|
+
fetchAllUserConnection(): Promise<{
|
|
8
|
+
idConnection: number;
|
|
9
|
+
accountingTransactions: IAccountingTransaction[];
|
|
10
|
+
}[]>;
|
|
4
11
|
getTokens(): Promise<IAccessToken | null>;
|
|
5
12
|
updateOrCreateToken(payload: CreateOrUpdateAccessToken): Promise<IAccessToken>;
|
|
6
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BudgetInsight.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtE,qBAAa,aAAc,SAAQ,QAAQ;
|
|
1
|
+
{"version":3,"file":"BudgetInsight.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oEAAoE,CAAC;AAChH,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtE,qBAAa,aAAc,SAAQ,QAAQ;IAEzC,+BAA+B,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAKlF,sBAAsB,IAAI,OAAO,CAAC;QAAE,YAAY,EAAE,MAAM,CAAC;QACvD,sBAAsB,EAAE,sBAAsB,EAAE,CAAA;KAAE,EAAE,CAAC;IAIvD,SAAS,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIzC,mBAAmB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;CAG/E"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
export class BudgetInsight extends Resource {
|
|
3
|
+
// FIXME: Deprecated
|
|
4
|
+
updateUserWithNewPermanentToken(data) {
|
|
5
|
+
return this.axios.$put('/budget/updatePermanentToken', data);
|
|
6
|
+
}
|
|
7
|
+
// FIXME: Deprecated
|
|
8
|
+
fetchAllUserConnection() {
|
|
9
|
+
return this.axios.$get('/budget/fetchAllUserConnection');
|
|
10
|
+
}
|
|
3
11
|
getTokens() {
|
|
4
12
|
return this.axios.$get('/connectors/budget-insight/tokens');
|
|
5
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BudgetInsight.js","sourceRoot":"","sources":["../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BudgetInsight.js","sourceRoot":"","sources":["../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,oBAAoB;IACpB,+BAA+B,CAAC,IAAgC;QAC9D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,oBAAoB;IACpB,sBAAsB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAC3D,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;IAC9D,CAAC;IAED,mBAAmB,CAAC,OAAkC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { UpdateBudgetPermanentToken } from '../../types/Interface/api/budgetInsight/UpdateBudgetPermanentToken';\nimport { IAccountingTransaction } from '../../types/Interface/models/IAccountingTransaction';\nimport { CreateOrUpdateAccessToken, IAccessToken } from '../../types';\n\nexport class BudgetInsight extends Resource {\n // FIXME: Deprecated\n updateUserWithNewPermanentToken(data: UpdateBudgetPermanentToken): Promise<string> {\n return this.axios.$put('/budget/updatePermanentToken', data);\n }\n\n // FIXME: Deprecated\n fetchAllUserConnection(): Promise<{ idConnection: number,\n accountingTransactions: IAccountingTransaction[] }[]> {\n return this.axios.$get('/budget/fetchAllUserConnection');\n }\n\n getTokens(): Promise<IAccessToken | null> {\n return this.axios.$get('/connectors/budget-insight/tokens');\n }\n\n updateOrCreateToken(payload: CreateOrUpdateAccessToken): Promise<IAccessToken> {\n return this.axios.$post('/connectors/budget-insight/tokens', payload);\n }\n}"]}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { CancelToken } from 'axios';
|
|
2
1
|
import { CreateCalendarEventForUsers, GetAllCalendarEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent, VerifyCalendarEvent } from '../../types';
|
|
3
2
|
import { Resource } from '../Resource';
|
|
4
3
|
export declare class CalendarEvent extends Resource {
|
|
5
4
|
create(payload: CreateCalendarEventForUsers): Promise<ICalendarEventUser[]>;
|
|
6
5
|
verify(payload: CreateCalendarEventForUsers): Promise<VerifyCalendarEvent>;
|
|
7
6
|
get(id: number, params: QueryCalendarEvent): Promise<ICalendarEvent>;
|
|
8
|
-
getAll(params: GetAllCalendarEvent
|
|
7
|
+
getAll(params: GetAllCalendarEvent): Promise<ReadAllCalendarEvent>;
|
|
9
8
|
update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent>;
|
|
10
9
|
delete(id: number): Promise<number>;
|
|
11
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarEvent.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/CalendarEvent.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CalendarEvent.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/CalendarEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EACzK,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,aAAc,SAAQ,QAAQ;IACzC,MAAM,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI3E,MAAM,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI1E,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIpE,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIlE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIzE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGpC"}
|
|
@@ -9,8 +9,8 @@ export class CalendarEvent extends Resource {
|
|
|
9
9
|
get(id, params) {
|
|
10
10
|
return this.axios.get(`/calendar-events/${id}`, { params });
|
|
11
11
|
}
|
|
12
|
-
getAll(params
|
|
13
|
-
return this.axios.get('/calendar-events/all',
|
|
12
|
+
getAll(params) {
|
|
13
|
+
return this.axios.get('/calendar-events/all', { params });
|
|
14
14
|
}
|
|
15
15
|
update(id, payload) {
|
|
16
16
|
return this.axios.put(`/calendar-events/${id}`, payload);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarEvent.js","sourceRoot":"","sources":["../../../ts/api/resources/CalendarEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CalendarEvent.js","sourceRoot":"","sources":["../../../ts/api/resources/CalendarEvent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,MAAM,CAAC,OAAoC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,CAAC,OAAoC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED,GAAG,CAAC,EAAU,EAAE,MAA0B;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,CAAC,MAA2B;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAA4B;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;CACF","sourcesContent":["import {\n CreateCalendarEventForUsers, GetAllCalendarEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent, VerifyCalendarEvent,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class CalendarEvent extends Resource {\n create(payload: CreateCalendarEventForUsers): Promise<ICalendarEventUser[]> {\n return this.axios.post('/calendar-events', payload);\n }\n\n verify(payload: CreateCalendarEventForUsers): Promise<VerifyCalendarEvent> {\n return this.axios.post('/calendar-events/verify', payload);\n }\n\n get(id: number, params: QueryCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.get(`/calendar-events/${id}`, { params });\n }\n\n getAll(params: GetAllCalendarEvent): Promise<ReadAllCalendarEvent> {\n return this.axios.get('/calendar-events/all', { params });\n }\n\n update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.put(`/calendar-events/${id}`, payload);\n }\n\n delete(id: number): Promise<number> {\n return this.axios.delete(`/calendar-events/${id}`);\n }\n}"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CreateCommercialSetting, ISocietyGescom } from '../../types';
|
|
2
|
+
import { Resource } from '../Resource';
|
|
3
|
+
export declare class CommercialSetting extends Resource {
|
|
4
|
+
get(): Promise<ISocietyGescom>;
|
|
5
|
+
updateOrCreate(payload: CreateCommercialSetting): Promise<ISocietyGescom>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=CommercialSetting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommercialSetting.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/CommercialSetting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,GAAG,IAAI,OAAO,CAAC,cAAc,CAAC;IAI9B,cAAc,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,cAAc,CAAC;CAG1E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
export class CommercialSetting extends Resource {
|
|
3
|
+
get() {
|
|
4
|
+
return this.axios.$get('/commercial-management/settings');
|
|
5
|
+
}
|
|
6
|
+
updateOrCreate(payload) {
|
|
7
|
+
return this.axios.$post('/commercial-management/settings', payload);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=CommercialSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommercialSetting.js","sourceRoot":"","sources":["../../../ts/api/resources/CommercialSetting.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,iBAAkB,SAAQ,QAAQ;IAC7C,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;IAC5D,CAAC;IAED,cAAc,CAAC,OAAgC;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF","sourcesContent":["import { CreateCommercialSetting, ISocietyGescom } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class CommercialSetting extends Resource {\n get(): Promise<ISocietyGescom> {\n return this.axios.$get('/commercial-management/settings');\n }\n\n updateOrCreate(payload: CreateCommercialSetting): Promise<ISocietyGescom> {\n return this.axios.$post('/commercial-management/settings', payload);\n }\n}"]}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { IAccountingTransaction, ImportBankAccount } from '../../types';
|
|
1
|
+
import { CreateConnector, IAccountingTransaction, IConnector, ImportBankAccount, QueryConnector } from '../../types';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
export declare class Connector extends Resource {
|
|
4
4
|
test(id: number): Promise<boolean>;
|
|
5
5
|
importManually(idBankAccount: number, payload: ImportBankAccount): Promise<IAccountingTransaction[]>;
|
|
6
|
+
create(payload: CreateConnector): Promise<IConnector>;
|
|
7
|
+
get(params: QueryConnector): Promise<IConnector>;
|
|
8
|
+
delete(id: number): Promise<boolean>;
|
|
6
9
|
}
|
|
7
10
|
//# sourceMappingURL=Connector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connector.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Connector.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAAE,sBAAsB,EAAE,UAAU,EAAE,iBAAiB,EAAE,cAAc,EACvF,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,SAAU,SAAQ,QAAQ;IACrC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlC,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAIpG,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAIrD,GAAG,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAIhD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAGrC"}
|
|
@@ -6,5 +6,14 @@ export class Connector extends Resource {
|
|
|
6
6
|
importManually(idBankAccount, payload) {
|
|
7
7
|
return this.axios.$post(`/connectors/bank-accounts/${idBankAccount}/import`, payload);
|
|
8
8
|
}
|
|
9
|
+
create(payload) {
|
|
10
|
+
return this.axios.$post('/connectors', payload);
|
|
11
|
+
}
|
|
12
|
+
get(params) {
|
|
13
|
+
return this.axios.$get('/connectors', { params });
|
|
14
|
+
}
|
|
15
|
+
delete(id) {
|
|
16
|
+
return this.axios.$delete(`/connectors/${id}`);
|
|
17
|
+
}
|
|
9
18
|
}
|
|
10
19
|
//# sourceMappingURL=Connector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connector.js","sourceRoot":"","sources":["../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Connector.js","sourceRoot":"","sources":["../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,SAAU,SAAQ,QAAQ;IACrC,IAAI,CAAC,EAAU;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,cAAc,CAAC,aAAqB,EAAE,OAA0B;QAC9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,aAAa,SAAS,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED,GAAG,CAAC,MAAsB;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC;CACF","sourcesContent":["import {\n CreateConnector, IAccountingTransaction, IConnector, ImportBankAccount, QueryConnector,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Connector extends Resource {\n test(id: number): Promise<boolean> {\n return this.axios.$post(`/connector/${id}/test`);\n }\n\n importManually(idBankAccount: number, payload: ImportBankAccount): Promise<IAccountingTransaction[]> {\n return this.axios.$post(`/connectors/bank-accounts/${idBankAccount}/import`, payload);\n }\n\n create(payload: CreateConnector): Promise<IConnector> {\n return this.axios.$post('/connectors', payload);\n }\n\n get(params: QueryConnector): Promise<IConnector> {\n return this.axios.$get('/connectors', { params });\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/connectors/${id}`);\n }\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { QueryBalanceBankAccount, QueryTurnoverProfitAndLoss, QueryTopBuys, QueryTopProviders, ReadTopProviders, ReadBalanceBankAccount, ReadTopBuys, QueryGescom, ReadGescom, QueryDeadline, ReadDeadline, ReadTurnoverProfitAndLossAndVats
|
|
2
|
+
import { QueryBalanceBankAccount, QueryTurnoverProfitAndLoss, QueryTopBuys, QueryTopProviders, ReadTopProviders, ReadBalanceBankAccount, ReadTopBuys, QueryGescom, ReadGescom, QueryDeadline, ReadDeadline, ReadTurnoverProfitAndLossAndVats } from '../../types';
|
|
3
3
|
export declare class Dashboard extends Resource {
|
|
4
4
|
getTurnoverProfitAndLossAndVats(params: QueryTurnoverProfitAndLoss): Promise<ReadTurnoverProfitAndLossAndVats>;
|
|
5
5
|
getBalanceBankAccount(params: QueryBalanceBankAccount): Promise<ReadBalanceBankAccount>;
|
|
@@ -7,6 +7,5 @@ export declare class Dashboard extends Resource {
|
|
|
7
7
|
getTopBuys(dates: QueryTopBuys): Promise<ReadTopBuys[]>;
|
|
8
8
|
getTopProviders(params: QueryTopProviders): Promise<ReadTopProviders[]>;
|
|
9
9
|
getDeadlines(params: QueryDeadline): Promise<ReadDeadline>;
|
|
10
|
-
getVatDisbursed(params: QueryVatDisbursed): Promise<ReadVatDisbursed>;
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=Dashboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,gCAAgC,
|
|
1
|
+
{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,gCAAgC,EACjC,MAAM,aAAa,CAAC;AAGrB,qBAAa,SAAU,SAAQ,QAAQ;IACrC,+BAA+B,CAC7B,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,gCAAgC,CAAC;IAI5C,qBAAqB,CACnB,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,sBAAsB,CAAC;IAIlC,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IAInD,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAIvD,eAAe,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIvE,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC;CAG3D"}
|
|
@@ -19,8 +19,5 @@ export class Dashboard extends Resource {
|
|
|
19
19
|
getDeadlines(params) {
|
|
20
20
|
return this.axios.$get(`${ROUTE}/deadlines`, { params });
|
|
21
21
|
}
|
|
22
|
-
getVatDisbursed(params) {
|
|
23
|
-
return this.axios.$get(`${ROUTE}/vat-disbursed`, { params });
|
|
24
|
-
}
|
|
25
22
|
}
|
|
26
23
|
//# sourceMappingURL=Dashboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../ts/api/resources/Dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../ts/api/resources/Dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAgBvC,MAAM,KAAK,GAAG,WAAW,CAAC;AAC1B,MAAM,OAAO,SAAU,SAAQ,QAAQ;IACrC,+BAA+B,CAC7B,MAAkC;QAElC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,+BAA+B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,qBAAqB,CACnB,MAA+B;QAE/B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,qBAAqB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,SAAS,CAAC,MAAmB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,UAAU,CAAC,KAAmB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,UAAU,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,eAAe,CAAC,MAAyB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,eAAe,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,YAAY,CAAC,MAAqB;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n QueryBalanceBankAccount,\n QueryTurnoverProfitAndLoss,\n QueryTopBuys,\n QueryTopProviders,\n ReadTopProviders,\n ReadBalanceBankAccount,\n ReadTopBuys,\n QueryGescom,\n ReadGescom,\n QueryDeadline,\n ReadDeadline,\n ReadTurnoverProfitAndLossAndVats,\n} from '../../types';\n\nconst ROUTE = 'dashboard';\nexport class Dashboard extends Resource {\n getTurnoverProfitAndLossAndVats(\n params: QueryTurnoverProfitAndLoss,\n ): Promise<ReadTurnoverProfitAndLossAndVats> {\n return this.axios.$get(`${ROUTE}/turnoverProfitAndLossAndVats`, { params });\n }\n\n getBalanceBankAccount(\n params: QueryBalanceBankAccount,\n ): Promise<ReadBalanceBankAccount> {\n return this.axios.$get(`${ROUTE}/balanceBankAccount`, { params });\n }\n\n getGescom(params: QueryGescom): Promise<ReadGescom> {\n return this.axios.$get(`${ROUTE}/gescom`, { params });\n }\n\n getTopBuys(dates: QueryTopBuys): Promise<ReadTopBuys[]> {\n return this.axios.$get(`${ROUTE}/topBuys`, { params: dates });\n }\n\n getTopProviders(params: QueryTopProviders): Promise<ReadTopProviders[]> {\n return this.axios.$get(`${ROUTE}/topProviders`, { params });\n }\n\n getDeadlines(params: QueryDeadline): Promise<ReadDeadline> {\n return this.axios.$get(`${ROUTE}/deadlines`, { params });\n }\n}\n"]}
|
|
@@ -2,6 +2,5 @@ import { CreateExercice, IExercice } from '../../types';
|
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
export declare class Exercice extends Resource {
|
|
4
4
|
create(params: CreateExercice): Promise<IExercice>;
|
|
5
|
-
getAllBySocietyId(id: number): Promise<IExercice[]>;
|
|
6
5
|
}
|
|
7
6
|
//# sourceMappingURL=Exercice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exercice.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Exercice.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;CAGnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;
|
|
1
|
+
{"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;CACF","sourcesContent":["import { CreateExercice, IExercice } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice> {\n return this.axios.$post('/exercices', params);\n }\n}"]}
|
|
@@ -7,11 +7,5 @@ export declare class FecFile extends Resource {
|
|
|
7
7
|
create(params: CreateFecFile): Promise<ReadFecFile>;
|
|
8
8
|
map(params: CreateMappingFecFile): Promise<IFecFile>;
|
|
9
9
|
delete(): Promise<DeleteFecFile>;
|
|
10
|
-
getBySociety(idSociety: number): Promise<IFecFile>;
|
|
11
|
-
downloadBySociety(idSociety: number): Promise<any>;
|
|
12
|
-
createBySociety(idSociety: number, params: CreateFecFile): Promise<ReadFecFile>;
|
|
13
|
-
mapBySociety(idSociety: number, params: CreateMappingFecFile): Promise<IFecFile>;
|
|
14
|
-
deleteBySociety(idSociety: number): Promise<DeleteFecFile>;
|
|
15
|
-
exportBySociety(idSociety: number, idExercice: number): Promise<any>;
|
|
16
10
|
}
|
|
17
11
|
//# sourceMappingURL=FecFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FecFile.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,QAAQ,EACR,oBAAoB,EACpB,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIxB,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC;IAIxB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC;IAOhE,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC;IAInD,GAAG,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIpD,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"FecFile.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,QAAQ,EACR,oBAAoB,EACpB,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIxB,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC;IAIxB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC;IAOhE,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC;IAInD,GAAG,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIpD,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;CAGjC"}
|
|
@@ -1,42 +1,22 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
export class FecFile extends Resource {
|
|
3
3
|
get() {
|
|
4
|
-
return this.axios.$get('
|
|
4
|
+
return this.axios.$get('fecFile');
|
|
5
5
|
}
|
|
6
6
|
download() {
|
|
7
|
-
return this.axios.$get('
|
|
7
|
+
return this.axios.$get('fecFile/download', { responseType: 'blob' });
|
|
8
8
|
}
|
|
9
9
|
export(idExercice, payload) {
|
|
10
|
-
return this.axios.$get(`
|
|
10
|
+
return this.axios.$get(`fecFile/exercice/${idExercice}/export`, Object.assign(Object.assign({}, payload), { responseType: 'blob' }));
|
|
11
11
|
}
|
|
12
12
|
create(params) {
|
|
13
|
-
return this.axios.$post('
|
|
13
|
+
return this.axios.$post('fecFile', params);
|
|
14
14
|
}
|
|
15
15
|
map(params) {
|
|
16
|
-
return this.axios.$post('
|
|
16
|
+
return this.axios.$post('fecFile/mapping', params);
|
|
17
17
|
}
|
|
18
18
|
delete() {
|
|
19
|
-
return this.axios.$delete('
|
|
20
|
-
}
|
|
21
|
-
getBySociety(idSociety) {
|
|
22
|
-
return this.axios.$get(`societies/${idSociety}/fec-file`);
|
|
23
|
-
}
|
|
24
|
-
downloadBySociety(idSociety) {
|
|
25
|
-
return this.axios.$get(`societies/${idSociety}/fec-file/download`, { responseType: 'blob' });
|
|
26
|
-
}
|
|
27
|
-
createBySociety(idSociety, params) {
|
|
28
|
-
return this.axios.$post(`societies/${idSociety}/fec-file`, params);
|
|
29
|
-
}
|
|
30
|
-
mapBySociety(idSociety, params) {
|
|
31
|
-
return this.axios.$post(`societies/${idSociety}/fec-file/mapping`, params);
|
|
32
|
-
}
|
|
33
|
-
deleteBySociety(idSociety) {
|
|
34
|
-
return this.axios.$delete(`societies/${idSociety}/fec-file`);
|
|
35
|
-
}
|
|
36
|
-
exportBySociety(idSociety, idExercice) {
|
|
37
|
-
return this.axios.$get(`societies/${idSociety}/fec-file/exercice/${idExercice}/export`, {
|
|
38
|
-
responseType: 'blob',
|
|
39
|
-
});
|
|
19
|
+
return this.axios.$delete('fecFile');
|
|
40
20
|
}
|
|
41
21
|
}
|
|
42
22
|
//# sourceMappingURL=FecFile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FecFile.js","sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"FecFile.js","sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,UAAkB,EAAE,OAAsB;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,UAAU,SAAS,kCACzD,OAAO,KACV,YAAY,EAAE,MAAM,IACpB,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAqB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,GAAG,CAAC,MAA4B;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateFecFile,\n DeleteFecFile,\n ReadFecFile,\n IFecFile,\n CreateMappingFecFile,\n QueryFecFile,\n} from '../../types';\n\nexport class FecFile extends Resource {\n get(): Promise<IFecFile> {\n return this.axios.$get('fecFile');\n }\n\n download(): Promise<any> {\n return this.axios.$get('fecFile/download', { responseType: 'blob' });\n }\n\n export(idExercice: number, payload?: QueryFecFile): Promise<any> {\n return this.axios.$get(`fecFile/exercice/${idExercice}/export`, {\n ...payload,\n responseType: 'blob',\n });\n }\n\n create(params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post('fecFile', params);\n }\n\n map(params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post('fecFile/mapping', params);\n }\n\n delete(): Promise<DeleteFecFile> {\n return this.axios.$delete('fecFile');\n }\n}"]}
|
|
@@ -7,7 +7,7 @@ export declare class GeneralLedger extends Resource {
|
|
|
7
7
|
getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>>;
|
|
8
8
|
getCsv(params: QueryGeneralLedger): Promise<Buffer>;
|
|
9
9
|
getBalanceCsv(params: QueryGeneralLedger): Promise<Buffer>;
|
|
10
|
-
getPdf(
|
|
10
|
+
getPdf(params: QueryGeneralLedger): Promise<Buffer>;
|
|
11
11
|
getBalancePdf(params: QueryGeneralLedger): Promise<Buffer>;
|
|
12
12
|
getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>>;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralLedger.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,qBAAqB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,2BAA2B,EACpG,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,aAAc,SAAQ,QAAQ;IACzC,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMjG,mBAAmB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMxG,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAE,OAAO,CAAC,MAAM,CAAC;IAUlD,aAAa,CAAC,MAAM,EAAE,kBAAkB,GAAE,OAAO,CAAC,MAAM,CAAC;IAUzD,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"GeneralLedger.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,qBAAqB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,2BAA2B,EACpG,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,aAAc,SAAQ,QAAQ;IACzC,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMjG,mBAAmB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMxG,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAE,OAAO,CAAC,MAAM,CAAC;IAUlD,aAAa,CAAC,MAAM,EAAE,kBAAkB,GAAE,OAAO,CAAC,MAAM,CAAC;IAUzD,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAE,OAAO,CAAC,MAAM,CAAC;IAUlD,aAAa,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAU1D,YAAY,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC,CAAC;CAG9G"}
|
|
@@ -28,8 +28,8 @@ export class GeneralLedger extends Resource {
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
getPdf(
|
|
32
|
-
return this.axios.$get(
|
|
31
|
+
getPdf(params) {
|
|
32
|
+
return this.axios.$get('/generalLedger/pdf', {
|
|
33
33
|
params,
|
|
34
34
|
responseType: 'arraybuffer',
|
|
35
35
|
headers: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralLedger.js","sourceRoot":"","sources":["../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,aAAc,SAAQ,QAA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,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,MAA0B;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,4BAA4B,EAAE;YACnD,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAA0B;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC3C,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,MAA0B;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,4BAA4B,EAAE;YACnD,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,MAAmC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;CACF","sourcesContent":["import {\n BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary,\n} from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n getCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getBalanceCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getPdf(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getBalancePdf(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>> {\n return this.axios.$get('/generalLedger/auxiliary', { params });\n }\n}"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CancelToken } from 'axios';
|
|
2
|
+
import { Resource } from '../Resource';
|
|
3
|
+
import { BasePaginate, CreateInvoiceDocument, IEstimateInvoice, QueryInvoice, QueryPaginate, ReadAccrualInvoice, ReadCashBasedInvoice } from '../../types';
|
|
4
|
+
export declare class Invoice extends Resource {
|
|
5
|
+
getCashBasedPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadCashBasedInvoice>>;
|
|
6
|
+
getAccrualPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadAccrualInvoice>>;
|
|
7
|
+
create(payload: CreateInvoiceDocument): Promise<IEstimateInvoice[]>;
|
|
8
|
+
update(id: number, payload: CreateInvoiceDocument): Promise<IEstimateInvoice>;
|
|
9
|
+
delete(id: number): Promise<true>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=Invoice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,qBAAqB,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAOnI,mBAAmB,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAO/H,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAInE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI7E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
export class Invoice extends Resource {
|
|
3
|
+
getCashBasedPaginated(params, cancelToken) {
|
|
4
|
+
return this.axios.$get('/commercial-management/invoices', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params }));
|
|
5
|
+
}
|
|
6
|
+
getAccrualPaginated(params, cancelToken) {
|
|
7
|
+
return this.axios.$get('/commercial-management/invoices', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params }));
|
|
8
|
+
}
|
|
9
|
+
create(payload) {
|
|
10
|
+
return this.axios.$post('/commercial-management/invoices', payload);
|
|
11
|
+
}
|
|
12
|
+
update(id, payload) {
|
|
13
|
+
return this.axios.$put(`/commercial-management/invoices/${id}`, payload);
|
|
14
|
+
}
|
|
15
|
+
delete(id) {
|
|
16
|
+
return this.axios.$delete(`/commercial-management/documents/${id}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Invoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../ts/api/resources/Invoice.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAWvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,qBAAqB,CAAC,MAAoC,EAAE,WAAyB;QACnF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,kCACnD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,IACN,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,MAAoC,EAAE,WAAyB;QACjF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,kCACnD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,IACN,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAA8B;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oCAAoC,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateInvoiceDocument,\n IEstimateInvoice,\n QueryInvoice,\n QueryPaginate,\n ReadAccrualInvoice,\n ReadCashBasedInvoice,\n} from '../../types';\n\nexport class Invoice extends Resource {\n getCashBasedPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadCashBasedInvoice>> {\n return this.axios.$get('/commercial-management/invoices', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n getAccrualPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadAccrualInvoice>> {\n return this.axios.$get('/commercial-management/invoices', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n create(payload: CreateInvoiceDocument): Promise<IEstimateInvoice[]> {\n return this.axios.$post('/commercial-management/invoices', payload);\n }\n\n update(id: number, payload: CreateInvoiceDocument): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/invoices/${id}`, payload);\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${id}`);\n }\n}"]}
|
package/es/api/resources/Loan.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loan.js","sourceRoot":"","sources":["../../../ts/api/resources/Loan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAChC,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,CAAC,MAA0B;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,C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AC;IACrG,CAAC;IAED,UAAU,CAAC,MAAc,EAAE,OAAuB;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,UAAU,CAAC,MAAc;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC5C,CAAC;CACF","sourcesContent":["import { forEach } from 'lodash';\nimport { Resource } from '../Resource';\nimport {\n CreateLoanForm, IAccount, ILoan, UpdateLoanForm,\n} from '../../types';\n\nexport class Loan extends Resource {\n getLoans(): Promise<ILoan[]> {\n return this.axios.$get('/loans');\n }\n\n getLoan(params: { idLoan: number }): Promise<ILoan> {\n return this.axios.$get(`/loan/${params.idLoan}`);\n }\n\n createLoan(params: CreateLoanForm): Promise<ILoan> {\n const formData = new FormData();\n\n forEach(params, (value, key) => {\n if (value) {\n formData.append(key, `${value}`);\n }\n });\n params.files?.forEach((file) => {\n formData.append('files', file);\n });\n\n return this.axios.$post('/loan', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n updateLoan(idLoan: number, payload: UpdateLoanForm): Promise<ILoan> {\n return this.axios.$put(`/loan/${idLoan}`, payload);\n }\n\n deleteLoan(idLoan: number): Promise<true> {\n return this.axios.$delete(`/loan/${idLoan}`);\n }\n\n accounts(): Promise<IAccount[]> {\n return this.axios.$get('/loans/accounts');\n }\n}\n"]}
|
|
@@ -17,7 +17,7 @@ export declare class Mail extends Resource {
|
|
|
17
17
|
countProcessedByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number>;
|
|
18
18
|
getAnsweringTimeByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number>;
|
|
19
19
|
countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number>;
|
|
20
|
-
countToBeClassifiedByUser(idUser: number,
|
|
20
|
+
countToBeClassifiedByUser(idUser: number, cancelToken?: CancelToken): Promise<number>;
|
|
21
21
|
countUnprocessedByManager(idUser: number, cancelToken?: CancelToken): Promise<number>;
|
|
22
22
|
update(id: number, payload: UpdateMailPayload, params: QueryMail): Promise<IMail>;
|
|
23
23
|
delete(idMail: number): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mail.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Mail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,KAAK,EACL,gBAAgB,EAChB,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,qBAAa,IAAK,SAAQ,QAAQ;IAChC,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,KAAK,CAAC;IAI1C,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpD,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAWzH,iCAAiC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAYlI,4BAA4B,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC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AC;IAS5E,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IASrF,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAU5F,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC;IAIjF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGtC"}
|
package/es/api/resources/Mail.js
CHANGED
|
@@ -25,7 +25,7 @@ export class Mail extends Resource {
|
|
|
25
25
|
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params: Object.assign(Object.assign({}, params), { idUser, isProcessed: false, isImportant: true }) }));
|
|
26
26
|
}
|
|
27
27
|
getPaginatedForManagerRole(idUser, params, cancelToken) {
|
|
28
|
-
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params: Object.assign(Object.assign({}, params), { idUser, isProcessed: false, isSent: false,
|
|
28
|
+
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params: Object.assign(Object.assign({}, params), { idUser, isProcessed: false, isSent: false, displayManagerRoleMails: true }) }));
|
|
29
29
|
}
|
|
30
30
|
getPaginatedDraftForUser(idUserWhoAnswered, params, cancelToken) {
|
|
31
31
|
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params: Object.assign(Object.assign({}, params), { idUserWhoAnswered, isProcessed: false, isSent: true, isDraft: true }) }));
|
|
@@ -48,9 +48,8 @@ export class Mail extends Resource {
|
|
|
48
48
|
isSent: false,
|
|
49
49
|
} }));
|
|
50
50
|
}
|
|
51
|
-
countToBeClassifiedByUser(idUser,
|
|
51
|
+
countToBeClassifiedByUser(idUser, cancelToken) {
|
|
52
52
|
return this.axios.$get('/mails/count-unprocessed-by-user', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params: {
|
|
53
|
-
to,
|
|
54
53
|
idUser,
|
|
55
54
|
isWithoutSociety: true,
|
|
56
55
|
} }));
|
|
@@ -58,7 +57,7 @@ export class Mail extends Resource {
|
|
|
58
57
|
countUnprocessedByManager(idUser, cancelToken) {
|
|
59
58
|
return this.axios.$get('/mails/count-unprocessed-by-user', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params: {
|
|
60
59
|
idUser,
|
|
61
|
-
|
|
60
|
+
isCountingManagerRoleMails: true,
|
|
62
61
|
} }));
|
|
63
62
|
}
|
|
64
63
|
update(id, payload, params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mail.js","sourceRoot":"","sources":["../../../ts/api/resources/Mail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAChC,MAAM,CAAC,OAAyB;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IAEM,GAAG,CAAC,EAAU,EAAE,MAAiB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD,CAAC;IAEM,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnD,CAAC;IAEM,wBAAwB,CAAC,MAAc,EAAE,MAAmC,EAAE,WAAyB;QAC5G,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,kCACpC,CAAC,WAAW,CAAC,CAAC,C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C,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,EAAE;gBACN,EAAE;gBACF,MAAM;gBACN,gBAAgB,EAAE,IAAI;aACvB,IACD,CAAC;IACL,CAAC;IACM,yBAAyB,CAAC,MAAc,EAAE,WAAyB;QACxE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kCAAkC,kCACpD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,EAAE;gBACN,MAAM;gBACN,wBAAwB,EAAE,IAAI;aAC/B,IACD,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAA0B,EAAE,MAAiB;QAC9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,kCAAO,OAAO,GAAK,MAAM,EAAG,CAAC;IACrE,CAAC;IAED,MAAM,CAAC,MAAc;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n UpdateMailPayload,\n QueryMail,\n QueryPaginatedMail,\n IMail,\n CreateMailParams,\n QueryAllMail,\n} from '../../types';\n\nexport class Mail extends Resource {\n create(payload: CreateMailParams): Promise<IMail> {\n return this.axios.$post('/mails', payload);\n }\n\n public get(id: number, params: QueryMail): Promise<Mail> {\n return this.axios.$get(`/mails/${id}`, { params });\n }\n\n public getAll(params: Partial<QueryAllMail>): Promise<Mail> {\n return this.axios.$get('/mails/all', { params });\n }\n\n public getPaginatedInboxForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n },\n });\n }\n public getPaginatedToBeClassifiedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n isWithoutSociety: true,\n },\n });\n }\n public getPaginatedProcessedForUser(idUserWhoFlagged: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoFlagged,\n isProcessed: true,\n isSent: false,\n },\n });\n }\n public getPaginatedSentForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: false,\n },\n });\n }\n public getPaginatedImportantForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isImportant: true,\n },\n });\n }\n public getPaginatedForManagerRole(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n handlingManagerRoleMails: true,\n },\n });\n }\n public getPaginatedDraftForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: true,\n },\n });\n }\n public getPaginatedTrashedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isDeleted: true,\n withDeleted: true,\n },\n });\n }\n public getPaginatedBySociety(idSociety: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idSociety,\n },\n });\n }\n\n public countProcessedByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-processed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n public getAnsweringTimeByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/answering-time-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n\n public countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n isSent: false,\n },\n });\n }\n public countToBeClassifiedByUser(idUser: number, to?: string, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n to,\n idUser,\n isWithoutSociety: true,\n },\n });\n }\n public countUnprocessedByManager(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n handlingManagerRoleMails: true,\n },\n });\n }\n\n update(id: number, payload: UpdateMailPayload, params: QueryMail): Promise<IMail> {\n return this.axios.patch(`/mails/${id}`, { ...payload, ...params });\n }\n\n delete(idMail: number): Promise<void> {\n return this.axios.$delete(`/mails/${idMail}`);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Mail.js","sourceRoot":"","sources":["../../../ts/api/resources/Mail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAChC,MAAM,CAAC,OAAyB;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IAEM,GAAG,CAAC,EAAU,EAAE,MAAiB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD,CAAC;IAEM,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnD,CAAC;IAEM,wBAAwB,CAAC,MAAc,EAAE,MAAmC,EAAE,WAAyB;QAC5G,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,kCACpC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,kCACD,MAAM,KACT,MAAM,EACN,WAAW,EAAE,KAAK,EAClB,MAAM,EAAE,KAAK,OAEf,CAAC;IACL,CAAC;IACM,iCAAiC,CAAC,MAAc,EAAE,MAAmC,EAAE,WAAyB;QACrH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,kCACpC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,kCACD,MAAM,KACT,MAAM,EACN,WAAW,EAAE,KAAK,EAClB,MAAM,EAAE,KAAK,EACb,gBAAgB,EAAE,IAA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CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,kCAAO,OAAO,GAAK,MAAM,EAAG,CAAC;IACrE,CAAC;IAED,MAAM,CAAC,MAAc;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n UpdateMailPayload,\n QueryMail,\n QueryPaginatedMail,\n IMail,\n CreateMailParams,\n QueryAllMail,\n} from '../../types';\n\nexport class Mail extends Resource {\n create(payload: CreateMailParams): Promise<IMail> {\n return this.axios.$post('/mails', payload);\n }\n\n public get(id: number, params: QueryMail): Promise<Mail> {\n return this.axios.$get(`/mails/${id}`, { params });\n }\n\n public getAll(params: Partial<QueryAllMail>): Promise<Mail> {\n return this.axios.$get('/mails/all', { params });\n }\n\n public getPaginatedInboxForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n },\n });\n }\n public getPaginatedToBeClassifiedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n isWithoutSociety: true,\n },\n });\n }\n public getPaginatedProcessedForUser(idUserWhoFlagged: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoFlagged,\n isProcessed: true,\n isSent: false,\n },\n });\n }\n public getPaginatedSentForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: false,\n },\n });\n }\n public getPaginatedImportantForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isImportant: true,\n },\n });\n }\n public getPaginatedForManagerRole(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n displayManagerRoleMails: true,\n },\n });\n }\n public getPaginatedDraftForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: true,\n },\n });\n }\n public getPaginatedTrashedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isDeleted: true,\n withDeleted: true,\n },\n });\n }\n public getPaginatedBySociety(idSociety: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idSociety,\n },\n });\n }\n\n public countProcessedByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-processed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n public getAnsweringTimeByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/answering-time-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n\n public countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n isSent: false,\n },\n });\n }\n public countToBeClassifiedByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n isWithoutSociety: true,\n },\n });\n }\n public countUnprocessedByManager(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n isCountingManagerRoleMails: true,\n },\n });\n }\n\n update(id: number, payload: UpdateMailPayload, params: QueryMail): Promise<IMail> {\n return this.axios.patch(`/mails/${id}`, { ...payload, ...params });\n }\n\n delete(idMail: number): Promise<void> {\n return this.axios.$delete(`/mails/${idMail}`);\n }\n}\n"]}
|