12
12
13
13
- [ CampusphereEndpoint] ( ../enums/CampusphereEndpoint.md )
14
14
15
- ### Interfaces
16
-
17
- - [ HandleCookieOptions] ( ../interfaces/HandleCookieOptions.md )
18
-
19
15
### Type aliases
20
16
21
17
- [ CookieRawObject] ( ../modules.md#cookierawobject )
25
21
- [ UserConfOpts] ( ../modules.md#userconfopts )
26
22
- [ UsersConf] ( ../modules.md#usersconf )
27
23
28
- ### Properties
24
+ ### Variables
29
25
30
26
- [ log] ( ../modules.md#log )
31
27
49
45
50
46
#### Defined in
51
47
52
- [ src/types/cookie.ts:3] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/types/cookie.ts#L3 )
48
+ [ src/types/cookie.ts:3] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/types/cookie.ts#L3 )
53
49
54
50
___
55
51
63
59
64
60
#### Defined in
65
61
66
- [ src/types/conf.ts:13 ] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/types/conf.ts#L13 )
62
+ [ src/types/conf.ts:14 ] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/types/conf.ts#L14 )
67
63
68
64
___
69
65
76
72
| Name | Type |
77
73
| :------ | :------ |
78
74
| ` auth ` | ` string ` |
75
+ | ` authURL? ` | ` string ` |
79
76
| ` campusphere ` | ` string ` |
80
77
| ` chineseName ` | ` string ` |
81
78
| ` defaultAddr ` | ` string ` |
82
- | ` isIap ` | ` boolean ` |
79
+ | ` isCloud ` | ` boolean ` |
83
80
| ` preAuthURL ` | ` string ` |
84
81
85
82
#### Defined in
86
83
87
- [ src/types/conf.ts:17 ] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/types/conf.ts#L17 )
84
+ [ src/types/conf.ts:18 ] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/types/conf.ts#L18 )
88
85
89
86
___
90
87
98
95
99
96
#### Defined in
100
97
101
- [ src/types/helper.ts:1] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/types/helper.ts#L1 )
98
+ [ src/types/helper.ts:1] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/types/helper.ts#L1 )
102
99
103
100
___
104
101
@@ -112,30 +109,41 @@ ___
112
109
| :------ | :------ |
113
110
| ` addr ` | ` string ` [ ] |
114
111
| ` alias ` | ` string ` |
115
- | ` cookie ?` | [ ` CookieRawObject ` ] ( ../modules.md#cookierawobject ) |
112
+ | ` captcha ?` | `` "MANUAL" `` \| `` "OCR" `` |
116
113
| ` password ` | ` string ` |
117
114
| ` school ` | ` string ` |
118
115
| ` username ` | ` string ` |
119
116
120
117
#### Defined in
121
118
122
- [ src/types/conf.ts:4 ] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/types/conf.ts#L4 )
119
+ [ src/types/conf.ts:5 ] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/types/conf.ts#L5 )
123
120
124
121
___
125
122
126
123
### UsersConf
127
124
128
- Ƭ ** UsersConf** : [ ` UserConfOpts ` ] ( ../modules.md#userconfopts ) [ ]
125
+ Ƭ ** UsersConf** : ` Object `
126
+
127
+ #### Type declaration
128
+
129
+ | Name | Type |
130
+ | :------ | :------ |
131
+ | ` notifier? ` | [ \` ${number}\` , ` string ` ] |
132
+ | ` users ` | [ ` UserConfOpts ` ] ( ../modules.md#userconfopts ) [ ] |
129
133
130
134
#### Defined in
131
135
132
- [ src/types/conf.ts:3 ] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/types/conf.ts#L3 )
136
+ [ src/types/conf.ts:1 ] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/types/conf.ts#L1 )
133
137
134
- ## Properties
138
+ ## Variables
135
139
136
140
### log
137
141
138
- • ** log** : ` Signale ` <` DefaultMethods ` \>
142
+ • ** log** : ` LogRouter ` & { ` notify ` : () => ` Promise ` <` void ` \> ; ` object ` : (` obj ` : { [ K: string] : ` string ` ; }) => ` void ` }
143
+
144
+ #### Defined in
145
+
146
+ [ src/utils/logger.ts:28] ( https://github.com/ceajs/cea/blob/137f0b9/core/src/utils/logger.ts#L28 )
139
147
140
148
## Functions
141
149
@@ -158,7 +166,7 @@ Parse http response headers' cookie
158
166
159
167
#### Defined in
160
168
161
- [ src/utils/cookie-helper.ts:7] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/utils/cookie-helper.ts#L7 )
169
+ [ src/utils/cookie-helper.ts:7] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/utils/cookie-helper.ts#L7 )
162
170
163
171
___
164
172
@@ -181,49 +189,43 @@ Construct a cookie object based on host
181
189
182
190
#### Defined in
183
191
184
- [ src/utils/cookie-helper.ts:50] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/utils/cookie-helper.ts#L50 )
192
+ [ src/utils/cookie-helper.ts:50] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/utils/cookie-helper.ts#L50 )
185
193
186
194
___
187
195
188
196
### getSchoolInfos
189
197
190
- ▸ ** getSchoolInfos** (` users ` ): ` Promise ` <[ ` SchoolConf ` ] ( ../modules.md#schoolconf ) \| `` null `` \>
198
+ ▸ ** getSchoolInfos** (` __namedParameters ` ): ` Promise ` <[ ` SchoolConf ` ] ( ../modules.md#schoolconf ) \| `` null `` \>
191
199
192
200
#### Parameters
193
201
194
202
| Name | Type |
195
203
| :------ | :------ |
196
- | ` users ` | [ ` UsersConf ` ] ( ../modules.md#usersconf ) |
204
+ | ` __namedParameters ` | [ ` UsersConf ` ] ( ../modules.md#usersconf ) |
197
205
198
206
#### Returns
199
207
200
208
` Promise ` <[ ` SchoolConf ` ] ( ../modules.md#schoolconf ) \| `` null `` \>
201
209
202
210
#### Defined in
203
211
204
- [ src/conf.ts:25 ] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/conf.ts#L25 )
212
+ [ src/conf.ts:26 ] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/conf.ts#L26 )
205
213
206
214
___
207
215
208
216
### handleCookie
209
217
210
- ▸ ** handleCookie** (` options? ` ): ` Promise ` <` void ` \>
218
+ ▸ ** handleCookie** (): ` Promise ` <` void ` \>
211
219
212
220
Iterate through all users: complete unified auth -> store cookie
213
221
214
- #### Parameters
215
-
216
- | Name | Type |
217
- | :------ | :------ |
218
- | ` options? ` | [ ` HandleCookieOptions ` ] ( ../interfaces/HandleCookieOptions.md ) |
219
-
220
222
#### Returns
221
223
222
224
` Promise ` <` void ` \>
223
225
224
226
#### Defined in
225
227
226
- [ src/index.ts:33] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/index.ts#L33 )
228
+ [ src/index.ts:33] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/index.ts#L33 )
227
229
228
230
___
229
231
237
239
238
240
#### Defined in
239
241
240
- [ src/conf.ts:12 ] ( https://github.com/ceajs/cea/blob/08338e7 /core/src/conf.ts#L12 )
242
+ [ src/conf.ts:13 ] ( https://github.com/ceajs/cea/blob/137f0b9 /core/src/conf.ts#L13 )
0 commit comments