@silexpert/core 0.4.183 → 0.4.185
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api/resources/Country.d.ts +2 -1
- package/es/api/resources/Country.d.ts.map +1 -1
- package/es/api/resources/Country.js +3 -0
- package/es/api/resources/Country.js.map +1 -1
- package/es/api/resources/Employee.d.ts +3 -1
- package/es/api/resources/Employee.d.ts.map +1 -1
- package/es/api/resources/Employee.js +6 -0
- package/es/api/resources/Employee.js.map +1 -1
- package/es/api/resources/Mail.d.ts +11 -6
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +34 -22
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/SheetMonthSchedule.d.ts +11 -0
- package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -0
- package/es/api/resources/SheetMonthSchedule.js +22 -0
- package/es/api/resources/SheetMonthSchedule.js.map +1 -0
- package/es/api/resources/User.d.ts +3 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +6 -0
- package/es/api/resources/User.js.map +1 -1
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +46 -4
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +45 -0
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandComptalib.js +20 -20
- package/es/types/Enum/BrandComptalib.js.map +1 -1
- package/es/types/Enum/BrandLegalstart.d.ts +15 -0
- package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/es/types/Enum/BrandLegalstart.js +15 -0
- package/es/types/Enum/BrandLegalstart.js.map +1 -1
- package/es/types/Enum/MailFlag.d.ts +22 -7
- package/es/types/Enum/MailFlag.d.ts.map +1 -1
- package/es/types/Enum/MailFlag.js +22 -8
- package/es/types/Enum/MailFlag.js.map +1 -1
- package/es/types/Enum/SalariesType.d.ts +28 -0
- package/es/types/Enum/SalariesType.d.ts.map +1 -0
- package/es/types/Enum/SalariesType.js +33 -0
- package/es/types/Enum/SalariesType.js.map +1 -0
- package/es/types/Interface/api/mail/CreateMailParams.d.ts +2 -0
- package/es/types/Interface/api/mail/CreateMailParams.d.ts.map +1 -1
- package/es/types/Interface/api/mail/CreateMailParams.js.map +1 -1
- package/es/types/Interface/api/mail/QueryCountMail.d.ts +1 -1
- package/es/types/Interface/api/mail/QueryCountMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryCountMail.js +1 -1
- package/es/types/Interface/api/mail/QueryCountMail.js.map +1 -1
- package/es/types/Interface/api/mail/QueryCountProcessedByUser.d.ts +5 -0
- package/es/types/Interface/api/mail/QueryCountProcessedByUser.d.ts.map +1 -0
- package/es/types/Interface/api/mail/QueryCountProcessedByUser.js +25 -0
- package/es/types/Interface/api/mail/QueryCountProcessedByUser.js.map +1 -0
- package/es/types/Interface/api/mail/QueryGetAnsweringTimeByUser.d.ts +5 -0
- package/es/types/Interface/api/mail/QueryGetAnsweringTimeByUser.d.ts.map +1 -0
- package/es/types/Interface/api/mail/QueryGetAnsweringTimeByUser.js +25 -0
- package/es/types/Interface/api/mail/QueryGetAnsweringTimeByUser.js.map +1 -0
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +3 -0
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.js +22 -2
- package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/es/types/Interface/api/mail/UpdateMail.d.ts +1 -0
- package/es/types/Interface/api/mail/UpdateMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/UpdateMail.js +6 -0
- package/es/types/Interface/api/mail/UpdateMail.js.map +1 -1
- package/es/types/Interface/api/mail/UpdateMailParams.d.ts +8 -0
- package/es/types/Interface/api/mail/UpdateMailParams.d.ts.map +1 -0
- package/es/types/Interface/api/mail/UpdateMailParams.js +2 -0
- package/es/types/Interface/api/mail/UpdateMailParams.js.map +1 -0
- package/es/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.d.ts +9 -0
- package/es/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.d.ts.map +1 -0
- package/es/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.js +53 -0
- package/es/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.js.map +1 -0
- package/es/types/Interface/api/user/QueryGetAllFromSociety.d.ts +5 -0
- package/es/types/Interface/api/user/QueryGetAllFromSociety.d.ts.map +1 -0
- package/es/types/Interface/api/user/QueryGetAllFromSociety.js +31 -0
- package/es/types/Interface/api/user/QueryGetAllFromSociety.js.map +1 -0
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts +2 -0
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts.map +1 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +12 -0
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/es/types/Interface/models/IEmployee.d.ts +2 -0
- package/es/types/Interface/models/IEmployee.d.ts.map +1 -1
- package/es/types/Interface/models/IEmployee.js.map +1 -1
- package/es/types/Interface/models/IMail.d.ts +1 -2
- package/es/types/Interface/models/IMail.d.ts.map +1 -1
- package/es/types/Interface/models/IMail.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +1 -0
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +5 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +5 -0
- package/es/types/index.js.map +1 -1
- package/js/api/Resource.js.map +1 -1
- package/js/api/index.js.map +1 -1
- package/js/api/resources/Account.js.map +1 -1
- package/js/api/resources/AccountType.js.map +1 -1
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/api/resources/AccountingIncome.js.map +1 -1
- package/js/api/resources/AccountsSectors.js.map +1 -1
- package/js/api/resources/AffectedPatrimony.js.map +1 -1
- package/js/api/resources/Authenticate.js.map +1 -1
- package/js/api/resources/BalanceSheet.js.map +1 -1
- package/js/api/resources/BalanceSheetCompletion.js.map +1 -1
- package/js/api/resources/BalanceSheetModule.js.map +1 -1
- package/js/api/resources/BalanceSheetQuestion.js.map +1 -1
- package/js/api/resources/BankAccount.js.map +1 -1
- package/js/api/resources/BankStatement.js.map +1 -1
- package/js/api/resources/BudgetInsight.js.map +1 -1
- package/js/api/resources/Cerfa.js.map +1 -1
- package/js/api/resources/Closing.js.map +1 -1
- package/js/api/resources/Connector.js.map +1 -1
- package/js/api/resources/Country.js +4 -0
- package/js/api/resources/Country.js.map +1 -1
- package/js/api/resources/CustomerProviderOperation.js.map +1 -1
- package/js/api/resources/Dashboard.js.map +1 -1
- package/js/api/resources/Employee.js +8 -0
- package/js/api/resources/Employee.js.map +1 -1
- package/js/api/resources/Exercice.js.map +1 -1
- package/js/api/resources/ExerciceNote.js.map +1 -1
- package/js/api/resources/ExerciceQuestion.js.map +1 -1
- package/js/api/resources/FecFile.js.map +1 -1
- package/js/api/resources/FinancialCharge.js.map +1 -1
- package/js/api/resources/FirstStep.js.map +1 -1
- package/js/api/resources/GeneralLedger.js.map +1 -1
- package/js/api/resources/Immobilization.js.map +1 -1
- package/js/api/resources/IncomeAllocation.js.map +1 -1
- package/js/api/resources/IncomeStatement.js.map +1 -1
- package/js/api/resources/InternalInvoicing.js.map +1 -1
- package/js/api/resources/Journal.js.map +1 -1
- package/js/api/resources/KilometricAllowance.js.map +1 -1
- package/js/api/resources/LegalForm.js.map +1 -1
- package/js/api/resources/Letter.js.map +1 -1
- package/js/api/resources/Library.js.map +1 -1
- package/js/api/resources/Loan.js.map +1 -1
- package/js/api/resources/Log.js.map +1 -1
- package/js/api/resources/MachineLearning.js.map +1 -1
- package/js/api/resources/Mail.js +91 -19
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/MealExpense.js.map +1 -1
- package/js/api/resources/Partner.js.map +1 -1
- package/js/api/resources/PartneredAccountant.js.map +1 -1
- package/js/api/resources/Payment.js.map +1 -1
- package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/js/api/resources/Product.js.map +1 -1
- package/js/api/resources/PromoCode.js.map +1 -1
- package/js/api/resources/Provision.js.map +1 -1
- package/js/api/resources/Qonto.js.map +1 -1
- package/js/api/resources/QuotesAccount.js.map +1 -1
- package/js/api/resources/Registration.js.map +1 -1
- package/js/api/resources/Report.js.map +1 -1
- package/js/api/resources/Revision.js.map +1 -1
- package/js/api/resources/RevisionGuide.js.map +1 -1
- package/js/api/resources/SalariesFile.js.map +1 -1
- package/js/api/resources/Search.js.map +1 -1
- package/js/api/resources/SheetMonthSchedule.js +40 -0
- package/js/api/resources/SheetMonthSchedule.js.map +1 -0
- package/js/api/resources/Shine.js.map +1 -1
- package/js/api/resources/Simulation.js.map +1 -1
- package/js/api/resources/Society.js.map +1 -1
- package/js/api/resources/SocietyPromoCode.js.map +1 -1
- package/js/api/resources/Sponsorship.js.map +1 -1
- package/js/api/resources/Step.js.map +1 -1
- package/js/api/resources/Stocks.js.map +1 -1
- package/js/api/resources/Subscription.js.map +1 -1
- package/js/api/resources/Survey.js.map +1 -1
- package/js/api/resources/Tax.js.map +1 -1
- package/js/api/resources/TaxDeadline.js.map +1 -1
- package/js/api/resources/ThirdParty.js.map +1 -1
- package/js/api/resources/Transaction.js.map +1 -1
- package/js/api/resources/User.js +10 -0
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources/VatControl.js.map +1 -1
- package/js/api/resources/VatDeclaration.js.map +1 -1
- package/js/api/resources/Vehicle.js.map +1 -1
- package/js/api/resources/WorkingSchedule.js.map +1 -1
- package/js/api/resources/ZTicket.js.map +1 -1
- package/js/api/resources/shareCapital.js.map +1 -1
- package/js/api/resources.js +4 -1
- package/js/api/resources.js.map +1 -1
- package/js/index.js.map +1 -1
- package/js/types/Enum/Account.js.map +1 -1
- package/js/types/Enum/AccountType.js.map +1 -1
- package/js/types/Enum/AccountingFileType.js.map +1 -1
- package/js/types/Enum/AccountingJournal.js.map +1 -1
- package/js/types/Enum/AccountsSectors.js.map +1 -1
- package/js/types/Enum/Activity.js.map +1 -1
- package/js/types/Enum/AnswerTypeValue.js.map +1 -1
- package/js/types/Enum/Aspone.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/BalanceSheetModule.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/js/types/Enum/BalanceSheetStatus.js.map +1 -1
- package/js/types/Enum/BankAccountType.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +45 -0
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandComptalib.js +20 -20
- package/js/types/Enum/BrandComptalib.js.map +1 -1
- package/js/types/Enum/BrandLegalstart.js +15 -0
- package/js/types/Enum/BrandLegalstart.js.map +1 -1
- package/js/types/Enum/BudgetInsight.js.map +1 -1
- package/js/types/Enum/CerfaType.js.map +1 -1
- package/js/types/Enum/Channel.js.map +1 -1
- package/js/types/Enum/Comment.js.map +1 -1
- package/js/types/Enum/ComptaType.js.map +1 -1
- package/js/types/Enum/ConnectorType.js.map +1 -1
- package/js/types/Enum/Contract.js.map +1 -1
- package/js/types/Enum/Country.js.map +1 -1
- package/js/types/Enum/Currency.js.map +1 -1
- package/js/types/Enum/EstimateInvoice.js.map +1 -1
- package/js/types/Enum/ExerciceNoteType.js.map +1 -1
- package/js/types/Enum/FecFileDelimiter.js.map +1 -1
- package/js/types/Enum/FieldSocietyStat.js.map +1 -1
- package/js/types/Enum/FileType.js.map +1 -1
- package/js/types/Enum/FiscalRegime.js.map +1 -1
- package/js/types/Enum/FuelType.js.map +1 -1
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Enum/Gescom.js.map +1 -1
- package/js/types/Enum/GlobalRegime.js.map +1 -1
- package/js/types/Enum/ImmobilizationType.js.map +1 -1
- package/js/types/Enum/IncomeStatement.js.map +1 -1
- package/js/types/Enum/JeDeclare.js.map +1 -1
- package/js/types/Enum/KilometricAllowanceScale.js.map +1 -1
- package/js/types/Enum/LegalForm.js.map +1 -1
- package/js/types/Enum/LegalInformation.js.map +1 -1
- package/js/types/Enum/LetterState.js.map +1 -1
- package/js/types/Enum/LetterType.js.map +1 -1
- package/js/types/Enum/Log.js.map +1 -1
- package/js/types/Enum/MailFlag.js +22 -9
- package/js/types/Enum/MailFlag.js.map +1 -1
- package/js/types/Enum/MealExpenseThresholds.js.map +1 -1
- package/js/types/Enum/MimeType.js.map +1 -1
- package/js/types/Enum/Nature.js.map +1 -1
- package/js/types/Enum/Notification.js.map +1 -1
- package/js/types/Enum/Ocr.js.map +1 -1
- package/js/types/Enum/PartnerTransactionType.js.map +1 -1
- package/js/types/Enum/PartnerType.js.map +1 -1
- package/js/types/Enum/PartneredAccountantServiceState.js.map +1 -1
- package/js/types/Enum/PartneredAccountantServiceType.js.map +1 -1
- package/js/types/Enum/PartneredAccountantServiceTypeId.js.map +1 -1
- package/js/types/Enum/PaymentMethod.js.map +1 -1
- package/js/types/Enum/Prestation.js.map +1 -1
- package/js/types/Enum/Proceding.js.map +1 -1
- package/js/types/Enum/ProductType.js.map +1 -1
- package/js/types/Enum/ProfitsType.js.map +1 -1
- package/js/types/Enum/ProvisionType.js.map +1 -1
- package/js/types/Enum/Quality.js.map +1 -1
- package/js/types/Enum/RegisterCategory.js.map +1 -1
- package/js/types/Enum/Registration.js.map +1 -1
- package/js/types/Enum/RegistrationSource.js.map +1 -1
- package/js/types/Enum/ReportState.js.map +1 -1
- package/js/types/Enum/ReportType.js.map +1 -1
- package/js/types/Enum/RevisionGuide.js.map +1 -1
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/SalariesType.js +60 -0
- package/js/types/Enum/SalariesType.js.map +1 -0
- package/js/types/Enum/SaleType.js.map +1 -1
- package/js/types/Enum/Sector.js.map +1 -1
- package/js/types/Enum/SendInBlueList.js.map +1 -1
- package/js/types/Enum/Simulation.js.map +1 -1
- package/js/types/Enum/SponsorshipState.js.map +1 -1
- package/js/types/Enum/StockType.js.map +1 -1
- package/js/types/Enum/SubscriptionType.js.map +1 -1
- package/js/types/Enum/Supervision.js.map +1 -1
- package/js/types/Enum/SurveyType.js.map +1 -1
- package/js/types/Enum/SurveyTypeDatas.js.map +1 -1
- package/js/types/Enum/Tax.js.map +1 -1
- package/js/types/Enum/TaxSystem.js.map +1 -1
- package/js/types/Enum/ThirdPartyType.js.map +1 -1
- package/js/types/Enum/TypeBankConnection.js.map +1 -1
- package/js/types/Enum/TypeCustomerProviderOperation.js.map +1 -1
- package/js/types/Enum/TypeIncomeAllocation.js.map +1 -1
- package/js/types/Enum/TypePayment.js.map +1 -1
- package/js/types/Enum/Unit.js.map +1 -1
- package/js/types/Enum/Util.js.map +1 -1
- package/js/types/Enum/Vat.js.map +1 -1
- package/js/types/Enum/VatDeclarationType.js.map +1 -1
- package/js/types/Enum/VatRegime.js.map +1 -1
- package/js/types/Enum/Vehicle.js.map +1 -1
- package/js/types/Enum/VehicleType.js.map +1 -1
- package/js/types/Enum/WebmailFlag.js.map +1 -1
- package/js/types/Enum/WebmailType.js.map +1 -1
- package/js/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.js.map +1 -1
- package/js/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.js.map +1 -1
- package/js/types/Interface/api/bankAccount/DeleteTransaction.js.map +1 -1
- package/js/types/Interface/api/cerfa/2031.js.map +1 -1
- package/js/types/Interface/api/cerfa/2033.js.map +1 -1
- package/js/types/Interface/api/cerfa/2035.js.map +1 -1
- package/js/types/Interface/api/cerfa/2065.js.map +1 -1
- package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
- package/js/types/Interface/api/customerProviderOperation/CreateCustomerProviderOperation.js.map +1 -1
- package/js/types/Interface/api/employee/QueryEmployeeSearch.js.map +1 -1
- package/js/types/Interface/api/exerciceQuestion/CreateExerciceQuestion.js.map +1 -1
- package/js/types/Interface/api/exerciceQuestion/QueryQuestion.js.map +1 -1
- package/js/types/Interface/api/financialCharge/CreateNonDeductibleInterests.js.map +1 -1
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/js/types/Interface/api/immobilization/CreateImmobilization.js.map +1 -1
- package/js/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
- package/js/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js.map +1 -1
- package/js/types/Interface/api/loan/CreateLoan.js.map +1 -1
- package/js/types/Interface/api/log/QueryLogPagination.js.map +1 -1
- package/js/types/Interface/api/machineLearning/CreateMachineLearningAnnotation.js.map +1 -1
- package/js/types/Interface/api/mail/QueryCountMail.js +1 -1
- package/js/types/Interface/api/mail/QueryCountMail.js.map +1 -1
- package/js/types/Interface/api/mail/QueryCountProcessedByUser.js +33 -0
- package/js/types/Interface/api/mail/QueryCountProcessedByUser.js.map +1 -0
- package/js/types/Interface/api/mail/QueryGetAnsweringTimeByUser.js +33 -0
- package/js/types/Interface/api/mail/QueryGetAnsweringTimeByUser.js.map +1 -0
- package/js/types/Interface/api/mail/QueryMail.js.map +1 -1
- package/js/types/Interface/api/mail/QueryPaginatedMail.js +14 -2
- package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/js/types/Interface/api/mail/UpdateMail.js +2 -0
- package/js/types/Interface/api/mail/UpdateMail.js.map +1 -1
- package/js/types/Interface/api/mail/UpdateMailParams.js +6 -0
- package/js/types/Interface/api/mail/UpdateMailParams.js.map +1 -0
- package/js/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -1
- package/js/types/Interface/api/partner/CreatePartner.js.map +1 -1
- package/js/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js.map +1 -1
- package/js/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js.map +1 -1
- package/js/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -1
- package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/js/types/Interface/api/promoCode/QueryDefaultPromotion.js.map +1 -1
- package/js/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js.map +1 -1
- package/js/types/Interface/api/provision/CreateProvisionForm.js.map +1 -1
- package/js/types/Interface/api/provision/QueryProvisions.js.map +1 -1
- package/js/types/Interface/api/provision/UpdateProvisionForm.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/js/types/Interface/api/shareCapital/CreateInKindContribution.js.map +1 -1
- package/js/types/Interface/api/shareCapital/CreateShareCapital.js.map +1 -1
- package/js/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.js +52 -0
- package/js/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.js.map +1 -0
- package/js/types/Interface/api/society/CreateSociety.js.map +1 -1
- package/js/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
- package/js/types/Interface/api/sponsorship/QuerySponsorship.js.map +1 -1
- package/js/types/Interface/api/stock/StockEntries.js.map +1 -1
- package/js/types/Interface/api/tax/CreateTax.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/js/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/js/types/Interface/api/user/QueryGetAllFromSociety.js +39 -0
- package/js/types/Interface/api/user/QueryGetAllFromSociety.js.map +1 -0
- package/js/types/Interface/api/user/QuerySocieties.js.map +1 -1
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +4 -0
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +60 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/balanceSheetModule.js.map +1 -1
- package/js/utils/brands.js.map +1 -1
- package/js/utils/cerfa.js.map +1 -1
- package/js/utils/decorators.js.map +1 -1
- package/js/utils/index.js.map +1 -1
- package/js/utils/objectUtils/flattenObject.js.map +1 -1
- package/js/utils/objectUtils/fullFlattenObject.js.map +1 -1
- package/js/utils/objectUtils/index.js.map +1 -1
- package/js/utils/objectUtils/isValidObject.js.map +1 -1
- package/js/utils/objectUtils/unflattenObject.js.map +1 -1
- package/js/utils/siretValidation.js.map +1 -1
- package/js/utils/stringUtils/clean.js.map +1 -1
- package/js/utils/stringUtils/index.js.map +1 -1
- package/js/utils/transforms/boolean.transform.js.map +1 -1
- package/js/utils/validators/formattedDateString.validator.js.map +1 -1
- package/js/utils/validators/objectId.validator.js.map +1 -1
- package/js/utils/webmail.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Country.ts +5 -1
- package/ts/api/resources/Employee.ts +11 -1
- package/ts/api/resources/Mail.ts +78 -16
- package/ts/api/resources/SheetMonthSchedule.ts +30 -0
- package/ts/api/resources/User.ts +7 -1
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/BrandClementine.ts +45 -0
- package/ts/types/Enum/BrandComptalib.ts +20 -20
- package/ts/types/Enum/BrandLegalstart.ts +15 -0
- package/ts/types/Enum/MailFlag.ts +22 -7
- package/ts/types/Enum/SalariesType.ts +38 -0
- package/ts/types/Interface/api/mail/CreateMailParams.ts +2 -0
- package/ts/types/Interface/api/mail/QueryCountMail.ts +1 -1
- package/ts/types/Interface/api/mail/QueryCountProcessedByUser.ts +16 -0
- package/ts/types/Interface/api/mail/QueryGetAnsweringTimeByUser.ts +16 -0
- package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +19 -2
- package/ts/types/Interface/api/mail/UpdateMail.ts +5 -0
- package/ts/types/Interface/api/mail/UpdateMailParams.ts +8 -0
- package/ts/types/Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule.ts +37 -0
- package/ts/types/Interface/api/user/QueryGetAllFromSociety.ts +19 -0
- package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +10 -0
- package/ts/types/Interface/models/IEmployee.ts +2 -0
- package/ts/types/Interface/models/IMail.ts +1 -2
- package/ts/types/Interface/models/ISociety.ts +1 -0
- package/ts/types/index.ts +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cerfa.js","mappings":";;;;;;;AAAA;;AAIA;;AAGM,MAAOA,KAAP,SAAqBC,kBAArB,CAA6B;
|
|
1
|
+
{"version":3,"file":"Cerfa.js","mappings":";;;;;;;AAAA;;AAIA;;AAGM,MAAOA,KAAP,SAAqBC,kBAArB,CAA6B;EACjCC,UAAU,CAACC,MAAD,EAAqE;IAC7E,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaF,MAAM,CAACG,UAAU,aAA/C,EAA8DH,MAAM,CAACI,IAArE,EAA2E;MAChFC,YAAY,EAAE,aADkE;MAEhFC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFuE,CAA3E,CAAP;EAMD;;EACDC,UAAU,CAACR,MAAD,EAAyD;IACjE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaF,MAAM,CAACG,UAAU,aAA/C,EAA8DH,MAAM,CAACI,IAArE,EAA2E;MAChFC,YAAY,EAAE,aADkE;MAEhFC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFuE,CAA3E,CAAP;EAMD;;EACDE,UAAU,CAACT,MAAD,EAAyD;IACjE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaF,MAAM,CAACG,UAAU,aAA/C,EAA8DH,MAAM,CAACI,IAArE,EAA2E;MAChFC,YAAY,EAAE,aADkE;MAEhFC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFuE,CAA3E,CAAP;EAMD;;EACDG,kBAAkB,CAACC,OAAD,EAAiH;IACjI,MAAM;MACJC,WADI;MACSC,WADT;MACsBC,cADtB;MACsCC;IADtC,IAEFJ,OAFJ;IAGA,OAAO,iDAAqCC,WAArC,EAAkDC,WAAlD,EAA+DC,cAA/D,EAA+EC,WAA/E,CAAP;EACD;;AA9BgC;;QAAtBlB,K,GAAAA,K","names":["Cerfa","Resource","get2035Pdf","params","axios","$post","idExercice","data","responseType","headers","Accept","get2033Pdf","get2065Pdf","getCerfaToComplete","payload","idLegalForm","idTaxSystem","idFiscalRegime","profitsType"],"sourceRoot":"","sources":["../../../ts/api/resources/Cerfa.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete,\n} from '../..';\nimport { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';\nimport { TaxSystem, FiscalRegime, ProfitsType } from '../../types';\n\nexport class Cerfa extends Resource {\n get2035Pdf(params: { idExercice: number, data: ParamsGenerate2035FullDocument }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2033Pdf(params: { idExercice: number, data: ParamsGenerate2033 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2065Pdf(params: { idExercice: number, data: ParamsGenerate2065 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n getCerfaToComplete(payload: { idLegalForm: number; idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime; profitsType: ProfitsType }): ReadCerfaToComplete {\n const {\n idLegalForm, idTaxSystem, idFiscalRegime, profitsType,\n } = payload;\n return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Closing.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;
|
|
1
|
+
{"version":3,"file":"Closing.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,OAAO,CAACC,UAAD,EAAmB;IACxB,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,6BAA6BF,UAAU,WAAxD,CAAP;EACD;;EACDG,WAAW,CAACH,UAAD,EAAmB;IAC5B,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,6BAA6BF,UAAU,WAAxD,CAAP;EACD;;AANkC;;QAAxBH,O,GAAAA,O","names":["Closing","Resource","process","idExercice","axios","$post","getDeadline"],"sourceRoot":"","sources":["../../../ts/api/resources/Closing.ts"],"sourcesContent":["import { ProcessedClosing } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Closing extends Resource {\n process(idExercice: number): Promise<ProcessedClosing> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/closings`);\n }\n getDeadline(idExercice: number): Promise<string> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/deadline`);\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connector.js","mappings":";;;;;;;AAAA;;AAEM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;
|
|
1
|
+
{"version":3,"file":"Connector.js","mappings":";;;;;;;AAAA;;AAEM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;EACrCC,IAAI,CAACC,EAAD,EAAW;IACb,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,cAAcF,EAAE,OAAjC,CAAP;EACD;;AAHoC;;QAA1BH,S,GAAAA,S","names":["Connector","Resource","test","id","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/Connector.ts"],"sourcesContent":["import { 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}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Country.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;
|
|
1
|
+
{"version":3,"file":"Country.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,MAAM;IACJ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,YAAhB,CAAP;EACD;;EAEMC,mBAAmB;IACxB,OAAO,KAAKF,KAAL,CAAWC,IAAX,CAAgB,gBAAhB,CAAP;EACD;;AAPkC;;QAAxBJ,O,GAAAA,O","names":["Country","Resource","getAll","axios","$get","getAllNationalities"],"sourceRoot":"","sources":["../../../ts/api/resources/Country.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { ICountry, INationality } from '../../types';\n\nexport class Country extends Resource {\n getAll(): Promise<ICountry[]> {\n return this.axios.$get('/countries');\n }\n\n public getAllNationalities(): Promise<INationality[]> {\n return this.axios.$get('/nationalities');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerProviderOperation.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,yBAAP,SAAyCC,kBAAzC,CAAiD;
|
|
1
|
+
{"version":3,"file":"CustomerProviderOperation.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,yBAAP,SAAyCC,kBAAzC,CAAiD;EACrDC,MAAM,CAACC,UAAD,EAAqBC,OAArB,EAA6D;IACjE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaH,UAAU,4BAAxC,EAAsEC,OAAtE,CAAP;EACD;;AAHoD;;QAA1CJ,yB,GAAAA,yB","names":["CustomerProviderOperation","Resource","create","idExercice","payload","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/CustomerProviderOperation.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { CreateCustomerProviderOperation, IAccountingTransaction } from '../../types';\n\nexport class CustomerProviderOperation extends Resource {\n create(idExercice: number, payload: CreateCustomerProviderOperation): Promise<IAccountingTransaction[]> {\n return this.axios.$post(`/exercice/${idExercice}/customerProviderOperation`, payload);\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","mappings":";;;;;;;AAAA;;AAgBA,MAAMA,KAAK,GAAG,WAAd;;AACM,MAAOC,SAAP,SAAyBC,kBAAzB,CAAiC;
|
|
1
|
+
{"version":3,"file":"Dashboard.js","mappings":";;;;;;;AAAA;;AAgBA,MAAMA,KAAK,GAAG,WAAd;;AACM,MAAOC,SAAP,SAAyBC,kBAAzB,CAAiC;EACrCC,+BAA+B,CAC7BC,MAD6B,EACK;IAElC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,+BAAxB,EAAyD;MAAEI;IAAF,CAAzD,CAAP;EACD;;EAEDG,qBAAqB,CACnBH,MADmB,EACY;IAE/B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,qBAAxB,EAA+C;MAAEI;IAAF,CAA/C,CAAP;EACD;;EAEDI,SAAS,CAACJ,MAAD,EAAoB;IAC3B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,SAAxB,EAAmC;MAAEI;IAAF,CAAnC,CAAP;EACD;;EAEDK,UAAU,CAACC,KAAD,EAAoB;IAC5B,OAAO,KAAKL,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,UAAxB,EAAoC;MAAEI,MAAM,EAAEM;IAAV,CAApC,CAAP;EACD;;EAEDC,eAAe,CAACP,MAAD,EAA0B;IACvC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,eAAxB,EAAyC;MAAEI;IAAF,CAAzC,CAAP;EACD;;EAEDQ,YAAY,CAACR,MAAD,EAAsB;IAChC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,GAAGN,KAAK,YAAxB,EAAsC;MAAEI;IAAF,CAAtC,CAAP;EACD;;AA3BoC;;QAA1BH,S,GAAAA,S","names":["ROUTE","Dashboard","Resource","getTurnoverProfitAndLossAndVats","params","axios","$get","getBalanceBankAccount","getGescom","getTopBuys","dates","getTopProviders","getDeadlines"],"sourceRoot":"","sources":["../../../ts/api/resources/Dashboard.ts"],"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"]}
|
|
@@ -36,6 +36,14 @@ class Employee extends _Resource.Resource {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
createOrUpdateWorkingSchedule(idEmployee, payload) {
|
|
40
|
+
return this.axios.$post(`employees/${idEmployee}/working-schedules`, payload);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
deleteWorkingSchedule(idEmployee, idWorkingSchedule) {
|
|
44
|
+
return this.axios.$delete(`employees/${idEmployee}/working-schedules/${idWorkingSchedule}`);
|
|
45
|
+
}
|
|
46
|
+
|
|
39
47
|
}
|
|
40
48
|
|
|
41
49
|
exports.Employee = Employee;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Employee.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"Employee.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,QAAP,SAAwBC,kBAAxB,CAAgC;EAC7BC,MAAM,CAACC,OAAD,EAA4B;IACvC,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,WAAjB,EAA8BF,OAA9B,CAAP;EACD;;EAEMG,MAAM,CAACC,SAAD,EAAkB;IAC7B,OAAO,KAAKH,KAAL,CAAWI,IAAX,CAAgB,cAAcD,SAAS,YAAvC,CAAP;EACD;;EAEME,GAAG,CAACC,EAAD,EAAW;IACnB,OAAO,KAAKN,KAAL,CAAWI,IAAX,CAAgB,cAAcE,EAAE,EAAhC,CAAP;EACD;;EAEMC,MAAM,CAACD,EAAD,EAAaP,OAAb,EAAwC;IACnD,OAAO,KAAKC,KAAL,CAAWQ,IAAX,CAAgB,cAAcF,EAAE,EAAhC,EAAoCP,OAApC,CAAP;EACD;;EAEMU,MAAM,CAACH,EAAD,EAAW;IACtB,OAAO,KAAKN,KAAL,CAAWU,OAAX,CAAmB,cAAcJ,EAAE,EAAnC,CAAP;EACD;;EAEMK,WAAW,CAACR,SAAD,EAAoBS,MAApB,EAAgD;IAChE,OAAO,KAAKZ,KAAL,CAAWI,IAAX,CAAgB,cAAcD,SAAS,YAAvC,EAAqD;MAAES,MAAM,kCAAOA,MAAP,GAAa;QAAEC,UAAU,EAAE;MAAd,CAAb;IAAR,CAArD,CAAP;EACD;;EAEMC,6BAA6B,CAACC,UAAD,EAAqBhB,OAArB,EAAmE;IACrG,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAac,UAAU,oBAAxC,EAA8DhB,OAA9D,CAAP;EACD;;EAEMiB,qBAAqB,CAACD,UAAD,EAAqBE,iBAArB,EAA8C;IACxE,OAAO,KAAKjB,KAAL,CAAWU,OAAX,CAAmB,aAAaK,UAAU,sBAAsBE,iBAAiB,EAAjF,CAAP;EACD;;AA/BmC;;QAAzBrB,Q,GAAAA,Q","names":["Employee","Resource","create","payload","axios","$post","getAll","idSociety","$get","get","id","update","$put","delete","$delete","getPaginate","params","isPaginate","createOrUpdateWorkingSchedule","idEmployee","deleteWorkingSchedule","idWorkingSchedule"],"sourceRoot":"","sources":["../../../ts/api/resources/Employee.ts"],"sourcesContent":["import {\n BasePaginate, IEmployee, IWorkingSchedule, QueryEmployeeSearch,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Employee extends Resource {\n public create(payload: Partial<IEmployee>): Promise<IEmployee> {\n return this.axios.$post('/employee', payload);\n }\n\n public getAll(idSociety: number): Promise<IEmployee[]> {\n return this.axios.$get(`/societies/${idSociety}/employees`);\n }\n\n public get(id: number): Promise<IEmployee> {\n return this.axios.$get(`/employees/${id}`);\n }\n\n public update(id: number, payload: Partial<IEmployee>): Promise<IEmployee> {\n return this.axios.$put(`/employees/${id}`, payload);\n }\n\n public delete(id: number): Promise<true> {\n return this.axios.$delete(`/employees/${id}`);\n }\n\n public getPaginate(idSociety: number, params?: QueryEmployeeSearch): Promise<BasePaginate<Employee>> {\n return this.axios.$get(`/societies/${idSociety}/employees`, { params: { ...params, isPaginate: true } });\n }\n\n public createOrUpdateWorkingSchedule(idEmployee: number, payload?: Omit<IWorkingSchedule, 'idEmployee'>): Promise<IWorkingSchedule> {\n return this.axios.$post(`employees/${idEmployee}/working-schedules`, payload);\n }\n\n public deleteWorkingSchedule(idEmployee: number, idWorkingSchedule: number): Promise<true> {\n return this.axios.$delete(`employees/${idEmployee}/working-schedules/${idWorkingSchedule}`);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exercice.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,QAAP,SAAwBC,kBAAxB,CAAgC;
|
|
1
|
+
{"version":3,"file":"Exercice.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,QAAP,SAAwBC,kBAAxB,CAAgC;EACpCC,MAAM,CAACC,MAAD,EAAuB;IAC3B,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,YAAjB,EAA+BF,MAA/B,CAAP;EACD;;AAHmC;;QAAzBH,Q,GAAAA,Q","names":["Exercice","Resource","create","params","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/Exercice.ts"],"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}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExerciceNote.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,YAAP,SAA4BC,kBAA5B,CAAoC;
|
|
1
|
+
{"version":3,"file":"ExerciceNote.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,YAAP,SAA4BC,kBAA5B,CAAoC;EACxCC,GAAG,CAACC,UAAD,EAAqBC,MAArB,EAA8C;IAC/C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,aAAaH,UAAU,OAAvC,EAAgD;MAAEC;IAAF,CAAhD,CAAP;EACD;;EACDG,cAAc,CAACJ,UAAD,EAAqBK,OAArB,EAAgD;IAC5D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,aAAaN,UAAU,OAAxC,EAAiDK,OAAjD,CAAP;EACD;;EACDE,YAAY,CAACP,UAAD,EAAqBK,OAArB,EAAoD;IAC9D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,aAAaN,UAAU,YAAxC,EAAsDK,OAAtD,CAAP;EACD;;AATuC;;QAA7BR,Y,GAAAA,Y","names":["ExerciceNote","Resource","get","idExercice","params","axios","$get","updateOrCreate","payload","$post","generateFile"],"sourceRoot":"","sources":["../../../ts/api/resources/ExerciceNote.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryExerciceNote } from '../..';\nimport { CreateExerciceNote, CreateExerciceNoteFile, IGedFile } from '../../types';\nimport { IExerciceNote } from '../../types/Interface/models/IExerciceNote';\n\nexport class ExerciceNote extends Resource {\n get(idExercice: number, params: QueryExerciceNote): Promise<IExerciceNote | null> {\n return this.axios.$get(`/exercice/${idExercice}/note`, { params });\n }\n updateOrCreate(idExercice: number, payload: CreateExerciceNote): Promise<IExerciceNote> {\n return this.axios.$post(`/exercice/${idExercice}/note`, payload);\n }\n generateFile(idExercice: number, payload: CreateExerciceNoteFile): Promise<IGedFile> {\n return this.axios.$post(`/exercice/${idExercice}/note/file`, payload);\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExerciceQuestion.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,gBAAP,SAAgCC,kBAAhC,CAAwC;
|
|
1
|
+
{"version":3,"file":"ExerciceQuestion.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,gBAAP,SAAgCC,kBAAhC,CAAwC;EAC5CC,MAAM,CAACC,UAAD,EAAqBC,MAArB,EAA2C;IAC/C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BH,UAAU,YAAvD,EAAqEC,MAAM,GAAG;MAAEA;IAAF,CAAH,GAAgB,EAA3F,CAAP;EACD;;EAEDG,UAAU,CAACJ,UAAD,EAAqBK,OAArB,EAAqD;IAC7D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,6BAA6BN,UAAU,yBAAxD,EAAmFK,OAAnF,CAAP;EACD;;EAEDE,UAAU,CAACP,UAAD,EAAqBK,OAArB,EAAqD;IAC7D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,6BAA6BN,UAAU,yBAAxD,EAAmFK,OAAnF,CAAP;EACD;;AAX2C;;QAAjCR,gB,GAAAA,gB","names":["ExerciceQuestion","Resource","getAll","idExercice","params","axios","$get","bulkCreate","payload","$post","bulkUpdate"],"sourceRoot":"","sources":["../../../ts/api/resources/ExerciceQuestion.ts"],"sourcesContent":["import { CreateExerciceQuestions, IExerciceQuestion, QueryQuestion } from '../..';\nimport { Resource } from '../Resource';\n\nexport class ExerciceQuestion extends Resource {\n getAll(idExercice: number, params?: QueryQuestion): Promise<Array<IExerciceQuestion>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/questions`, params ? { params } : {});\n }\n\n bulkCreate(idExercice: number, payload: CreateExerciceQuestions): Promise<Array<IExerciceQuestion>> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/questions/batch-create`, payload);\n }\n\n bulkUpdate(idExercice: number, payload: CreateExerciceQuestions): Promise<void> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/questions/batch-update`, payload);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FecFile.js","mappings":";;;;;;;AAAA;;AAUM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;
|
|
1
|
+
{"version":3,"file":"FecFile.js","mappings":";;;;;;;AAAA;;AAUM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,GAAG;IACD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,SAAhB,CAAP;EACD;;EAEDC,QAAQ;IACN,OAAO,KAAKF,KAAL,CAAWC,IAAX,CAAgB,kBAAhB,EAAoC;MAAEE,YAAY,EAAE;IAAhB,CAApC,CAAP;EACD;;EAEDC,MAAM,CAACC,UAAD,EAAqBC,OAArB,EAA2C;IAC/C,OAAO,KAAKN,KAAL,CAAWC,IAAX,CAAgB,oBAAoBI,UAAU,SAA9C,EAAuDE,gCACzDD,OADyD,GAClD;MACVH,YAAY,EAAE;IADJ,CADkD,CAAvD,CAAP;EAID;;EAEDK,MAAM,CAACC,MAAD,EAAsB;IAC1B,OAAO,KAAKT,KAAL,CAAWU,KAAX,CAAiB,SAAjB,EAA4BD,MAA5B,CAAP;EACD;;EAEDE,GAAG,CAACF,MAAD,EAA6B;IAC9B,OAAO,KAAKT,KAAL,CAAWU,KAAX,CAAiB,iBAAjB,EAAoCD,MAApC,CAAP;EACD;;EAEDG,MAAM;IACJ,OAAO,KAAKZ,KAAL,CAAWa,OAAX,CAAmB,SAAnB,CAAP;EACD;;AA1BkC;;QAAxBhB,O,GAAAA,O","names":["FecFile","Resource","get","axios","$get","download","responseType","export","idExercice","payload","Object","create","params","$post","map","delete","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"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}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FinancialCharge.js","mappings":";;;;;;;AAMA;;AAEM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;
|
|
1
|
+
{"version":3,"file":"FinancialCharge.js","mappings":";;;;;;;AAMA;;AAEM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;EAC3C;;;;;;EAMAC,UAAU,CAACC,UAAD,EAAmB;IAC3B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,6BAAvD,CAAP;EACD;EAED;;;;;;;;EAMAG,aAAa,CAACH,UAAD,EAAmB;IAC9B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,kDAAvD,CAAP;EACD;EAED;;;;;;;;;;;EASAI,4BAA4B,CAACJ,UAAD,EAAqBK,OAArB,EAA0D;IACpF,OAAO,KAAKJ,KAAL,CAAWK,KAAX,CAAiB,6BAA6BN,UAAU,6CAAxD,EAAuGK,OAAvG,CAAP;EACD;;AAhC0C;;QAAhCR,e,GAAAA,e","names":["FinancialCharge","Resource","getBalance","idExercice","axios","$get","getCandidates","createNonDeductibleInterests","payload","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/FinancialCharge.ts"],"sourcesContent":["import {\n CreatedNonDeductibleInterests,\n CreateNonDeductibleInterests,\n ReadBalanceSheetTransaction,\n ReadFinancialChargesBalance,\n} from '../..';\nimport { Resource } from '../Resource';\n\nexport class FinancialCharge extends Resource {\n /**\n * Return the current balance for the client on accounts 108100 & 101100\n * If the balance is negative then proceed to next step. Else nothing to do\n * @param idExercice Exercice id\n * @returns The computed balance\n */\n getBalance(idExercice: number): Promise<ReadFinancialChargesBalance> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/financial-charges/balances`);\n }\n\n /**\n * Return the list of transaction with their date of amout, for the accounts 16, 59 and 512\n * The client will choose loan, overdraft transactions so we can compute his non deductible interests\n * @param idExercice Exercice id\n * @returns Array of BalanceSheetTransaction to choose from\n */\n getCandidates(idExercice: number): Promise<Array<ReadBalanceSheetTransaction>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/financial-charges/loan-and-overdraft-candidates`);\n }\n\n /**\n * Compute the non deductible interests for the client depending on the picked transactions\n * Will process automatically the value of the balance sheet module depending on the list of transaction ids\n * @param idExercice Exercice id\n * @param payload { transactionIds: number } The list of transactions the client has pick as loan and overdrafts\n * @returns CreatedNonDeductibleInterests\n * Include question and its value if the client picked transaction ids\n * Else return hasNonDeductibleInterests false\n */\n createNonDeductibleInterests(idExercice: number, payload: CreateNonDeductibleInterests): Promise<CreatedNonDeductibleInterests> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/financial-charges/non-deductible-interests`, payload);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FirstStep.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;
|
|
1
|
+
{"version":3,"file":"FirstStep.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;EACrCC,GAAG;IACD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oBAAhB,CAAP;EACD;;AAHoC;;QAA1BJ,S,GAAAA,S","names":["FirstStep","Resource","get","axios","$get"],"sourceRoot":"","sources":["../../../ts/api/resources/FirstStep.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { IFirstStep } from '../../types';\n\nexport class FirstStep extends Resource {\n get(): Promise<IFirstStep> {\n return this.axios.$get('/society/firstStep');\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralLedger.js","mappings":";;;;;;;AAEA;;AAEM,MAAOA,aAAP,SAA6BC,kBAA7B,CAAqC;
|
|
1
|
+
{"version":3,"file":"GeneralLedger.js","mappings":";;;;;;;AAEA;;AAEM,MAAOA,aAAP,SAA6BC,kBAA7B,CAAqC;EACzCC,YAAY,CAACC,MAAD,EAA2B;IACrC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,gBAAhB,EAAkC;MACvCF;IADuC,CAAlC,CAAP;EAGD;;EAEDG,mBAAmB,CAACH,MAAD,EAA2B;IAC5C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,wBAAhB,EAA0C;MAC/CF;IAD+C,CAA1C,CAAP;EAGD;;EAEDI,MAAM,CAACJ,MAAD,EAA2B;IAC/B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oBAAhB,EAAsC;MAC3CF,MAD2C;MAE3CK,YAAY,EAAE,aAF6B;MAG3CC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAHkC,CAAtC,CAAP;EAOD;;EAEDC,aAAa,CAACR,MAAD,EAA2B;IACtC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,4BAAhB,EAA8C;MACnDF,MADmD;MAEnDK,YAAY,EAAE,aAFqC;MAGnDC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAH0C,CAA9C,CAAP;EAOD;;EAEDE,MAAM,CAACT,MAAD,EAA2B;IAC/B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oBAAhB,EAAsC;MAC3CF,MAD2C;MAE3CK,YAAY,EAAE,aAF6B;MAG3CC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAHkC,CAAtC,CAAP;EAOD;;EAEDG,aAAa,CAACV,MAAD,EAA2B;IACtC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,4BAAhB,EAA8C;MACnDF,MADmD;MAEnDK,YAAY,EAAE,aAFqC;MAGnDC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAH0C,CAA9C,CAAP;EAOD;;AAnDwC;;QAA9BV,a,GAAAA,a","names":["GeneralLedger","Resource","getBySociety","params","axios","$get","getBalanceBySociety","getCsv","responseType","headers","Accept","getBalanceCsv","getPdf","getBalancePdf"],"sourceRoot":"","sources":["../../../ts/api/resources/GeneralLedger.ts"],"sourcesContent":["import { BasePaginateInterface, IGeneralLedgerAccount } 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}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Immobilization.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,cAAP,SAA8BC,kBAA9B,CAAsC;
|
|
1
|
+
{"version":3,"file":"Immobilization.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,cAAP,SAA8BC,kBAA9B,CAAsC;EAC1CC,2BAA2B,CAACC,MAAD,EAA+B;IACxD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,aAAaF,MAAM,CAACG,UAAU,2BAA9C,EAA2E,EAA3E,CAAP;EACD;;EAEDC,8BAA8B,CAACJ,MAAD,EAA+B;IAC3D,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,aAAaF,MAAM,CAACG,UAAU,+BAA9C,EAA+E;MACpFE,YAAY,EAAE,aADsE;MAEpFC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAF2E,CAA/E,CAAP;EAMD;;EAEDC,kBAAkB,CAACR,MAAD,EAA8B;IAC9C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,YAAYF,MAAM,CAACS,SAAS,kBAA5C,EAAgE,EAAhE,CAAP;EACD;;EAEDC,oBAAoB,CAACV,MAAD,EAA0C;IAC5D,OAAO,KAAKC,KAAL,CAAWU,OAAX,CAAmB,YAAYX,MAAM,CAACS,SAAS,mBAAmBT,MAAM,CAACY,EAAE,EAA3E,CAAP;EACD;;EAEDC,oBAAoB,CAACJ,SAAD,EAAoBK,OAApB,EAAqD;IACvE,OAAO,KAAKb,KAAL,CAAWc,KAAX,CAAiB,YAAYN,SAAS,iBAAtC,EAAyDK,OAAzD,CAAP;EACD;;EAEDE,GAAG,CAACP,SAAD,EAAoBQ,gBAApB,EAA8CH,OAA9C,EAAoF;IACrF,OAAO,KAAKb,KAAL,CAAWiB,IAAX,CAAgB,YAAYT,SAAS,mBAAmBQ,gBAAgB,MAAxE,EAAgFH,OAAhF,CAAP;EACD;;AA5ByC;;QAA/BjB,c,GAAAA,c","names":["Immobilization","Resource","getImmobilizationsInventory","params","axios","$get","idExercice","getImmobilizationsInventoryPdf","responseType","headers","Accept","getImmobilizations","idSociety","deleteImmobilization","$delete","id","createImmobilization","payload","$post","end","idImmobilization","$put"],"sourceRoot":"","sources":["../../../ts/api/resources/Immobilization.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n ReadFormattedImmobilizationsByAccount, ReadHydratedImmobilization, CreateImmobilizationForm, CreateEndOfImmobilizationForm,\n} from '../../types';\n\nexport class Immobilization extends Resource {\n getImmobilizationsInventory(params: { idExercice: number }): Promise<ReadFormattedImmobilizationsByAccount | Error> {\n return this.axios.$get(`/exercice/${params.idExercice}/immobilizationsInventory`, {});\n }\n\n getImmobilizationsInventoryPdf(params: { idExercice: number }): Promise<Buffer> {\n return this.axios.$get(`/exercice/${params.idExercice}/immobilizationsInventory/pdf`, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getImmobilizations(params: { idSociety: number }): Promise<ReadHydratedImmobilization[]> {\n return this.axios.$get(`/society/${params.idSociety}/immobilizations`, {});\n }\n\n deleteImmobilization(params: { idSociety: number, id: number }): Promise<boolean> {\n return this.axios.$delete(`/society/${params.idSociety}/immobilization/${params.id}`);\n }\n\n createImmobilization(idSociety: number, payload: CreateImmobilizationForm): Promise<ReadHydratedImmobilization> {\n return this.axios.$post(`/society/${idSociety}/immobilization`, payload);\n }\n\n end(idSociety: number, idImmobilization: number, payload: CreateEndOfImmobilizationForm): Promise<ReadHydratedImmobilization> {\n return this.axios.$put(`/society/${idSociety}/immobilization/${idImmobilization}/end`, payload);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IncomeAllocation.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,gBAAP,SAAgCC,kBAAhC,CAAwC;
|
|
1
|
+
{"version":3,"file":"IncomeAllocation.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,gBAAP,SAAgCC,kBAAhC,CAAwC;EAC5CC,gBAAgB,CAACC,UAAD,EAAmB;IACjC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,4CAA4CF,UAAU,EAAtE,CAAP;EACD;;EAEDG,0BAA0B,CAACH,UAAD,EAAqBI,QAArB,EAAuC;IAC/D,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,mDAAmDL,UAAU,EAA9E,EAAkFI,QAAlF,CAAP;EACD;;EAEDE,uBAAuB,CAACN,UAAD,EAAmB;IACxC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,mDAAmDF,UAAU,EAA7E,CAAP;EACD;;EAEDO,MAAM,CAACC,MAAD,EAA+B;IACnC,OAAO,KAAKP,KAAL,CAAWI,KAAX,CAAiB,oBAAjB,EAAuCG,MAAvC,CAAP;EACD;;EAEDC,GAAG,CAACT,UAAD,EAAmB;IACpB,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,8BAA8BF,UAAU,EAAxD,CAAP;EACD;;EAEDU,MAAM,CAACV,UAAD,EAAmB;IACvB,OAAO,KAAKC,KAAL,CAAWU,OAAX,CAAmB,8BAA8BX,UAAU,EAA3D,CAAP;EACD;;AAvB2C;;QAAjCH,gB,GAAAA,gB","names":["IncomeAllocation","Resource","getTypeAndAmount","idExercice","axios","$get","createAnnualGeneralMeeting","formData","$post","getAnnualGeneralMeeting","create","params","get","delete","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/IncomeAllocation.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateIncomeAllocation, IFile, TypeAndAmount, ReadIncomeAllocation, IAccountingEntry, ReadLibraryFile,\n} from '../../types';\n\nexport class IncomeAllocation extends Resource {\n getTypeAndAmount(idExercice: number): Promise<TypeAndAmount> {\n return this.axios.$get(`/incomeAllocation/typeAndAmount/exercice/${idExercice}`);\n }\n\n createAnnualGeneralMeeting(idExercice: number, formData: FormData): Promise<ReadLibraryFile> {\n return this.axios.$post(`/incomeAllocation/annualGeneralMeeting/exercice/${idExercice}`, formData);\n }\n\n getAnnualGeneralMeeting(idExercice: number): Promise<IFile | null> {\n return this.axios.$get(`/incomeAllocation/annualGeneralMeeting/exercice/${idExercice}`);\n }\n\n create(params: CreateIncomeAllocation): Promise<IAccountingEntry[]> {\n return this.axios.$post('/incomeAllocation/', params);\n }\n\n get(idExercice: number): Promise<ReadIncomeAllocation> {\n return this.axios.$get(`/incomeAllocation/exercice/${idExercice}`);\n }\n\n delete(idExercice: number): Promise<boolean> {\n return this.axios.$delete(`/incomeAllocation/exercice/${idExercice}`);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IncomeStatement.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;
|
|
1
|
+
{"version":3,"file":"IncomeStatement.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;EAC3CC,MAAM,CAACC,KAAD,EAA+B;IACnC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,sBAAhB,EAAwC;MAC7CC,MAAM,EAAEH,KADqC;MAE7CI,YAAY,EAAE,aAF+B;MAG7CC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAHoC,CAAxC,CAAP;EAOD;;AAT0C;;QAAhCT,e,GAAAA,e","names":["IncomeStatement","Resource","getPdf","query","axios","$get","params","responseType","headers","Accept"],"sourceRoot":"","sources":["../../../ts/api/resources/IncomeStatement.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryIncomeStatementPdf } from '../../types';\n\nexport class IncomeStatement extends Resource {\n getPdf(query: QueryIncomeStatementPdf) : Promise<Buffer> {\n return this.axios.$get('/incomeStatement/pdf', {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalInvoicing.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,iBAAP,SAAiCC,kBAAjC,CAAyC;
|
|
1
|
+
{"version":3,"file":"InternalInvoicing.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,iBAAP,SAAiCC,kBAAjC,CAAyC;EAC7CC,MAAM,CAACC,MAAD,EAAgC;IACpC,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,oBAAjB,EAAuCF,MAAvC,CAAP;EACD;;EACDG,QAAQ,CAACH,MAAD,EAAmC;IACzC,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,wBAAjB,EAAyCE,gCAC3CJ,MAD2C,GACrC;MACTK,YAAY,EAAE,aADL;MAETC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFA,CADqC,CAAzC,CAAP;EAOD;;EACDC,UAAU,CAACR,MAAD,EAAoC;IAC5C,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,+BAAjB,EAAkDF,MAAlD,CAAP;EACD;;AAf4C;;QAAlCH,iB,GAAAA,iB","names":["InternalInvoicing","Resource","create","params","axios","$post","download","Object","responseType","headers","Accept","regenerate"],"sourceRoot":"","sources":["../../../ts/api/resources/InternalInvoicing.ts"],"sourcesContent":["import {\n CreateInternalInvoicing, CreateInternalInvoicing2in, RegenerateInternalInvoicing,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class InternalInvoicing extends Resource {\n create(params: CreateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing', params);\n }\n download(params: CreateInternalInvoicing2in): Promise<Buffer> {\n return this.axios.$post('/internalInvoicing/2in', {\n ...params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n regenerate(params: RegenerateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing/regenerate', params);\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Journal.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;
|
|
1
|
+
{"version":3,"file":"Journal.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,SAAS,CAACC,UAAD,EAA6BC,MAA7B,EAAiD;IACxD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,mCAAmCH,UAAU,EAA7D,EAAiE;MACtEC,MADsE;MAEtEG,YAAY,EAAE;IAFwD,CAAjE,CAAP;EAID;;AANkC;;QAAxBP,O,GAAAA,O","names":["Journal","Resource","getExport","exportType","params","axios","$get","responseType"],"sourceRoot":"","sources":["../../../ts/api/resources/Journal.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { Journals, QueryJournal } from '../../types';\n\nexport class Journal extends Resource {\n getExport(exportType: 'pdf' | 'json', params: QueryJournal): Promise<Journals | Buffer> {\n return this.axios.$get(`/balance-sheets/journals/export/${exportType}`, {\n params,\n responseType: 'arraybuffer',\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KilometricAllowance.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,mBAAP,SAAmCC,kBAAnC,CAA2C;
|
|
1
|
+
{"version":3,"file":"KilometricAllowance.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,mBAAP,SAAmCC,kBAAnC,CAA2C;EAC/CC,QAAQ,CAACC,UAAD,EAAqBC,OAArB,EAAiE;IACvE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,aAAaH,UAAU,gCAAxC,EAA0EC,OAA1E,CAAP;EACD;;AAH8C;;QAApCJ,mB,GAAAA,mB","names":["KilometricAllowance","Resource","validate","idExercice","payload","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/KilometricAllowance.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { CreateKilometricAllowanceValidation } from '../../types';\n\nexport class KilometricAllowance extends Resource {\n validate(idExercice: number, payload: CreateKilometricAllowanceValidation): Promise<boolean> {\n return this.axios.$post(`/exercice/${idExercice}/kilometric-allowance/validate`, payload);\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalForm.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;
|
|
1
|
+
{"version":3,"file":"LegalForm.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,SAAP,SAAyBC,kBAAzB,CAAiC;EACrCC,MAAM;IACJ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,YAAhB,CAAP;EACD;;AAHoC;;QAA1BJ,S,GAAAA,S","names":["LegalForm","Resource","getAll","axios","$get"],"sourceRoot":"","sources":["../../../ts/api/resources/LegalForm.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { ILegalForm } from '../../types';\n\nexport class LegalForm extends Resource {\n getAll(): Promise<ILegalForm> {\n return this.axios.$get('/legalForm');\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Letter.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,MAAP,SAAsBC,kBAAtB,CAA8B;
|
|
1
|
+
{"version":3,"file":"Letter.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,MAAP,SAAsBC,kBAAtB,CAA8B;EAClCC,MAAM,CAACC,MAAD,EAAqB;IACzB,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,UAAjB,EAA6BF,MAA7B,CAAP;EACD;;AAHiC;;QAAvBH,M,GAAAA,M","names":["Letter","Resource","create","params","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/Letter.ts"],"sourcesContent":["import {\n BasePaginate, CreateLetter, ReadReport,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Letter extends Resource {\n create(params: CreateLetter): Promise<BasePaginate<ReadReport> | Error> {\n return this.axios.$post('/letters', params);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Library.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;
|
|
1
|
+
{"version":3,"file":"Library.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,GAAG,CAACC,MAAD,EAAyB;IAC1B,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,eAAhB,EAAiC;MAAEF;IAAF,CAAjC,CAAP;EACD;;EAEDG,QAAQ,CAACC,SAAD,EAAoBJ,MAApB,EAA+CK,SAAS,GAAG,KAA3D,EAAgE;IACtE,OAAO,KAAKJ,KAAL,CAAWC,IAAX,CAAgB,YAAYE,SAAS,gBAArC,EAAqDE;MAExDN;IAFwD,GAGpDK,SAAS,GAAG;MACdE,YAAY,EAAE,aADA;MAEdC,OAAO,EAAE;QACPC,MAAM,EAAE;MADD;IAFK,CAAH,GAKT,EARoD,CAArD,CAAP;EAUD;;AAhBkC;;QAAxBZ,O,GAAAA,O","names":["Library","Resource","get","params","axios","$get","download","idSociety","isPdfFile","Object","responseType","headers","Accept"],"sourceRoot":"","sources":["../../../ts/api/resources/Library.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryLibraryFile, IGedFile, QueryDownloadFile } from '../../types';\n\nexport class Library extends Resource {\n get(params: QueryLibraryFile): Promise<IGedFile | null> {\n return this.axios.$get('/library/file', { params });\n }\n\n download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {\n return this.axios.$get(`/library/${idSociety}/file/download`,\n {\n params,\n ...(isPdfFile ? {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n } : {}),\n });\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loan.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,IAAP,SAAoBC,kBAApB,CAA4B;
|
|
1
|
+
{"version":3,"file":"Loan.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,IAAP,SAAoBC,kBAApB,CAA4B;EAChCC,QAAQ;IACN,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,QAAhB,CAAP;EACD;;EAEDC,OAAO,CAACC,MAAD,EAA2B;IAChC,OAAO,KAAKH,KAAL,CAAWC,IAAX,CAAgB,SAASE,MAAM,CAACC,MAAM,EAAtC,CAAP;EACD;;EAEDC,UAAU,CAACC,OAAD,EAAwB;IAChC,OAAO,KAAKN,KAAL,CAAWO,KAAX,CAAiB,OAAjB,EAA0BD,OAA1B,CAAP;EACD;;EAEDE,UAAU,CAACJ,MAAD,EAAiBE,OAAjB,EAAwC;IAChD,OAAO,KAAKN,KAAL,CAAWS,IAAX,CAAgB,SAASL,MAAM,EAA/B,EAAmCE,OAAnC,CAAP;EACD;;EAEDI,UAAU,CAACN,MAAD,EAAe;IACvB,OAAO,KAAKJ,KAAL,CAAWW,OAAX,CAAmB,SAASP,MAAM,EAAlC,CAAP;EACD;;AAnB+B;;QAArBP,I,GAAAA,I","names":["Loan","Resource","getLoans","axios","$get","getLoan","params","idLoan","createLoan","payload","$post","updateLoan","$put","deleteLoan","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/Loan.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { CreateLoanForm, ILoan, UpdateLoanForm } 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(payload: CreateLoanForm): Promise<ILoan> {\n return this.axios.$post('/loan', payload);\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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Log.js","mappings":";;;;;;;AAAA;;AACA;;AAMM,MAAOA,GAAP,SAAmBC,kBAAnB,CAA2B;
|
|
1
|
+
{"version":3,"file":"Log.js","mappings":";;;;;;;AAAA;;AACA;;AAMM,MAAOA,GAAP,SAAmBC,kBAAnB,CAA2B;EAC/BC,mBAAmB,CAACC,MAAD,EAAe;IAChC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,UAAUF,MAAM,OAAhC,EAAyC;MAAEG,MAAM,EAAE;QAAEC,SAAS,EAAEC,eAAQC,KAArB;QAA4BC,OAAO,EAAE;MAArC;IAAV,CAAzC,CAAP;EACD;;AAH8B;;QAApBV,G,GAAAA,G","names":["Log","Resource","getLastIpsPaginated","idUser","axios","$get","params","idLogType","LogType","LOGIN","orderBy"],"sourceRoot":"","sources":["../../../ts/api/resources/Log.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n ILog,\n LogType,\n} from '../../types';\n\nexport class Log extends Resource {\n getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>> {\n return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MachineLearning.js","mappings":";;;;;;;AAIA;;AAEM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;
|
|
1
|
+
{"version":3,"file":"MachineLearning.js","mappings":";;;;;;;AAIA;;AAEM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;EAC3CC,yBAAyB;IACvB,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,gCAAjB,CAAP;EACD;;EACDC,sCAAsC,CAACC,aAAD,EAAwBC,MAAxB,EAA2D;IAC/F,OAAO,KAAKJ,KAAL,CAAWC,KAAX,CAAiB,+CAA+CE,aAAa,EAA7E,EAAiF;MACtFE,SAAS,EAAED,MAAM,CAACC,SADoE;MAEtFC,OAAO,EAAEF,MAAM,CAACE;IAFsE,CAAjF,CAAP;EAID;;AAT0C;;QAAhCT,e,GAAAA,e","names":["MachineLearning","Resource","machineLearningAnnotation","axios","$post","annotateBankAccountWithMachineLearning","idBankAccount","params","startDate","endDate"],"sourceRoot":"","sources":["../../../ts/api/resources/MachineLearning.ts"],"sourcesContent":["import {\n GetTransactionsBetweenDates,\n ResultCreateMachineLearningAnnotation,\n} from '../..';\nimport { Resource } from '../Resource';\n\nexport class MachineLearning extends Resource {\n machineLearningAnnotation(): Promise<ResultCreateMachineLearningAnnotation> {\n return this.axios.$post('/transactions/machine-learning');\n }\n annotateBankAccountWithMachineLearning(idBankAccount: number, params: GetTransactionsBetweenDates): Promise<ResultCreateMachineLearningAnnotation> {\n return this.axios.$post(`/transactions/machine-learning/bankAccounts/${idBankAccount}`, {\n startDate: params.startDate,\n endDate: params.endDate,\n });\n }\n}"]}
|
package/js/api/resources/Mail.js
CHANGED
|
@@ -23,7 +23,9 @@ class Mail extends _Resource.Resource {
|
|
|
23
23
|
cancelToken
|
|
24
24
|
} : {}), {
|
|
25
25
|
params: Object.assign(Object.assign({}, params), {
|
|
26
|
-
idUser
|
|
26
|
+
idUser,
|
|
27
|
+
isProcessed: false,
|
|
28
|
+
isSent: false
|
|
27
29
|
})
|
|
28
30
|
}));
|
|
29
31
|
}
|
|
@@ -34,49 +36,117 @@ class Mail extends _Resource.Resource {
|
|
|
34
36
|
} : {}), {
|
|
35
37
|
params: Object.assign(Object.assign({}, params), {
|
|
36
38
|
idUser,
|
|
37
|
-
|
|
39
|
+
isProcessed: false,
|
|
40
|
+
isSent: false,
|
|
41
|
+
isWithoutSociety: true
|
|
38
42
|
})
|
|
39
43
|
}));
|
|
40
44
|
}
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
getPaginatedProcessedForUser(idUser, params, cancelToken) {
|
|
43
47
|
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
|
|
44
48
|
cancelToken
|
|
45
49
|
} : {}), {
|
|
46
50
|
params: Object.assign(Object.assign({}, params), {
|
|
47
51
|
idUser,
|
|
48
|
-
|
|
52
|
+
isProcessed: true,
|
|
53
|
+
isSent: false
|
|
49
54
|
})
|
|
50
55
|
}));
|
|
51
56
|
}
|
|
52
57
|
|
|
53
|
-
|
|
58
|
+
getPaginatedSentForUser(idUserWhoAnswered, params, cancelToken) {
|
|
54
59
|
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
|
|
55
60
|
cancelToken
|
|
56
61
|
} : {}), {
|
|
57
|
-
params: Object.assign({
|
|
62
|
+
params: Object.assign(Object.assign({}, params), {
|
|
63
|
+
idUserWhoAnswered,
|
|
64
|
+
isProcessed: false,
|
|
65
|
+
isSent: true,
|
|
66
|
+
isDraft: false
|
|
67
|
+
})
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
getPaginatedImportantForUser(idUser, params, cancelToken) {
|
|
72
|
+
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
|
|
73
|
+
cancelToken
|
|
74
|
+
} : {}), {
|
|
75
|
+
params: Object.assign(Object.assign({}, params), {
|
|
76
|
+
idUser,
|
|
77
|
+
isProcessed: false,
|
|
78
|
+
isImportant: true
|
|
79
|
+
})
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
getPaginatedDraftForUser(idUserWhoAnswered, params, cancelToken) {
|
|
84
|
+
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
|
|
85
|
+
cancelToken
|
|
86
|
+
} : {}), {
|
|
87
|
+
params: Object.assign(Object.assign({}, params), {
|
|
88
|
+
idUserWhoAnswered,
|
|
89
|
+
isProcessed: false,
|
|
90
|
+
isSent: true,
|
|
91
|
+
isDraft: true
|
|
92
|
+
})
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
getPaginatedTrashedForUser(idUser, params, cancelToken) {
|
|
97
|
+
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
|
|
98
|
+
cancelToken
|
|
99
|
+
} : {}), {
|
|
100
|
+
params: Object.assign(Object.assign({}, params), {
|
|
101
|
+
idUser,
|
|
102
|
+
isDeleted: true,
|
|
103
|
+
withDeleted: true
|
|
104
|
+
})
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
getPaginatedBySociety(idSociety, params, cancelToken) {
|
|
109
|
+
return this.axios.$get('/mails/paginated', Object.assign(Object.assign({}, cancelToken ? {
|
|
110
|
+
cancelToken
|
|
111
|
+
} : {}), {
|
|
112
|
+
params: Object.assign(Object.assign({}, params), {
|
|
58
113
|
idSociety
|
|
59
|
-
}
|
|
60
|
-
|
|
114
|
+
})
|
|
115
|
+
}));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
countProcessedByUser(idUser, sumOfSlidingDays, cancelToken) {
|
|
119
|
+
return this.axios.$get('/mails/count-processed-by-user', Object.assign(Object.assign({}, cancelToken ? {
|
|
120
|
+
cancelToken
|
|
121
|
+
} : {}), {
|
|
122
|
+
params: Object.assign({
|
|
123
|
+
idUser
|
|
124
|
+
}, sumOfSlidingDays ? {
|
|
125
|
+
sumOfSlidingDays
|
|
61
126
|
} : {})
|
|
62
127
|
}));
|
|
63
128
|
}
|
|
64
129
|
|
|
65
|
-
|
|
66
|
-
return this.axios.$get('/mails/
|
|
130
|
+
getAnsweringTimeByUser(idUser, sumOfSlidingDays, cancelToken) {
|
|
131
|
+
return this.axios.$get('/mails/answering-time-by-user', Object.assign(Object.assign({}, cancelToken ? {
|
|
67
132
|
cancelToken
|
|
68
133
|
} : {}), {
|
|
69
|
-
|
|
70
|
-
|
|
134
|
+
params: Object.assign({
|
|
135
|
+
idUser
|
|
136
|
+
}, sumOfSlidingDays ? {
|
|
137
|
+
sumOfSlidingDays
|
|
138
|
+
} : {})
|
|
71
139
|
}));
|
|
72
140
|
}
|
|
73
141
|
|
|
74
|
-
|
|
142
|
+
countInboxByUser(idUser, cancelToken) {
|
|
75
143
|
return this.axios.$get('/mails/count-unprocessed-by-user', Object.assign(Object.assign({}, cancelToken ? {
|
|
76
144
|
cancelToken
|
|
77
145
|
} : {}), {
|
|
78
|
-
|
|
79
|
-
|
|
146
|
+
params: {
|
|
147
|
+
idUser,
|
|
148
|
+
isSent: false
|
|
149
|
+
}
|
|
80
150
|
}));
|
|
81
151
|
}
|
|
82
152
|
|
|
@@ -84,13 +154,15 @@ class Mail extends _Resource.Resource {
|
|
|
84
154
|
return this.axios.$get('/mails/count-unprocessed-by-user', Object.assign(Object.assign({}, cancelToken ? {
|
|
85
155
|
cancelToken
|
|
86
156
|
} : {}), {
|
|
87
|
-
|
|
88
|
-
|
|
157
|
+
params: {
|
|
158
|
+
idUser,
|
|
159
|
+
isWithoutSociety: true
|
|
160
|
+
}
|
|
89
161
|
}));
|
|
90
162
|
}
|
|
91
163
|
|
|
92
|
-
update(id, payload) {
|
|
93
|
-
return this.axios.patch(`/mails/${id}`, payload);
|
|
164
|
+
update(id, payload, params) {
|
|
165
|
+
return this.axios.patch(`/mails/${id}`, Object.assign(Object.assign({}, payload), params));
|
|
94
166
|
}
|
|
95
167
|
|
|
96
168
|
delete(idMail) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mail.js","mappings":";;;;;;;AACA;;
|
|
1
|
+
{"version":3,"file":"Mail.js","mappings":"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","names":["Mail","Resource","create","payload","axios","$post","get","id","params","$get","getPaginatedInboxForUser","idUser","cancelToken","Object","isProcessed","isSent","getPaginatedToBeClassifiedForUser","isWithoutSociety","getPaginatedProcessedForUser","getPaginatedSentForUser","idUserWhoAnswered","isDraft","getPaginatedImportantForUser","isImportant","getPaginatedDraftForUser","getPaginatedTrashedForUser","isDeleted","withDeleted","getPaginatedBySociety","idSociety","countProcessedByUser","sumOfSlidingDays","getAnsweringTimeByUser","countInboxByUser","countToBeClassifiedByUser","update","patch","delete","idMail","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/Mail.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n UpdateMailPayload,\n QueryMail,\n QueryPaginatedMail,\n IMail,\n CreateMailParams,\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 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(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: 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 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\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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MealExpense.js","mappings":";;;;;;;AACA;;AAGM,MAAOA,WAAP,SAA2BC,kBAA3B,CAAmC;
|
|
1
|
+
{"version":3,"file":"MealExpense.js","mappings":";;;;;;;AACA;;AAGM,MAAOA,WAAP,SAA2BC,kBAA3B,CAAmC;EACvC;;;;;;EAMAC,gBAAgB,CAACC,UAAD,EAAmB;IACjC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,0BAAvD,CAAP;EACD;EAED;;;;;;;;;EAOAG,MAAM,CAACH,UAAD,EAAmB;IACvB,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAA6BF,UAAU,gBAAvD,CAAP;EACD;EAED;;;;;;;;;;;;;EAWAI,iBAAiB,CAACJ,UAAD,EAAqBK,OAArB,EAA+C;IAC9D,OAAO,KAAKJ,KAAL,CAAWK,KAAX,CAAiB,6BAA6BN,UAAU,gBAAxD,EAA0EK,OAA1E,CAAP;EACD;;AAnCsC;;QAA5BR,W,GAAAA,W","names":["MealExpense","Resource","getAllCandidates","idExercice","axios","$get","getAll","processCandidates","payload","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/MealExpense.ts"],"sourcesContent":["import { CreateMealExpense, ReadBalanceSheetTransaction, ReadMealExpense } from '../..';\nimport { Resource } from '../Resource';\nimport { BalanceSheetModule } from './BalanceSheetModule';\n\nexport class MealExpense extends Resource {\n /**\n * Get all possible transactions to be processed in meal expenses\n * @param idExercice Exercice id\n * @returns Array<ReadBalanceSheetTransaction>\n * A list of possible candidate to meal expenses formatted into balance sheet transactions.\n */\n getAllCandidates(idExercice: number): Promise<Array<ReadBalanceSheetTransaction>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expense-candidates`);\n }\n\n /**\n * Get all processed meal expenses for this exercice.\n * @param idExercice\n * @returns ReadMealExpense\n * Result is parsed to provide how many meal expenses are processed for this exercice. The amount corresponding, and the deductible amount computed.\n * Also provide the transaction lists.\n */\n getAll(idExercice: number): Promise<ReadMealExpense> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expenses`);\n }\n\n /**\n * Transform given transactions into meal expenses.\n * @param idExercice Exercice id\n * @param payload { transactionIds: Array<number> }\n * @returns BalanceSheetModule\n * The updated balance sheet module.\n * Set hasMealExpenses to true if all transactions were processed.\n * Set hasMealExpenses to false if no transaction was provided.\n *\n * Fails if exercice is unknown, or if transactions are not in exercice or if transactions are not valid candidate for meal expenses.\n */\n processCandidates(idExercice: number, payload: CreateMealExpense): Promise<BalanceSheetModule> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/meal-expenses`, payload);\n }\n}"]}
|