@pod-os/core 0.22.1-rc.77c38a0.0 → 0.22.1-rc.f2eaee2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pod-os/core",
3
3
  "description": "Core module of PodOS",
4
- "version": "0.22.1-rc.77c38a0.0",
4
+ "version": "0.22.1-rc.f2eaee2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./types/index.d.ts",
@@ -30,6 +30,7 @@
30
30
  "build:types:watch": "rimraf types && tsc --emitDeclarationOnly --outDir types --watch",
31
31
  "build:watch": "node esbuild/watch-esm.mjs",
32
32
  "build:doc": "typedoc",
33
+ "postbuild:doc": "./scripts/postprocess-typedoc.sh",
33
34
  "dev": "run-p build:types:watch build:watch",
34
35
  "build": " npm run build:bundle && npm run build:types && npm run build:esm"
35
36
  },
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 {};