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
|
@@ -59,20 +59,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
-
exports.
|
|
63
|
-
exports.genACLText = exports.setACLUserPublic = exports.findAclDocUrl = void 0;
|
|
64
|
-
var rdf = __importStar(require("rdflib"));
|
|
65
|
-
var SolidAuthnLogic_1 = require("../authn/SolidAuthnLogic");
|
|
66
|
-
var authSession_1 = require("../authSession/authSession");
|
|
67
|
-
Object.defineProperty(exports, "authSession", { enumerable: true, get: function () { return authSession_1.authSession; } });
|
|
68
|
-
var containerLogic_1 = require("../util/containerLogic");
|
|
69
|
-
var typeIndexLogic_1 = require("../typeIndex/typeIndexLogic");
|
|
62
|
+
exports.solidLogicSingleton = void 0;
|
|
70
63
|
var debug = __importStar(require("../util/debug"));
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var inboxLogic_1 = require("../inbox/inboxLogic");
|
|
74
|
-
var chatLogic_1 = require("../chat/chatLogic");
|
|
75
|
-
var aclLogic_1 = require("../acl/aclLogic");
|
|
64
|
+
var authSession_1 = require("../authSession/authSession");
|
|
65
|
+
var solidLogic_1 = require("./solidLogic");
|
|
76
66
|
var _fetch = function (url, requestInit) { return __awaiter(void 0, void 0, void 0, function () {
|
|
77
67
|
var omitCreds;
|
|
78
68
|
return __generator(this, function (_a) {
|
|
@@ -87,77 +77,8 @@ var _fetch = function (url, requestInit) { return __awaiter(void 0, void 0, void
|
|
|
87
77
|
return [2 /*return*/];
|
|
88
78
|
});
|
|
89
79
|
}); };
|
|
90
|
-
|
|
91
|
-
var
|
|
92
|
-
exports.
|
|
93
|
-
|
|
94
|
-
store.updater = new rdf.UpdateManager(store); // Add real-time live updates store.updater
|
|
95
|
-
store.features = []; // disable automatic node merging on store load
|
|
96
|
-
debug.log('SolidAuthnLogic initialized');
|
|
97
|
-
var authn = new SolidAuthnLogic_1.SolidAuthnLogic(authSession_1.authSession);
|
|
98
|
-
exports.authn = authn;
|
|
99
|
-
var aclLogic = (0, aclLogic_1.createAclLogic)(store);
|
|
100
|
-
var findAclDocUrl = aclLogic.findAclDocUrl, setACLUserPublic = aclLogic.setACLUserPublic, genACLText = aclLogic.genACLText;
|
|
101
|
-
exports.findAclDocUrl = findAclDocUrl;
|
|
102
|
-
exports.setACLUserPublic = setACLUserPublic;
|
|
103
|
-
exports.genACLText = genACLText;
|
|
104
|
-
var containerLogic = (0, containerLogic_1.createContainerLogic)(store);
|
|
105
|
-
var isContainer = containerLogic.isContainer, createContainer = containerLogic.createContainer, getContainerElements = containerLogic.getContainerElements, getContainerMembers = containerLogic.getContainerMembers;
|
|
106
|
-
exports.isContainer = isContainer;
|
|
107
|
-
exports.createContainer = createContainer;
|
|
108
|
-
exports.getContainerElements = getContainerElements;
|
|
109
|
-
exports.getContainerMembers = getContainerMembers;
|
|
110
|
-
var utilityLogic = (0, utilityLogic_1.createUtilityLogic)(store, aclLogic, containerLogic);
|
|
111
|
-
var recursiveDelete = utilityLogic.recursiveDelete, setSinglePeerAccess = utilityLogic.setSinglePeerAccess, createEmptyRdfDoc = utilityLogic.createEmptyRdfDoc, followOrCreateLink = utilityLogic.followOrCreateLink, loadOrCreateIfNotExists = utilityLogic.loadOrCreateIfNotExists;
|
|
112
|
-
exports.recursiveDelete = recursiveDelete;
|
|
113
|
-
exports.setSinglePeerAccess = setSinglePeerAccess;
|
|
114
|
-
exports.createEmptyRdfDoc = createEmptyRdfDoc;
|
|
115
|
-
exports.followOrCreateLink = followOrCreateLink;
|
|
116
|
-
exports.loadOrCreateIfNotExists = loadOrCreateIfNotExists;
|
|
117
|
-
var profileLogic = (0, profileLogic_1.createProfileLogic)(store, authn, utilityLogic);
|
|
118
|
-
var ensureLoadedPreferences = profileLogic.ensureLoadedPreferences, loadMe = profileLogic.loadMe, getPodRoot = profileLogic.getPodRoot, getMainInbox = profileLogic.getMainInbox, findStorage = profileLogic.findStorage, loadPreferences = profileLogic.loadPreferences, loadProfile = profileLogic.loadProfile, silencedLoadPreferences = profileLogic.silencedLoadPreferences;
|
|
119
|
-
exports.ensureLoadedPreferences = ensureLoadedPreferences;
|
|
120
|
-
exports.loadMe = loadMe;
|
|
121
|
-
exports.getPodRoot = getPodRoot;
|
|
122
|
-
exports.getMainInbox = getMainInbox;
|
|
123
|
-
exports.findStorage = findStorage;
|
|
124
|
-
exports.loadPreferences = loadPreferences;
|
|
125
|
-
exports.loadProfile = loadProfile;
|
|
126
|
-
exports.silencedLoadPreferences = silencedLoadPreferences;
|
|
127
|
-
var chatLogic = (0, chatLogic_1.createChatLogic)(store, profileLogic);
|
|
128
|
-
var setAcl = chatLogic.setAcl, addToPrivateTypeIndex = chatLogic.addToPrivateTypeIndex, findChat = chatLogic.findChat, createChatThing = chatLogic.createChatThing, getChat = chatLogic.getChat, sendInvite = chatLogic.sendInvite, mintNew = chatLogic.mintNew;
|
|
129
|
-
exports.setAcl = setAcl;
|
|
130
|
-
exports.addToPrivateTypeIndex = addToPrivateTypeIndex;
|
|
131
|
-
exports.findChat = findChat;
|
|
132
|
-
exports.createChatThing = createChatThing;
|
|
133
|
-
exports.getChat = getChat;
|
|
134
|
-
exports.sendInvite = sendInvite;
|
|
135
|
-
exports.mintNew = mintNew;
|
|
136
|
-
var inboxLogic = (0, inboxLogic_1.createInboxLogic)(store, profileLogic, utilityLogic, containerLogic, aclLogic);
|
|
137
|
-
var createInboxFor = inboxLogic.createInboxFor, getNewMessages = inboxLogic.getNewMessages, markAsRead = inboxLogic.markAsRead;
|
|
138
|
-
exports.createInboxFor = createInboxFor;
|
|
139
|
-
exports.getNewMessages = getNewMessages;
|
|
140
|
-
exports.markAsRead = markAsRead;
|
|
141
|
-
var typeIndexLogic = (0, typeIndexLogic_1.createTypeIndexLogic)(store, authn, profileLogic, utilityLogic);
|
|
142
|
-
var ensureTypeIndexes = typeIndexLogic.ensureTypeIndexes, loadTypeIndexes = typeIndexLogic.loadTypeIndexes, registerInTypeIndex = typeIndexLogic.registerInTypeIndex, loadIndex = typeIndexLogic.loadIndex, ensureOneTypeIndex = typeIndexLogic.ensureOneTypeIndex, putIndex = typeIndexLogic.putIndex, makeIndexIfNecessary = typeIndexLogic.makeIndexIfNecessary, loadIndexes = typeIndexLogic.loadIndexes, getTypeIndex = typeIndexLogic.getTypeIndex, getRegistrations = typeIndexLogic.getRegistrations, loadTypeIndexesFor = typeIndexLogic.loadTypeIndexesFor, loadCommunityTypeIndexes = typeIndexLogic.loadCommunityTypeIndexes, loadAllTypeIndexes = typeIndexLogic.loadAllTypeIndexes, getScopedAppInstances = typeIndexLogic.getScopedAppInstances, getAppInstances = typeIndexLogic.getAppInstances, suggestPublicTypeIndex = typeIndexLogic.suggestPublicTypeIndex, suggestPrivateTypeIndex = typeIndexLogic.suggestPrivateTypeIndex, registerInstanceInTypeIndex = typeIndexLogic.registerInstanceInTypeIndex, deleteTypeIndexRegistration = typeIndexLogic.deleteTypeIndexRegistration, getScopedAppsFromIndex = typeIndexLogic.getScopedAppsFromIndex;
|
|
143
|
-
exports.ensureTypeIndexes = ensureTypeIndexes;
|
|
144
|
-
exports.loadTypeIndexes = loadTypeIndexes;
|
|
145
|
-
exports.registerInTypeIndex = registerInTypeIndex;
|
|
146
|
-
exports.loadIndex = loadIndex;
|
|
147
|
-
exports.ensureOneTypeIndex = ensureOneTypeIndex;
|
|
148
|
-
exports.putIndex = putIndex;
|
|
149
|
-
exports.makeIndexIfNecessary = makeIndexIfNecessary;
|
|
150
|
-
exports.loadIndexes = loadIndexes;
|
|
151
|
-
exports.getTypeIndex = getTypeIndex;
|
|
152
|
-
exports.getRegistrations = getRegistrations;
|
|
153
|
-
exports.loadTypeIndexesFor = loadTypeIndexesFor;
|
|
154
|
-
exports.loadCommunityTypeIndexes = loadCommunityTypeIndexes;
|
|
155
|
-
exports.loadAllTypeIndexes = loadAllTypeIndexes;
|
|
156
|
-
exports.getScopedAppInstances = getScopedAppInstances;
|
|
157
|
-
exports.getAppInstances = getAppInstances;
|
|
158
|
-
exports.suggestPublicTypeIndex = suggestPublicTypeIndex;
|
|
159
|
-
exports.suggestPrivateTypeIndex = suggestPrivateTypeIndex;
|
|
160
|
-
exports.registerInstanceInTypeIndex = registerInstanceInTypeIndex;
|
|
161
|
-
exports.deleteTypeIndexRegistration = deleteTypeIndexRegistration;
|
|
162
|
-
exports.getScopedAppsFromIndex = getScopedAppsFromIndex;
|
|
80
|
+
//this const makes solidLogicSingleton global accessible in mashlib
|
|
81
|
+
var solidLogicSingleton = (0, solidLogic_1.createSolidLogic)({ fetch: _fetch }, authSession_1.authSession);
|
|
82
|
+
exports.solidLogicSingleton = solidLogicSingleton;
|
|
83
|
+
debug.log('Unique quadstore initialized.');
|
|
163
84
|
//# sourceMappingURL=solidLogicSingleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solidLogicSingleton.js","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"solidLogicSingleton.js","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAsC;AACtC,0DAAwD;AACxD,2CAA+C;AAE/C,IAAM,MAAM,GAAG,UAAO,GAAG,EAAE,WAAW;;;QAC5B,SAAS,GAAG,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,MAAM,CAAA;QAC7F,IAAI,yBAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,EAAE,EAAE,oDAAoD;YAC5F,uDAAuD;YACvD,sBAAO,yBAAW,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,EAAA;SAC7C;aAAM;YACH,sBAAO,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,EAAA;SACxC;;;KACJ,CAAA;AAED,mEAAmE;AACnE,IAAM,mBAAmB,GAAG,IAAA,6BAAgB,EAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,yBAAW,CAAC,CAAA;AAInE,kDAAmB;AAF5B,KAAK,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA"}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare function createProfileLogic(store: any, authn: any, utilityLogic: any): {
|
|
4
|
-
ensureLoadedPreferences: (context: AuthenticationContext) => Promise<AuthenticationContext>;
|
|
5
|
-
loadMe: () => Promise<NamedNode>;
|
|
6
|
-
getPodRoot: (user: NamedNode) => NamedNode;
|
|
7
|
-
getMainInbox: (user: NamedNode) => Promise<NamedNode>;
|
|
8
|
-
findStorage: (me: NamedNode) => any;
|
|
9
|
-
loadPreferences: (user: NamedNode) => Promise<NamedNode>;
|
|
10
|
-
loadProfile: (user: NamedNode) => Promise<NamedNode>;
|
|
11
|
-
silencedLoadPreferences: (user: NamedNode) => Promise<NamedNode | undefined>;
|
|
12
|
-
};
|
|
1
|
+
import { ProfileLogic } from "../types";
|
|
2
|
+
export declare function createProfileLogic(store: any, authn: any, utilityLogic: any): ProfileLogic;
|
|
13
3
|
//# sourceMappingURL=profileLogic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileLogic.d.ts","sourceRoot":"","sources":["../../src/profile/profileLogic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profileLogic.d.ts","sourceRoot":"","sources":["../../src/profile/profileLogic.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,wBAAgB,kBAAkB,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA,EAAE,YAAY,KAAA,GAAG,YAAY,CAqH3E"}
|
|
@@ -62,31 +62,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
62
62
|
exports.createProfileLogic = void 0;
|
|
63
63
|
var CustomError_1 = require("../logic/CustomError");
|
|
64
64
|
var debug = __importStar(require("../util/debug"));
|
|
65
|
-
var utils_1 = require("../util/utils");
|
|
66
65
|
var ns_1 = require("../util/ns");
|
|
66
|
+
var utils_1 = require("../util/utils");
|
|
67
67
|
function createProfileLogic(store, authn, utilityLogic) {
|
|
68
68
|
var ns = ns_1.ns;
|
|
69
|
-
function ensureLoadedPreferences(context) {
|
|
70
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
-
var _a, _b;
|
|
72
|
-
return __generator(this, function (_c) {
|
|
73
|
-
switch (_c.label) {
|
|
74
|
-
case 0:
|
|
75
|
-
if (!context.me)
|
|
76
|
-
throw new Error('@@ ensureLoadedPreferences: no user specified');
|
|
77
|
-
_a = context;
|
|
78
|
-
return [4 /*yield*/, loadProfile(context.me)];
|
|
79
|
-
case 1:
|
|
80
|
-
_a.publicProfile = _c.sent();
|
|
81
|
-
_b = context;
|
|
82
|
-
return [4 /*yield*/, silencedLoadPreferences(context.me)];
|
|
83
|
-
case 2:
|
|
84
|
-
_b.preferencesFile = _c.sent();
|
|
85
|
-
return [2 /*return*/, context];
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
69
|
/**
|
|
91
70
|
* loads the preference without throwing errors - if it can create it it does so.
|
|
92
71
|
* remark: it still throws error if it cannot load profile.
|
|
@@ -254,7 +233,6 @@ function createProfileLogic(store, authn, utilityLogic) {
|
|
|
254
233
|
return store.any(me, ns.space("storage"), undefined, me.doc());
|
|
255
234
|
}
|
|
256
235
|
return {
|
|
257
|
-
ensureLoadedPreferences: ensureLoadedPreferences,
|
|
258
236
|
loadMe: loadMe,
|
|
259
237
|
getPodRoot: getPodRoot,
|
|
260
238
|
getMainInbox: getMainInbox,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileLogic.js","sourceRoot":"","sources":["../../src/profile/profileLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA+J;
|
|
1
|
+
{"version":3,"file":"profileLogic.js","sourceRoot":"","sources":["../../src/profile/profileLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA+J;AAC/J,mDAAuC;AACvC,iCAA6C;AAC7C,uCAAuE;AAGvE,SAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY;IACzD,IAAM,EAAE,GAAG,OAAS,CAAA;IAEpB;;;;;OAKG;IACH,SAAe,uBAAuB,CAAC,IAAe;;;;;;;wBAEvC,qBAAM,eAAe,CAAC,IAAI,CAAC,EAAA;4BAAlC,sBAAO,SAA2B,EAAA;;;wBAElC,sBAAO,SAAS,EAAA;;;;;KAEvB;IAED;;;;;OAKG;IACH,SAAe,eAAe,CAAE,IAAe;;;;;4BAC3C,qBAAM,WAAW,CAAC,IAAI,CAAC,EAAA;;wBAAvB,SAAuB,CAAA;wBAEjB,uBAAuB,GAAG,IAAA,8BAAsB,EAAC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AC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;wBAC1E,IAAI,CAAC,SAAS,EAAE;4BACZ,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;yBACjD;wBACD,sBAAO,SAAsB,EAAC;;;;KACjC;IAED,SAAS,WAAW,CAAC,EAAa;QAC9B,OAAO,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,OAAO;QACH,MAAM,QAAA;QACN,UAAU,YAAA;QACV,YAAY,cAAA;QACZ,WAAW,aAAA;QACX,eAAe,iBAAA;QACf,WAAW,aAAA;QACX,uBAAuB,yBAAA;KAC1B,CAAA;AACL,CAAC;AArHD,gDAqHC"}
|
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { AuthenticationContext, ScopedApp, TypeIndexScope } from '../types';
|
|
4
|
-
export declare function createTypeIndexLogic(store: any, authn: any, profileLogic: any, utilityLogic: any): {
|
|
5
|
-
ensureTypeIndexes: (context: AuthenticationContext, agent?: rdf.NamedNode | undefined) => Promise<AuthenticationContext>;
|
|
6
|
-
loadTypeIndexes: (context: AuthenticationContext) => Promise<AuthenticationContext | undefined>;
|
|
7
|
-
registerInTypeIndex: (context: AuthenticationContext, instance: NamedNode, theClass: NamedNode, isPublic: boolean, agent?: rdf.NamedNode | undefined) => Promise<AuthenticationContext>;
|
|
8
|
-
loadIndex: (context: AuthenticationContext, isPublic: boolean) => Promise<AuthenticationContext>;
|
|
9
|
-
ensureOneTypeIndex: (context: AuthenticationContext, isPublic: boolean, agent?: rdf.NamedNode | undefined) => Promise<AuthenticationContext | void>;
|
|
10
|
-
putIndex: (newIndex: any, context: any) => Promise<any>;
|
|
11
|
-
makeIndexIfNecessary: (context: any, isPublic: any, store: any, ns: any) => Promise<any>;
|
|
12
|
-
loadIndexes: (me: NamedNode | string, publicProfile: NamedNode | string | null, preferencesFile: NamedNode | string | null, onWarning?: (_err: Error) => Promise<undefined>) => Promise<{
|
|
13
|
-
private: any;
|
|
14
|
-
public: any;
|
|
15
|
-
}>;
|
|
16
|
-
getTypeIndex: (me: NamedNode | string, preferencesFile: NamedNode | string, isPublic: boolean) => NamedNode[];
|
|
17
|
-
getRegistrations: (instance: any, theClass: any) => any;
|
|
18
|
-
loadTypeIndexesFor: (user: NamedNode) => Promise<Array<TypeIndexScope>>;
|
|
19
|
-
loadCommunityTypeIndexes: (user: NamedNode) => Promise<TypeIndexScope[][]>;
|
|
20
|
-
loadAllTypeIndexes: (user: NamedNode) => Promise<TypeIndexScope[]>;
|
|
21
|
-
getScopedAppInstances: (klass: NamedNode, user: NamedNode) => Promise<ScopedApp[]>;
|
|
22
|
-
getAppInstances: (klass: NamedNode) => Promise<NamedNode[]>;
|
|
23
|
-
suggestPublicTypeIndex: (me: NamedNode) => rdf.NamedNode;
|
|
24
|
-
suggestPrivateTypeIndex: (preferencesFile: NamedNode) => rdf.NamedNode;
|
|
25
|
-
registerInstanceInTypeIndex: (instance: NamedNode, index: NamedNode, theClass: NamedNode) => Promise<NamedNode | null>;
|
|
26
|
-
deleteTypeIndexRegistration: (item: any) => Promise<void>;
|
|
27
|
-
getScopedAppsFromIndex: (scope: any, theClass: NamedNode | null) => Promise<{
|
|
28
|
-
instance: rdf.NamedNode;
|
|
29
|
-
scope: any;
|
|
30
|
-
}[]>;
|
|
31
|
-
};
|
|
1
|
+
import { TypeIndexLogic } from '../types';
|
|
2
|
+
export declare function createTypeIndexLogic(store: any, authn: any, profileLogic: any, utilityLogic: any): TypeIndexLogic;
|
|
32
3
|
//# sourceMappingURL=typeIndexLogic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeIndexLogic.d.ts","sourceRoot":"","sources":["../../src/typeIndex/typeIndexLogic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typeIndexLogic.d.ts","sourceRoot":"","sources":["../../src/typeIndex/typeIndexLogic.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,cAAc,EAAkB,MAAM,UAAU,CAAA;AAKpE,wBAAgB,oBAAoB,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA,EAAE,YAAY,KAAA,EAAE,YAAY,KAAA,GAAG,cAAc,CA2L7F"}
|