@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":"clean.js","mappings":";;;;;QAGgBA,a,GAAAA,a;AAHhB,MAAMC,cAAc,GAAG,CAAC,QAAD,EAAW,aAAX,EAA0B,SAA1B,EAAqC,cAArC,EAAqD,OAArD,EAA8D,MAA9D,EAAsE,QAAtE,EAAgF,MAAhF,EAAwF,OAAxF,EAAiG,MAAjG,CAAvB;AACO,MAAMC,sBAAsB,WAAtBA,sBAAsB,GAAG,CAA/B;;AAED,SAAUF,aAAV,CAAwBG,MAAxB,EAAsC;
|
|
1
|
+
{"version":3,"file":"clean.js","mappings":";;;;;QAGgBA,a,GAAAA,a;AAHhB,MAAMC,cAAc,GAAG,CAAC,QAAD,EAAW,aAAX,EAA0B,SAA1B,EAAqC,cAArC,EAAqD,OAArD,EAA8D,MAA9D,EAAsE,QAAtE,EAAgF,MAAhF,EAAwF,OAAxF,EAAiG,MAAjG,CAAvB;AACO,MAAMC,sBAAsB,WAAtBA,sBAAsB,GAAG,CAA/B;;AAED,SAAUF,aAAV,CAAwBG,MAAxB,EAAsC;EAC1C,OAAOA,MAAM,CACVC,WADI,GAEJC,OAFI,CAEI,cAFJ,EAEoB,EAFpB,EAEwB;EAFxB,CAGJC,KAHI,CAGE,GAHF,EAIJC,MAJI,CAIIC,GAAD,IAASA,GAAG,CAACC,MAAJ,IAAcP,sBAAd,IAAwC,CAACD,cAAc,CAACS,QAAf,CAAwBF,GAAxB,CAJrD,EAImF;EAJnF,CAKJG,IALI,CAKC,GALD,EAMJN,OANI,CAMI,UANJ,EAMgB,EANhB,CAAP,CAD0C,CAOd;AAC7B","names":["cleanForRules","wordsToExclude","minWordsForDesignation","string","toLowerCase","replace","split","filter","str","length","includes","join"],"sourceRoot":"","sources":["../../../ts/utils/stringUtils/clean.ts"],"sourcesContent":["const wordsToExclude = ['cheque', 'prelevement', 'cheques', 'prelevements', 'prlvt', 'prlv', 'valeur', 'euro', 'solde', 'dont'];\nexport const minWordsForDesignation = 3;\n\nexport function cleanForRules(string: string) : string {\n return string\n .toLowerCase()\n .replace(/[^a-z0-9 ]/gi, '') // Conservation des espaces & caractères alphanumérique\n .split(' ')\n .filter((str) => str.length >= minWordsForDesignation && !wordsToExclude.includes(str)) // Suppression des mots à exclure et désignation inférieur à 3 char\n .join(' ')\n .replace(/[^a-z]/gi, ''); // Conservation des caractères alphanumérique\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","mappings":";;;;;;;;AAAA;
|
|
1
|
+
{"version":3,"file":"index.js","mappings":";;;;;;;;AAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA","names":[],"sourceRoot":"","sources":["../../../ts/utils/stringUtils/index.ts"],"sourcesContent":["export * from './clean';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.transform.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,cAAc,GAAIC,KAAD,IAAe;
|
|
1
|
+
{"version":3,"file":"boolean.transform.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,cAAc,GAAIC,KAAD,IAAe;EACpC,IAAIA,KAAK,KAAK,IAAV,IAAkBA,KAAK,KAAKC,SAAhC,EAA2C;IACzC,OAAOA,SAAP;EACD;;EACD,IAAI,OAAOD,KAAP,KAAiB,SAArB,EAAgC;IAC9B,OAAOA,KAAP;EACD;;EACD,IAAI,CAAC,MAAD,EAAS,IAAT,EAAe,KAAf,EAAsB,GAAtB,EAA2BE,QAA3B,CAAoCF,KAAK,CAACG,WAAN,EAApC,CAAJ,EAA8D;IAC5D,OAAO,IAAP;EACD;;EACD,IAAI,CAAC,OAAD,EAAU,KAAV,EAAiB,IAAjB,EAAuB,GAAvB,EAA4BD,QAA5B,CAAqCF,KAAK,CAACG,WAAN,EAArC,CAAJ,EAA+D;IAC7D,OAAO,KAAP;EACD;;EACD,OAAOF,SAAP;AACD,CAdD;;AAgBA,MAAMG,SAAS,GAAG,MAAK;EACrB,MAAMC,OAAO,GAAG,iCACd,CAAC;IAAEL;EAAF,CAAD,KAAeA,KADD,EAEd;IACEM,WAAW,EAAE;EADf,CAFc,CAAhB;;EAMA,MAAMC,OAAO,GAAG,CAACC,MAAD,EAAcC,GAAd,KAA8B,iCAC5C,CAAC;IAAEC;EAAF,CAAD,KAAaX,cAAc,CAACW,GAAG,CAACD,GAAD,CAAJ,CADiB,EAE5C;IACEE,WAAW,EAAE;EADf,CAF4C,EAK5CH,MAL4C,EAKpCC,GALoC,CAA9C;;EAMA,OAAO,CAACD,MAAD,EAAcC,GAAd,KAA6B;IAClCJ,OAAO,CAACG,MAAD,EAASC,GAAT,CAAP;IACAF,OAAO,CAACC,MAAD,EAASC,GAAT,CAAP;EACD,CAHD;AAID,CAjBD;;QAmBSL,S,GAAAA,S","names":["valueToBoolean","value","undefined","includes","toLowerCase","ToBoolean","toPlain","toPlainOnly","toClass","target","key","obj","toClassOnly"],"sourceRoot":"","sources":["../../../ts/utils/transforms/boolean.transform.ts"],"sourcesContent":["import { Transform } from 'class-transformer';\n\nconst valueToBoolean = (value: any) => {\n if (value === null || value === undefined) {\n return undefined;\n }\n if (typeof value === 'boolean') {\n return value;\n }\n if (['true', 'on', 'yes', '1'].includes(value.toLowerCase())) {\n return true;\n }\n if (['false', 'off', 'no', '0'].includes(value.toLowerCase())) {\n return false;\n }\n return undefined;\n};\n\nconst ToBoolean = () => {\n const toPlain = Transform(\n ({ value }) => value,\n {\n toPlainOnly: true,\n },\n );\n const toClass = (target: any, key: string) => Transform(\n ({ obj }) => valueToBoolean(obj[key]),\n {\n toClassOnly: true,\n },\n )(target, key);\n return (target: any, key: string) => {\n toPlain(target, key);\n toClass(target, key);\n };\n};\n\nexport { ToBoolean };"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formattedDateString.validator.js","mappings":";;;;;QAIgBA,qB,GAAAA,qB;;AAJhB;;AAIM,SAAUA,qBAAV,CAAgCC,iBAAhC,EAAqE;
|
|
1
|
+
{"version":3,"file":"formattedDateString.validator.js","mappings":";;;;;QAIgBA,qB,GAAAA,qB;;AAJhB;;AAIM,SAAUA,qBAAV,CAAgCC,iBAAhC,EAAqE;EACzE,OAAO,SAASC,SAAT,CAAmBC,MAAnB,EAAgCC,YAAhC,EAAoD;IACzD,uCAAkB;MAChBC,IAAI,EAAE,uBADU;MAEhBC,MAAM,EAAEH,MAAM,CAACI,WAFC;MAGhBH,YAHgB;MAIhBI,OAAO;QACLC,OAAO,EAAE,GAAGL,YAAY;MADnB,GAEFH,iBAFE,CAJS;MAQhBC,SAAS,EAAE;QACTQ,QAAQ,CAACC,KAAD,EAAaC,IAAb,EAAsC;UAC5C,MAAMC,SAAS,GAAG,mMAAlB;UACA,OAAO,OAAOF,KAAP,KAAiB,QAAjB,IACJE,SAAS,CAACC,IAAV,CAAeH,KAAf,CADH;QAED;;MALQ;IARK,CAAlB;EAgBD,CAjBD;AAkBD","names":["IsFormattedDateString","validationOptions","validator","object","propertyName","name","target","constructor","options","message","validate","value","args","dateRegex","test"],"sourceRoot":"","sources":["../../../ts/utils/validators/formattedDateString.validator.ts"],"sourcesContent":["import {\n registerDecorator, ValidationArguments, ValidationOptions,\n} from 'class-validator';\n\nexport function IsFormattedDateString(validationOptions?: ValidationOptions) {\n return function validator(object: any, propertyName: string) {\n registerDecorator({\n name: 'IsFormattedDateString',\n target: object.constructor,\n propertyName,\n options: {\n message: `${propertyName} should be a string date formatted in 'YYYY-MM-DD'`,\n ...validationOptions,\n },\n validator: {\n validate(value: any, args: ValidationArguments) {\n const dateRegex = /^((\\d{4}-((0[13578]-|1[02]-)(0[1-9]|[12]\\d|3[01])|(0[13456789]-|1[012]-)(0[1-9]|[12]\\d|30)|02-(0[1-9]|1\\d|2[0-8])))|((([02468][048]|[13579][26])00|\\d{2}([13579][26]|0[48]|[2468][048])))-02-29)$/;\n return typeof value === 'string'\n && dateRegex.test(value);\n },\n },\n });\n };\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectId.validator.js","mappings":";;;;;QAWgBA,U,GAAAA,U;;AAXhB;;AAWM,SAAUA,UAAV,CAAqBC,QAArB,EAA2CC,iBAA3C,EAAgF;
|
|
1
|
+
{"version":3,"file":"objectId.validator.js","mappings":";;;;;QAWgBA,U,GAAAA,U;;AAXhB;;AAWM,SAAUA,UAAV,CAAqBC,QAArB,EAA2CC,iBAA3C,EAAgF;EACpF,OAAO,SAASC,SAAT,CAAmBC,MAAnB,EAAgCC,YAAhC,EAAoD;IACzD,uCAAkB;MAChBC,IAAI,EAAE,YADU;MAEhBC,MAAM,EAAEH,MAAM,CAACI,WAFC;MAGhBH,YAHgB;MAIhBI,WAAW,EAAE,CAACR,QAAD,CAJG;MAKhBS,OAAO;QACLC,OAAO,EAAE,GAAGN,YAAY;MADnB,GAEFH,iBAFE,CALS;MAShBC,SAAS,EAAE;QACTS,QAAQ,CAACC,KAAD,EAAaC,IAAb,EAAsC;UAC5C,OAAO,OAAOD,KAAP,KAAiB,QAAjB,IACJE,MAAM,CAACC,MAAP,CAAcf,QAAd,EAAwBgB,GAAxB,CAA6BC,CAAD,IAAOA,CAAC,CAACC,EAArC,EAAyCC,QAAzC,CAAkDP,KAAlD,CADH;QAED;;MAJQ;IATK,CAAlB;EAgBD,CAjBD;AAkBD","names":["IsObjectId","property","validationOptions","validator","object","propertyName","name","target","constructor","constraints","options","message","validate","value","args","Object","values","map","p","id","includes"],"sourceRoot":"","sources":["../../../ts/utils/validators/objectId.validator.ts"],"sourcesContent":["import { registerDecorator, ValidationArguments, ValidationOptions } from 'class-validator';\n\ninterface ObjectWithId {\n id: number;\n [key: string]: unknown;\n}\n\ninterface EnumObject {\n [key: string]: ObjectWithId\n}\n\nexport function IsObjectId(property: EnumObject, validationOptions?: ValidationOptions) {\n return function validator(object: any, propertyName: string) {\n registerDecorator({\n name: 'IsObjectId',\n target: object.constructor,\n propertyName,\n constraints: [property],\n options: {\n message: `${propertyName} should be a valid id from enum`,\n ...validationOptions,\n },\n validator: {\n validate(value: any, args: ValidationArguments) {\n return typeof value === 'number'\n && Object.values(property).map((p) => p.id).includes(value);\n },\n },\n });\n };\n}"]}
|
package/js/utils/webmail.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webmail.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,qBAAqB,GAAIC,SAAD,IAAgC;
|
|
1
|
+
{"version":3,"file":"webmail.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,qBAAqB,GAAIC,SAAD,IAAgC;EAC5D,IAAIC,MAAM,GAAGC,WAAKC,gBAAlB;;EACA,IAAIH,SAAS,CAACI,QAAV,CAAmBF,WAAKG,YAAxB,KAAyCL,SAAS,CAACI,QAAV,CAAmBF,WAAKI,oBAAxB,CAA7C,EAA4F;IAC1FL,MAAM,GAAGC,WAAKG,YAAd;EACD,CAFD,MAEO,IAAIL,SAAS,CAACI,QAAV,CAAmBF,WAAKK,WAAxB,KAAwCP,SAAS,CAACI,QAAV,CAAmBF,WAAKM,mBAAxB,CAA5C,EAA0F;IAC/FP,MAAM,GAAGC,WAAKK,WAAd;EACD,CAFM,MAEA,IAAIP,SAAS,CAACI,QAAV,CAAmBF,WAAKO,OAAxB,CAAJ,EAAsC;IAC3CR,MAAM,GAAGC,WAAKO,OAAd;EACD;;EACD,OAAOR,MAAP;AACD,CAVD;;QAaEF,qB,GAAAA,qB","names":["getIdRoleUsedForEmail","listRoles","idRole","Role","CUSTOMER_SUCCESS","includes","FRONT_OFFICE","FRONT_OFFICE_EXPRESS","BACK_OFFICE","BACK_OFFICE_EXPRESS","MANAGER"],"sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"sourcesContent":["import { Role } from '../types/Enum/Role';\n\nconst getIdRoleUsedForEmail = (listRoles: number[]): number => {\n let idRole = Role.CUSTOMER_SUCCESS;\n if (listRoles.includes(Role.FRONT_OFFICE) || listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {\n idRole = Role.FRONT_OFFICE;\n } else if (listRoles.includes(Role.BACK_OFFICE) || listRoles.includes(Role.BACK_OFFICE_EXPRESS)) {\n idRole = Role.BACK_OFFICE;\n } else if (listRoles.includes(Role.MANAGER)) {\n idRole = Role.MANAGER;\n }\n return idRole;\n};\n\nexport {\n getIdRoleUsedForEmail,\n};"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.185",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { ICountry } from '../../types';
|
|
2
|
+
import { ICountry, INationality } from '../../types';
|
|
3
3
|
|
|
4
4
|
export class Country extends Resource {
|
|
5
5
|
getAll(): Promise<ICountry[]> {
|
|
6
6
|
return this.axios.$get('/countries');
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
public getAllNationalities(): Promise<INationality[]> {
|
|
10
|
+
return this.axios.$get('/nationalities');
|
|
11
|
+
}
|
|
8
12
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
BasePaginate, IEmployee, IWorkingSchedule, QueryEmployeeSearch,
|
|
3
|
+
} from '../../types';
|
|
2
4
|
import { Resource } from '../Resource';
|
|
3
5
|
|
|
4
6
|
export class Employee extends Resource {
|
|
@@ -25,4 +27,12 @@ export class Employee extends Resource {
|
|
|
25
27
|
public getPaginate(idSociety: number, params?: QueryEmployeeSearch): Promise<BasePaginate<Employee>> {
|
|
26
28
|
return this.axios.$get(`/societies/${idSociety}/employees`, { params: { ...params, isPaginate: true } });
|
|
27
29
|
}
|
|
30
|
+
|
|
31
|
+
public createOrUpdateWorkingSchedule(idEmployee: number, payload?: Omit<IWorkingSchedule, 'idEmployee'>): Promise<IWorkingSchedule> {
|
|
32
|
+
return this.axios.$post(`employees/${idEmployee}/working-schedules`, payload);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public deleteWorkingSchedule(idEmployee: number, idWorkingSchedule: number): Promise<true> {
|
|
36
|
+
return this.axios.$delete(`employees/${idEmployee}/working-schedules/${idWorkingSchedule}`);
|
|
37
|
+
}
|
|
28
38
|
}
|
package/ts/api/resources/Mail.ts
CHANGED
|
@@ -5,10 +5,11 @@ import {
|
|
|
5
5
|
QueryMail,
|
|
6
6
|
QueryPaginatedMail,
|
|
7
7
|
IMail,
|
|
8
|
+
CreateMailParams,
|
|
8
9
|
} from '../../types';
|
|
9
10
|
|
|
10
11
|
export class Mail extends Resource {
|
|
11
|
-
create(payload:
|
|
12
|
+
create(payload: CreateMailParams): Promise<IMail> {
|
|
12
13
|
return this.axios.$post('/mails', payload);
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -22,6 +23,8 @@ export class Mail extends Resource {
|
|
|
22
23
|
params: {
|
|
23
24
|
...params,
|
|
24
25
|
idUser,
|
|
26
|
+
isProcessed: false,
|
|
27
|
+
isSent: false,
|
|
25
28
|
},
|
|
26
29
|
});
|
|
27
30
|
}
|
|
@@ -31,60 +34,119 @@ export class Mail extends Resource {
|
|
|
31
34
|
params: {
|
|
32
35
|
...params,
|
|
33
36
|
idUser,
|
|
34
|
-
|
|
37
|
+
isProcessed: false,
|
|
38
|
+
isSent: false,
|
|
39
|
+
isWithoutSociety: true,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
public getPaginatedProcessedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
|
|
44
|
+
return this.axios.$get('/mails/paginated', {
|
|
45
|
+
...(cancelToken ? { cancelToken } : {}),
|
|
46
|
+
params: {
|
|
47
|
+
...params,
|
|
48
|
+
idUser,
|
|
49
|
+
isProcessed: true,
|
|
50
|
+
isSent: false,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
public getPaginatedSentForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
|
|
55
|
+
return this.axios.$get('/mails/paginated', {
|
|
56
|
+
...(cancelToken ? { cancelToken } : {}),
|
|
57
|
+
params: {
|
|
58
|
+
...params,
|
|
59
|
+
idUserWhoAnswered,
|
|
60
|
+
isProcessed: false,
|
|
61
|
+
isSent: true,
|
|
62
|
+
isDraft: false,
|
|
35
63
|
},
|
|
36
64
|
});
|
|
37
65
|
}
|
|
38
|
-
public
|
|
66
|
+
public getPaginatedImportantForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
|
|
39
67
|
return this.axios.$get('/mails/paginated', {
|
|
40
68
|
...(cancelToken ? { cancelToken } : {}),
|
|
41
69
|
params: {
|
|
42
70
|
...params,
|
|
43
71
|
idUser,
|
|
72
|
+
isProcessed: false,
|
|
73
|
+
isImportant: true,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
public getPaginatedDraftForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
|
|
78
|
+
return this.axios.$get('/mails/paginated', {
|
|
79
|
+
...(cancelToken ? { cancelToken } : {}),
|
|
80
|
+
params: {
|
|
81
|
+
...params,
|
|
82
|
+
idUserWhoAnswered,
|
|
83
|
+
isProcessed: false,
|
|
44
84
|
isSent: true,
|
|
85
|
+
isDraft: true,
|
|
45
86
|
},
|
|
46
87
|
});
|
|
47
88
|
}
|
|
48
|
-
public
|
|
89
|
+
public getPaginatedTrashedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
|
|
49
90
|
return this.axios.$get('/mails/paginated', {
|
|
50
91
|
...(cancelToken ? { cancelToken } : {}),
|
|
51
92
|
params: {
|
|
93
|
+
...params,
|
|
94
|
+
idUser,
|
|
95
|
+
isDeleted: true,
|
|
96
|
+
withDeleted: true,
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
public getPaginatedBySociety(idSociety: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
|
|
101
|
+
return this.axios.$get('/mails/paginated', {
|
|
102
|
+
...(cancelToken ? { cancelToken } : {}),
|
|
103
|
+
params: {
|
|
104
|
+
...params,
|
|
52
105
|
idSociety,
|
|
53
|
-
...(isSent !== undefined ? { isSent } : {}),
|
|
54
106
|
},
|
|
55
107
|
});
|
|
56
108
|
}
|
|
57
109
|
|
|
58
|
-
public
|
|
59
|
-
return this.axios.$get('/mails/count-
|
|
110
|
+
public countProcessedByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {
|
|
111
|
+
return this.axios.$get('/mails/count-processed-by-user', {
|
|
60
112
|
...(cancelToken ? { cancelToken } : {}),
|
|
61
|
-
|
|
113
|
+
params: {
|
|
62
114
|
idUser,
|
|
63
|
-
|
|
115
|
+
...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),
|
|
64
116
|
},
|
|
65
117
|
});
|
|
66
118
|
}
|
|
67
|
-
public
|
|
119
|
+
public getAnsweringTimeByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {
|
|
120
|
+
return this.axios.$get('/mails/answering-time-by-user', {
|
|
121
|
+
...(cancelToken ? { cancelToken } : {}),
|
|
122
|
+
params: {
|
|
123
|
+
idUser,
|
|
124
|
+
...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
public countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {
|
|
68
130
|
return this.axios.$get('/mails/count-unprocessed-by-user', {
|
|
69
131
|
...(cancelToken ? { cancelToken } : {}),
|
|
70
|
-
|
|
132
|
+
params: {
|
|
71
133
|
idUser,
|
|
72
|
-
isSent:
|
|
134
|
+
isSent: false,
|
|
73
135
|
},
|
|
74
136
|
});
|
|
75
137
|
}
|
|
76
138
|
public countToBeClassifiedByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {
|
|
77
139
|
return this.axios.$get('/mails/count-unprocessed-by-user', {
|
|
78
140
|
...(cancelToken ? { cancelToken } : {}),
|
|
79
|
-
|
|
141
|
+
params: {
|
|
80
142
|
idUser,
|
|
81
|
-
|
|
143
|
+
isWithoutSociety: true,
|
|
82
144
|
},
|
|
83
145
|
});
|
|
84
146
|
}
|
|
85
147
|
|
|
86
|
-
update(id: number, payload: UpdateMailPayload): Promise<IMail> {
|
|
87
|
-
return this.axios.patch(`/mails/${id}`, payload);
|
|
148
|
+
update(id: number, payload: UpdateMailPayload, params: QueryMail): Promise<IMail> {
|
|
149
|
+
return this.axios.patch(`/mails/${id}`, { ...payload, ...params });
|
|
88
150
|
}
|
|
89
151
|
|
|
90
152
|
delete(idMail: number): Promise<void> {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BasePaginate, ISheetMonthSchedule, QuerySheetMonthSchedule,
|
|
3
|
+
} from '../../types';
|
|
4
|
+
import { Resource } from '../Resource';
|
|
5
|
+
|
|
6
|
+
export class SheetMonthSchedule extends Resource {
|
|
7
|
+
public create(idEmployee: number, payload: Omit<ISheetMonthSchedule, 'idEmployee' | 'employee'>): Promise<ISheetMonthSchedule> {
|
|
8
|
+
return this.axios.$post(`/sheet-month-schedules/${idEmployee}`, payload);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public getAll(idEmployee: number): Promise<ISheetMonthSchedule[]> {
|
|
12
|
+
return this.axios.$get(`/employees/${idEmployee}/sheet-month-schedules`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public get(id: number): Promise<ISheetMonthSchedule> {
|
|
16
|
+
return this.axios.$get(`/sheet-month-schedules/${id}`);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public update(id: number, payload: Partial<ISheetMonthSchedule>): Promise<ISheetMonthSchedule> {
|
|
20
|
+
return this.axios.$put(`/sheet-month-schedules/${id}`, payload);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public delete(id: number): Promise<true> {
|
|
24
|
+
return this.axios.$delete(`/sheet-month-schedules/${id}`);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public getPaginate(params: QuerySheetMonthSchedule): Promise<BasePaginate<SheetMonthSchedule>> {
|
|
28
|
+
return this.axios.$get('/employees/sheet-month-schedules', { params });
|
|
29
|
+
}
|
|
30
|
+
}
|
package/ts/api/resources/User.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation,
|
|
3
|
+
IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class User extends Resource {
|
|
@@ -22,4 +22,10 @@ export class User extends Resource {
|
|
|
22
22
|
verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {
|
|
23
23
|
return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });
|
|
24
24
|
}
|
|
25
|
+
allFromSociety(params: QueryGetAllFromSociety): Promise<IUser> {
|
|
26
|
+
return this.axios.$get('user/all-from-society', { params });
|
|
27
|
+
}
|
|
28
|
+
selectableTeammates(): Promise<IUser> {
|
|
29
|
+
return this.axios.$get('user/selectable-teammates');
|
|
30
|
+
}
|
|
25
31
|
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -70,6 +70,7 @@ import { Log } from './resources/Log';
|
|
|
70
70
|
import { Exercice } from './resources/Exercice';
|
|
71
71
|
import { Mail } from './resources/Mail';
|
|
72
72
|
import { Employee } from './resources/Employee';
|
|
73
|
+
import { SheetMonthSchedule } from './resources/SheetMonthSchedule';
|
|
73
74
|
|
|
74
75
|
export const resources = {
|
|
75
76
|
simulation: Simulation,
|
|
@@ -144,4 +145,5 @@ export const resources = {
|
|
|
144
145
|
exercice: Exercice,
|
|
145
146
|
mail: Mail,
|
|
146
147
|
employee: Employee,
|
|
148
|
+
sheetMonthSchedule: SheetMonthSchedule,
|
|
147
149
|
};
|
|
@@ -57,6 +57,21 @@ export const BrandClementine = [
|
|
|
57
57
|
Name: 'Expertise Choix B',
|
|
58
58
|
Id: 'FR91ZZZ617135',
|
|
59
59
|
},
|
|
60
|
+
internalInvoicing: {
|
|
61
|
+
statut: 'SAS',
|
|
62
|
+
name: 'EXPERTISE CHOIX B',
|
|
63
|
+
address: '9, avenue du Rhin',
|
|
64
|
+
zipCode: '54520',
|
|
65
|
+
city: 'LAXOU',
|
|
66
|
+
country: 'FRANCE',
|
|
67
|
+
montantCapital: '500 000',
|
|
68
|
+
siret: '752566687',
|
|
69
|
+
ape: '6920Z',
|
|
70
|
+
rcs: '752 566 687',
|
|
71
|
+
phone: '03 83 93 14 14',
|
|
72
|
+
vatIntracom: 'FR47752566687',
|
|
73
|
+
email: 'facturation@compta-clementine.fr',
|
|
74
|
+
},
|
|
60
75
|
},
|
|
61
76
|
{
|
|
62
77
|
idTypeBrand: 2,
|
|
@@ -115,6 +130,21 @@ export const BrandClementine = [
|
|
|
115
130
|
Name: 'Expertise Choix B',
|
|
116
131
|
Id: 'FR91ZZZ617135',
|
|
117
132
|
},
|
|
133
|
+
internalInvoicing: {
|
|
134
|
+
statut: 'SAS',
|
|
135
|
+
name: 'EXPERTISE CHOIX B',
|
|
136
|
+
address: '9, avenue du Rhin',
|
|
137
|
+
zipCode: '54520',
|
|
138
|
+
city: 'LAXOU',
|
|
139
|
+
country: 'FRANCE',
|
|
140
|
+
montantCapital: '500 000',
|
|
141
|
+
siret: '752566687',
|
|
142
|
+
ape: '6920Z',
|
|
143
|
+
rcs: '752 566 687',
|
|
144
|
+
phone: '03 83 93 14 14',
|
|
145
|
+
vatIntracom: 'FR47752566687',
|
|
146
|
+
email: 'facturation@compta-clementine.fr',
|
|
147
|
+
},
|
|
118
148
|
},
|
|
119
149
|
{
|
|
120
150
|
idTypeBrand: 3,
|
|
@@ -219,5 +249,20 @@ export const BrandClementine = [
|
|
|
219
249
|
Name: 'Expertise Choix B',
|
|
220
250
|
Id: 'FR91ZZZ617135',
|
|
221
251
|
},
|
|
252
|
+
internalInvoicing: {
|
|
253
|
+
statut: 'SAS',
|
|
254
|
+
name: 'EXPERTISE CHOIX B',
|
|
255
|
+
address: '9, avenue du Rhin',
|
|
256
|
+
zipCode: '54520',
|
|
257
|
+
city: 'LAXOU',
|
|
258
|
+
country: 'FRANCE',
|
|
259
|
+
montantCapital: '500 000',
|
|
260
|
+
siret: '752566687',
|
|
261
|
+
ape: '6920Z',
|
|
262
|
+
rcs: '752 566 687',
|
|
263
|
+
phone: '03 83 93 14 14',
|
|
264
|
+
vatIntracom: 'FR47752566687',
|
|
265
|
+
email: 'facturation@compta-clementine.fr',
|
|
266
|
+
},
|
|
222
267
|
},
|
|
223
268
|
];
|
|
@@ -194,7 +194,7 @@ export const BrandComptalib = [
|
|
|
194
194
|
rcs: '891 501 181',
|
|
195
195
|
phone: '03 83 93 14 14',
|
|
196
196
|
vatIntracom: 'FR58891501181',
|
|
197
|
-
email: '
|
|
197
|
+
email: 'bonjour@comptalib.com',
|
|
198
198
|
},
|
|
199
199
|
},
|
|
200
200
|
{
|
|
@@ -209,22 +209,22 @@ export const BrandComptalib = [
|
|
|
209
209
|
juridique: '03 83 25 82 20',
|
|
210
210
|
},
|
|
211
211
|
listMails: {
|
|
212
|
-
administratif: '
|
|
213
|
-
app: '
|
|
214
|
-
bonjour: '
|
|
215
|
-
contact: '
|
|
216
|
-
facturation: '
|
|
217
|
-
feedback: '
|
|
218
|
-
juridique: '
|
|
219
|
-
informatique: '
|
|
220
|
-
msd: '
|
|
221
|
-
noreply: '
|
|
222
|
-
qualite: '
|
|
223
|
-
paiement: '
|
|
224
|
-
social: '
|
|
225
|
-
support: '
|
|
226
|
-
tva: '
|
|
227
|
-
wb: '
|
|
212
|
+
administratif: 'bonjour@aec54.com',
|
|
213
|
+
app: 'bonjour@aec54.com',
|
|
214
|
+
bonjour: 'bonjour@aec54.com',
|
|
215
|
+
contact: 'bonjour@aec54.com',
|
|
216
|
+
facturation: 'bonjour@aec54.com',
|
|
217
|
+
feedback: 'bonjour@aec54.com',
|
|
218
|
+
juridique: 'bonjour@aec54.com',
|
|
219
|
+
informatique: 'bonjour@aec54.com',
|
|
220
|
+
msd: 'bonjour@aec54.com',
|
|
221
|
+
noreply: 'bonjour@aec54.com',
|
|
222
|
+
qualite: 'bonjour@aec54.com',
|
|
223
|
+
paiement: 'bonjour@aec54.com',
|
|
224
|
+
social: 'bonjour@aec54.com',
|
|
225
|
+
support: 'bonjour@aec54.com',
|
|
226
|
+
tva: 'bonjour@aec54.com',
|
|
227
|
+
wb: 'bonjour@aec54.com',
|
|
228
228
|
},
|
|
229
229
|
companyInformation: {
|
|
230
230
|
ape: '6920Z',
|
|
@@ -245,11 +245,11 @@ export const BrandComptalib = [
|
|
|
245
245
|
miniLogoUrl: 'logo-aec.png',
|
|
246
246
|
hiddenPages: [],
|
|
247
247
|
recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
|
|
248
|
-
urlApp: 'https://app.
|
|
248
|
+
urlApp: 'https://app.aec54.com/',
|
|
249
249
|
urlApi1: 'https://api.comptalib.com',
|
|
250
250
|
urlApi2: 'https://api-next.comptalib.com',
|
|
251
251
|
urlExpert: 'https://pro.comptalib.com',
|
|
252
|
-
urlClient: 'https://www.
|
|
252
|
+
urlClient: 'https://www.aec54.com/',
|
|
253
253
|
bank: {
|
|
254
254
|
IBAN: '',
|
|
255
255
|
BIC: '',
|
|
@@ -269,7 +269,7 @@ export const BrandComptalib = [
|
|
|
269
269
|
rcs: '315 519 587',
|
|
270
270
|
phone: '03 83 25 82 20',
|
|
271
271
|
vatIntracom: 'FR84315519587',
|
|
272
|
-
email: '
|
|
272
|
+
email: 'bonjour@aec54.com',
|
|
273
273
|
},
|
|
274
274
|
},
|
|
275
275
|
];
|
|
@@ -58,5 +58,20 @@ export const BrandLegalstart = [
|
|
|
58
58
|
Name: 'Expertise Choix B',
|
|
59
59
|
Id: 'FR91ZZZ617135',
|
|
60
60
|
},
|
|
61
|
+
internalInvoicing: {
|
|
62
|
+
statut: 'SAS',
|
|
63
|
+
name: 'EXPERTISE CHOIX B',
|
|
64
|
+
address: '9, avenue du Rhin',
|
|
65
|
+
zipCode: '54520',
|
|
66
|
+
city: 'LAXOU',
|
|
67
|
+
country: 'FRANCE',
|
|
68
|
+
montantCapital: '500 000',
|
|
69
|
+
siret: '752566687',
|
|
70
|
+
ape: '6920Z',
|
|
71
|
+
rcs: '752 566 687',
|
|
72
|
+
phone: '03 83 93 14 14',
|
|
73
|
+
vatIntracom: 'FR47752566687',
|
|
74
|
+
email: 'facturation@compta-clementine.fr',
|
|
75
|
+
},
|
|
61
76
|
},
|
|
62
77
|
];
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
export
|
|
2
|
-
TO_BE_PROCESSED
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export const MailFlag = {
|
|
2
|
+
TO_BE_PROCESSED: {
|
|
3
|
+
id: 1,
|
|
4
|
+
name: 'Non traité',
|
|
5
|
+
},
|
|
6
|
+
ANSWERED: {
|
|
7
|
+
id: 2,
|
|
8
|
+
name: 'Répondu',
|
|
9
|
+
},
|
|
10
|
+
NO_ANSWER_NEEDED: {
|
|
11
|
+
id: 3,
|
|
12
|
+
name: 'Pas de réponse nécessaire',
|
|
13
|
+
},
|
|
14
|
+
CUSTOMER_CALLED: {
|
|
15
|
+
id: 4,
|
|
16
|
+
name: 'Client rappelé',
|
|
17
|
+
},
|
|
18
|
+
OTHER: {
|
|
19
|
+
id: 5,
|
|
20
|
+
name: 'Autre',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ContractTypeEnum } from './Contract';
|
|
2
|
+
|
|
3
|
+
export enum HiringReasonEnum {
|
|
4
|
+
INCREASE = 'Accroissement',
|
|
5
|
+
REPLACEMENT = 'Remplacement',
|
|
6
|
+
SEASONAL = 'Saisonnier',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum StudyLevelEnum {
|
|
10
|
+
BELOW_BAC = 'En dessous de BAC',
|
|
11
|
+
BAC = 'BAC',
|
|
12
|
+
BAC_PLUS_ONE = 'BAC +1',
|
|
13
|
+
BAC_PLUS_TWO = 'BAC +2',
|
|
14
|
+
BAC_PLUS_THREE = 'BAC +3',
|
|
15
|
+
BAC_PLUS_FOUR = 'BAC +4',
|
|
16
|
+
BAC_PLUS_FIVE = 'BAC +5',
|
|
17
|
+
BAC_PLUS_SIX = 'BAC +6',
|
|
18
|
+
BAC_PLUS_SEVEN = 'BAC +7',
|
|
19
|
+
ABOVE_BAC_PLUS_SEVEN = 'Au dessus de BAC + 7',
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type ContractTypeList = { label: string, value: ContractTypeEnum }[];
|
|
23
|
+
export type HiringReasonList = Array<HiringReasonEnum>;
|
|
24
|
+
export type StudyLevelList = Array<StudyLevelEnum>;
|
|
25
|
+
|
|
26
|
+
export const contractTypeList: ContractTypeList = [
|
|
27
|
+
{ label: 'CDD accroissement d\'activité', value: ContractTypeEnum.TEMPORARY_CONTRACT_ACTIVITY },
|
|
28
|
+
{ label: 'CDD apprentissage', value: ContractTypeEnum.TEMPORARY_CONTRACT_LEARNING },
|
|
29
|
+
{ label: 'CDD de remplacement', value: ContractTypeEnum.TEMPORARY_CONTRACT_REPLACMENT },
|
|
30
|
+
{ label: 'CDD extra', value: ContractTypeEnum.TEMPORARY_CONTRACT_EXTRA },
|
|
31
|
+
{ label: 'CDD professionnaliste', value: ContractTypeEnum.TEMPORARY_CONTRACT_PRO },
|
|
32
|
+
{ label: 'CDD usage', value: ContractTypeEnum.TEMPORARY_CONTRACT_USAGE },
|
|
33
|
+
{ label: 'CDI', value: ContractTypeEnum.PERMANENT_CONTRACT },
|
|
34
|
+
{ label: 'Stage', value: ContractTypeEnum.INTERNSHIP },
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
export const hiringReasonList: HiringReasonList = Object.keys(HiringReasonEnum).map((value) => value as HiringReasonEnum);
|
|
38
|
+
export const studyLevelList: StudyLevelList = Object.keys(StudyLevelEnum).map((value) => value as StudyLevelEnum);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt,
|
|
3
|
+
IsOptional,
|
|
4
|
+
} from 'class-validator';
|
|
5
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
6
|
+
|
|
7
|
+
export class QueryCountProcessedByUser {
|
|
8
|
+
@ApiProperty()
|
|
9
|
+
@IsInt()
|
|
10
|
+
idUser: number;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional({ default: 1 })
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
sumOfSlidingDays?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt,
|
|
3
|
+
IsOptional,
|
|
4
|
+
} from 'class-validator';
|
|
5
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
6
|
+
|
|
7
|
+
export class QueryGetAnsweringTimeByUser {
|
|
8
|
+
@ApiProperty()
|
|
9
|
+
@IsInt()
|
|
10
|
+
idUser: number;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional({ default: 30 })
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
sumOfSlidingDays?: number;
|
|
16
|
+
}
|