@allourthings/core 1.0.1 → 2.0.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.
Binary file
Binary file
package/index.d.ts CHANGED
@@ -18,16 +18,16 @@ export interface JsListFilter {
18
18
  */
19
19
  export declare class JsCatalogStore {
20
20
  constructor(dataDir: string, cacheDir?: string | undefined | null)
21
- refresh(): NapiResult
22
- rebuildCache(): NapiResult
23
- addItem(newItem: any): NapiResult
24
- getItem(idOrName: string): NapiResult
25
- listItems(filter?: JsListFilter | undefined | null): NapiResult
26
- updateItem(id: string, updates: any): NapiResult
27
- deleteItem(id: string): NapiResult
28
- searchItems(query: string): NapiResult
29
- getItemFields(): NapiResult
30
- addAttachment(itemId: string, filename: string, kind: string, data: Buffer, label?: string | undefined | null): NapiResult
31
- getAttachment(itemId: string, filename: string): NapiResult
32
- deleteAttachment(itemId: string, filename: string): NapiResult
21
+ refresh(): void
22
+ rebuildCache(): void
23
+ addItem(newItem: any): any
24
+ getItem(idOrName: string): any | null
25
+ listItems(filter?: JsListFilter | undefined | null): any
26
+ updateItem(id: string, updates: any): any | null
27
+ deleteItem(id: string): boolean
28
+ searchItems(query: string): any
29
+ getItemFields(): Array<string>
30
+ addAttachment(itemId: string, filename: string, kind: string, data: Buffer, label?: string | undefined | null): any
31
+ getAttachment(itemId: string, filename: string): Buffer
32
+ deleteAttachment(itemId: string, filename: string): any | null
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allourthings/core",
3
- "version": "1.0.1",
3
+ "version": "2.0.0",
4
4
  "description": "Native storage core for All Our Things",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",