@pod-os/core 0.22.0 → 0.22.1-rc.03b6673.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/dist/index.js +811 -58
- package/lib/index.js +882 -129
- package/package.json +1 -1
- package/types/Store.d.ts +13 -1
- package/types/Store.findMembers.spec.d.ts +1 -0
package/package.json
CHANGED
package/types/Store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { PodOsSession } from "./authentication";
|
|
|
3
3
|
import { Thing } from "./thing";
|
|
4
4
|
import { ModuleConfig, UpdateOperation } from "@solid-data-modules/rdflib-utils";
|
|
5
5
|
import { OfflineCache, OnlineStatus } from "./offline-cache";
|
|
6
|
-
import { Subject } from "rxjs";
|
|
6
|
+
import { Observable, Subject } from "rxjs";
|
|
7
7
|
import { Quad } from "rdflib/lib/tf-types";
|
|
8
8
|
/**
|
|
9
9
|
* The Store contains all data that is known locally.
|
|
@@ -42,6 +42,18 @@ export declare class Store {
|
|
|
42
42
|
executeUpdate(operation: UpdateOperation): Promise<void>;
|
|
43
43
|
flagAuthorizationMetadata(): void;
|
|
44
44
|
loadModule<T>(module: PodOsModule<T>): T;
|
|
45
|
+
/**
|
|
46
|
+
* Finds instances of the given class or its sub-classes
|
|
47
|
+
* @param {string} classUri
|
|
48
|
+
* @returns {string[]} An array of URIs
|
|
49
|
+
*/
|
|
50
|
+
findMembers(classUri: string): string[];
|
|
51
|
+
/**
|
|
52
|
+
* Get an Observable that will push new results from {@link findMembers} when it changes
|
|
53
|
+
* @param {string} classUri
|
|
54
|
+
* @returns {Observable<string[]>} Observable that pushes an array of URIs of instances of the given class or its sub-classes
|
|
55
|
+
*/
|
|
56
|
+
observeFindMembers(classUri: string): Observable<string[]>;
|
|
45
57
|
}
|
|
46
58
|
export interface PodOsModule<T> {
|
|
47
59
|
readonly default: new (config: ModuleConfig) => T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|