Skip to content

Commit 10862a4

Browse files
committed
Remove createHuman; update docs
1 parent 31f186f commit 10862a4

16 files changed

+60
-301
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ elarian.on('reminder', (data, customer) => {
3636
// ...
3737
});
3838

39-
const humanId = 'abc';
40-
const { state } = await elarian.leaseAppState(humanId);
39+
const userId = 'abc...';
40+
const { state } = await elarian.leaseAppState(userId);
4141
const data = JSON.parse(state.stringVal);
42-
await elarian.updateAppState(humanId, { stringVal: JSON.stringify({ ...data, status: 'good boy' }) });
43-
await elarian.updateMetadata(humanId, { bio: { bytesVal: Buffer.from('age=29;gender=female') }});
42+
await elarian.updateAppState(userId, { stringVal: JSON.stringify({ ...data, status: 'good boy' }) });
43+
await elarian.updateMetadata(userId, { bio: { bytesVal: Buffer.from('age=29;gender=female') }});
4444

4545
```
4646

@@ -72,4 +72,5 @@ If you find a bug, please file an issue on [our issue tracker on GitHub](https:/
7272

7373
## Known Issues
7474

75+
- Missing method to lease/get/fetch user metadata
7576
- `resumable` connection options prevents app from connecting

docs/Client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Client.ht
882882
<br class="clear">
883883

884884
<footer>
885-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 11 2023 09:22:25 GMT+0300 (East Africa Time)
885+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 11 2023 09:39:58 GMT+0300 (East Africa Time)
886886
</footer>
887887

888888
<script> prettyPrint(); </script>

docs/Elarian.html

Lines changed: 13 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h5>Parameters:</h5>
142142

143143
<dt class="tag-source">Source:</dt>
144144
<dd class="tag-source"><ul class="dummy"><li>
145-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line44">line 44</a>
145+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line42">line 42</a>
146146
</li></ul></dd>
147147

148148

@@ -333,7 +333,7 @@ <h5>Parameters:</h5>
333333

334334
<dt class="tag-source">Source:</dt>
335335
<dd class="tag-source"><ul class="dummy"><li>
336-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line160">line 160</a>
336+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line115">line 115</a>
337337
</li></ul></dd>
338338

339339

@@ -511,7 +511,7 @@ <h5>Parameters:</h5>
511511

512512
<dt class="tag-source">Source:</dt>
513513
<dd class="tag-source"><ul class="dummy"><li>
514-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line107">line 107</a>
514+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line62">line 62</a>
515515
</li></ul></dd>
516516

517517

@@ -689,7 +689,7 @@ <h5>Parameters:</h5>
689689

690690
<dt class="tag-source">Source:</dt>
691691
<dd class="tag-source"><ul class="dummy"><li>
692-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line263">line 263</a>
692+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line218">line 218</a>
693693
</li></ul></dd>
694694

695695

@@ -867,7 +867,7 @@ <h5>Parameters:</h5>
867867

868868
<dt class="tag-source">Source:</dt>
869869
<dd class="tag-source"><ul class="dummy"><li>
870-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line220">line 220</a>
870+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line175">line 175</a>
871871
</li></ul></dd>
872872

873873

@@ -1036,161 +1036,6 @@ <h5>Returns:</h5>
10361036

10371037

10381038

1039-
<h4 class="name" id="createHuman"><span class="type-signature"></span>createHuman<span class="signature">(id)</span><span class="type-signature"> &rarr; {<a href="global.html#Reply">Reply</a>}</span></h4>
1040-
1041-
1042-
1043-
1044-
1045-
1046-
<div class="description">
1047-
<p>Create a human</p>
1048-
</div>
1049-
1050-
1051-
1052-
1053-
1054-
1055-
1056-
1057-
1058-
<h5>Parameters:</h5>
1059-
1060-
1061-
<table class="params">
1062-
<thead>
1063-
<tr>
1064-
1065-
<th>Name</th>
1066-
1067-
1068-
<th>Type</th>
1069-
1070-
1071-
1072-
1073-
1074-
<th class="last">Description</th>
1075-
</tr>
1076-
</thead>
1077-
1078-
<tbody>
1079-
1080-
1081-
<tr>
1082-
1083-
<td class="name"><code>id</code></td>
1084-
1085-
1086-
<td class="type">
1087-
1088-
1089-
<span class="param-type">string</span>
1090-
1091-
1092-
1093-
</td>
1094-
1095-
1096-
1097-
1098-
1099-
<td class="description last"><p>human id</p></td>
1100-
</tr>
1101-
1102-
1103-
</tbody>
1104-
</table>
1105-
1106-
1107-
1108-
1109-
1110-
1111-
<dl class="details">
1112-
1113-
1114-
1115-
1116-
1117-
1118-
1119-
1120-
1121-
1122-
1123-
1124-
1125-
1126-
1127-
1128-
1129-
1130-
1131-
1132-
1133-
1134-
1135-
1136-
1137-
1138-
<dt class="tag-source">Source:</dt>
1139-
<dd class="tag-source"><ul class="dummy"><li>
1140-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line63">line 63</a>
1141-
</li></ul></dd>
1142-
1143-
1144-
1145-
1146-
1147-
1148-
1149-
</dl>
1150-
1151-
1152-
1153-
1154-
1155-
1156-
1157-
1158-
1159-
1160-
1161-
1162-
1163-
1164-
1165-
<h5>Returns:</h5>
1166-
1167-
1168-
1169-
1170-
<dl>
1171-
<dt>
1172-
Type
1173-
</dt>
1174-
<dd>
1175-
1176-
<span class="param-type"><a href="global.html#Reply">Reply</a></span>
1177-
1178-
1179-
</dd>
1180-
</dl>
1181-
1182-
1183-
1184-
1185-
1186-
1187-
1188-
1189-
1190-
1191-
1192-
1193-
11941039
<h4 class="name" id="deleteAppState"><span class="type-signature"></span>deleteAppState<span class="signature">(id)</span><span class="type-signature"> &rarr; {<a href="global.html#StateReply">StateReply</a>}</span></h4>
11951040

11961041

@@ -1292,7 +1137,7 @@ <h5>Parameters:</h5>
12921137

12931138
<dt class="tag-source">Source:</dt>
12941139
<dd class="tag-source"><ul class="dummy"><li>
1295-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line616">line 616</a>
1140+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line580">line 580</a>
12961141
</li></ul></dd>
12971142

12981143

@@ -1470,7 +1315,7 @@ <h5>Parameters:</h5>
14701315

14711316
<dt class="tag-source">Source:</dt>
14721317
<dd class="tag-source"><ul class="dummy"><li>
1473-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line365">line 365</a>
1318+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line320">line 320</a>
14741319
</li></ul></dd>
14751320

14761321

@@ -1648,7 +1493,7 @@ <h5>Parameters:</h5>
16481493

16491494
<dt class="tag-source">Source:</dt>
16501495
<dd class="tag-source"><ul class="dummy"><li>
1651-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line470">line 470</a>
1496+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line425">line 425</a>
16521497
</li></ul></dd>
16531498

16541499

@@ -2113,7 +1958,7 @@ <h5>Parameters:</h5>
21131958

21141959
<dt class="tag-source">Source:</dt>
21151960
<dd class="tag-source"><ul class="dummy"><li>
2116-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line518">line 518</a>
1961+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line473">line 473</a>
21171962
</li></ul></dd>
21181963

21191964

@@ -2665,7 +2510,7 @@ <h5>Parameters:</h5>
26652510

26662511
<dt class="tag-source">Source:</dt>
26672512
<dd class="tag-source"><ul class="dummy"><li>
2668-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line564">line 564</a>
2513+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line528">line 528</a>
26692514
</li></ul></dd>
26702515

26712516

@@ -2843,7 +2688,7 @@ <h5>Parameters:</h5>
28432688

28442689
<dt class="tag-source">Source:</dt>
28452690
<dd class="tag-source"><ul class="dummy"><li>
2846-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line313">line 313</a>
2691+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line268">line 268</a>
28472692
</li></ul></dd>
28482693

28492694

@@ -3021,7 +2866,7 @@ <h5>Parameters:</h5>
30212866

30222867
<dt class="tag-source">Source:</dt>
30232868
<dd class="tag-source"><ul class="dummy"><li>
3024-
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line413">line 413</a>
2869+
<a href="elarian.js.html">elarian.js</a>, <a href="elarian.js.html#line368">line 368</a>
30252870
</li></ul></dd>
30262871

30272872

@@ -3091,7 +2936,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Client.ht
30912936
<br class="clear">
30922937

30932938
<footer>
3094-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 11 2023 09:22:25 GMT+0300 (East Africa Time)
2939+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 11 2023 09:39:58 GMT+0300 (East Africa Time)
30952940
</footer>
30962941

30972942
<script> prettyPrint(); </script>

docs/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
* [Elarian](#Elarian)[<code>Client</code>](#Client)
9292
* [new Elarian(config)](#new_Elarian_new)
9393
* [.generateAuthToken()](#Elarian+generateAuthToken) ⇒ <code>AuthToken</code>
94-
* [.createHuman(id)](#Elarian+createHuman) ⇒ <code>Reply</code>
9594
* [.addReminder(id, reminder)](#Elarian+addReminder) ⇒ <code>Reply</code>
9695
* [.addGroupReminder(group, reminder)](#Elarian+addGroupReminder) ⇒ <code>Reply</code>
9796
* [.cancelReminder(id, reminder)](#Elarian+cancelReminder) ⇒ <code>Reply</code>
@@ -125,17 +124,6 @@
125124
<p>Generate a short-lived auth token to use instead of apiKey. Used for browser and mobile clients.</p>
126125

127126
**Kind**: instance method of [<code>Elarian</code>](#Elarian)
128-
<a name="Elarian+createHuman"></a>
129-
130-
### elarian.createHuman(id) ⇒ <code>Reply</code>
131-
<p>Create a human</p>
132-
133-
**Kind**: instance method of [<code>Elarian</code>](#Elarian)
134-
135-
| Param | Type | Description |
136-
| --- | --- | --- |
137-
| id | <code>string</code> | <p>human id</p> |
138-
139127
<a name="Elarian+addReminder"></a>
140128

141129
### elarian.addReminder(id, reminder) ⇒ <code>Reply</code>

docs/authentication.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Client.ht
9090
<br class="clear">
9191

9292
<footer>
93-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 11 2023 09:22:25 GMT+0300 (East Africa Time)
93+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 11 2023 09:39:58 GMT+0300 (East Africa Time)
9494
</footer>
9595

9696
<script> prettyPrint(); </script>

docs/client.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Client.ht
381381
<br class="clear">
382382

383383
<footer>
384-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 11 2023 09:22:25 GMT+0300 (East Africa Time)
384+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 11 2023 09:39:58 GMT+0300 (East Africa Time)
385385
</footer>
386386

387387
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)