@thingd/native 0.62.0 → 0.64.0

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/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export class NativeThingStore {
3
3
 
4
4
  putObjectJson(collection: string, id: string, body: string): string;
5
5
  getObjectJson(collection: string, id: string): string | null;
6
+ getObjectsBatchJson(collection: string, ids: string[]): string;
6
7
  listObjectsJson(
7
8
  collectionsJson?: string,
8
9
  filterJson?: string,
@@ -10,7 +11,7 @@ export class NativeThingStore {
10
11
  offset?: number,
11
12
  sortField?: string,
12
13
  sortDirection?: string
13
- ): string;
14
+ ): Promise<string>;
14
15
  deleteObject(collection: string, id: string): boolean;
15
16
  appendEventJson(stream: string, body: string): string;
16
17
  listEventsJson(stream?: string, fromSequence?: number, limit?: number, since?: string): string;
@@ -19,7 +20,8 @@ export class NativeThingStore {
19
20
  id: string,
20
21
  body: string,
21
22
  maxAttempts: number,
22
- delayMs: number
23
+ delayMs: number,
24
+ priority?: number
23
25
  ): string;
24
26
  claimJobJson(queue: string, leaseMs: number): string | null;
25
27
  ackJobJson(queue: string, id: string): string;
@@ -45,12 +47,15 @@ export class NativeThingStore {
45
47
  getLinkJson(id: string): string | null;
46
48
  getNeighborsJson(reference: string, direction: string, linkType?: string, limit?: number): string;
47
49
  countObjectsJson(): Promise<number>;
50
+ countObjectsInCollectionJson(collection: string): Promise<number>;
48
51
  countEventsJson(): Promise<number>;
49
52
  countActiveJobsJson(): Promise<number>;
50
53
  countDeadJobsJson(): Promise<number>;
51
54
  countLinksJson(): Promise<number>;
52
55
  listCollectionsJson(): Promise<string>;
53
56
  listStreamsJson(): Promise<string>;
57
+ createIndexJson(collection: string, field: string): void;
58
+ listIndexesJson(): string;
54
59
  aggregateJson(
55
60
  collection: string,
56
61
  function_: string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thingd/native",
3
- "version": "0.62.0",
3
+ "version": "0.64.0",
4
4
  "description": "Native Node.js binding for thingd — a fast object-first data engine for applications and AI agents.",
5
5
  "type": "module",
6
6
  "publishConfig": {