Skip to content

Commit 361d6af

Browse files
authored
chore: update api (#54)
1 parent 56a8c40 commit 361d6af

File tree

112 files changed

+426
-17494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+426
-17494
lines changed

README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,8 @@ SyntaxError: ./bee-js-docs/docs/api/functions/utils.bytes.isbytes.md: Expected c
7171
Client bundle compiled with errors therefore further build is impossible.
7272
```
7373

74-
3. Fix the issues - use the following bash script
75-
```sh
76-
# Escape all unescaped '>' characters except for the lines starting with "title:"
77-
for file in `find ./docs/api`; do
78-
if [ -f "$file" ]; then
79-
mv "$file" "$file.back"
80-
sed -e '/^title:/n;s/\([^\\]\)\>/\1\\\>/g' "$file.back" &> "$file"
81-
if [ $? -eq 0 ]; then
82-
rm "$file.back"
83-
echo "fixed: $file"
84-
else
85-
mv "$file.back" "$file"
86-
echo "error: $file"
87-
fi
88-
fi
89-
done
90-
```
91-
74+
3. Fix the issues - run the `escape-chars.bash` script
75+
9276
4. In the `docusaurus.config.js` and comment the line 9 with `'docusaurus-plugin-typedoc'` in the plugins array so that the building no longer runs typedoc on `bee-js`. Test the page with `npm run start` or `npm run build` and create PR with this updated API reference.
9377

9478
## Maintainers

docs/api/classes/bee.md

Lines changed: 64 additions & 64 deletions
Large diffs are not rendered by default.

docs/api/classes/beeargumenterror.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Name | Type |
3131

3232
Inherited from: [BeeError](beeerror.md)
3333

34-
Defined in: [bee-js/src/utils/error.ts:7](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/utils/error.ts#L7)
34+
Defined in: [bee-js/src/utils/error.ts:7](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/utils/error.ts#L7)
3535

3636
## Properties
3737

docs/api/classes/beedebug.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ Name | Type |
2626

2727
**Returns:** [*BeeDebug*](beedebug.md)
2828

29-
Defined in: [bee-js/src/bee-debug.ts:36](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L36)
29+
Defined in: [bee-js/src/bee-debug.ts:36](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L36)
3030

3131
## Properties
3232

3333
### url
3434

3535
`Readonly` **url**: *string*
3636

37-
Defined in: [bee-js/src/bee-debug.ts:36](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L36)
37+
Defined in: [bee-js/src/bee-debug.ts:36](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L36)
3838

3939
## Methods
4040

@@ -52,7 +52,7 @@ Name | Type | Description |
5252

5353
**Returns:** *Promise*<[*CashoutResponse*](../interfaces/cashoutresponse.md)\>
5454

55-
Defined in: [bee-js/src/bee-debug.ts:161](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L161)
55+
Defined in: [bee-js/src/bee-debug.ts:161](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L161)
5656

5757
___
5858

@@ -70,7 +70,7 @@ Name | Type | Description |
7070

7171
**Returns:** *Promise*<[*DepositTokensResponse*](../interfaces/deposittokensresponse.md)\>
7272

73-
Defined in: [bee-js/src/bee-debug.ts:170](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L170)
73+
Defined in: [bee-js/src/bee-debug.ts:170](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L170)
7474

7575
___
7676

@@ -82,7 +82,7 @@ Get the balances with all known peers including prepaid services
8282

8383
**Returns:** *Promise*<[*BalanceResponse*](../interfaces/balanceresponse.md)\>
8484

85-
Defined in: [bee-js/src/bee-debug.ts:81](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L81)
85+
Defined in: [bee-js/src/bee-debug.ts:81](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L81)
8686

8787
___
8888

@@ -94,7 +94,7 @@ Get settlements with all known peers and total amount sent or received
9494

9595
**Returns:** *Promise*<[*AllSettlements*](../interfaces/allsettlements.md)\>
9696

97-
Defined in: [bee-js/src/bee-debug.ts:207](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L207)
97+
Defined in: [bee-js/src/bee-debug.ts:207](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L207)
9898

9999
___
100100

@@ -104,7 +104,7 @@ ___
104104

105105
**Returns:** *Promise*<[*Peer*](../interfaces/peer.md)[]\>
106106

107-
Defined in: [bee-js/src/bee-debug.ts:51](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L51)
107+
Defined in: [bee-js/src/bee-debug.ts:51](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L51)
108108

109109
___
110110

@@ -119,7 +119,7 @@ https://github.com/ethersphere/bee/issues/1443
119119

120120
**Returns:** *Promise*<[*ChequebookAddressResponse*](../interfaces/chequebookaddressresponse.md)\>
121121

122-
Defined in: [bee-js/src/bee-debug.ts:120](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L120)
122+
Defined in: [bee-js/src/bee-debug.ts:120](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L120)
123123

124124
___
125125

@@ -131,7 +131,7 @@ Get the balance of the chequebook
131131

132132
**Returns:** *Promise*<[*ChequebookBalanceResponse*](../interfaces/chequebookbalanceresponse.md)\>
133133

134-
Defined in: [bee-js/src/bee-debug.ts:127](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L127)
134+
Defined in: [bee-js/src/bee-debug.ts:127](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L127)
135135

136136
___
137137

@@ -143,7 +143,7 @@ Get health of node
143143

144144
**Returns:** *Promise*<[*Health*](../interfaces/health.md)\>
145145

146-
Defined in: [bee-js/src/bee-debug.ts:214](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L214)
146+
Defined in: [bee-js/src/bee-debug.ts:214](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L214)
147147

148148
___
149149

@@ -161,7 +161,7 @@ Name | Type | Description |
161161

162162
**Returns:** *Promise*<[*LastCashoutActionResponse*](../interfaces/lastcashoutactionresponse.md)\>
163163

164-
Defined in: [bee-js/src/bee-debug.ts:152](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L152)
164+
Defined in: [bee-js/src/bee-debug.ts:152](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L152)
165165

166166
___
167167

@@ -173,7 +173,7 @@ Get last cheques for all peers
173173

174174
**Returns:** *Promise*<[*LastChequesResponse*](../interfaces/lastchequesresponse.md)\>
175175

176-
Defined in: [bee-js/src/bee-debug.ts:134](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L134)
176+
Defined in: [bee-js/src/bee-debug.ts:134](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L134)
177177

178178
___
179179

@@ -191,7 +191,7 @@ Name | Type | Description |
191191

192192
**Returns:** *Promise*<[*LastChequesForPeerResponse*](../interfaces/lastchequesforpeerresponse.md)\>
193193

194-
Defined in: [bee-js/src/bee-debug.ts:143](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L143)
194+
Defined in: [bee-js/src/bee-debug.ts:143](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L143)
195195

196196
___
197197

@@ -201,7 +201,7 @@ ___
201201

202202
**Returns:** *Promise*<[*NodeAddresses*](../interfaces/nodeaddresses.md)\>
203203

204-
Defined in: [bee-js/src/bee-debug.ts:47](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L47)
204+
Defined in: [bee-js/src/bee-debug.ts:47](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L47)
205205

206206
___
207207

@@ -213,7 +213,7 @@ Get the past due consumption balances with all known peers
213213

214214
**Returns:** *Promise*<[*BalanceResponse*](../interfaces/balanceresponse.md)\>
215215

216-
Defined in: [bee-js/src/bee-debug.ts:97](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L97)
216+
Defined in: [bee-js/src/bee-debug.ts:97](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L97)
217217

218218
___
219219

@@ -231,7 +231,7 @@ Name | Type | Description |
231231

232232
**Returns:** *Promise*<[*PeerBalance*](../interfaces/peerbalance.md)\>
233233

234-
Defined in: [bee-js/src/bee-debug.ts:106](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L106)
234+
Defined in: [bee-js/src/bee-debug.ts:106](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L106)
235235

236236
___
237237

@@ -249,7 +249,7 @@ Name | Type | Description |
249249

250250
**Returns:** *Promise*<[*PeerBalance*](../interfaces/peerbalance.md)\>
251251

252-
Defined in: [bee-js/src/bee-debug.ts:90](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L90)
252+
Defined in: [bee-js/src/bee-debug.ts:90](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L90)
253253

254254
___
255255

@@ -261,7 +261,7 @@ Get list of peers for this node
261261

262262
**Returns:** *Promise*<[*Peer*](../interfaces/peer.md)[]\>
263263

264-
Defined in: [bee-js/src/bee-debug.ts:58](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L58)
264+
Defined in: [bee-js/src/bee-debug.ts:58](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L58)
265265

266266
___
267267

@@ -279,7 +279,7 @@ Name | Type | Description |
279279

280280
**Returns:** *Promise*<[*Settlements*](../interfaces/settlements.md)\>
281281

282-
Defined in: [bee-js/src/bee-debug.ts:200](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L200)
282+
Defined in: [bee-js/src/bee-debug.ts:200](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L200)
283283

284284
___
285285

@@ -289,7 +289,7 @@ ___
289289

290290
**Returns:** *Promise*<[*Topology*](../interfaces/topology.md)\>
291291

292-
Defined in: [bee-js/src/bee-debug.ts:66](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L66)
292+
Defined in: [bee-js/src/bee-debug.ts:66](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L66)
293293

294294
___
295295

@@ -303,7 +303,7 @@ Connnects to a node and checks if it is a supported Bee version by the bee-js
303303

304304
true if the Bee node version is supported
305305

306-
Defined in: [bee-js/src/bee-debug.ts:223](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L223)
306+
Defined in: [bee-js/src/bee-debug.ts:223](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L223)
307307

308308
___
309309

@@ -319,7 +319,7 @@ Name | Type |
319319

320320
**Returns:** *Promise*<[*PingResponse*](../interfaces/pingresponse.md)\>
321321

322-
Defined in: [bee-js/src/bee-debug.ts:70](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L70)
322+
Defined in: [bee-js/src/bee-debug.ts:70](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L70)
323323

324324
___
325325

@@ -335,7 +335,7 @@ Name | Type |
335335

336336
**Returns:** *Promise*<[*RemovePeerResponse*](../interfaces/removepeerresponse.md)\>
337337

338-
Defined in: [bee-js/src/bee-debug.ts:62](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L62)
338+
Defined in: [bee-js/src/bee-debug.ts:62](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L62)
339339

340340
___
341341

@@ -353,4 +353,4 @@ Name | Type | Description |
353353

354354
**Returns:** *Promise*<[*WithdrawTokensResponse*](../interfaces/withdrawtokensresponse.md)\>
355355

356-
Defined in: [bee-js/src/bee-debug.ts:183](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/bee-debug.ts#L183)
356+
Defined in: [bee-js/src/bee-debug.ts:183](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/bee-debug.ts#L183)

docs/api/classes/beeerror.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Name | Type |
3434

3535
**Returns:** [*BeeError*](beeerror.md)
3636

37-
Defined in: [bee-js/src/utils/error.ts:1](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/utils/error.ts#L1)
37+
Defined in: [bee-js/src/utils/error.ts:1](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/utils/error.ts#L1)
3838

3939
## Properties
4040

docs/api/classes/beerequesterror.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Name | Type |
3030

3131
Inherited from: [BeeError](beeerror.md)
3232

33-
Defined in: [bee-js/src/utils/error.ts:13](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/utils/error.ts#L13)
33+
Defined in: [bee-js/src/utils/error.ts:13](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/utils/error.ts#L13)
3434

3535
## Properties
3636

docs/api/classes/beeresponseerror.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Name | Type |
3131

3232
Inherited from: [BeeError](beeerror.md)
3333

34-
Defined in: [bee-js/src/utils/error.ts:19](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/utils/error.ts#L19)
34+
Defined in: [bee-js/src/utils/error.ts:19](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/utils/error.ts#L19)
3535

3636
## Properties
3737

docs/api/functions/utils.bytes.bytesatoffset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ Name | Type | Description |
3030

3131
**Returns:** [*Bytes*](../interfaces/utils.bytes.bytes.md)<Length\>
3232

33-
Defined in: [bee-js/src/utils/bytes.ts:91](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/utils/bytes.ts#L91)
33+
Defined in: [bee-js/src/utils/bytes.ts:91](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/utils/bytes.ts#L91)

docs/api/functions/utils.bytes.bytesequal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ Name | Type | Description |
2323

2424
**Returns:** *boolean*
2525

26-
Defined in: [bee-js/src/utils/bytes.ts:118](https://github.com/ethersphere/bee-js/blob/0ac3a7d/src/utils/bytes.ts#L118)
26+
Defined in: [bee-js/src/utils/bytes.ts:118](https://github.com/ethersphere/bee-js/blob/ce4d3fa/src/utils/bytes.ts#L118)

0 commit comments

Comments
 (0)