fix(core-flows): update SendNotificationsStepInput (#13979)
This commit is contained in:
1 parent
3852efbcff
commit
a5c6f6b1fb
2 files changed
+15
-2
No files matched your search
@@ -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 { Modules } from "@medusajs/framework/utils"
|
||||||
import { StepResponse, createStep } from "@medusajs/framework/workflows-sdk"
|
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
|
* 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.
|
* 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 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.
|
* 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.
|
* is sent multiple times, the key ensures that the notification is sent only once.
|
||||||
*/
|
*/
|
||||||
idempotency_key?: string | null
|
idempotency_key?: string | null
|
||||||
|
/**
|
||||||
|
* Optional attachments for the notification.
|
||||||
|
*/
|
||||||
|
attachments?: Attachment[] | null
|
||||||
}[]
|
}[]
|
||||||
|
|
||||||
export const sendNotificationsStepId = "send-notifications"
|
export const sendNotificationsStepId = "send-notifications"
|
||||||
|
|||||||
Reference in new issue
Block a user