Class: Notificator
@pvm/notifications.Notificator
Constructors
constructor
• new Notificator(config
)
Parameters
Name | Type |
---|---|
config | Config |
Defined in
packages/pvm-notifications/lib/notificator.ts:16
Properties
config
• Private
config: Config
Defined in
packages/pvm-notifications/lib/notificator.ts:14
messengers
• Private
messengers: MessengerClients
Defined in
packages/pvm-notifications/lib/notificator.ts:13
Methods
sendMessage
â–¸ sendMessage(message
, opts?
): Promise
<void
>
Parameters
Name | Type |
---|---|
message | Message |
opts | Object |
opts.target? | string |
Returns
Promise
<void
>
Defined in
packages/pvm-notifications/lib/notificator.ts:45
create
â–¸ Static
create(cwd?
): Promise
<Notificator
>
Parameters
Name | Type |
---|---|
cwd | string |
Returns
Promise
<Notificator
>
Defined in
packages/pvm-notifications/lib/notificator.ts:39
getClientConfig
â–¸ Static
getClientConfig(clientName
, config
): MessengerClientConfig
Parameters
Name | Type |
---|---|
clientName | string |
config | Config |