@d19n/youfibre-odin-sdk 1.0.326 → 1.0.328
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/README.md +2 -1
- package/dist/actions-v2/CreateTransactionalEmailDto.d.ts +91 -56
- package/dist/api-sdk-v2/EmailApi.d.ts +2 -0
- package/dist/api-sdk-v2/EmailApi.js +6 -0
- package/dist/api-sdk-v2/EmailSenderApi.d.ts +48 -0
- package/dist/api-sdk-v2/EmailSenderApi.js +155 -0
- package/dist/db-sdk-v2/EmailDb.d.ts +2 -0
- package/dist/db-sdk-v2/EmailDb.js +6 -0
- package/dist/db-sdk-v2/EmailSenderDb.d.ts +120 -0
- package/dist/db-sdk-v2/EmailSenderDb.js +204 -0
- package/dist/entities-v2/Account.d.ts +34 -0
- package/dist/entities-v2/Account.js +36 -1
- package/dist/entities-v2/Activity.d.ts +22 -0
- package/dist/entities-v2/Activity.js +23 -1
- package/dist/entities-v2/ActivityLog.d.ts +10 -0
- package/dist/entities-v2/ActivityLog.js +11 -1
- package/dist/entities-v2/Address.d.ts +10 -0
- package/dist/entities-v2/Address.js +11 -1
- package/dist/entities-v2/AffiliateCode.d.ts +10 -0
- package/dist/entities-v2/AffiliateCode.js +11 -1
- package/dist/entities-v2/Appointment.d.ts +10 -0
- package/dist/entities-v2/Appointment.js +11 -1
- package/dist/entities-v2/AppointmentCalendar.d.ts +10 -0
- package/dist/entities-v2/AppointmentCalendar.js +11 -1
- package/dist/entities-v2/BillingAdjustment.d.ts +10 -0
- package/dist/entities-v2/BillingAdjustment.js +11 -1
- package/dist/entities-v2/BillingRequest.d.ts +16 -0
- package/dist/entities-v2/BillingRequest.js +17 -1
- package/dist/entities-v2/BlockageA55.d.ts +10 -0
- package/dist/entities-v2/BlockageA55.js +11 -1
- package/dist/entities-v2/BlockageReportA55.d.ts +10 -0
- package/dist/entities-v2/BlockageReportA55.js +11 -1
- package/dist/entities-v2/Calendar.d.ts +10 -0
- package/dist/entities-v2/Calendar.js +11 -1
- package/dist/entities-v2/Call.d.ts +10 -0
- package/dist/entities-v2/Call.js +11 -1
- package/dist/entities-v2/CallEvent.d.ts +10 -0
- package/dist/entities-v2/CallEvent.js +11 -1
- package/dist/entities-v2/CallLeg.d.ts +10 -0
- package/dist/entities-v2/CallLeg.js +11 -1
- package/dist/entities-v2/CallTransfer.d.ts +10 -0
- package/dist/entities-v2/CallTransfer.js +11 -1
- package/dist/entities-v2/CallUpdates.d.ts +10 -0
- package/dist/entities-v2/CallUpdates.js +11 -1
- package/dist/entities-v2/Campaign.d.ts +10 -0
- package/dist/entities-v2/Campaign.js +11 -1
- package/dist/entities-v2/Case.d.ts +16 -0
- package/dist/entities-v2/Case.js +18 -2
- package/dist/entities-v2/CaseAction.d.ts +10 -0
- package/dist/entities-v2/CaseAction.js +11 -1
- package/dist/entities-v2/CaseQueueListView.d.ts +10 -0
- package/dist/entities-v2/CaseQueueListView.js +11 -1
- package/dist/entities-v2/ChangeReason.d.ts +28 -0
- package/dist/entities-v2/ChangeReason.js +29 -1
- package/dist/entities-v2/ChurnRequest.d.ts +10 -0
- package/dist/entities-v2/ChurnRequest.js +11 -1
- package/dist/entities-v2/Commission.d.ts +10 -0
- package/dist/entities-v2/Commission.js +11 -1
- package/dist/entities-v2/Config.d.ts +18 -8
- package/dist/entities-v2/Config.js +15 -5
- package/dist/entities-v2/ConsumptionRate.d.ts +10 -0
- package/dist/entities-v2/ConsumptionRate.js +11 -1
- package/dist/entities-v2/ConsumptionSchedule.d.ts +10 -0
- package/dist/entities-v2/ConsumptionSchedule.js +11 -1
- package/dist/entities-v2/Contact.d.ts +10 -0
- package/dist/entities-v2/Contact.js +11 -1
- package/dist/entities-v2/ContactIdentity.d.ts +10 -0
- package/dist/entities-v2/ContactIdentity.js +11 -1
- package/dist/entities-v2/ContractBuyOut.d.ts +10 -0
- package/dist/entities-v2/ContractBuyOut.js +11 -1
- package/dist/entities-v2/Conversation.d.ts +10 -0
- package/dist/entities-v2/Conversation.js +11 -1
- package/dist/entities-v2/CreditNote.d.ts +10 -0
- package/dist/entities-v2/CreditNote.js +11 -1
- package/dist/entities-v2/CrmDataset.d.ts +28 -0
- package/dist/entities-v2/CrmDataset.js +29 -1
- package/dist/entities-v2/CustomerDeviceAta.d.ts +10 -0
- package/dist/entities-v2/CustomerDeviceAta.js +11 -1
- package/dist/entities-v2/CustomerDeviceConfiguration.d.ts +10 -0
- package/dist/entities-v2/CustomerDeviceConfiguration.js +11 -1
- package/dist/entities-v2/CustomerDeviceOnt.d.ts +10 -0
- package/dist/entities-v2/CustomerDeviceOnt.js +11 -1
- package/dist/entities-v2/CustomerDeviceOntRemoval.d.ts +10 -0
- package/dist/entities-v2/CustomerDeviceOntRemoval.js +11 -1
- package/dist/entities-v2/CustomerDeviceRouter.d.ts +10 -0
- package/dist/entities-v2/CustomerDeviceRouter.js +11 -1
- package/dist/entities-v2/CustomerPhonePorting.d.ts +10 -0
- package/dist/entities-v2/CustomerPhonePorting.js +11 -1
- package/dist/entities-v2/DeactivationApproval.d.ts +10 -0
- package/dist/entities-v2/DeactivationApproval.js +11 -1
- package/dist/entities-v2/Discount.d.ts +10 -0
- package/dist/entities-v2/Discount.js +11 -1
- package/dist/entities-v2/Email.d.ts +129 -1
- package/dist/entities-v2/Email.js +49 -1
- package/dist/entities-v2/EmailSender.d.ts +75 -0
- package/dist/entities-v2/EmailSender.js +65 -0
- package/dist/entities-v2/EmailTemplate.d.ts +10 -0
- package/dist/entities-v2/EmailTemplate.js +11 -1
- package/dist/entities-v2/Engineer.d.ts +10 -0
- package/dist/entities-v2/Engineer.js +11 -1
- package/dist/entities-v2/Exchange.d.ts +10 -0
- package/dist/entities-v2/Exchange.js +11 -1
- package/dist/entities-v2/FieldServiceDispatchedProduct.d.ts +22 -0
- package/dist/entities-v2/FieldServiceDispatchedProduct.js +23 -1
- package/dist/entities-v2/FieldServiceProduct.d.ts +22 -0
- package/dist/entities-v2/FieldServiceProduct.js +23 -1
- package/dist/entities-v2/File.d.ts +58 -0
- package/dist/entities-v2/File.js +59 -1
- package/dist/entities-v2/Fingerprint.d.ts +10 -0
- package/dist/entities-v2/Fingerprint.js +11 -1
- package/dist/entities-v2/ImpersonationTracker.d.ts +10 -0
- package/dist/entities-v2/ImpersonationTracker.js +11 -1
- package/dist/entities-v2/InternalInstallAudit.d.ts +10 -0
- package/dist/entities-v2/InternalInstallAudit.js +11 -1
- package/dist/entities-v2/Invoice.d.ts +16 -0
- package/dist/entities-v2/Invoice.js +17 -1
- package/dist/entities-v2/InvoiceItem.d.ts +10 -0
- package/dist/entities-v2/InvoiceItem.js +11 -1
- package/dist/entities-v2/KnowledgeArticle.d.ts +16 -0
- package/dist/entities-v2/KnowledgeArticle.js +17 -1
- package/dist/entities-v2/Lead.d.ts +10 -0
- package/dist/entities-v2/Lead.js +11 -1
- package/dist/entities-v2/LinearIssue.d.ts +10 -0
- package/dist/entities-v2/LinearIssue.js +11 -1
- package/dist/entities-v2/McPendingEvent.d.ts +10 -0
- package/dist/entities-v2/McPendingEvent.js +11 -1
- package/dist/entities-v2/Message.d.ts +16 -0
- package/dist/entities-v2/Message.js +17 -1
- package/dist/entities-v2/Milestone.d.ts +10 -0
- package/dist/entities-v2/Milestone.js +11 -1
- package/dist/entities-v2/MobileCdr.d.ts +10 -0
- package/dist/entities-v2/MobileCdr.js +11 -1
- package/dist/entities-v2/MobileConfiguration.d.ts +10 -0
- package/dist/entities-v2/MobileConfiguration.js +11 -1
- package/dist/entities-v2/MobileCountryRate.d.ts +10 -0
- package/dist/entities-v2/MobileCountryRate.js +11 -1
- package/dist/entities-v2/MobileEdr.d.ts +10 -0
- package/dist/entities-v2/MobileEdr.js +11 -1
- package/dist/entities-v2/MobileSubscriber.d.ts +10 -0
- package/dist/entities-v2/MobileSubscriber.js +11 -1
- package/dist/entities-v2/MsPendingEvent.d.ts +10 -0
- package/dist/entities-v2/MsPendingEvent.js +11 -1
- package/dist/entities-v2/NetomniaFtth1StageInstallAudit.d.ts +10 -0
- package/dist/entities-v2/NetomniaFtth1StageInstallAudit.js +12 -1
- package/dist/entities-v2/NetomniaFtth2StageInstallAudit.d.ts +10 -0
- package/dist/entities-v2/NetomniaFtth2StageInstallAudit.js +11 -1
- package/dist/entities-v2/NetomniaFtthServiceVisitSheet.d.ts +10 -0
- package/dist/entities-v2/NetomniaFtthServiceVisitSheet.js +11 -1
- package/dist/entities-v2/NetomniaInstallVerification.d.ts +10 -0
- package/dist/entities-v2/NetomniaInstallVerification.js +11 -1
- package/dist/entities-v2/NetworkDevice.d.ts +10 -0
- package/dist/entities-v2/NetworkDevice.js +11 -1
- package/dist/entities-v2/Noinstall3AuditOfInstallationSheet.d.ts +10 -0
- package/dist/entities-v2/Noinstall3AuditOfInstallationSheet.js +11 -1
- package/dist/entities-v2/Note.d.ts +10 -0
- package/dist/entities-v2/Note.js +11 -1
- package/dist/entities-v2/NotificationTemplate.d.ts +10 -0
- package/dist/entities-v2/NotificationTemplate.js +11 -1
- package/dist/entities-v2/Offer.d.ts +22 -0
- package/dist/entities-v2/Offer.js +23 -1
- package/dist/entities-v2/OhAuditOfInstallation.d.ts +10 -0
- package/dist/entities-v2/OhAuditOfInstallation.js +11 -1
- package/dist/entities-v2/OhExternalAudit.d.ts +10 -0
- package/dist/entities-v2/OhExternalAudit.js +11 -1
- package/dist/entities-v2/OhInProgressAudit.d.ts +10 -0
- package/dist/entities-v2/OhInProgressAudit.js +11 -1
- package/dist/entities-v2/OhInstallationAudit.d.ts +10 -0
- package/dist/entities-v2/OhInstallationAudit.js +11 -1
- package/dist/entities-v2/OhRetroAudit.d.ts +10 -0
- package/dist/entities-v2/OhRetroAudit.js +11 -1
- package/dist/entities-v2/OltSnapshot.d.ts +10 -0
- package/dist/entities-v2/OltSnapshot.js +11 -1
- package/dist/entities-v2/OneTouchSwitch.d.ts +22 -0
- package/dist/entities-v2/OneTouchSwitch.js +23 -1
- package/dist/entities-v2/OntReplacementApproval.d.ts +10 -0
- package/dist/entities-v2/OntReplacementApproval.js +11 -1
- package/dist/entities-v2/Order.d.ts +10 -0
- package/dist/entities-v2/Order.js +12 -2
- package/dist/entities-v2/OrderCheck.d.ts +10 -0
- package/dist/entities-v2/OrderCheck.js +11 -1
- package/dist/entities-v2/OrderItem.d.ts +10 -0
- package/dist/entities-v2/OrderItem.js +11 -1
- package/dist/entities-v2/OrderRemediationTask.d.ts +10 -0
- package/dist/entities-v2/OrderRemediationTask.js +11 -1
- package/dist/entities-v2/Organization.d.ts +10 -0
- package/dist/entities-v2/Organization.js +11 -1
- package/dist/entities-v2/Outage.d.ts +10 -0
- package/dist/entities-v2/Outage.js +11 -1
- package/dist/entities-v2/OverlayRealA55.d.ts +10 -0
- package/dist/entities-v2/OverlayRealA55.js +11 -1
- package/dist/entities-v2/PICRequest.d.ts +10 -0
- package/dist/entities-v2/PICRequest.js +11 -1
- package/dist/entities-v2/Payment.d.ts +10 -0
- package/dist/entities-v2/Payment.js +11 -1
- package/dist/entities-v2/PaymentMethod.d.ts +10 -0
- package/dist/entities-v2/PaymentMethod.js +11 -1
- package/dist/entities-v2/PaymentMethodRefund.d.ts +10 -0
- package/dist/entities-v2/PaymentMethodRefund.js +11 -1
- package/dist/entities-v2/PermissionToFail.d.ts +10 -0
- package/dist/entities-v2/PermissionToFail.js +11 -1
- package/dist/entities-v2/PgAccountValidation.d.ts +10 -0
- package/dist/entities-v2/PgAccountValidation.js +11 -1
- package/dist/entities-v2/PgContact.d.ts +10 -0
- package/dist/entities-v2/PgContact.js +11 -1
- package/dist/entities-v2/PgDirectDebitFile.d.ts +22 -0
- package/dist/entities-v2/PgDirectDebitFile.js +23 -1
- package/dist/entities-v2/PgDispute.d.ts +10 -0
- package/dist/entities-v2/PgDispute.js +11 -1
- package/dist/entities-v2/PgFileAllocation.d.ts +22 -0
- package/dist/entities-v2/PgFileAllocation.js +23 -1
- package/dist/entities-v2/PgLog.d.ts +10 -0
- package/dist/entities-v2/PgLog.js +11 -1
- package/dist/entities-v2/PgPaymentMethod.d.ts +10 -0
- package/dist/entities-v2/PgPaymentMethod.js +11 -1
- package/dist/entities-v2/PgSortCodeSubstitution.d.ts +10 -0
- package/dist/entities-v2/PgSortCodeSubstitution.js +11 -1
- package/dist/entities-v2/PgTransaction.d.ts +22 -0
- package/dist/entities-v2/PgTransaction.js +23 -1
- package/dist/entities-v2/PgVocalink.d.ts +10 -0
- package/dist/entities-v2/PgVocalink.js +11 -1
- package/dist/entities-v2/PgWebhook.d.ts +10 -0
- package/dist/entities-v2/PgWebhook.js +11 -1
- package/dist/entities-v2/PgWebhookAttempt.d.ts +10 -0
- package/dist/entities-v2/PgWebhookAttempt.js +11 -1
- package/dist/entities-v2/PhoneNumber.d.ts +10 -0
- package/dist/entities-v2/PhoneNumber.js +11 -1
- package/dist/entities-v2/Premise.d.ts +10 -0
- package/dist/entities-v2/Premise.js +11 -1
- package/dist/entities-v2/Premise2.d.ts +10 -0
- package/dist/entities-v2/Premise2.js +11 -1
- package/dist/entities-v2/PriceBook.d.ts +10 -0
- package/dist/entities-v2/PriceBook.js +11 -1
- package/dist/entities-v2/Product.d.ts +40 -0
- package/dist/entities-v2/Product.js +42 -1
- package/dist/entities-v2/ProductComponent.d.ts +10 -0
- package/dist/entities-v2/ProductComponent.js +11 -1
- package/dist/entities-v2/Program.d.ts +10 -0
- package/dist/entities-v2/Program.js +11 -1
- package/dist/entities-v2/Project.d.ts +10 -0
- package/dist/entities-v2/Project.js +11 -1
- package/dist/entities-v2/PushNotification.d.ts +10 -0
- package/dist/entities-v2/PushNotification.js +11 -1
- package/dist/entities-v2/Queue.d.ts +10 -0
- package/dist/entities-v2/Queue.js +11 -1
- package/dist/entities-v2/QueueChange.d.ts +10 -0
- package/dist/entities-v2/QueueChange.js +11 -1
- package/dist/entities-v2/Referral.d.ts +10 -0
- package/dist/entities-v2/Referral.js +11 -1
- package/dist/entities-v2/Region.d.ts +10 -0
- package/dist/entities-v2/Region.js +11 -1
- package/dist/entities-v2/RemediationOutcomeForm.d.ts +10 -0
- package/dist/entities-v2/RemediationOutcomeForm.js +11 -1
- package/dist/entities-v2/RemediationRequiredReason.d.ts +10 -0
- package/dist/entities-v2/RemediationRequiredReason.js +11 -1
- package/dist/entities-v2/Restriction.d.ts +10 -0
- package/dist/entities-v2/Restriction.js +11 -1
- package/dist/entities-v2/ReturnOrder.d.ts +10 -0
- package/dist/entities-v2/ReturnOrder.js +11 -1
- package/dist/entities-v2/Returns.d.ts +10 -0
- package/dist/entities-v2/Returns.js +11 -1
- package/dist/entities-v2/Reward.d.ts +10 -0
- package/dist/entities-v2/Reward.js +11 -1
- package/dist/entities-v2/SalesLeaderBoard.d.ts +10 -0
- package/dist/entities-v2/SalesLeaderBoard.js +11 -1
- package/dist/entities-v2/SalesTerritory.d.ts +16 -0
- package/dist/entities-v2/SalesTerritory.js +17 -1
- package/dist/entities-v2/ScheduleSlot.d.ts +10 -0
- package/dist/entities-v2/ScheduleSlot.js +11 -1
- package/dist/entities-v2/Service.d.ts +10 -0
- package/dist/entities-v2/Service.js +11 -1
- package/dist/entities-v2/ServiceAppointment.d.ts +10 -0
- package/dist/entities-v2/ServiceAppointment.js +11 -1
- package/dist/entities-v2/ServiceAppointmentConfig.d.ts +64 -0
- package/dist/entities-v2/ServiceAppointmentConfig.js +65 -1
- package/dist/entities-v2/ServiceVisitAudit.d.ts +10 -0
- package/dist/entities-v2/ServiceVisitAudit.js +11 -1
- package/dist/entities-v2/SiteSpecificRiskAssessmentOutcomeForm.d.ts +10 -0
- package/dist/entities-v2/SiteSpecificRiskAssessmentOutcomeForm.js +11 -1
- package/dist/entities-v2/SmsMessage.d.ts +22 -0
- package/dist/entities-v2/SmsMessage.js +23 -1
- package/dist/entities-v2/SmsTemplate.d.ts +10 -0
- package/dist/entities-v2/SmsTemplate.js +11 -1
- package/dist/entities-v2/SplitOrder.d.ts +10 -0
- package/dist/entities-v2/SplitOrder.js +11 -1
- package/dist/entities-v2/Subtask.d.ts +10 -0
- package/dist/entities-v2/Subtask.js +11 -1
- package/dist/entities-v2/SupportTask.d.ts +10 -0
- package/dist/entities-v2/SupportTask.js +11 -1
- package/dist/entities-v2/SweeperMaintenanceAudit.d.ts +10 -0
- package/dist/entities-v2/SweeperMaintenanceAudit.js +11 -1
- package/dist/entities-v2/Task.d.ts +10 -0
- package/dist/entities-v2/Task.js +11 -1
- package/dist/entities-v2/Team.d.ts +10 -0
- package/dist/entities-v2/Team.js +11 -1
- package/dist/entities-v2/TelesalesDashboard.d.ts +10 -0
- package/dist/entities-v2/TelesalesDashboard.js +11 -1
- package/dist/entities-v2/TimeSlot.d.ts +10 -0
- package/dist/entities-v2/TimeSlot.js +11 -1
- package/dist/entities-v2/Transaction.d.ts +10 -0
- package/dist/entities-v2/Transaction.js +11 -1
- package/dist/entities-v2/TwilioUserUpdate.d.ts +10 -0
- package/dist/entities-v2/TwilioUserUpdate.js +11 -1
- package/dist/entities-v2/UgAuditOfInstallation.d.ts +10 -0
- package/dist/entities-v2/UgAuditOfInstallation.js +11 -1
- package/dist/entities-v2/UgExternalAudit.d.ts +10 -0
- package/dist/entities-v2/UgExternalAudit.js +11 -1
- package/dist/entities-v2/UgInProgressAudit.d.ts +10 -0
- package/dist/entities-v2/UgInProgressAudit.js +11 -1
- package/dist/entities-v2/UgInstallationAudit.d.ts +10 -0
- package/dist/entities-v2/UgInstallationAudit.js +11 -1
- package/dist/entities-v2/UgRetroAudit.d.ts +10 -0
- package/dist/entities-v2/UgRetroAudit.js +11 -1
- package/dist/entities-v2/User.d.ts +10 -0
- package/dist/entities-v2/User.js +11 -1
- package/dist/entities-v2/Vendor.d.ts +10 -0
- package/dist/entities-v2/Vendor.js +11 -1
- package/dist/entities-v2/Visit.d.ts +10 -0
- package/dist/entities-v2/Visit.js +11 -1
- package/dist/entities-v2/VoiceConfiguration.d.ts +10 -0
- package/dist/entities-v2/VoiceConfiguration.js +11 -1
- package/dist/entities-v2/WayleaveAudit.d.ts +10 -0
- package/dist/entities-v2/WayleaveAudit.js +11 -1
- package/dist/entities-v2/WorkOrder.d.ts +94 -0
- package/dist/entities-v2/WorkOrder.js +97 -3
- package/dist/entities-v2/WorkOrderRemediationView.d.ts +10 -0
- package/dist/entities-v2/WorkOrderRemediationView.js +11 -1
- package/dist/entities-v2/WorkOrderStatusUpdate.d.ts +22 -0
- package/dist/entities-v2/WorkOrderStatusUpdate.js +23 -1
- package/dist/entities-v2/YfEquipmentCollection.d.ts +10 -0
- package/dist/entities-v2/YfEquipmentCollection.js +11 -1
- package/dist/entities-v2/YfFieldServiceVisit.d.ts +10 -0
- package/dist/entities-v2/YfFieldServiceVisit.js +11 -1
- package/dist/entities-v2/YfStockAudit.d.ts +10 -0
- package/dist/entities-v2/YfStockAudit.js +11 -1
- package/dist/entities-v2/YfStockCount.d.ts +10 -0
- package/dist/entities-v2/YfStockCount.js +11 -1
- package/dist/entities-v2/YfToolAudit.d.ts +10 -0
- package/dist/entities-v2/YfToolAudit.js +11 -1
- package/dist/entities-v2/YfVanAudit.d.ts +10 -0
- package/dist/entities-v2/YfVanAudit.js +11 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ await workOrder.completeWorkOrder({ ... });
|
|
|
124
124
|
|
|
125
125
|
## Entities
|
|
126
126
|
|
|
127
|
-
This SDK includes **
|
|
127
|
+
This SDK includes **160** entities across **12** modules.
|
|
128
128
|
|
|
129
129
|
### CrmModule
|
|
130
130
|
|
|
@@ -266,6 +266,7 @@ This SDK includes **159** entities across **12** modules.
|
|
|
266
266
|
| **Conversation** | Conversation Entity Definition | DEFAULT |
|
|
267
267
|
| **CustomerDeviceConfiguration** | CustomerDeviceConfiguration Entity Definition | DEFAULT |
|
|
268
268
|
| **Email** | Email Entity Definition | SUPPORT, TRANSACTIONAL |
|
|
269
|
+
| **EmailSender** | EmailSender Entity Definition | DEFAULT |
|
|
269
270
|
| **EmailTemplate** | EmailTemplate Entity Definition | DEFAULT |
|
|
270
271
|
| **Message** | Message Entity Definition | EVENT |
|
|
271
272
|
| **NotificationTemplate** | NotificationTemplate Entity Definition | DEFAULT |
|
|
@@ -23,7 +23,7 @@ export interface CreateTransactionalEmailMessage extends OdinRecordCreatedEvent<
|
|
|
23
23
|
* Properties for CreateTransactionalEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 1
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 22
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateTransactionalEmailProperties {
|
|
29
29
|
/**
|
|
@@ -35,40 +35,68 @@ export interface CreateTransactionalEmailProperties {
|
|
|
35
35
|
*/
|
|
36
36
|
Date: string;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Subject
|
|
39
39
|
*
|
|
40
40
|
* Data field for Email records. Used by Communications team.
|
|
41
|
-
* @type {
|
|
41
|
+
* @type {TEXT}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
Subject?: string | null;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* FormattedMessage
|
|
46
46
|
*
|
|
47
|
-
*
|
|
48
|
-
* @type {
|
|
47
|
+
* Formatted Message (Communications - Email)
|
|
48
|
+
* @type {HTML}
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
FormattedMessage?: string | null;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Cc
|
|
53
53
|
*
|
|
54
|
-
*
|
|
54
|
+
* Carbon Copy (Communications - Email)
|
|
55
55
|
* @type {TEXT}
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
Cc?: string | null;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* To
|
|
60
60
|
*
|
|
61
|
-
*
|
|
61
|
+
* Data field for Email records. Used by Communications team.
|
|
62
|
+
* @type {TEXT}
|
|
63
|
+
*/
|
|
64
|
+
To?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* InReplyTo
|
|
67
|
+
*
|
|
68
|
+
* In Reply To (Communications - Email)
|
|
69
|
+
* @type {TEXT}
|
|
70
|
+
*/
|
|
71
|
+
InReplyTo?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Envelope
|
|
74
|
+
*
|
|
75
|
+
* Data field for Email records. Used by Communications team.
|
|
76
|
+
* @type {JSON}
|
|
77
|
+
*/
|
|
78
|
+
Envelope?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* CreatedAt
|
|
81
|
+
*
|
|
82
|
+
* When the email was created (Communications - Email)
|
|
62
83
|
* @type {DATE_TIME}
|
|
63
84
|
*/
|
|
64
|
-
|
|
85
|
+
CreatedAt?: string | null;
|
|
65
86
|
/**
|
|
66
|
-
*
|
|
87
|
+
* ParentMessageId
|
|
67
88
|
*
|
|
68
|
-
*
|
|
69
|
-
* @type {
|
|
89
|
+
* Parent Message id (Communications - Email)
|
|
90
|
+
* @type {LOOKUP}
|
|
70
91
|
*/
|
|
71
|
-
|
|
92
|
+
ParentMessageId?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Message
|
|
95
|
+
*
|
|
96
|
+
* Data field for Email records. Used by Communications team.
|
|
97
|
+
* @type {TEXT}
|
|
98
|
+
*/
|
|
99
|
+
Message?: string | null;
|
|
72
100
|
/**
|
|
73
101
|
* From
|
|
74
102
|
*
|
|
@@ -76,6 +104,13 @@ export interface CreateTransactionalEmailProperties {
|
|
|
76
104
|
* @type {TEXT}
|
|
77
105
|
*/
|
|
78
106
|
From?: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* Files
|
|
109
|
+
*
|
|
110
|
+
* email attachments (Communications - Email)
|
|
111
|
+
* @type {FILE_MULTIPLE}
|
|
112
|
+
*/
|
|
113
|
+
Files?: string | null;
|
|
79
114
|
/**
|
|
80
115
|
* MessageId
|
|
81
116
|
*
|
|
@@ -84,75 +119,75 @@ export interface CreateTransactionalEmailProperties {
|
|
|
84
119
|
*/
|
|
85
120
|
MessageId?: string | null;
|
|
86
121
|
/**
|
|
87
|
-
*
|
|
122
|
+
* UpdatedAt
|
|
88
123
|
*
|
|
89
|
-
*
|
|
90
|
-
* @type {
|
|
124
|
+
* When the email was updated (Communications - Email)
|
|
125
|
+
* @type {DATE_TIME}
|
|
91
126
|
*/
|
|
92
|
-
|
|
127
|
+
UpdatedAt?: string | null;
|
|
93
128
|
/**
|
|
94
|
-
*
|
|
129
|
+
* Bcc
|
|
95
130
|
*
|
|
96
|
-
*
|
|
97
|
-
* @type {
|
|
131
|
+
* Blind Carbon Copy (Communications - Email)
|
|
132
|
+
* @type {TEXT}
|
|
98
133
|
*/
|
|
99
|
-
|
|
134
|
+
Bcc?: string | null;
|
|
100
135
|
/**
|
|
101
|
-
*
|
|
136
|
+
* SenderType
|
|
102
137
|
*
|
|
103
|
-
*
|
|
104
|
-
* @type {
|
|
138
|
+
* Sender Type (Communications - Email)
|
|
139
|
+
* @type {ENUM}
|
|
105
140
|
*/
|
|
106
|
-
|
|
141
|
+
SenderType?: string | null;
|
|
107
142
|
/**
|
|
108
|
-
*
|
|
143
|
+
* Case
|
|
109
144
|
*
|
|
110
145
|
* Data field for Email records. Used by Communications team.
|
|
111
|
-
* @type {
|
|
146
|
+
* @type {LOOKUP}
|
|
112
147
|
*/
|
|
113
|
-
|
|
148
|
+
Case?: string | null;
|
|
114
149
|
/**
|
|
115
|
-
*
|
|
150
|
+
* Status
|
|
116
151
|
*
|
|
117
|
-
*
|
|
118
|
-
* @type {
|
|
152
|
+
* Status of the email in the process
|
|
153
|
+
* @type {ENUM}
|
|
119
154
|
*/
|
|
120
|
-
|
|
155
|
+
Status?: string | null;
|
|
121
156
|
/**
|
|
122
|
-
*
|
|
157
|
+
* DynamicData
|
|
123
158
|
*
|
|
124
|
-
* Data
|
|
125
|
-
* @type {
|
|
159
|
+
* Data will pass to emailing service (variables)
|
|
160
|
+
* @type {JSON}
|
|
126
161
|
*/
|
|
127
|
-
|
|
162
|
+
DynamicData?: string | null;
|
|
128
163
|
/**
|
|
129
|
-
*
|
|
164
|
+
* TemplateLabel
|
|
130
165
|
*
|
|
131
|
-
*
|
|
166
|
+
* The template label from email templates engine
|
|
132
167
|
* @type {TEXT}
|
|
133
168
|
*/
|
|
134
|
-
|
|
169
|
+
TemplateLabel?: string | null;
|
|
135
170
|
/**
|
|
136
|
-
*
|
|
171
|
+
* ContactId
|
|
137
172
|
*
|
|
138
|
-
*
|
|
139
|
-
* @type {
|
|
173
|
+
* The related Contact to send the email
|
|
174
|
+
* @type {LOOKUP}
|
|
140
175
|
*/
|
|
141
|
-
|
|
176
|
+
ContactId?: string | null;
|
|
142
177
|
/**
|
|
143
|
-
*
|
|
178
|
+
* EmailingService
|
|
144
179
|
*
|
|
145
|
-
*
|
|
146
|
-
* @type {
|
|
180
|
+
* The provider we use to send email (eg. Sendgrid)
|
|
181
|
+
* @type {ENUM}
|
|
147
182
|
*/
|
|
148
|
-
|
|
183
|
+
EmailingService?: string | null;
|
|
149
184
|
/**
|
|
150
|
-
*
|
|
185
|
+
* EmailSenderId
|
|
151
186
|
*
|
|
152
|
-
*
|
|
153
|
-
* @type {
|
|
187
|
+
* The Email Sender related entity
|
|
188
|
+
* @type {LOOKUP}
|
|
154
189
|
*/
|
|
155
|
-
|
|
190
|
+
EmailSenderId?: string | null;
|
|
156
191
|
}
|
|
157
192
|
/**
|
|
158
193
|
* CreateTransactionalEmail
|
|
@@ -22,12 +22,14 @@ export declare class EmailApi extends ApiProvider {
|
|
|
22
22
|
private _file?;
|
|
23
23
|
private _case?;
|
|
24
24
|
private _contact?;
|
|
25
|
+
private _emailsender?;
|
|
25
26
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
26
27
|
get user(): ApiRecordLinkManager;
|
|
27
28
|
get email(): ApiRecordLinkManager;
|
|
28
29
|
get file(): ApiRecordLinkManager;
|
|
29
30
|
get case(): ApiRecordLinkManager;
|
|
30
31
|
get contact(): ApiRecordLinkManager;
|
|
32
|
+
get emailsender(): ApiRecordLinkManager;
|
|
31
33
|
setRecord(sourceRecord: any): void;
|
|
32
34
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
33
35
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<EmailProperties>>>;
|
|
@@ -63,6 +63,12 @@ class EmailApi extends api_provider_1.ApiProvider {
|
|
|
63
63
|
}
|
|
64
64
|
return this._contact;
|
|
65
65
|
}
|
|
66
|
+
get emailsender() {
|
|
67
|
+
if (!this._emailsender) {
|
|
68
|
+
this._emailsender = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Email', 'NotificationModule:EmailSender', 'Emai__EmailSender');
|
|
69
|
+
}
|
|
70
|
+
return this._emailsender;
|
|
71
|
+
}
|
|
66
72
|
// ============================================
|
|
67
73
|
// STANDARD METHODS (Unchanged API)
|
|
68
74
|
// ============================================
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
4
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
5
|
+
import { EmailSenderProperties } from '../entities-v2/EmailSender';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use OdinApiClient.
|
|
8
|
+
*
|
|
9
|
+
* Migration:
|
|
10
|
+
* - Old: new EmailSenderApi(authParams).get(id)
|
|
11
|
+
* - New: new odin.emailsender.get(id)
|
|
12
|
+
*
|
|
13
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
14
|
+
*/
|
|
15
|
+
export declare class EmailSenderApi extends ApiProvider {
|
|
16
|
+
protected readonly authToken?: string;
|
|
17
|
+
private readonly moduleName;
|
|
18
|
+
private readonly entityName;
|
|
19
|
+
private sourceRecord;
|
|
20
|
+
private _email?;
|
|
21
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
22
|
+
get email(): ApiRecordLinkManager;
|
|
23
|
+
setRecord(sourceRecord: any): void;
|
|
24
|
+
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
25
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<EmailSenderProperties>>>;
|
|
26
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<EmailSenderProperties>>>;
|
|
27
|
+
reIndex(body: {
|
|
28
|
+
id: string;
|
|
29
|
+
schemaId: string;
|
|
30
|
+
}[]): Promise<any>;
|
|
31
|
+
get(emailSenderId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<EmailSenderProperties>>;
|
|
32
|
+
getMany(emailSenderIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<EmailSenderProperties>[]>;
|
|
33
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
34
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
35
|
+
update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
36
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
37
|
+
delete(emailSenderId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
38
|
+
deleteMany(emailSenderIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
39
|
+
restore(emailSenderIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
|
|
40
|
+
applyAction(dto: any): Promise<any[]>;
|
|
41
|
+
bulkApplyActions(dtos: any[]): Promise<any[]>;
|
|
42
|
+
getVersions(): Promise<{
|
|
43
|
+
[key: string]: Record<string, any>;
|
|
44
|
+
}>;
|
|
45
|
+
getRevisionTimeline(): Promise<{
|
|
46
|
+
[key: string]: Record<string, any>[];
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EmailSenderApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use OdinApiClient.
|
|
17
|
+
*
|
|
18
|
+
* Migration:
|
|
19
|
+
* - Old: new EmailSenderApi(authParams).get(id)
|
|
20
|
+
* - New: new odin.emailsender.get(id)
|
|
21
|
+
*
|
|
22
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
23
|
+
*/
|
|
24
|
+
class EmailSenderApi extends api_provider_1.ApiProvider {
|
|
25
|
+
constructor(authParams, authToken) {
|
|
26
|
+
super(authParams, authToken);
|
|
27
|
+
this.authToken = authToken;
|
|
28
|
+
this.moduleName = 'NotificationModule';
|
|
29
|
+
this.entityName = 'EmailSender';
|
|
30
|
+
// Link managers are lazy-loaded on first access
|
|
31
|
+
}
|
|
32
|
+
// ============================================
|
|
33
|
+
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
34
|
+
// ============================================
|
|
35
|
+
// Usage remains identical: api.address.list(recordId)
|
|
36
|
+
get email() {
|
|
37
|
+
if (!this._email) {
|
|
38
|
+
this._email = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:EmailSender', 'NotificationModule:Email', 'Emai__EmailSender');
|
|
39
|
+
}
|
|
40
|
+
return this._email;
|
|
41
|
+
}
|
|
42
|
+
// ============================================
|
|
43
|
+
// STANDARD METHODS (Unchanged API)
|
|
44
|
+
// ============================================
|
|
45
|
+
setRecord(sourceRecord) {
|
|
46
|
+
this.sourceRecord = sourceRecord;
|
|
47
|
+
}
|
|
48
|
+
schema() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
54
|
+
search(params) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
// Use this function when you want paginating through the results to be handled
|
|
60
|
+
searchAndPaginate(params) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
// Use this function to re-index records in elastic search
|
|
66
|
+
reIndex(body) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
return yield this._reIndexRecords(body);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// Use this function when you want to return a single record
|
|
72
|
+
get(emailSenderId) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, emailSenderId);
|
|
75
|
+
if (res)
|
|
76
|
+
this.setRecord(res);
|
|
77
|
+
return res;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
// Use this function when you want to return many records by primaryKeys
|
|
81
|
+
getMany(emailSenderIds) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, emailSenderIds);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
// Use this function when you want to upsert one record
|
|
87
|
+
upsert(upsertDto) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
90
|
+
return res[0];
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// Use this function when you want to upsert many records
|
|
94
|
+
upsertMany(upsertDtos) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
// Use this function when you want to update one record
|
|
100
|
+
update(updateDto) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
103
|
+
return res[0];
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// Use this function when you want to update many records
|
|
107
|
+
updateMany(updateDtos) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
// Use this function when you want to delete one record
|
|
113
|
+
delete(emailSenderId) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
return yield this._delete(this.moduleName, this.entityName, [emailSenderId]);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// Use this function when you want to delete many records
|
|
119
|
+
deleteMany(emailSenderIds) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
return yield this._delete(this.moduleName, this.entityName, emailSenderIds);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
// Use this function when you want to restore one or many records
|
|
125
|
+
restore(emailSenderIds) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
return yield this._restore(this.moduleName, this.entityName, emailSenderIds);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
// Use this function when you want to apply a single action
|
|
131
|
+
applyAction(dto) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
return yield this._applyAction(this.moduleName, this.entityName, dto);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
// Use this function when you want to bulk apply actions
|
|
137
|
+
bulkApplyActions(dtos) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
return yield this._bulkApplyActions(this.moduleName, this.entityName, dtos);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
// Use this function when you want to return the versions for a single record
|
|
143
|
+
getVersions() {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// Use this function when you want to return the change history for a single record
|
|
149
|
+
getRevisionTimeline() {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.EmailSenderApi = EmailSenderApi;
|
|
@@ -26,12 +26,14 @@ export declare class EmailDb extends DbProvider {
|
|
|
26
26
|
private _file?;
|
|
27
27
|
private _case?;
|
|
28
28
|
private _contact?;
|
|
29
|
+
private _emailsender?;
|
|
29
30
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
30
31
|
get user(): DbRecordLinkManager;
|
|
31
32
|
get email(): DbRecordLinkManager;
|
|
32
33
|
get file(): DbRecordLinkManager;
|
|
33
34
|
get case(): DbRecordLinkManager;
|
|
34
35
|
get contact(): DbRecordLinkManager;
|
|
36
|
+
get emailsender(): DbRecordLinkManager;
|
|
35
37
|
setRecord(sourceRecord: any): void;
|
|
36
38
|
/**
|
|
37
39
|
* Search records with manual pagination control
|
|
@@ -68,6 +68,12 @@ class EmailDb extends db_provider_1.DbProvider {
|
|
|
68
68
|
}
|
|
69
69
|
return this._contact;
|
|
70
70
|
}
|
|
71
|
+
get emailsender() {
|
|
72
|
+
if (!this._emailsender) {
|
|
73
|
+
this._emailsender = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Email', 'NotificationModule:EmailSender', 'Emai__EmailSender');
|
|
74
|
+
}
|
|
75
|
+
return this._emailsender;
|
|
76
|
+
}
|
|
71
77
|
// ============================================
|
|
72
78
|
// STANDARD METHODS
|
|
73
79
|
// ============================================
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
2
|
+
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
3
|
+
import { DbRecordLinkManager } from '@d19n/odin-sdk-generator/dist/db.record.link.manager';
|
|
4
|
+
import { EmailSenderProperties } from '../entities-v2/EmailSender';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use OdinDbClient.
|
|
7
|
+
*
|
|
8
|
+
* Migration:
|
|
9
|
+
* - Old: new EmailSenderApi(authParams).get(id)
|
|
10
|
+
* - New: new odin.emailsender.get(id)
|
|
11
|
+
*
|
|
12
|
+
* The new OdinDbClient returns typed record wrappers with action methods.
|
|
13
|
+
*
|
|
14
|
+
* Supports separate query options and provider options:
|
|
15
|
+
* - Constructor level: new EmailSenderDb(principal, dbService, { omitPermissionsCheck: true })
|
|
16
|
+
* - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
|
|
17
|
+
*/
|
|
18
|
+
export declare class EmailSenderDb extends DbProvider {
|
|
19
|
+
protected readonly principal: any;
|
|
20
|
+
protected readonly dbService: any;
|
|
21
|
+
private readonly moduleName;
|
|
22
|
+
private readonly entityName;
|
|
23
|
+
private sourceRecord;
|
|
24
|
+
private _email?;
|
|
25
|
+
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
26
|
+
get email(): DbRecordLinkManager;
|
|
27
|
+
setRecord(sourceRecord: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Search records with manual pagination control
|
|
30
|
+
* @param params - Search parameters
|
|
31
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
32
|
+
*/
|
|
33
|
+
searchRecords(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<EmailSenderProperties>>>;
|
|
34
|
+
/**
|
|
35
|
+
* Search all records with automatic pagination
|
|
36
|
+
* @param params - Search parameters
|
|
37
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
38
|
+
*/
|
|
39
|
+
searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<EmailSenderProperties>>>;
|
|
40
|
+
/**
|
|
41
|
+
* Get a single record by primary key
|
|
42
|
+
* @param emailSenderId - Record ID
|
|
43
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
44
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // Simple get
|
|
48
|
+
* const record = await db.getByPrimaryKey(id);
|
|
49
|
+
*
|
|
50
|
+
* // With related entities
|
|
51
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
|
|
52
|
+
*
|
|
53
|
+
* // With permissions bypass
|
|
54
|
+
* const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
|
|
55
|
+
*
|
|
56
|
+
* // Both options
|
|
57
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
|
|
58
|
+
*/
|
|
59
|
+
getByPrimaryKey(emailSenderId: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<EmailSenderProperties>>;
|
|
60
|
+
/**
|
|
61
|
+
* Get multiple records by primary keys
|
|
62
|
+
* @param emailSenderIds - Array of record IDs
|
|
63
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
64
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
65
|
+
*/
|
|
66
|
+
getManyByPrimaryKey(emailSenderIds: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<EmailSenderProperties>[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Upsert a single record
|
|
69
|
+
* @param upsertDto - Record to upsert
|
|
70
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
71
|
+
*/
|
|
72
|
+
upsert(upsertDto: OdinRecordCreateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes>;
|
|
73
|
+
/**
|
|
74
|
+
* Upsert multiple records
|
|
75
|
+
* @param upsertDtos - Records to upsert
|
|
76
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
77
|
+
*/
|
|
78
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Update a single record
|
|
81
|
+
* @param updateDto - Record to update
|
|
82
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
83
|
+
*/
|
|
84
|
+
update(updateDto: OdinRecordUpdateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes>;
|
|
85
|
+
/**
|
|
86
|
+
* Update multiple records
|
|
87
|
+
* @param updateDtos - Records to update
|
|
88
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
89
|
+
*/
|
|
90
|
+
updateMany(updateDtos: OdinRecordUpdateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
91
|
+
/**
|
|
92
|
+
* Delete one or many records
|
|
93
|
+
* @param emailSenderIds - Record IDs to delete
|
|
94
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
95
|
+
*/
|
|
96
|
+
delete(emailSenderIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordDeleted[]>;
|
|
97
|
+
/**
|
|
98
|
+
* Restore one or many deleted records
|
|
99
|
+
* @param emailSenderIds - Record IDs to restore
|
|
100
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
101
|
+
*/
|
|
102
|
+
restore(emailSenderIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordRestored[]>;
|
|
103
|
+
/**
|
|
104
|
+
* Apply an action to a record
|
|
105
|
+
* @param actionName - The action key
|
|
106
|
+
* @param dto - The action DTO
|
|
107
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
108
|
+
*/
|
|
109
|
+
applyAction(actionName: string, dto: any, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
110
|
+
/**
|
|
111
|
+
* Get version history for the current source record
|
|
112
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
113
|
+
*/
|
|
114
|
+
getVersions(providerOptions?: DbProviderOptions): Promise<any>;
|
|
115
|
+
/**
|
|
116
|
+
* Get revision timeline for the current source record
|
|
117
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
118
|
+
*/
|
|
119
|
+
getRevisionTimeline(providerOptions?: DbProviderOptions): Promise<any>;
|
|
120
|
+
}
|