@ceajs/core / Exports
Ƭ CookieRawObject: Object
▪ [K: string
]: string
Ƭ SchoolConf: Object
▪ [school: string
]: SchoolConfOpts
Ƭ SchoolConfOpts: Object
Name | Type |
---|---|
authOrigin |
string |
captchaAuthMode |
CaptchaAuthMode |
chineseName |
string |
defaultAddr |
string |
edgeCase |
SchoolEdgeCase |
isCloud |
boolean |
loginURL? |
string |
preAuthURL |
string |
Ƭ StringKV: Object
▪ [key: string
]: string
Ƭ UserConfOpts: Object
Name | Type |
---|---|
addr |
["" ] | [string , string , string ] |
alias |
string |
captcha? |
"MANUAL" | "OCR" |
password |
string |
retry? |
number |
school |
string |
signedDataMonth? |
`${number}-${number}` |
username |
string |
Ƭ UsersConf: Object
Name | Type |
---|---|
localEdgeCasesFile? |
string |
notifier? |
[`${number}`, string , string ] |
users |
UserConfOpts [] |
• log: LogRouter
▸ cookieParse(host
, headers
): CookieMap
Parse http response headers' cookie
Name | Type |
---|---|
host |
string |
headers |
Headers |
CookieMap
▸ cookieStr(host
, cookieMap
): string
Construct a cookie object based on host
Name | Type |
---|---|
host |
string |
cookieMap |
CookieMap |
string
▸ getSchoolInfos(__namedParameters
): Promise
<SchoolConf
| null
>
Name | Type |
---|---|
__namedParameters |
UsersConf |
Promise
<SchoolConf
| null
>
▸ handleCookie(): Promise
<void
>
Iterate through all users: complete unified auth -> store cookie
Promise
<void
>
▸ loadConfFromToml(customFilePath?
): UsersConf
| null
Name | Type |
---|---|
customFilePath? |
string |
UsersConf
| null