solid-logic 1.3.17-a849582e → 1.3.17-af110ecf
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/lib/acl/aclLogic.d.ts +2 -11
- package/lib/acl/aclLogic.d.ts.map +1 -1
- package/lib/acl/aclLogic.js +5 -7
- package/lib/acl/aclLogic.js.map +1 -1
- package/lib/chat/chatLogic.d.ts +2 -15
- package/lib/chat/chatLogic.d.ts.map +1 -1
- package/lib/chat/chatLogic.js +8 -7
- package/lib/chat/chatLogic.js.map +1 -1
- package/lib/inbox/inboxLogic.d.ts +2 -6
- package/lib/inbox/inboxLogic.d.ts.map +1 -1
- package/lib/inbox/inboxLogic.js.map +1 -1
- package/lib/index.d.ts +7 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -74
- package/lib/index.js.map +1 -1
- package/lib/logic/solidLogic.d.ts +6 -0
- package/lib/logic/solidLogic.d.ts.map +1 -0
- package/lib/logic/solidLogic.js +92 -0
- package/lib/logic/solidLogic.js.map +1 -0
- package/lib/logic/solidLogicSingleton.d.ts +2 -35
- package/lib/logic/solidLogicSingleton.d.ts.map +1 -1
- package/lib/logic/solidLogicSingleton.js +7 -86
- package/lib/logic/solidLogicSingleton.js.map +1 -1
- package/lib/profile/profileLogic.d.ts +2 -12
- package/lib/profile/profileLogic.d.ts.map +1 -1
- package/lib/profile/profileLogic.js +1 -23
- package/lib/profile/profileLogic.js.map +1 -1
- package/lib/typeIndex/typeIndexLogic.d.ts +2 -31
- package/lib/typeIndex/typeIndexLogic.d.ts.map +1 -1
- package/lib/typeIndex/typeIndexLogic.js +12 -359
- package/lib/typeIndex/typeIndexLogic.js.map +1 -1
- package/lib/types.d.ts +65 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/util/ns.d.ts +2 -0
- package/lib/util/ns.d.ts.map +1 -0
- package/lib/util/ns.js +34 -0
- package/lib/util/ns.js.map +1 -0
- package/package.json +1 -1
- package/src/acl/aclLogic.ts +8 -5
- package/src/chat/chatLogic.ts +7 -7
- package/src/inbox/inboxLogic.ts +2 -1
- package/src/index.ts +12 -83
- package/src/logic/solidLogic.ts +75 -0
- package/src/logic/solidLogicSingleton.ts +6 -159
- package/src/profile/profileLogic.ts +4 -12
- package/src/typeIndex/typeIndexLogic.ts +6 -277
- package/src/types.ts +76 -1
- package/src/util/{ns.js → ns.ts} +0 -0
- package/test/logic.test.ts +5 -6
- package/test/typeIndexLogic.test.ts +484 -54
- package/lib/discovery/discoveryLogic.d.ts +0 -37
- package/lib/discovery/discoveryLogic.d.ts.map +0 -1
- package/lib/discovery/discoveryLogic.js +0 -500
- package/lib/discovery/discoveryLogic.js.map +0 -1
- package/src/discovery/discoveryLogic.ts +0 -267
- package/test/discoveryLogic.test.ts +0 -712
- package/test/typeIndexLogicPart2.test.ts +0 -485
package/lib/acl/aclLogic.d.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { NamedNode } from "rdflib";
|
|
2
|
+
import { AclLogic } from "../types";
|
|
2
3
|
export declare const ACL_LINK: NamedNode;
|
|
3
|
-
export declare function createAclLogic(store: any):
|
|
4
|
-
findAclDocUrl: (url: string) => Promise<any>;
|
|
5
|
-
setACLUserPublic: (docURI: string, me: NamedNode, options: {
|
|
6
|
-
defaultForNew?: boolean;
|
|
7
|
-
public?: [];
|
|
8
|
-
}) => Promise<NamedNode>;
|
|
9
|
-
genACLText: (docURI: string, me: NamedNode, aclURI: string, options?: {
|
|
10
|
-
defaultForNew?: boolean;
|
|
11
|
-
public?: [];
|
|
12
|
-
}) => string | undefined;
|
|
13
|
-
};
|
|
4
|
+
export declare function createAclLogic(store: any): AclLogic;
|
|
14
5
|
//# sourceMappingURL=aclLogic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aclLogic.d.ts","sourceRoot":"","sources":["../../src/acl/aclLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,SAAS,EAA6B,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"aclLogic.d.ts","sourceRoot":"","sources":["../../src/acl/aclLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,SAAS,EAA6B,MAAM,QAAQ,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIpC,eAAO,MAAM,QAAQ,WAEpB,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,KAAA,GAAG,QAAQ,CAkJ9C"}
|
package/lib/acl/aclLogic.js
CHANGED
|
@@ -35,15 +35,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
39
|
exports.createAclLogic = exports.ACL_LINK = void 0;
|
|
43
40
|
var rdflib_1 = require("rdflib");
|
|
44
|
-
var ns_1 =
|
|
41
|
+
var ns_1 = require("../util/ns");
|
|
45
42
|
exports.ACL_LINK = (0, rdflib_1.sym)("http://www.iana.org/assignments/link-relations/acl");
|
|
46
43
|
function createAclLogic(store) {
|
|
44
|
+
var ns = ns_1.ns;
|
|
47
45
|
function findAclDocUrl(url) {
|
|
48
46
|
return __awaiter(this, void 0, void 0, function () {
|
|
49
47
|
var doc, docNode;
|
|
@@ -141,7 +139,7 @@ function createAclLogic(store) {
|
|
|
141
139
|
var a = g.sym("".concat(aclURI, "#a1"));
|
|
142
140
|
var acl = g.sym(aclURI);
|
|
143
141
|
var doc = g.sym(docURI);
|
|
144
|
-
g.add(a,
|
|
142
|
+
g.add(a, ns.rdf('type'), auth('Authorization'), acl);
|
|
145
143
|
g.add(a, auth('accessTo'), doc, acl);
|
|
146
144
|
if (options.defaultForNew) {
|
|
147
145
|
g.add(a, auth('default'), doc, acl);
|
|
@@ -152,9 +150,9 @@ function createAclLogic(store) {
|
|
|
152
150
|
g.add(a, auth('mode'), auth('Control'), acl);
|
|
153
151
|
if (optPublic.length) {
|
|
154
152
|
a = g.sym("".concat(aclURI, "#a2"));
|
|
155
|
-
g.add(a,
|
|
153
|
+
g.add(a, ns.rdf('type'), auth('Authorization'), acl);
|
|
156
154
|
g.add(a, auth('accessTo'), doc, acl);
|
|
157
|
-
g.add(a, auth('agentClass'),
|
|
155
|
+
g.add(a, auth('agentClass'), ns.foaf('Agent'), acl);
|
|
158
156
|
for (var p = 0; p < optPublic.length; p++) {
|
|
159
157
|
g.add(a, auth('mode'), auth(optPublic[p]), acl); // Like 'Read' etc
|
|
160
158
|
}
|
package/lib/acl/aclLogic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aclLogic.js","sourceRoot":"","sources":["../../src/acl/aclLogic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aclLogic.js","sourceRoot":"","sources":["../../src/acl/aclLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAoE;AAEpE,iCAA4C;AAG/B,QAAA,QAAQ,GAAG,IAAA,YAAG,EACvB,oDAAoD,CACvD,CAAC;AAEF,SAAgB,cAAc,CAAC,KAAK;IAEhC,IAAM,EAAE,GAAG,OAAS,CAAA;IAEpB,SAAe,aAAa,CAAC,GAAW;;;;;;wBAC9B,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;wBAC3B,qBAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAA;;wBAA7B,SAA6B,CAAC;wBACxB,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,gBAAQ,CAAC,CAAC;wBACzC,IAAI,CAAC,OAAO,EAAE;4BACV,MAAM,IAAI,KAAK,CAA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C,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC3C,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA,CAAC,kBAAkB;aACjE;SACJ;QACD,OAAO,IAAA,kBAAS,EAAC,GAAG,EAAE,CAAC,EAAE,MAAM,CAAC,CAAA;IACpC,CAAC;IACD,OAAO;QACH,aAAa,eAAA;QACb,gBAAgB,kBAAA;QAChB,UAAU,YAAA;KACb,CAAA;AACL,CAAC;AAlJD,wCAkJC"}
|
package/lib/chat/chatLogic.d.ts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare function createChatLogic(store: any, profileLogic: any): {
|
|
4
|
-
setAcl: (chatContainer: NamedNode, me: NamedNode, invitee: NamedNode) => Promise<void>;
|
|
5
|
-
addToPrivateTypeIndex: (chatThing: any, me: any) => Promise<void>;
|
|
6
|
-
findChat: (invitee: NamedNode) => Promise<{
|
|
7
|
-
me: any;
|
|
8
|
-
chatContainer: NamedNode;
|
|
9
|
-
exists: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
createChatThing: (chatContainer: NamedNode, me: NamedNode) => Promise<NamedNode>;
|
|
12
|
-
getChat: (invitee: NamedNode, createIfMissing?: boolean) => Promise<NamedNode | null>;
|
|
13
|
-
sendInvite: (invitee: NamedNode, chatThing: NamedNode) => Promise<void>;
|
|
14
|
-
mintNew: (newPaneOptions: NewPaneOptions) => Promise<CreatedPaneOptions>;
|
|
15
|
-
};
|
|
1
|
+
import { ChatLogic } from "../types";
|
|
2
|
+
export declare function createChatLogic(store: any, profileLogic: any): ChatLogic;
|
|
16
3
|
//# sourceMappingURL=chatLogic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatLogic.d.ts","sourceRoot":"","sources":["../../src/chat/chatLogic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chatLogic.d.ts","sourceRoot":"","sources":["../../src/chat/chatLogic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA4C,MAAM,UAAU,CAAA;AAM9E,wBAAgB,eAAe,CAAC,KAAK,KAAA,EAAE,YAAY,KAAA,GAAG,SAAS,CAyN9D"}
|
package/lib/chat/chatLogic.js
CHANGED
|
@@ -49,8 +49,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
50
|
exports.createChatLogic = void 0;
|
|
51
51
|
var rdflib_1 = require("rdflib");
|
|
52
|
-
var utils_1 = require("../util/utils");
|
|
53
52
|
var ns_1 = require("../util/ns");
|
|
53
|
+
var utils_1 = require("../util/utils");
|
|
54
54
|
var CHAT_LOCATION_IN_CONTAINER = "index.ttl#this";
|
|
55
55
|
function createChatLogic(store, profileLogic) {
|
|
56
56
|
var ns = ns_1.ns;
|
|
@@ -231,24 +231,25 @@ function createChatLogic(store, profileLogic) {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
function sendInvite(invitee, chatThing) {
|
|
234
|
+
var _a;
|
|
234
235
|
return __awaiter(this, void 0, void 0, function () {
|
|
235
236
|
var inviteeInbox, inviteBody, inviteResponse, locationStr;
|
|
236
|
-
return __generator(this, function (
|
|
237
|
-
switch (
|
|
237
|
+
return __generator(this, function (_b) {
|
|
238
|
+
switch (_b.label) {
|
|
238
239
|
case 0: return [4 /*yield*/, store.fetcher.load(invitee.doc())];
|
|
239
240
|
case 1:
|
|
240
|
-
|
|
241
|
+
_b.sent();
|
|
241
242
|
inviteeInbox = store.any(invitee, ns.ldp("inbox"), undefined, invitee.doc());
|
|
242
243
|
if (!inviteeInbox) {
|
|
243
244
|
throw new Error("Invitee inbox not found! ".concat(invitee.value));
|
|
244
245
|
}
|
|
245
246
|
inviteBody = "\n <> a <http://www.w3.org/ns/pim/meeting#LongChatInvite> ;\n ".concat(ns.rdf("seeAlso"), " <").concat(chatThing.value, "> .\n ");
|
|
246
|
-
return [4 /*yield*/, store.fetcher.webOperation("POST", inviteeInbox.value, {
|
|
247
|
+
return [4 /*yield*/, ((_a = store.fetcher) === null || _a === void 0 ? void 0 : _a.webOperation("POST", inviteeInbox.value, {
|
|
247
248
|
data: inviteBody,
|
|
248
249
|
contentType: "text/turtle",
|
|
249
|
-
})];
|
|
250
|
+
}))];
|
|
250
251
|
case 2:
|
|
251
|
-
inviteResponse =
|
|
252
|
+
inviteResponse = _b.sent();
|
|
252
253
|
locationStr = inviteResponse === null || inviteResponse === void 0 ? void 0 : inviteResponse.headers.get("location");
|
|
253
254
|
if (!locationStr) {
|
|
254
255
|
throw new Error("Invite sending returned a ".concat(inviteResponse === null || inviteResponse === void 0 ? void 0 : inviteResponse.status));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatLogic.js","sourceRoot":"","sources":["../../src/chat/chatLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAkD;AAElD,
|
|
1
|
+
{"version":3,"file":"chatLogic.js","sourceRoot":"","sources":["../../src/chat/chatLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAkD;AAElD,iCAA6C;AAC7C,uCAAgE;AAEhE,IAAM,0BAA0B,GAAG,gBAAgB,CAAA;AAEnD,SAAgB,eAAe,CAAC,KAAK,EAAE,YAAY;IAC/C,IAAM,EAAE,GAAG,OAAS,CAAA;IAEpB,SAAe,MAAM,CACjB,aAAwB,EACxB,EAAa,EACb,OAAkB;;;;;;oBAElB,yDAAyD;oBACzD,+DAA+D;oBAC/D,gCAAgC;oBAChC,qBAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAA;;wBAHvC,yDAAyD;wBACzD,+DAA+D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4BAC9D,qBAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAA;;wBAAvC,SAAuC,CAAC;wBAClC,YAAY,GAAG,KAAK,CAAC,GAAG,CAC1B,OAAO,EACP,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EACf,SAAS,EACT,OAAO,CAAC,GAAG,EAAE,CAChB,CAAC;wBACF,IAAI,CAAC,YAAY,EAAE;4BACf,MAAM,IAAI,KAAK,CAAC,mCAA4B,OAAO,CAAC,KAAK,CAAE,CAAC,CAAC;yBAChE;wBACK,UAAU,GAAG,sFAEjB,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,eAAK,SAAS,CAAC,KAAK,kBACtC,CAAC;wBAEqB,qBAAM,CAAA,MAAA,KAAK,CAAC,OAAO,0CAAE,YAAY,CACpD,MAAM,EACN,YAAY,CAAC,KAAK,EAClB;gCACI,IAAI,EAAE,UAAU;gCAChB,WAAW,EAAE,aAAa;6BAC7B,CACJ,CAAA,EAAA;;wBAPK,cAAc,GAAG,SAOtB;wBACK,WAAW,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;wBAC5D,IAAI,CAAC,WAAW,EAAE;4BACd,MAAM,IAAI,KAAK,CAAC,oCAA6B,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,MAAM,CAAE,CAAC,CAAC;yBAC1E;;;;;KACJ;IACD,OAAO;QACH,MAAM,QAAA;QAAE,qBAAqB,uBAAA;QAAE,QAAQ,UAAA;QAAE,eAAe,iBAAA;QAAE,OAAO,SAAA;QAAE,UAAU,YAAA;QAAE,OAAO,SAAA;KACzF,CAAA;AACL,CAAC;AAzND,0CAyNC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function createInboxLogic(store: any, profileLogic: any, utilityLogic: any, containerLogic: any, aclLogic: any):
|
|
3
|
-
createInboxFor: (peerWebId: string, nick: string) => Promise<string>;
|
|
4
|
-
getNewMessages: (user?: NamedNode | undefined) => Promise<string[]>;
|
|
5
|
-
markAsRead: (url: string, date: Date) => Promise<void>;
|
|
6
|
-
};
|
|
1
|
+
import { InboxLogic } from "../types";
|
|
2
|
+
export declare function createInboxLogic(store: any, profileLogic: any, utilityLogic: any, containerLogic: any, aclLogic: any): InboxLogic;
|
|
7
3
|
//# sourceMappingURL=inboxLogic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inboxLogic.d.ts","sourceRoot":"","sources":["../../src/inbox/inboxLogic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inboxLogic.d.ts","sourceRoot":"","sources":["../../src/inbox/inboxLogic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,wBAAgB,gBAAgB,CAAC,KAAK,KAAA,EAAE,YAAY,KAAA,EAAE,YAAY,KAAA,EAAE,cAAc,KAAA,EAAE,QAAQ,KAAA,GAAG,UAAU,CAqDxG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inboxLogic.js","sourceRoot":"","sources":["../../src/inbox/inboxLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"inboxLogic.js","sourceRoot":"","sources":["../../src/inbox/inboxLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uCAA8C;AAE9C,SAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ;IAExF,SAAe,cAAc,CAAC,SAAiB,EAAE,IAAY;;;;;4BAChC,qBAAM,YAAY,CAAC,MAAM,EAAE,EAAA;;wBAAhD,OAAO,GAAc,SAA2B;wBAC3B,qBAAM,YAAY,CAAC,UAAU,CAAC,OAAO,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kBAAW,GAAG,CAAE,CAAC,CAAC;yBACnC;wBACK,UAAU,GAAG,IAAA,qBAAa,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;;4BAE1C,MAAM,EAAE,KAAK;;wBACP,qBAAM,UAAU,CAAC,IAAI,EAAE,EAAA;;wBAFzB,OAAO,IAEX,OAAI,GAAE,SAAuB;4BAC7B,UAAO,GAAE;gCACP,CAAC,cAAc,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,0BAA0B,CAAC;6BACvF;+BACF;wBACgB,qBAAM,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,EAAA;;wBAA1D,QAAQ,GAAG,SAA+C;6BAC5D,CAAA,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA,EAArC,wBAAqC;wBACvC,qBAAM,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE;gCAC9B,MAAM,EAAE,QAAQ;6BACjB,CAAC,EAAA;;wBAFF,SAEE,CAAC;;;;;;KAEN;IACD,OAAO;QACL,cAAc,gBAAA;QACd,cAAc,gBAAA;QACd,UAAU,YAAA;KACX,CAAA;AACH,CAAC;AArDD,4CAqDC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { solidLogicSingleton } from './logic/solidLogicSingleton';
|
|
2
|
+
declare const authn: import("./types").AuthnLogic;
|
|
3
|
+
declare const authSession: import("@inrupt/solid-client-authn-browser").Session;
|
|
4
|
+
declare const store: import("rdflib").LiveStore;
|
|
1
5
|
export { ACL_LINK } from './acl/aclLogic';
|
|
2
|
-
export { findAclDocUrl, setACLUserPublic, genACLText, } from './logic/solidLogicSingleton';
|
|
3
|
-
export { ensureTypeIndexes, loadTypeIndexes, registerInTypeIndex, loadIndex, ensureOneTypeIndex, putIndex, makeIndexIfNecessary, loadIndexes, getTypeIndex, getRegistrations, loadTypeIndexesFor, loadCommunityTypeIndexes, loadAllTypeIndexes, getScopedAppInstances, getAppInstances, suggestPublicTypeIndex, suggestPrivateTypeIndex, registerInstanceInTypeIndex, deleteTypeIndexRegistration, getScopedAppsFromIndex } from './logic/solidLogicSingleton';
|
|
4
|
-
export { setAcl, addToPrivateTypeIndex, findChat, createChatThing, getChat, sendInvite, mintNew } from './logic/solidLogicSingleton';
|
|
5
6
|
export { offlineTestID, appContext } from './authn/authUtil';
|
|
6
|
-
export { createInboxFor, getNewMessages, markAsRead } from './logic/solidLogicSingleton';
|
|
7
|
-
export { recursiveDelete, setSinglePeerAccess, createEmptyRdfDoc, followOrCreateLink, loadOrCreateIfNotExists, } from './logic/solidLogicSingleton';
|
|
8
|
-
export { ensureLoadedPreferences, loadMe, getPodRoot, getMainInbox, findStorage, loadPreferences, loadProfile, silencedLoadPreferences } from './logic/solidLogicSingleton';
|
|
9
7
|
export { getSuggestedIssuers } from './issuer/issuerLogic';
|
|
10
|
-
export {
|
|
11
|
-
export { authn, authSession, store } from './logic/solidLogicSingleton';
|
|
12
|
-
export { AppDetails, SolidNamespace, AuthenticationContext } from './types';
|
|
8
|
+
export { AppDetails, SolidNamespace, AuthenticationContext, SolidLogic } from './types';
|
|
13
9
|
export { UnauthorizedError, CrossOriginForbiddenError, SameOriginForbiddenError, NotFoundError, FetchError, NotEditableError, WebOperationError } from './logic/CustomError';
|
|
10
|
+
export { solidLogicSingleton, // solidLogicSingleton is exported entirely because it is used in solid-panes
|
|
11
|
+
store, authn, authSession };
|
|
14
12
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,QAAA,MAAM,KAAK,8BAA4B,CAAA;AACvC,QAAA,MAAM,WAAW,sDAAwC,CAAA;AACzD,QAAA,MAAM,KAAK,4BAA4B,CAAA;AAEvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACvF,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,aAAa,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5K,OAAO,EACL,mBAAmB,EAAE,6EAA6E;AAClG,KAAK,EACL,KAAK,EACL,WAAW,EACZ,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -1,87 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.authSession = exports.authn = exports.store = exports.solidLogicSingleton = exports.WebOperationError = exports.NotEditableError = exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = exports.getSuggestedIssuers = exports.appContext = exports.offlineTestID = exports.ACL_LINK = void 0;
|
|
2
4
|
// Make these variables directly accessible as it is what you need most of the time
|
|
3
5
|
// This also makes these variable globaly accesible in mashlib
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.
|
|
10
|
-
|
|
6
|
+
var solidLogicSingleton_1 = require("./logic/solidLogicSingleton");
|
|
7
|
+
Object.defineProperty(exports, "solidLogicSingleton", { enumerable: true, get: function () { return solidLogicSingleton_1.solidLogicSingleton; } });
|
|
8
|
+
var authn = solidLogicSingleton_1.solidLogicSingleton.authn;
|
|
9
|
+
exports.authn = authn;
|
|
10
|
+
var authSession = solidLogicSingleton_1.solidLogicSingleton.authn.authSession;
|
|
11
|
+
exports.authSession = authSession;
|
|
12
|
+
var store = solidLogicSingleton_1.solidLogicSingleton.store;
|
|
13
|
+
exports.store = store;
|
|
11
14
|
var aclLogic_1 = require("./acl/aclLogic");
|
|
12
15
|
Object.defineProperty(exports, "ACL_LINK", { enumerable: true, get: function () { return aclLogic_1.ACL_LINK; } });
|
|
13
|
-
var solidLogicSingleton_1 = require("./logic/solidLogicSingleton");
|
|
14
|
-
Object.defineProperty(exports, "findAclDocUrl", { enumerable: true, get: function () { return solidLogicSingleton_1.findAclDocUrl; } });
|
|
15
|
-
Object.defineProperty(exports, "setACLUserPublic", { enumerable: true, get: function () { return solidLogicSingleton_1.setACLUserPublic; } });
|
|
16
|
-
Object.defineProperty(exports, "genACLText", { enumerable: true, get: function () { return solidLogicSingleton_1.genACLText; } });
|
|
17
|
-
var solidLogicSingleton_2 = require("./logic/solidLogicSingleton");
|
|
18
|
-
Object.defineProperty(exports, "ensureTypeIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.ensureTypeIndexes; } });
|
|
19
|
-
Object.defineProperty(exports, "loadTypeIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.loadTypeIndexes; } });
|
|
20
|
-
Object.defineProperty(exports, "registerInTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.registerInTypeIndex; } });
|
|
21
|
-
Object.defineProperty(exports, "loadIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.loadIndex; } });
|
|
22
|
-
Object.defineProperty(exports, "ensureOneTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.ensureOneTypeIndex; } });
|
|
23
|
-
Object.defineProperty(exports, "putIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.putIndex; } });
|
|
24
|
-
Object.defineProperty(exports, "makeIndexIfNecessary", { enumerable: true, get: function () { return solidLogicSingleton_2.makeIndexIfNecessary; } });
|
|
25
|
-
Object.defineProperty(exports, "loadIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.loadIndexes; } });
|
|
26
|
-
Object.defineProperty(exports, "getTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.getTypeIndex; } });
|
|
27
|
-
Object.defineProperty(exports, "getRegistrations", { enumerable: true, get: function () { return solidLogicSingleton_2.getRegistrations; } });
|
|
28
|
-
//NEW function for discovery
|
|
29
|
-
Object.defineProperty(exports, "loadTypeIndexesFor", { enumerable: true, get: function () { return solidLogicSingleton_2.loadTypeIndexesFor; } });
|
|
30
|
-
Object.defineProperty(exports, "loadCommunityTypeIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.loadCommunityTypeIndexes; } });
|
|
31
|
-
Object.defineProperty(exports, "loadAllTypeIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.loadAllTypeIndexes; } });
|
|
32
|
-
Object.defineProperty(exports, "getScopedAppInstances", { enumerable: true, get: function () { return solidLogicSingleton_2.getScopedAppInstances; } });
|
|
33
|
-
Object.defineProperty(exports, "getAppInstances", { enumerable: true, get: function () { return solidLogicSingleton_2.getAppInstances; } });
|
|
34
|
-
Object.defineProperty(exports, "suggestPublicTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.suggestPublicTypeIndex; } });
|
|
35
|
-
Object.defineProperty(exports, "suggestPrivateTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.suggestPrivateTypeIndex; } });
|
|
36
|
-
Object.defineProperty(exports, "registerInstanceInTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.registerInstanceInTypeIndex; } });
|
|
37
|
-
Object.defineProperty(exports, "deleteTypeIndexRegistration", { enumerable: true, get: function () { return solidLogicSingleton_2.deleteTypeIndexRegistration; } });
|
|
38
|
-
Object.defineProperty(exports, "getScopedAppsFromIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.getScopedAppsFromIndex; } });
|
|
39
|
-
var solidLogicSingleton_3 = require("./logic/solidLogicSingleton");
|
|
40
|
-
Object.defineProperty(exports, "setAcl", { enumerable: true, get: function () { return solidLogicSingleton_3.setAcl; } });
|
|
41
|
-
Object.defineProperty(exports, "addToPrivateTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_3.addToPrivateTypeIndex; } });
|
|
42
|
-
Object.defineProperty(exports, "findChat", { enumerable: true, get: function () { return solidLogicSingleton_3.findChat; } });
|
|
43
|
-
Object.defineProperty(exports, "createChatThing", { enumerable: true, get: function () { return solidLogicSingleton_3.createChatThing; } });
|
|
44
|
-
Object.defineProperty(exports, "getChat", { enumerable: true, get: function () { return solidLogicSingleton_3.getChat; } });
|
|
45
|
-
Object.defineProperty(exports, "sendInvite", { enumerable: true, get: function () { return solidLogicSingleton_3.sendInvite; } });
|
|
46
|
-
Object.defineProperty(exports, "mintNew", { enumerable: true, get: function () { return solidLogicSingleton_3.mintNew; } });
|
|
47
16
|
var authUtil_1 = require("./authn/authUtil");
|
|
48
17
|
Object.defineProperty(exports, "offlineTestID", { enumerable: true, get: function () { return authUtil_1.offlineTestID; } });
|
|
49
18
|
Object.defineProperty(exports, "appContext", { enumerable: true, get: function () { return authUtil_1.appContext; } });
|
|
50
|
-
var solidLogicSingleton_4 = require("./logic/solidLogicSingleton");
|
|
51
|
-
Object.defineProperty(exports, "createInboxFor", { enumerable: true, get: function () { return solidLogicSingleton_4.createInboxFor; } });
|
|
52
|
-
Object.defineProperty(exports, "getNewMessages", { enumerable: true, get: function () { return solidLogicSingleton_4.getNewMessages; } });
|
|
53
|
-
Object.defineProperty(exports, "markAsRead", { enumerable: true, get: function () { return solidLogicSingleton_4.markAsRead; } });
|
|
54
|
-
var solidLogicSingleton_5 = require("./logic/solidLogicSingleton");
|
|
55
|
-
Object.defineProperty(exports, "recursiveDelete", { enumerable: true, get: function () { return solidLogicSingleton_5.recursiveDelete; } });
|
|
56
|
-
Object.defineProperty(exports, "setSinglePeerAccess", { enumerable: true, get: function () { return solidLogicSingleton_5.setSinglePeerAccess; } });
|
|
57
|
-
Object.defineProperty(exports, "createEmptyRdfDoc", { enumerable: true, get: function () { return solidLogicSingleton_5.createEmptyRdfDoc; } });
|
|
58
|
-
//NEW function for discovery
|
|
59
|
-
Object.defineProperty(exports, "followOrCreateLink", { enumerable: true, get: function () { return solidLogicSingleton_5.followOrCreateLink; } });
|
|
60
|
-
Object.defineProperty(exports, "loadOrCreateIfNotExists", { enumerable: true, get: function () { return solidLogicSingleton_5.loadOrCreateIfNotExists; } });
|
|
61
|
-
var solidLogicSingleton_6 = require("./logic/solidLogicSingleton");
|
|
62
|
-
Object.defineProperty(exports, "ensureLoadedPreferences", { enumerable: true, get: function () { return solidLogicSingleton_6.ensureLoadedPreferences; } });
|
|
63
|
-
Object.defineProperty(exports, "loadMe", { enumerable: true, get: function () { return solidLogicSingleton_6.loadMe; } });
|
|
64
|
-
Object.defineProperty(exports, "getPodRoot", { enumerable: true, get: function () { return solidLogicSingleton_6.getPodRoot; } });
|
|
65
|
-
Object.defineProperty(exports, "getMainInbox", { enumerable: true, get: function () { return solidLogicSingleton_6.getMainInbox; } });
|
|
66
|
-
Object.defineProperty(exports, "findStorage", { enumerable: true, get: function () { return solidLogicSingleton_6.findStorage; } });
|
|
67
|
-
//NEW content from discovery
|
|
68
|
-
Object.defineProperty(exports, "loadPreferences", { enumerable: true, get: function () { return solidLogicSingleton_6.loadPreferences; } });
|
|
69
|
-
Object.defineProperty(exports, "loadProfile", { enumerable: true, get: function () { return solidLogicSingleton_6.loadProfile; } });
|
|
70
|
-
//NEW function for discovery
|
|
71
|
-
Object.defineProperty(exports, "silencedLoadPreferences", { enumerable: true, get: function () { return solidLogicSingleton_6.silencedLoadPreferences; } });
|
|
72
19
|
var issuerLogic_1 = require("./issuer/issuerLogic");
|
|
73
20
|
Object.defineProperty(exports, "getSuggestedIssuers", { enumerable: true, get: function () { return issuerLogic_1.getSuggestedIssuers; } });
|
|
74
|
-
var solidLogicSingleton_7 = require("./logic/solidLogicSingleton");
|
|
75
|
-
Object.defineProperty(exports, "isContainer", { enumerable: true, get: function () { return solidLogicSingleton_7.isContainer; } });
|
|
76
|
-
Object.defineProperty(exports, "createContainer", { enumerable: true, get: function () { return solidLogicSingleton_7.createContainer; } });
|
|
77
|
-
Object.defineProperty(exports, "getContainerElements", { enumerable: true, get: function () { return solidLogicSingleton_7.getContainerElements; } });
|
|
78
|
-
Object.defineProperty(exports, "getContainerMembers", { enumerable: true, get: function () { return solidLogicSingleton_7.getContainerMembers; } });
|
|
79
|
-
var solidLogicSingleton_8 = require("./logic/solidLogicSingleton");
|
|
80
|
-
Object.defineProperty(exports, "authn", { enumerable: true, get: function () { return solidLogicSingleton_8.authn; } });
|
|
81
|
-
Object.defineProperty(exports, "authSession", { enumerable: true, get: function () { return solidLogicSingleton_8.authSession; } });
|
|
82
|
-
Object.defineProperty(exports, "store", { enumerable: true, get: function () { return solidLogicSingleton_8.store; } });
|
|
83
|
-
// solidLogicSingleton is exported entirely because it is used in solid-panes
|
|
84
|
-
//export { solidLogicSingleton } from './logic/solidLogicSingleton'
|
|
85
21
|
var CustomError_1 = require("./logic/CustomError");
|
|
86
22
|
Object.defineProperty(exports, "UnauthorizedError", { enumerable: true, get: function () { return CustomError_1.UnauthorizedError; } });
|
|
87
23
|
Object.defineProperty(exports, "CrossOriginForbiddenError", { enumerable: true, get: function () { return CustomError_1.CrossOriginForbiddenError; } });
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mFAAmF;AACnF,8DAA8D;AAC9D,mEAAiE;AAa/D,oGAbO,yCAAmB,OAaP;AAXrB,IAAM,KAAK,GAAG,yCAAmB,CAAC,KAAK,CAAA;AAarC,sBAAK;AAZP,IAAM,WAAW,GAAG,yCAAmB,CAAC,KAAK,CAAC,WAAW,CAAA;AAavD,kCAAW;AAZb,IAAM,KAAK,GAAG,yCAAmB,CAAC,KAAK,CAAA;AAUrC,sBAAK;AARP,2CAAyC;AAAhC,oGAAA,QAAQ,OAAA;AACjB,6CAA4D;AAAnD,yGAAA,aAAa,OAAA;AAAE,sGAAA,UAAU,OAAA;AAClC,oDAA0D;AAAjD,kHAAA,mBAAmB,OAAA;AAE5B,mDAA4K;AAAnK,gHAAA,iBAAiB,OAAA;AAAE,wHAAA,yBAAyB,OAAA;AAAE,uHAAA,wBAAwB,OAAA;AAAE,4GAAA,aAAa,OAAA;AAAE,yGAAA,UAAU,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AAAE,gHAAA,iBAAiB,OAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Session } from "@inrupt/solid-client-authn-browser";
|
|
2
|
+
import { SolidLogic } from "../types";
|
|
3
|
+
export declare function createSolidLogic(specialFetch: {
|
|
4
|
+
fetch: (url: any, requestInit: any) => any;
|
|
5
|
+
}, session: Session): SolidLogic;
|
|
6
|
+
//# sourceMappingURL=solidLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solidLogic.d.ts","sourceRoot":"","sources":["../../src/logic/solidLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAW7D,OAAO,EAAc,UAAU,EAAE,MAAM,UAAU,CAAC;AAQlD,wBAAgB,gBAAgB,CAAC,YAAY,EAAE;IAAE,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,KAAK,GAAG,CAAA;CAAE,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAuD3H"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.createSolidLogic = void 0;
|
|
27
|
+
var rdf = __importStar(require("rdflib"));
|
|
28
|
+
var aclLogic_1 = require("../acl/aclLogic");
|
|
29
|
+
var SolidAuthnLogic_1 = require("../authn/SolidAuthnLogic");
|
|
30
|
+
var chatLogic_1 = require("../chat/chatLogic");
|
|
31
|
+
var inboxLogic_1 = require("../inbox/inboxLogic");
|
|
32
|
+
var profileLogic_1 = require("../profile/profileLogic");
|
|
33
|
+
var typeIndexLogic_1 = require("../typeIndex/typeIndexLogic");
|
|
34
|
+
var containerLogic_1 = require("../util/containerLogic");
|
|
35
|
+
var utilityLogic_1 = require("../util/utilityLogic");
|
|
36
|
+
var debug = __importStar(require("../util/debug"));
|
|
37
|
+
/*
|
|
38
|
+
** It is important to distinquish `fetch`, a function provided by the browser
|
|
39
|
+
** and `Fetcher`, a helper object for the rdflib Store which turns it
|
|
40
|
+
** into a `ConnectedStore` or a `LiveStore`. A Fetcher object is
|
|
41
|
+
** available at store.fetcher, and `fetch` function at `store.fetcher._fetch`,
|
|
42
|
+
*/
|
|
43
|
+
function createSolidLogic(specialFetch, session) {
|
|
44
|
+
debug.log("SolidLogic: Unique instance created. There should only be one of these.");
|
|
45
|
+
var store = rdf.graph();
|
|
46
|
+
rdf.fetcher(store, { fetch: specialFetch.fetch }); // Attach a web I/O module, store.fetcher
|
|
47
|
+
store.updater = new rdf.UpdateManager(store); // Add real-time live updates store.updater
|
|
48
|
+
store.features = []; // disable automatic node merging on store load
|
|
49
|
+
var authn = new SolidAuthnLogic_1.SolidAuthnLogic(session);
|
|
50
|
+
var acl = (0, aclLogic_1.createAclLogic)(store);
|
|
51
|
+
var containerLogic = (0, containerLogic_1.createContainerLogic)(store);
|
|
52
|
+
var utilityLogic = (0, utilityLogic_1.createUtilityLogic)(store, acl, containerLogic);
|
|
53
|
+
var profile = (0, profileLogic_1.createProfileLogic)(store, authn, utilityLogic);
|
|
54
|
+
var chat = (0, chatLogic_1.createChatLogic)(store, profile);
|
|
55
|
+
var inbox = (0, inboxLogic_1.createInboxLogic)(store, profile, utilityLogic, containerLogic, acl);
|
|
56
|
+
var typeIndex = (0, typeIndexLogic_1.createTypeIndexLogic)(store, authn, profile, utilityLogic);
|
|
57
|
+
debug.log('SolidAuthnLogic initialized');
|
|
58
|
+
function load(doc) {
|
|
59
|
+
return store.fetcher.load(doc);
|
|
60
|
+
}
|
|
61
|
+
// @@@@ use the one in rdflib.js when it is available and delete this
|
|
62
|
+
function updatePromise(del, ins) {
|
|
63
|
+
if (ins === void 0) { ins = []; }
|
|
64
|
+
return new Promise(function (resolve, reject) {
|
|
65
|
+
store.updater.update(del, ins, function (_uri, ok, errorBody) {
|
|
66
|
+
if (!ok) {
|
|
67
|
+
reject(new Error(errorBody));
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
resolve();
|
|
71
|
+
}
|
|
72
|
+
}); // callback
|
|
73
|
+
}); // promise
|
|
74
|
+
}
|
|
75
|
+
function clearStore() {
|
|
76
|
+
store.statements.slice().forEach(store.remove.bind(store));
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
store: store,
|
|
80
|
+
authn: authn,
|
|
81
|
+
acl: acl,
|
|
82
|
+
inbox: inbox,
|
|
83
|
+
chat: chat,
|
|
84
|
+
profile: profile,
|
|
85
|
+
typeIndex: typeIndex,
|
|
86
|
+
load: load,
|
|
87
|
+
updatePromise: updatePromise,
|
|
88
|
+
clearStore: clearStore
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
exports.createSolidLogic = createSolidLogic;
|
|
92
|
+
//# sourceMappingURL=solidLogic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solidLogic.js","sourceRoot":"","sources":["../../src/logic/solidLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,0CAA8B;AAE9B,4CAAiD;AACjD,4DAA2D;AAC3D,+CAAoD;AACpD,kDAAuD;AACvD,wDAA6D;AAC7D,8DAAmE;AACnE,yDAA8D;AAC9D,qDAA0D;AAE1D,mDAAuC;AACvC;;;;;EAKE;AACF,SAAgB,gBAAgB,CAAC,YAA4D,EAAE,OAAgB;IAE3G,KAAK,CAAC,GAAG,CAAC,0EAA0E,CAAC,CAAA;IACrF,IAAM,KAAK,GAAc,GAAG,CAAC,KAAK,EAAe,CAAA;IACjD,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAC,KAAK,EAAE,YAAY,CAAC,KAAK,EAAC,CAAC,CAAC,CAAC,yCAAyC;IAC1F,KAAK,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,2CAA2C;IACzF,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAA,CAAC,+CAA+C;IAEnE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C,CAAC,CAAC,UAAU;IAClB,CAAC;IAED,SAAS,UAAU;QACf,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO;QACH,KAAK,OAAA;QACL,KAAK,OAAA;QACL,GAAG,KAAA;QACH,KAAK,OAAA;QACL,IAAI,MAAA;QACJ,OAAO,SAAA;QACP,SAAS,WAAA;QACT,IAAI,MAAA;QACJ,aAAa,eAAA;QACb,UAAU,YAAA;KACb,CAAA;AACL,CAAC;AAvDD,4CAuDC"}
|
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { authSession } from "../authSession/authSession";
|
|
4
|
-
declare const store: rdf.LiveStore;
|
|
5
|
-
declare const authn: SolidAuthnLogic;
|
|
6
|
-
declare const findAclDocUrl: (url: string) => Promise<any>, setACLUserPublic: (docURI: string, me: rdf.NamedNode, options: {
|
|
7
|
-
defaultForNew?: boolean | undefined;
|
|
8
|
-
public?: [] | undefined;
|
|
9
|
-
}) => Promise<rdf.NamedNode>, genACLText: (docURI: string, me: rdf.NamedNode, aclURI: string, options?: {
|
|
10
|
-
defaultForNew?: boolean | undefined;
|
|
11
|
-
public?: [] | undefined;
|
|
12
|
-
}) => string | undefined;
|
|
13
|
-
declare const isContainer: (url: string) => boolean, createContainer: (url: string) => Promise<void>, getContainerElements: (containerNode: rdf.NamedNode) => rdf.NamedNode[], getContainerMembers: (containerUrl: string) => Promise<string[]>;
|
|
14
|
-
declare const recursiveDelete: (url: string) => Promise<any>, setSinglePeerAccess: (options: {
|
|
15
|
-
ownerWebId: string;
|
|
16
|
-
peerWebId: string;
|
|
17
|
-
accessToModes?: string | undefined;
|
|
18
|
-
defaultModes?: string | undefined;
|
|
19
|
-
target: string;
|
|
20
|
-
}) => Promise<any>, createEmptyRdfDoc: (doc: rdf.NamedNode, comment: string) => Promise<void>, followOrCreateLink: (subject: rdf.NamedNode, predicate: rdf.NamedNode, object: rdf.NamedNode, doc: rdf.NamedNode) => Promise<rdf.NamedNode | null>, loadOrCreateIfNotExists: (doc: rdf.NamedNode) => Promise<any>;
|
|
21
|
-
declare const ensureLoadedPreferences: (context: import("..").AuthenticationContext) => Promise<import("..").AuthenticationContext>, loadMe: () => Promise<rdf.NamedNode>, getPodRoot: (user: rdf.NamedNode) => rdf.NamedNode, getMainInbox: (user: rdf.NamedNode) => Promise<rdf.NamedNode>, findStorage: (me: rdf.NamedNode) => any, loadPreferences: (user: rdf.NamedNode) => Promise<rdf.NamedNode>, loadProfile: (user: rdf.NamedNode) => Promise<rdf.NamedNode>, silencedLoadPreferences: (user: rdf.NamedNode) => Promise<rdf.NamedNode | undefined>;
|
|
22
|
-
declare const setAcl: (chatContainer: rdf.NamedNode, me: rdf.NamedNode, invitee: rdf.NamedNode) => Promise<void>, addToPrivateTypeIndex: (chatThing: any, me: any) => Promise<void>, findChat: (invitee: rdf.NamedNode) => Promise<{
|
|
23
|
-
me: any;
|
|
24
|
-
chatContainer: rdf.NamedNode;
|
|
25
|
-
exists: boolean;
|
|
26
|
-
}>, createChatThing: (chatContainer: rdf.NamedNode, me: rdf.NamedNode) => Promise<rdf.NamedNode>, getChat: (invitee: rdf.NamedNode, createIfMissing?: boolean) => Promise<rdf.NamedNode | null>, sendInvite: (invitee: rdf.NamedNode, chatThing: rdf.NamedNode) => Promise<void>, mintNew: (newPaneOptions: import("../types").NewPaneOptions) => Promise<import("../types").CreatedPaneOptions>;
|
|
27
|
-
declare const createInboxFor: (peerWebId: string, nick: string) => Promise<string>, getNewMessages: (user?: rdf.NamedNode | undefined) => Promise<string[]>, markAsRead: (url: string, date: Date) => Promise<void>;
|
|
28
|
-
declare const ensureTypeIndexes: (context: import("..").AuthenticationContext, agent?: rdf.NamedNode | undefined) => Promise<import("..").AuthenticationContext>, loadTypeIndexes: (context: import("..").AuthenticationContext) => Promise<import("..").AuthenticationContext | undefined>, registerInTypeIndex: (context: import("..").AuthenticationContext, instance: rdf.NamedNode, theClass: rdf.NamedNode, isPublic: boolean, agent?: rdf.NamedNode | undefined) => Promise<import("..").AuthenticationContext>, loadIndex: (context: import("..").AuthenticationContext, isPublic: boolean) => Promise<import("..").AuthenticationContext>, ensureOneTypeIndex: (context: import("..").AuthenticationContext, isPublic: boolean, agent?: rdf.NamedNode | undefined) => Promise<void | import("..").AuthenticationContext>, putIndex: (newIndex: any, context: any) => Promise<any>, makeIndexIfNecessary: (context: any, isPublic: any, store: any, ns: any) => Promise<any>, loadIndexes: (me: string | rdf.NamedNode, publicProfile: string | rdf.NamedNode | null, preferencesFile: string | rdf.NamedNode | null, onWarning?: (_err: Error) => Promise<undefined>) => Promise<{
|
|
29
|
-
private: any;
|
|
30
|
-
public: any;
|
|
31
|
-
}>, getTypeIndex: (me: string | rdf.NamedNode, preferencesFile: string | rdf.NamedNode, isPublic: boolean) => rdf.NamedNode[], getRegistrations: (instance: any, theClass: any) => any, loadTypeIndexesFor: (user: rdf.NamedNode) => Promise<import("../types").TypeIndexScope[]>, loadCommunityTypeIndexes: (user: rdf.NamedNode) => Promise<import("../types").TypeIndexScope[][]>, loadAllTypeIndexes: (user: rdf.NamedNode) => Promise<import("../types").TypeIndexScope[]>, getScopedAppInstances: (klass: rdf.NamedNode, user: rdf.NamedNode) => Promise<import("../types").ScopedApp[]>, getAppInstances: (klass: rdf.NamedNode) => Promise<rdf.NamedNode[]>, suggestPublicTypeIndex: (me: rdf.NamedNode) => rdf.NamedNode, suggestPrivateTypeIndex: (preferencesFile: rdf.NamedNode) => rdf.NamedNode, registerInstanceInTypeIndex: (instance: rdf.NamedNode, index: rdf.NamedNode, theClass: rdf.NamedNode) => Promise<rdf.NamedNode | null>, deleteTypeIndexRegistration: (item: any) => Promise<void>, getScopedAppsFromIndex: (scope: any, theClass: rdf.NamedNode | null) => Promise<{
|
|
32
|
-
instance: rdf.NamedNode;
|
|
33
|
-
scope: any;
|
|
34
|
-
}[]>;
|
|
35
|
-
export { store, authn, authSession, recursiveDelete, setSinglePeerAccess, createEmptyRdfDoc, followOrCreateLink, loadOrCreateIfNotExists, isContainer, createContainer, getContainerElements, getContainerMembers, ensureTypeIndexes, loadTypeIndexes, registerInTypeIndex, loadIndex, ensureOneTypeIndex, putIndex, makeIndexIfNecessary, loadIndexes, getTypeIndex, getRegistrations, loadTypeIndexesFor, loadCommunityTypeIndexes, loadAllTypeIndexes, getScopedAppInstances, getAppInstances, suggestPublicTypeIndex, suggestPrivateTypeIndex, registerInstanceInTypeIndex, deleteTypeIndexRegistration, getScopedAppsFromIndex, ensureLoadedPreferences, loadMe, getPodRoot, getMainInbox, findStorage, loadPreferences, loadProfile, silencedLoadPreferences, createInboxFor, getNewMessages, markAsRead, setAcl, addToPrivateTypeIndex, findChat, createChatThing, getChat, sendInvite, mintNew, findAclDocUrl, setACLUserPublic, genACLText };
|
|
1
|
+
declare const solidLogicSingleton: import("..").SolidLogic;
|
|
2
|
+
export { solidLogicSingleton };
|
|
36
3
|
//# sourceMappingURL=solidLogicSingleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solidLogicSingleton.d.ts","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"solidLogicSingleton.d.ts","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,mBAAmB,yBAAmD,CAAA;AAI5E,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
|