@cfxlabsinc/b2b-services
Preparing search index...
@cfxlabsinc/slack-services
CustomerSlackBotChannelAdminService
Class CustomerSlackBotChannelAdminService
Index
Constructors
constructor
Properties
db
Methods
create
delete
get
search
Constructors
constructor
new
CustomerSlackBotChannelAdminService
(
args
:
{
db
:
B2bDatabase
}
,
)
:
CustomerSlackBotChannelAdminService
Parameters
args
:
{
db
:
B2bDatabase
}
Returns
CustomerSlackBotChannelAdminService
Properties
Protected
Readonly
db
db
:
B2bDatabase
Methods
create
create
(
args
:
{
channelId
:
string
;
customerSlackBotInstallationId
:
string
;
tx
?:
B2bPgTransaction
;
}
,
)
:
Promise
<
{
ok
:
true
;
value
:
CustomerSlackBotChannel
|
null
}
>
Get a slack installation by ID
Parameters
args
:
{
channelId
:
string
;
customerSlackBotInstallationId
:
string
;
tx
?:
B2bPgTransaction
;
}
Returns
Promise
<
{
ok
:
true
;
value
:
CustomerSlackBotChannel
|
null
}
>
delete
delete
(
args
:
{
id
:
string
[]
;
tx
?:
B2bPgTransaction
}
)
:
Promise
<
void
>
Get a slack installation by ID
Parameters
args
:
{
id
:
string
[]
;
tx
?:
B2bPgTransaction
}
Returns
Promise
<
void
>
get
get
(
args
:
{
id
:
string
;
tx
?:
B2bPgTransaction
}
,
)
:
Promise
<
{
ok
:
true
;
value
:
|
Omit
<
{
channelId
:
string
;
config
:
unknown
;
createdAt
:
Date
;
customerSlackBotInstallationId
:
number
;
externalId
:
string
;
id
:
number
;
updatedAt
:
Date
;
}
,
"id"
|
"externalId"
|
"customerSlackBotInstallationId"
,
>
&
{
customerSlackBotInstallationId
:
string
;
id
:
string
}
&
{
botToken
:
string
|
null
;
isHidden
:
boolean
;
}
|
null
;
}
,
>
Get a slack installation by ID
Parameters
args
:
{
id
:
string
;
tx
?:
B2bPgTransaction
}
Returns
Promise
<
{
ok
:
true
;
value
:
|
Omit
<
{
channelId
:
string
;
config
:
unknown
;
createdAt
:
Date
;
customerSlackBotInstallationId
:
number
;
externalId
:
string
;
id
:
number
;
updatedAt
:
Date
;
}
,
"id"
|
"externalId"
|
"customerSlackBotInstallationId"
,
>
&
{
customerSlackBotInstallationId
:
string
;
id
:
string
}
&
{
botToken
:
string
|
null
;
isHidden
:
boolean
;
}
|
null
;
}
,
>
search
search
(
__namedParameters
:
{
channelId
?:
string
;
createdAt
?:
DbTimestampCriteria
;
customerId
?:
string
;
customerSlackBotInstallationId
?:
string
;
page
?:
number
;
pageSize
?:
number
;
tx
?:
B2bPgTransaction
;
updatedAt
?:
DbTimestampCriteria
;
}
,
)
:
Promise
<
{
ok
:
true
;
value
:
(
Omit
<
{
channelId
:
string
;
config
:
unknown
;
createdAt
:
Date
;
customerSlackBotInstallationId
:
number
;
externalId
:
string
;
id
:
number
;
updatedAt
:
Date
;
}
,
"id"
|
"externalId"
|
"customerSlackBotInstallationId"
,
>
&
{
customerSlackBotInstallationId
:
string
;
id
:
string
}
&
{
botToken
:
string
|
null
;
isHidden
:
boolean
;
}
)
[]
;
}
,
>
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
:
(
Omit
<
{
channelId
:
string
;
config
:
unknown
;
createdAt
:
Date
;
customerSlackBotInstallationId
:
number
;
externalId
:
string
;
id
:
number
;
updatedAt
:
Date
;
}
,
"id"
|
"externalId"
|
"customerSlackBotInstallationId"
,
>
&
{
customerSlackBotInstallationId
:
string
;
id
:
string
}
&
{
botToken
:
string
|
null
;
isHidden
:
boolean
;
}
)
[]
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
db
Methods
create
delete
get
search
@cfxlabsinc/b2b-services
Loading...
Get a slack installation by ID