fix(utils): add static identifier to AbstractNotificationProviderService (#11344)
This commit is contained in:
1 parent
d58c056c53
commit
cb0f065c9d
2 files changed
+15
No files matched your search
@@ -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
|
export class AbstractNotificationProviderService
|
||||||
implements INotificationProvider
|
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`.
|
* 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.
|
* Implementing this method is optional. It's useful if your provider requires custom validation.
|
||||||
|
|||||||
Reference in new issue
Block a user