add from to notification model (#14102)

This commit is contained in:
Pedro Guzman
2025-11-24 09:24:38 +01:00
committed by GitHub
parent 0cb12021ef
commit f67bfb9f92
9 changed files with 83 additions and 15 deletions

View File

@@ -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`.
*/