@linkfox-web/api-teable
v0.3.2
Published
LinkFox 多维表格(Teable)页面基座接口
Readme
@linkfox-web/api-teable
LinkFox 多维表格(Teable)页面基座接口。凭据从 @linkfox-web/http 的会话读取,调用方不需要传。
pnpm add @linkfox-web/http @linkfox-web/api-teable| 函数 | 说明 | 匿名可调 |
| --- | --- | --- |
| getPageAccess(pageId) | 当前访问者能否查看页面 | 是 |
| getPageTableRefs(pageId) | 稳定引用键 → 真实 tableId | 是 |
| pageFormSubmit(pageId, ro) | 向公开页面的收集表追加一条记录 | 是 |
| getRecords(tableId, query?) | 查询记录 | 否 |
| createRecords(tableId, ro) | 新增记录,返回 { records } | 否 |
| updateRecords(tableId, ro) | 批量更新,返回裸数组 | 否 |
| deleteRecords(tableId, recordIds) | 批量删除 | 否 |
| getFields(tableId, query?) | 字段列表 | 否 |
函数名与 @teable/openapi 一致,但返回值是拆过 axios 外壳的 data,迁移时去掉 .data。
filter、cell value、字段 options 等结构暂时是宽松类型。
