fix(utils): add static identifier to AbstractNotificationProviderService (#11344)
This commit is contained in:
5
.changeset/good-hornets-protect.md
Normal file
5
.changeset/good-hornets-protect.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/utils": patch
|
||||
---
|
||||
|
||||
fix(utils): add static identifier to AbstractNotificationProviderService
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user