add from to notification model (#14102)
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import type { Attachment, INotificationModuleService, NotificationContent } from "@medusajs/framework/types"
|
||||
import type {
|
||||
Attachment,
|
||||
INotificationModuleService,
|
||||
NotificationContent,
|
||||
} from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { StepResponse, createStep } from "@medusajs/framework/workflows-sdk"
|
||||
|
||||
@@ -11,6 +15,11 @@ export type SendNotificationsStepInput = {
|
||||
* the channel. For example, the email address for the email channel.
|
||||
*/
|
||||
to: string
|
||||
/**
|
||||
* The address to send the notification from, depending on
|
||||
* the channel. For example, the email address for the email channel.
|
||||
*/
|
||||
from?: string | null
|
||||
/**
|
||||
* The channel to send the notification through. For example, `email`.
|
||||
*/
|
||||
|
||||
@@ -147,6 +147,10 @@ export interface FilterableNotificationProps
|
||||
* Filter based on the recipient of the notification.
|
||||
*/
|
||||
to?: string | string[] | OperatorMap<string | string[]>
|
||||
/**
|
||||
* Filter based on the recipient of the notification.
|
||||
*/
|
||||
from?: string | string[] | OperatorMap<string | string[]>
|
||||
/**
|
||||
* Filter based on the channel through which the notification is sent, such as 'email' or 'sms'
|
||||
*/
|
||||
|
||||
@@ -11,6 +11,10 @@ export interface CreateNotificationDTO {
|
||||
* The recipient of the notification. It can be email, phone number, or username, depending on the channel.
|
||||
*/
|
||||
to: string
|
||||
/**
|
||||
* The sender of the notification. It can be email, phone number, or username, depending on the channel.
|
||||
*/
|
||||
from?: string | null
|
||||
/**
|
||||
* The channel through which the notification is sent, such as `email` or `sms`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user