@cfxlabsinc/b2b-services
Preparing search index...
@cfxlabsinc/slack-services
CustomerSlackBotChannelService
Class CustomerSlackBotChannelService
Index
Constructors
constructor
Properties
db
db
Helper
Methods
create
delete
get
search
Constructors
constructor
new
CustomerSlackBotChannelService
(
args
:
{
sqlClient
:
Sql
}
,
)
:
CustomerSlackBotChannelService
Parameters
args
:
{
sqlClient
:
Sql
}
Returns
CustomerSlackBotChannelService
Properties
Protected
Readonly
db
db
:
B2bDatabase
Protected
Readonly
db
Helper
dbHelper
:
DbHelper
Methods
create
create
(
args
:
{
channelId
:
string
;
customerId
:
string
;
customerSlackBotInstallationId
:
string
;
tx
?:
B2bPgTransaction
;
}
,
)
:
Promise
<
{
ok
:
true
;
value
:
CustomerSlackBotChannel
|
null
}
>
Get a slack installation by ID
Parameters
args
:
{
channelId
:
string
;
customerId
:
string
;
customerSlackBotInstallationId
:
string
;
tx
?:
B2bPgTransaction
;
}
Returns
Promise
<
{
ok
:
true
;
value
:
CustomerSlackBotChannel
|
null
}
>
delete
delete
(
args
:
{
customerId
:
string
;
customerSlackBotInstallationId
:
string
;
id
:
string
[]
;
tx
?:
B2bPgTransaction
;
}
,
)
:
Promise
<
void
>
Get a slack installation by ID
Parameters
args
:
{
customerId
:
string
;
customerSlackBotInstallationId
:
string
;
id
:
string
[]
;
tx
?:
B2bPgTransaction
;
}
Returns
Promise
<
void
>
get
get
(
args
:
{
customerId
:
string
;
id
:
string
;
tx
?:
B2bPgTransaction
}
,
)
:
Promise
<
{
ok
:
true
;
value
:
CustomerSlackBotChannel
|
null
}
>
Get a slack installation by ID
Parameters
args
:
{
customerId
:
string
;
id
:
string
;
tx
?:
B2bPgTransaction
}
Returns
Promise
<
{
ok
:
true
;
value
:
CustomerSlackBotChannel
|
null
}
>
search
search
(
__namedParameters
:
{
channelId
?:
string
;
createdAt
?:
DbTimestampCriteria
;
customerId
:
string
;
customerSlackBotInstallationId
?:
string
;
page
?:
number
;
pageSize
?:
number
;
tx
?:
B2bPgTransaction
;
updatedAt
?:
DbTimestampCriteria
;
}
,
)
:
Promise
<
{
ok
:
true
;
value
:
CustomerSlackBotChannel
[]
}
>
Search slack channels by customer or channel id
Parameters
__namedParameters
:
{
channelId
?:
string
;
createdAt
?:
DbTimestampCriteria
;
customerId
:
string
;
customerSlackBotInstallationId
?:
string
;
page
?:
number
;
pageSize
?:
number
;
tx
?:
B2bPgTransaction
;
updatedAt
?:
DbTimestampCriteria
;
}
Returns
Promise
<
{
ok
:
true
;
value
:
CustomerSlackBotChannel
[]
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
db
db
Helper
Methods
create
delete
get
search
@cfxlabsinc/b2b-services
Loading...
Get a slack installation by ID