Skip to content

Commit 1c1b189

Browse files
committed
docs(api): update pkgs API
1 parent 137f0b9 commit 1c1b189

File tree

15 files changed

+721
-315
lines changed

15 files changed

+721
-315
lines changed

CHANGELOG.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
55

66
## [2.2.1](https://github.com/ceajs/cea/compare/v2.2.0...v2.2.1) (2021-11-11)
77

8-
98
### Bug Fixes
109

11-
* **core:** CLOUD join type result handling ([0924be8](https://github.com/ceajs/cea/commit/0924be8da53c6fcee829ea10e9d36a58e30e4ea1))
12-
* **core:** login process for CLOUD ([5740f84](https://github.com/ceajs/cea/commit/5740f84f1701e170e2158fc840a08db174a0075a))
13-
* **internal:** print school join type CLOUD | NOTCLOUD ([2264028](https://github.com/ceajs/cea/commit/226402871e2b84d8c7345428af9a40141000bd8b))
14-
* **notifier:** add error handling ([063c38a](https://github.com/ceajs/cea/commit/063c38a2fd54a72bba2d7fe90f67bd3c7ba6a32f))
15-
* presize error handling ([0759c25](https://github.com/ceajs/cea/commit/0759c25628a571e7afb12e30bc25b9825973edd6))
16-
17-
18-
19-
10+
- **core:** CLOUD join type result handling ([0924be8](https://github.com/ceajs/cea/commit/0924be8da53c6fcee829ea10e9d36a58e30e4ea1))
11+
- **core:** login process for CLOUD ([5740f84](https://github.com/ceajs/cea/commit/5740f84f1701e170e2158fc840a08db174a0075a))
12+
- **internal:** print school join type CLOUD | NOTCLOUD ([2264028](https://github.com/ceajs/cea/commit/226402871e2b84d8c7345428af9a40141000bd8b))
13+
- **notifier:** add error handling ([063c38a](https://github.com/ceajs/cea/commit/063c38a2fd54a72bba2d7fe90f67bd3c7ba6a32f))
14+
- presize error handling ([0759c25](https://github.com/ceajs/cea/commit/0759c25628a571e7afb12e30bc25b9825973edd6))
2015

2116
# [2.2.0](https://github.com/ceajs/cea/compare/v2.1.0...v2.2.0) (2021-11-09)
2217

core/CHANGELOG.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
55

66
## [2.2.1](https://github.com/ceajs/cea/compare/v2.2.0...v2.2.1) (2021-11-11)
77

8-
98
### Bug Fixes
109

11-
* **core:** CLOUD join type result handling ([0924be8](https://github.com/ceajs/cea/commit/0924be8da53c6fcee829ea10e9d36a58e30e4ea1))
12-
* **core:** login process for CLOUD ([5740f84](https://github.com/ceajs/cea/commit/5740f84f1701e170e2158fc840a08db174a0075a))
13-
* **internal:** print school join type CLOUD | NOTCLOUD ([2264028](https://github.com/ceajs/cea/commit/226402871e2b84d8c7345428af9a40141000bd8b))
14-
* **notifier:** add error handling ([063c38a](https://github.com/ceajs/cea/commit/063c38a2fd54a72bba2d7fe90f67bd3c7ba6a32f))
15-
* presize error handling ([0759c25](https://github.com/ceajs/cea/commit/0759c25628a571e7afb12e30bc25b9825973edd6))
16-
17-
18-
19-
10+
- **core:** CLOUD join type result handling ([0924be8](https://github.com/ceajs/cea/commit/0924be8da53c6fcee829ea10e9d36a58e30e4ea1))
11+
- **core:** login process for CLOUD ([5740f84](https://github.com/ceajs/cea/commit/5740f84f1701e170e2158fc840a08db174a0075a))
12+
- **internal:** print school join type CLOUD | NOTCLOUD ([2264028](https://github.com/ceajs/cea/commit/226402871e2b84d8c7345428af9a40141000bd8b))
13+
- **notifier:** add error handling ([063c38a](https://github.com/ceajs/cea/commit/063c38a2fd54a72bba2d7fe90f67bd3c7ba6a32f))
14+
- presize error handling ([0759c25](https://github.com/ceajs/cea/commit/0759c25628a571e7afb12e30bc25b9825973edd6))
2015

2116
# [2.2.0](https://github.com/ceajs/cea/compare/v2.1.0...v2.2.0) (2021-11-09)
2217

docs/api/core/enums/CampusphereEndpoint.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#### Defined in
2020

21-
[src/types/helper.ts:8](https://github.com/ceajs/cea/blob/08338e7/core/src/types/helper.ts#L8)
21+
[src/types/helper.ts:8](https://github.com/ceajs/cea/blob/137f0b9/core/src/types/helper.ts#L8)
2222

2323
___
2424

@@ -28,7 +28,7 @@ ___
2828

2929
#### Defined in
3030

31-
[src/types/helper.ts:6](https://github.com/ceajs/cea/blob/08338e7/core/src/types/helper.ts#L6)
31+
[src/types/helper.ts:6](https://github.com/ceajs/cea/blob/137f0b9/core/src/types/helper.ts#L6)
3232

3333
___
3434

@@ -38,4 +38,4 @@ ___
3838

3939
#### Defined in
4040

41-
[src/types/helper.ts:9](https://github.com/ceajs/cea/blob/08338e7/core/src/types/helper.ts#L9)
41+
[src/types/helper.ts:9](https://github.com/ceajs/cea/blob/137f0b9/core/src/types/helper.ts#L9)

docs/api/core/interfaces/HandleCookieOptions.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs/api/core/modules.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212

1313
- [CampusphereEndpoint](../enums/CampusphereEndpoint.md)
1414

15-
### Interfaces
16-
17-
- [HandleCookieOptions](../interfaces/HandleCookieOptions.md)
18-
1915
### Type aliases
2016

2117
- [CookieRawObject](../modules.md#cookierawobject)
@@ -25,7 +21,7 @@
2521
- [UserConfOpts](../modules.md#userconfopts)
2622
- [UsersConf](../modules.md#usersconf)
2723

28-
### Properties
24+
### Variables
2925

3026
- [log](../modules.md#log)
3127

@@ -49,7 +45,7 @@
4945

5046
#### Defined in
5147

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)
5349

5450
___
5551

@@ -63,7 +59,7 @@ ___
6359

6460
#### Defined in
6561

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)
6763

6864
___
6965

@@ -76,15 +72,16 @@ ___
7672
| Name | Type |
7773
| :------ | :------ |
7874
| `auth` | `string` |
75+
| `authURL?` | `string` |
7976
| `campusphere` | `string` |
8077
| `chineseName` | `string` |
8178
| `defaultAddr` | `string` |
82-
| `isIap` | `boolean` |
79+
| `isCloud` | `boolean` |
8380
| `preAuthURL` | `string` |
8481

8582
#### Defined in
8683

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)
8885

8986
___
9087

@@ -98,7 +95,7 @@ ___
9895

9996
#### Defined in
10097

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)
10299

103100
___
104101

@@ -112,30 +109,41 @@ ___
112109
| :------ | :------ |
113110
| `addr` | `string`[] |
114111
| `alias` | `string` |
115-
| `cookie?` | [`CookieRawObject`](../modules.md#cookierawobject) |
112+
| `captcha?` | ``"MANUAL"`` \| ``"OCR"`` |
116113
| `password` | `string` |
117114
| `school` | `string` |
118115
| `username` | `string` |
119116

120117
#### Defined in
121118

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)
123120

124121
___
125122

126123
### UsersConf
127124

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)[] |
129133

130134
#### Defined in
131135

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)
133137

134-
## Properties
138+
## Variables
135139

136140
### log
137141

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)
139147

140148
## Functions
141149

@@ -158,7 +166,7 @@ Parse http response headers' cookie
158166

159167
#### Defined in
160168

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)
162170

163171
___
164172

@@ -181,49 +189,43 @@ Construct a cookie object based on host
181189

182190
#### Defined in
183191

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)
185193

186194
___
187195

188196
### getSchoolInfos
189197

190-
**getSchoolInfos**(`users`): `Promise`<[`SchoolConf`](../modules.md#schoolconf) \| ``null``\>
198+
**getSchoolInfos**(`__namedParameters`): `Promise`<[`SchoolConf`](../modules.md#schoolconf) \| ``null``\>
191199

192200
#### Parameters
193201

194202
| Name | Type |
195203
| :------ | :------ |
196-
| `users` | [`UsersConf`](../modules.md#usersconf) |
204+
| `__namedParameters` | [`UsersConf`](../modules.md#usersconf) |
197205

198206
#### Returns
199207

200208
`Promise`<[`SchoolConf`](../modules.md#schoolconf) \| ``null``\>
201209

202210
#### Defined in
203211

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)
205213

206214
___
207215

208216
### handleCookie
209217

210-
**handleCookie**(`options?`): `Promise`<`void`\>
218+
**handleCookie**(): `Promise`<`void`\>
211219

212220
Iterate through all users: complete unified auth -> store cookie
213221

214-
#### Parameters
215-
216-
| Name | Type |
217-
| :------ | :------ |
218-
| `options?` | [`HandleCookieOptions`](../interfaces/HandleCookieOptions.md) |
219-
220222
#### Returns
221223

222224
`Promise`<`void`\>
223225

224226
#### Defined in
225227

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)
227229

228230
___
229231

@@ -237,4 +239,4 @@ ___
237239

238240
#### Defined in
239241

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)

docs/api/internal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ cea.start()
4343
# 文档
4444

4545
- 项目说明:https://github.com/ceajs/cea/tree/main/internal
46-
- API 文档:https://github.com/ceajs/cea/blob/main/docs/api/- internal/modules.md
46+
- API 文档:https://github.com/ceajs/cea/blob/main/docs/api/internal/modules.md
4747
- 配置文档:https://github.com/ceajs/cea

docs/api/internal/classes/default.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#### Defined in
3333

34-
[internal/src/index.ts:5](https://github.com/ceajs/cea/blob/08338e7/internal/src/index.ts#L5)
34+
[internal/src/index.ts:5](https://github.com/ceajs/cea/blob/137f0b9/internal/src/index.ts#L5)
3535

3636
## Methods
3737

@@ -51,7 +51,7 @@
5151

5252
#### Defined in
5353

54-
[internal/src/index.ts:7](https://github.com/ceajs/cea/blob/08338e7/internal/src/index.ts#L7)
54+
[internal/src/index.ts:7](https://github.com/ceajs/cea/blob/137f0b9/internal/src/index.ts#L7)
5555

5656
___
5757

@@ -65,4 +65,4 @@ ___
6565

6666
#### Defined in
6767

68-
[internal/src/index.ts:11](https://github.com/ceajs/cea/blob/08338e7/internal/src/index.ts#L11)
68+
[internal/src/index.ts:11](https://github.com/ceajs/cea/blob/137f0b9/internal/src/index.ts#L11)

0 commit comments

Comments
 (0)