mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
feat(domain-events): add email subscription sync requested event
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { DomainEventInterface } from './DomainEventInterface'
|
||||
|
||||
import { EmailSubscriptionSyncRequestedEventPayload } from './EmailSubscriptionSyncRequestedEventPayload'
|
||||
|
||||
export interface EmailSubscriptionSyncRequestedEvent extends DomainEventInterface {
|
||||
type: 'EMAIL_SUBSCRIPTION_SYNC_REQUESTED'
|
||||
payload: EmailSubscriptionSyncRequestedEventPayload
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
export interface EmailSubscriptionSyncRequestedEventPayload {
|
||||
username: string
|
||||
userUuid: string
|
||||
subscriptionPlanName: string | null
|
||||
muteFailedBackupsEmails: boolean
|
||||
muteFailedCloudBackupsEmails: boolean
|
||||
muteMarketingEmails: boolean
|
||||
muteSignInEmails: boolean
|
||||
}
|
||||
@@ -30,6 +30,8 @@ export * from './Event/EmailBackupRequestedEvent'
|
||||
export * from './Event/EmailBackupRequestedEventPayload'
|
||||
export * from './Event/EmailMessageRequestedEvent'
|
||||
export * from './Event/EmailMessageRequestedEventPayload'
|
||||
export * from './Event/EmailSubscriptionSyncRequestedEvent'
|
||||
export * from './Event/EmailSubscriptionSyncRequestedEventPayload'
|
||||
export * from './Event/ExitDiscountAppliedEvent'
|
||||
export * from './Event/ExitDiscountAppliedEventPayload'
|
||||
export * from './Event/ExitDiscountApplyRequestedEvent'
|
||||
|
||||
Reference in New Issue
Block a user