From 919c53e44e2c7bb16bc513b5c96c93ac47bd6ce5 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 14 Jul 2025 16:55:57 +0300 Subject: [PATCH] fix(types): add attachments to CreateNotificationDTO type (#12936) Closes #12702 --- .changeset/gorgeous-beers-travel.md | 5 +++++ packages/core/types/src/notification/mutations.ts | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/gorgeous-beers-travel.md diff --git a/.changeset/gorgeous-beers-travel.md b/.changeset/gorgeous-beers-travel.md new file mode 100644 index 0000000000..5fbc376b75 --- /dev/null +++ b/.changeset/gorgeous-beers-travel.md @@ -0,0 +1,5 @@ +--- +"@medusajs/types": patch +--- + +fix(types): add attachments to CreateNotificationDTO type diff --git a/packages/core/types/src/notification/mutations.ts b/packages/core/types/src/notification/mutations.ts index 416c7aafd3..3c9a3c33b8 100644 --- a/packages/core/types/src/notification/mutations.ts +++ b/packages/core/types/src/notification/mutations.ts @@ -1,4 +1,4 @@ -import { NotificationContent } from "./common" +import { Attachment, NotificationContent } from "./common" /** * @interface @@ -52,4 +52,8 @@ export interface CreateNotificationDTO { * An idempotency key that ensures the same notification is not sent multiple times. */ idempotency_key?: string | null + /** + * Optional attachments for the notification. + */ + attachments?: Attachment[] | null }