fix(core-flows): update SendNotificationsStepInput (#13979)
This commit is contained in:
5
.changeset/heavy-shirts-fold.md
Normal file
5
.changeset/heavy-shirts-fold.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/core-flows": patch
|
||||
---
|
||||
|
||||
fix(core-flows): update SendNotificationsStepInput
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user