@metagptx/web-sdk 0.0.13 → 0.0.16
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 +26 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -169,6 +169,32 @@ const response = await client.entities.users.query({
|
|
|
169
169
|
// Actual API call: GET /api/v1/entities/users?query={"status":"active"}&sort=-createdAt&limit=10&skip=0&fields=id,name,email
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
+
#### `entities[entityName].queryAll(params?)`
|
|
173
|
+
|
|
174
|
+
Query all public entities with filtering, sorting, and pagination.
|
|
175
|
+
|
|
176
|
+
**HTTP Details:**
|
|
177
|
+
- **Method:** `GET`
|
|
178
|
+
- **Path:** `/api/v1/entities/{entityName}/all`
|
|
179
|
+
- **Parameters:**
|
|
180
|
+
- `query` (optional): Query conditions object (will be converted to JSON string)
|
|
181
|
+
- `sort` (optional): Sort field and order (e.g., `"-createdAt"`)
|
|
182
|
+
- `limit` (optional): Maximum number of results
|
|
183
|
+
- `skip` (optional): Number of results to skip
|
|
184
|
+
- `fields` (optional): Array of fields to return (will be converted to comma-separated string)
|
|
185
|
+
|
|
186
|
+
**Example:**
|
|
187
|
+
```typescript
|
|
188
|
+
const response = await client.entities.users.queryAll({
|
|
189
|
+
query: { status: 'active' },
|
|
190
|
+
sort: '-createdAt',
|
|
191
|
+
limit: 10,
|
|
192
|
+
skip: 0,
|
|
193
|
+
fields: ['id', 'name', 'email'],
|
|
194
|
+
});
|
|
195
|
+
// Actual API call: GET /api/v1/entities/users/all?query={"status":"active"}&sort=-createdAt&limit=10&skip=0&fields=id,name,email
|
|
196
|
+
```
|
|
197
|
+
|
|
172
198
|
#### `entities[entityName].get(params)`
|
|
173
199
|
|
|
174
200
|
Get a single entity by ID.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metagptx/web-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b",
|
|
6
6
|
"description": "TypeScript SDK for interacting with FuncSea API",
|
|
7
7
|
"author": "MetaGPTX",
|