Search
Preparing search index...
The search index is not available
General Bots Open Core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"packages/admin.gbapp/services/GBAdminService"
GBAdminService
Class GBAdminService
Services for server administration.
Hierarchy
GBAdminService
Implements
IGBAdminService
Index
Constructors
constructor
Properties
core
GB_
PROMPT
Strong
Regex
master
Bot
Instance
Id
Methods
acquire
Elevated
Token
get
Value
publish
set
Value
update
Security
Info
deploy
Package
Command
generate
Uuid
getADALCredentials
From
Username
getADALToken
From
Username
get
Hash
get
Mobile
Code
get
Node
Version
get
Number
Identifier
get
Rnd
Password
get
Rnd
Readable
Identifier
is
Share
Point
Path
rebuild
Index
Package
Command
sync
Bot
Server
Command
undeploy
Package
Command
Constructors
constructor
new GBAdmin
Service
(
core
:
IGBCoreService
)
:
GBAdminService
Parameters
core:
IGBCoreService
Returns
GBAdminService
Properties
core
core
:
IGBCoreService
Static
GB_
PROMPT
GB_
PROMPT
:
string
= "GeneralBots: "
Static
Strong
Regex
Strong
Regex
:
RegExp
= new RegExp('^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*+_-])(?=.{8,})')
Static
master
Bot
Instance
Id
master
Bot
Instance
Id
:
number
= 0
Methods
acquire
Elevated
Token
acquire
Elevated
Token
(
instanceId
:
number
)
:
Promise
<
string
>
Parameters
instanceId:
number
Returns
Promise
<
string
>
get
Value
get
Value
(
instanceId
:
number
, key
:
string
)
:
Promise
<
string
>
Parameters
instanceId:
number
key:
string
Returns
Promise
<
string
>
publish
publish
(
min
:
GBMinInstance
, packageName
:
string
, republish
:
boolean
)
:
Promise
<
void
>
Parameters
min:
GBMinInstance
packageName:
string
republish:
boolean
Returns
Promise
<
void
>
set
Value
set
Value
(
instanceId
:
number
, key
:
string
, value
:
string
)
:
Promise
<
void
>
Parameters
instanceId:
number
key:
string
value:
string
Returns
Promise
<
void
>
update
Security
Info
update
Security
Info
(
instanceId
:
number
, authenticatorTenant
:
string
, authenticatorAuthorityHostUrl
:
string
)
:
Promise
<
IGBInstance
>
Parameters
instanceId:
number
authenticatorTenant:
string
authenticatorAuthorityHostUrl:
string
Returns
Promise
<
IGBInstance
>
Static
deploy
Package
Command
deploy
Package
Command
(
min
:
GBMinInstance
, text
:
string
, deployer
:
IGBDeployer
)
:
Promise
<
void
>
Parameters
min:
GBMinInstance
text:
string
deployer:
IGBDeployer
Returns
Promise
<
void
>
Static
generate
Uuid
generate
Uuid
(
)
:
string
Returns
string
Static
getADALCredentials
From
Username
getADALCredentials
From
Username
(
username
:
string
, password
:
string
)
:
Promise
<
any
>
Parameters
username:
string
password:
string
Returns
Promise
<
any
>
Static
getADALToken
From
Username
getADALToken
From
Username
(
username
:
string
, password
:
string
)
:
Promise
<
any
>
Parameters
username:
string
password:
string
Returns
Promise
<
any
>
Static
get
Hash
get
Hash
(
str
:
any
, seed
?:
number
)
:
number
see
https://stackoverflow.com/a/52171480
Parameters
str:
any
Default value
seed:
number
= 0
Returns
number
Static
get
Mobile
Code
get
Mobile
Code
(
)
:
any
Returns
any
Static
get
Node
Version
get
Node
Version
(
)
:
any
Returns
any
Static
get
Number
Identifier
get
Number
Identifier
(
)
:
any
Returns
any
Static
get
Rnd
Password
get
Rnd
Password
(
)
:
string
Returns
string
Static
get
Rnd
Readable
Identifier
get
Rnd
Readable
Identifier
(
)
:
any
Returns
any
Static
is
Share
Point
Path
is
Share
Point
Path
(
path
:
string
)
:
boolean
Parameters
path:
string
Returns
boolean
Static
rebuild
Index
Package
Command
rebuild
Index
Package
Command
(
min
:
GBMinInstance
, deployer
:
IGBDeployer
)
:
Promise
<
void
>
Parameters
min:
GBMinInstance
deployer:
IGBDeployer
Returns
Promise
<
void
>
Static
sync
Bot
Server
Command
sync
Bot
Server
Command
(
min
:
GBMinInstance
, deployer
:
GBDeployer
)
:
Promise
<
void
>
Parameters
min:
GBMinInstance
deployer:
GBDeployer
Returns
Promise
<
void
>
Static
undeploy
Package
Command
undeploy
Package
Command
(
text
:
any
, min
:
GBMinInstance
)
:
Promise
<
void
>
Parameters
text:
any
min:
GBMinInstance
Returns
Promise
<
void
>
Globals
"packages/admin.gbapp/services/GBAdmin
Service"
GBAdmin
Service
constructor
core
GB_
PROMPT
Strong
Regex
master
Bot
Instance
Id
acquire
Elevated
Token
get
Value
publish
set
Value
update
Security
Info
deploy
Package
Command
generate
Uuid
getADALCredentials
From
Username
getADALToken
From
Username
get
Hash
get
Mobile
Code
get
Node
Version
get
Number
Identifier
get
Rnd
Password
get
Rnd
Readable
Identifier
is
Share
Point
Path
rebuild
Index
Package
Command
sync
Bot
Server
Command
undeploy
Package
Command
Password
Generator
Path
crypto
ms
Rest
Azure
url
Join
Generated using
TypeDoc
Services for server administration.