fix(core-flows): update SendNotificationsStepInput (#13979)

This commit is contained in:
Leonardo Benini
2025-11-06 13:45:03 +01:00
committed by GitHub
parent 3852efbcff
commit a5c6f6b1fb
2 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/core-flows": patch
---
fix(core-flows): update SendNotificationsStepInput

View File

@@ -1,4 +1,4 @@
import type { INotificationModuleService } 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"
@@ -19,7 +19,11 @@ export type SendNotificationsStepInput = {
* The ID of the template to use for the notification. This template ID may be defined
* in a third-party service used to send the notification.
*/
template: string
template?: string | null
/**
* The content that gets passed over to the provider.
*/
content?: NotificationContent | null
/**
* The data to use in the notification template. This data may be used to personalize
* the notification, such as the user's name or the order number.
@@ -51,6 +55,10 @@ export type SendNotificationsStepInput = {
* is sent multiple times, the key ensures that the notification is sent only once.
*/
idempotency_key?: string | null
/**
* Optional attachments for the notification.
*/
attachments?: Attachment[] | null
}[]
export const sendNotificationsStepId = "send-notifications"