@boltstore/client 0.5.1 → 0.5.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/records.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boltstore/client",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "TypeScript SDK for Boltstore — works in Bun, Node 18+, browsers, React Native",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/records.ts CHANGED
@@ -13,6 +13,8 @@ export interface RecordQuery extends PaginationParams {
13
13
  perPage?: number;
14
14
  expand?: string;
15
15
  search?: string;
16
+ fields?: string;
17
+ cursor?: string;
16
18
  }
17
19
 
18
20
  export interface RecordListResult {
@@ -21,6 +23,8 @@ export interface RecordListResult {
21
23
  perPage: number;
22
24
  totalItems: number;
23
25
  totalPages: number;
26
+ hasNextPage?: boolean;
27
+ nextCursor?: string;
24
28
  }
25
29
 
26
30
  // ── Batch Operations ──
@@ -165,6 +169,8 @@ export async function listRecords(
165
169
  if (query?.perPage) params.perPage = String(query.perPage);
166
170
  if (query?.expand) params.expand = query.expand;
167
171
  if (query?.search) params.search = query.search;
172
+ if (query?.fields) params.fields = query.fields;
173
+ if (query?.cursor) params.cursor = query.cursor;
168
174
 
169
175
  const result = await client.get<RecordListResult>(
170
176
  `/api/collections/${collection}/records`,