feat: Add the basic implementation of notification module (#7282)

* feat: Add the basic implementation of notification module

* fix: Minor fixes and introduction of idempotency key

* fix: Changes based on PR review
This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-05-10 11:22:03 +02:00
1 parent 6ec5ded6c8
commit 144e09e852
43 files changed
+1666 -1

No files matched your search

@@ -0,0 +1,14 @@
import { NotificationTypes } from "@medusajs/types"
import { AbstractNotificationProviderService } from "@medusajs/utils/src"
export class NotificationProviderServiceFixtures extends AbstractNotificationProviderService {
static identifier = "fixtures-notification-provider"
async send(
notification: NotificationTypes.ProviderSendNotificationDTO
): Promise<NotificationTypes.ProviderSendNotificationResultsDTO> {
return { id: "external_id" }
}
}
export const services = [NotificationProviderServiceFixtures]
@@ -0,0 +1 @@
export * from "./default-provider"