fix(utils): add static identifier to AbstractNotificationProviderService (#11344)

This commit is contained in:
Shahed Nasser
2025-02-07 17:30:08 +02:00
committed by GitHub
parent d58c056c53
commit cb0f065c9d
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
fix(utils): add static identifier to AbstractNotificationProviderService

View File

@@ -48,6 +48,16 @@ import { INotificationProvider, NotificationTypes } from "@medusajs/types"
export class AbstractNotificationProviderService
implements INotificationProvider
{
/**
* Each notification provider has a unique ID used to identify it.
*
* @example
* class MyNotificationProviderService extends AbstractNotificationProviderService {
* static identifier = "my-notification"
* // ...
* }
*/
static identifier: string
/**
* This method validates the options of the provider set in `medusa-config.ts`.
* Implementing this method is optional. It's useful if your provider requires custom validation.