@pod-os/core 0.13.1-ebe6b8e.0 → 0.14.1-178554f.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/{chunk-7VQUARYZ.js → chunk-RI2OJWF3.js} +10219 -12607
- package/dist/{dist-F3EUFQHU.js → dist-SZGBZENE.js} +2 -344
- package/dist/index.js +74 -15
- package/dist/{jsonld-ECVURSS6.js → jsonld-RY2OHZTS.js} +2 -2
- package/lib/index.js +10127 -12902
- package/package.json +2 -1
- package/types/Store.d.ts +2 -0
- package/types/index.d.ts +7 -1
- package/types/namespaces/index.d.ts +1 -0
- package/types/search/LabelIndex.d.ts +1 -0
- package/types/search/addToLabelIndex.d.ts +4 -0
- package/types/search/addToLabelIndex.spec.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pod-os/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1-178554f.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@inrupt/solid-client-authn-browser": "^2.3.0",
|
|
46
46
|
"@solid-data-modules/contacts-rdflib": "^0.7.0",
|
|
47
|
+
"@solid-data-modules/rdflib-utils": "^0.5.0",
|
|
47
48
|
"@types/lunr": "^2.3.7",
|
|
48
49
|
"buffer": "^6.0.3",
|
|
49
50
|
"lunr": "^2.3.9",
|
package/types/Store.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fetcher, IndexedFormula, UpdateManager } from "rdflib";
|
|
2
2
|
import { PodOsSession } from "./authentication";
|
|
3
3
|
import { Thing } from "./thing";
|
|
4
|
+
import { LabelIndex } from "./search";
|
|
4
5
|
/**
|
|
5
6
|
* The store contains all data that is known locally.
|
|
6
7
|
* It can be used to fetch additional data from the web and also update data and sync it back to editable resources.
|
|
@@ -33,4 +34,5 @@ export declare class Store {
|
|
|
33
34
|
*/
|
|
34
35
|
addPropertyValue(thing: Thing, property: string, value: string): Promise<void>;
|
|
35
36
|
addNewThing(uri: string, name: string, type: string): Promise<void>;
|
|
37
|
+
addToLabelIndex(thing: Thing, labelIndex: LabelIndex): Promise<void>;
|
|
36
38
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { BehaviorSubject } from "rxjs";
|
|
|
3
3
|
import { SessionInfo } from "./authentication";
|
|
4
4
|
import { SolidFile } from "./files";
|
|
5
5
|
import { WebIdProfile } from "./profile";
|
|
6
|
-
import { SearchIndex } from "./search";
|
|
6
|
+
import { LabelIndex, SearchIndex } from "./search";
|
|
7
7
|
import { Store } from "./Store";
|
|
8
8
|
import { Term } from "./terms";
|
|
9
9
|
import { Thing } from "./thing";
|
|
@@ -57,4 +57,10 @@ export declare class PodOS {
|
|
|
57
57
|
logout(): Promise<void>;
|
|
58
58
|
login(oidcIssuer?: string): Promise<void>;
|
|
59
59
|
loadContactsModule(): Promise<ContactsModule>;
|
|
60
|
+
/**
|
|
61
|
+
* Adds a label of the given thing to the label index, so that it can be found after the search index has been rebuilt
|
|
62
|
+
* @param thing - The thing to index
|
|
63
|
+
* @param labelIndex - The index to update
|
|
64
|
+
*/
|
|
65
|
+
addToLabelIndex(thing: Thing, labelIndex: LabelIndex): Promise<void>;
|
|
60
66
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const rdfs: (ln: string) => import("rdflib/lib/tf-types").NamedNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|