Class: DefaultAccountsSQL
Defined in: src/jobs/sql/DefaultAccountsSQL.ts:8
The DefaultAccounts is a single-execution background job that runs at service startup which creates
default user accounts for the system (e.g. the admin account). The default accounts to create are
defined in the server's config.ts under the key default_accounts.
Extends
Constructors
Constructor
new DefaultAccountsSQL():
DefaultAccountsSQL
Returns
DefaultAccountsSQL
Inherited from
Properties
aliasClass
protectedaliasClass:any=AliasSQL
Defined in: src/jobs/sql/DefaultAccountsSQL.ts:9
Overrides
aliasRepo?
protectedoptionalaliasRepo?:RepoUtils<AliasSQL>
Defined in: src/jobs/DefaultAccounts.ts:45
Inherited from
defaultAccounts
protecteddefaultAccounts:DefaultAccountConfig[] =[]
Defined in: src/jobs/DefaultAccounts.ts:53
Inherited from
DefaultAccounts.defaultAccounts
defaultScopes
protecteddefaultScopes:string[] =[]
Defined in: src/jobs/DefaultAccounts.ts:56
Inherited from
logger?
protectedoptionallogger?:any
Defined in: src/jobs/DefaultAccounts.ts:59
Inherited from
passwordConfig
protectedpasswordConfig:PasswordConfig
Defined in: src/jobs/DefaultAccounts.ts:62
Inherited from
DefaultAccounts.passwordConfig
passwordFile?
protectedoptionalpasswordFile?:string="passwords"
Defined in: src/jobs/DefaultAccounts.ts:65
Inherited from
profileClass
protectedprofileClass:any=ProfileSQL
Defined in: src/jobs/sql/DefaultAccountsSQL.ts:10
Overrides
profileRepo?
protectedoptionalprofileRepo?:RepoUtils<ProfileSQL>
Defined in: src/jobs/DefaultAccounts.ts:67
Inherited from
secretClass
protectedsecretClass:any=SecretSQL
Defined in: src/jobs/sql/DefaultAccountsSQL.ts:11
Overrides
secretRepo?
protectedoptionalsecretRepo?:RepoUtils<SecretSQL>
Defined in: src/jobs/DefaultAccounts.ts:69
Inherited from
trustedRoles
protectedtrustedRoles:string[]
Defined in: src/jobs/DefaultAccounts.ts:72
Inherited from
userClass
protecteduserClass:any=UserSQL
Defined in: src/jobs/sql/DefaultAccountsSQL.ts:12
Overrides
userRepo?
protectedoptionaluserRepo?:RepoUtils<UserSQL>
Defined in: src/jobs/DefaultAccounts.ts:74
Inherited from
Accessors
schedule
Get Signature
get schedule():
string|undefined
Defined in: src/jobs/DefaultAccounts.ts:120
Returns the desired execution interval that this service should be scheduled with. If undefined is returned
the service is executed only once.
Returns
string | undefined
Inherited from
Methods
init()
init():
Promise<void>
Defined in: src/jobs/DefaultAccounts.ts:77
Returns
Promise<void>
Inherited from
run()
run():
void|Promise<void>
Defined in: src/jobs/DefaultAccounts.ts:124
The processing function to execute at each scheduled interval.
Returns
void | Promise<void>
Inherited from
start()
start():
Promise<void>
Defined in: src/jobs/DefaultAccounts.ts:128
Initializes the background service with any defaults.
Returns
Promise<void>
Inherited from
stop()
stop():
void|Promise<void>
Defined in: src/jobs/DefaultAccounts.ts:181
Shuts down the background allowing the service to complete any outstanding tasks.
Returns
void | Promise<void>