wtfai 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/session.d.ts +1 -0
- package/dist/session.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -559,7 +559,8 @@ await IframeBridge.deleteRecord('notes', id);
|
|
|
559
559
|
```javascript
|
|
560
560
|
const result = await IframeBridge.listRecords('notes', {
|
|
561
561
|
page: 1,
|
|
562
|
-
pageSize: 10
|
|
562
|
+
pageSize: 10,
|
|
563
|
+
order: 'DESC'
|
|
563
564
|
});
|
|
564
565
|
console.log(`共 ${result.total} 条记录`);
|
|
565
566
|
result.records.forEach(r => {
|
package/dist/session.d.ts
CHANGED
package/dist/session.js
CHANGED
|
@@ -226,6 +226,7 @@ class WorkflowSession {
|
|
|
226
226
|
url.searchParams.set('threadId', this.state.threadId);
|
|
227
227
|
if (null == options ? void 0 : options.page) url.searchParams.set('page', String(options.page));
|
|
228
228
|
if (null == options ? void 0 : options.pageSize) url.searchParams.set('pageSize', String(options.pageSize));
|
|
229
|
+
if (null == options ? void 0 : options.order) url.searchParams.set('order', options.order);
|
|
229
230
|
const response = await fetch(url.toString(), {
|
|
230
231
|
headers: this.headers
|
|
231
232
|
});
|