@cfxlabsinc/b2b-services
Preparing search index...
@cfxlabsinc/slack-services
CustomerSlackMessagePublisher
Class CustomerSlackMessagePublisher
Index
Constructors
constructor
Methods
get
Publish
Channels
With
Bot
Token
publish
Message
Constructors
constructor
new
CustomerSlackMessagePublisher
(
args
:
{
customerSlackBotChannelAdminService
:
CustomerSlackBotChannelAdminService
;
customerSlackBotInstallationAdminService
:
CustomerSlackBotInstallationAdminService
;
slackBotInstallationService
:
SlackBotInstallationService
;
slackChannelClient
:
SlackChannelClient
;
}
,
)
:
CustomerSlackMessagePublisher
Parameters
args
:
{
customerSlackBotChannelAdminService
:
CustomerSlackBotChannelAdminService
;
customerSlackBotInstallationAdminService
:
CustomerSlackBotInstallationAdminService
;
slackBotInstallationService
:
SlackBotInstallationService
;
slackChannelClient
:
SlackChannelClient
;
}
Returns
CustomerSlackMessagePublisher
Methods
get
Publish
Channels
With
Bot
Token
getPublishChannelsWithBotToken
(
args
:
{
customerId
:
string
}
,
)
:
Promise
<
{
channelId
:
string
;
config
:
unknown
;
createdAt
:
Date
;
customerSlackBotInstallationId
:
string
;
id
:
string
;
isHidden
:
boolean
;
token
:
string
;
updatedAt
:
Date
;
}
[]
,
>
Parameters
args
:
{
customerId
:
string
}
Returns
Promise
<
{
channelId
:
string
;
config
:
unknown
;
createdAt
:
Date
;
customerSlackBotInstallationId
:
string
;
id
:
string
;
isHidden
:
boolean
;
token
:
string
;
updatedAt
:
Date
;
}
[]
,
>
publish
Message
publishMessage
<
T
extends
{
channelId
:
string
;
token
:
string
}
>
(
args
:
{
channels
:
T
[]
;
slackMessage
:
KnownBlock
[]
}
,
)
:
Promise
<
void
>
Type Parameters
T
extends
{
channelId
:
string
;
token
:
string
}
Parameters
args
:
{
channels
:
T
[]
;
slackMessage
:
KnownBlock
[]
}
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
Publish
Channels
With
Bot
Token
publish
Message
@cfxlabsinc/b2b-services
Loading...