solid-logic 1.3.17-8a332867 → 1.3.17-a27c1702
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/jest.config.js +1 -1
- package/lib/acl/aclLogic.d.ts +12 -30
- package/lib/acl/aclLogic.d.ts.map +1 -1
- package/lib/acl/aclLogic.js +152 -119
- package/lib/acl/aclLogic.js.map +1 -1
- package/lib/authn/SolidAuthnLogic.d.ts.map +1 -1
- package/lib/authn/SolidAuthnLogic.js +2 -2
- package/lib/authn/SolidAuthnLogic.js.map +1 -1
- package/lib/chat/chatLogic.d.ts +16 -0
- package/lib/chat/chatLogic.d.ts.map +1 -0
- package/lib/chat/{ChatLogic.js → chatLogic.js} +82 -87
- package/lib/chat/chatLogic.js.map +1 -0
- package/lib/inbox/inboxLogic.d.ts +7 -0
- package/lib/inbox/inboxLogic.d.ts.map +1 -0
- package/lib/inbox/{InboxLogic.js → inboxLogic.js} +58 -64
- package/lib/inbox/inboxLogic.js.map +1 -0
- package/lib/index.d.ts +18 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +86 -34
- package/lib/index.js.map +1 -1
- package/lib/logic/CustomError.d.ts +4 -0
- package/lib/logic/CustomError.d.ts.map +1 -1
- package/lib/logic/CustomError.js +17 -1
- package/lib/logic/CustomError.js.map +1 -1
- package/lib/logic/SolidLogic.d.ts +8 -34
- package/lib/logic/SolidLogic.d.ts.map +1 -1
- package/lib/logic/SolidLogic.js +16 -250
- package/lib/logic/SolidLogic.js.map +1 -1
- package/lib/logic/solidLogicSingleton.js +1 -1
- package/lib/logic/solidLogicSingleton.js.map +1 -1
- package/lib/logic/solidLogicSingletonNew.d.ts +80 -0
- package/lib/logic/solidLogicSingletonNew.d.ts.map +1 -0
- package/lib/logic/solidLogicSingletonNew.js +238 -0
- package/lib/logic/solidLogicSingletonNew.js.map +1 -0
- package/lib/profile/profileLogic.d.ts +13 -0
- package/lib/profile/profileLogic.d.ts.map +1 -0
- package/lib/profile/profileLogic.js +268 -0
- package/lib/profile/profileLogic.js.map +1 -0
- package/lib/typeIndex/typeIndexLogic.d.ts +31 -21
- package/lib/typeIndex/typeIndexLogic.d.ts.map +1 -1
- package/lib/typeIndex/typeIndexLogic.js +650 -295
- package/lib/typeIndex/typeIndexLogic.js.map +1 -1
- package/lib/types.d.ts +17 -0
- package/lib/types.d.ts.map +1 -1
- package/lib/util/containerLogic.d.ts +11 -0
- package/lib/util/containerLogic.d.ts.map +1 -0
- package/lib/{profile/ProfileLogic.js → util/containerLogic.js} +53 -44
- package/lib/util/containerLogic.js.map +1 -0
- 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/lib/util/utilityLogic.d.ts +15 -0
- package/lib/util/utilityLogic.d.ts.map +1 -0
- package/lib/util/utilityLogic.js +272 -0
- package/lib/util/utilityLogic.js.map +1 -0
- package/lib/util/utils.d.ts +8 -0
- package/lib/util/utils.d.ts.map +1 -0
- package/lib/util/utils.js +48 -0
- package/lib/util/utils.js.map +1 -0
- package/package.json +3 -1
- package/src/acl/aclLogic.ts +136 -118
- package/src/authn/SolidAuthnLogic.ts +3 -2
- package/src/chat/chatLogic.ts +225 -0
- package/src/inbox/inboxLogic.ts +57 -0
- package/src/index.ts +139 -27
- package/src/logic/CustomError.ts +5 -1
- package/src/logic/SolidLogic.ts +30 -211
- package/src/logic/solidLogicSingleton.ts +1 -1
- package/src/logic/solidLogicSingletonNew.ts +239 -0
- package/src/profile/profileLogic.ts +134 -0
- package/src/typeIndex/typeIndexLogic.ts +417 -153
- package/src/types.ts +7 -3
- package/src/util/containerLogic.ts +54 -0
- package/src/util/ns.ts +5 -0
- package/src/util/utilityLogic.ts +155 -0
- package/src/util/utils.ts +52 -0
- package/test/aclLogic.test.ts +13 -4
- package/test/chatLogic.test.ts +70 -71
- package/test/container.test.ts +56 -0
- package/test/helpers/dataSetup.ts +134 -0
- package/test/helpers/setup.ts +1 -0
- package/test/inboxLogic.test.ts +39 -38
- package/test/logic.test.ts +10 -9
- package/test/profileLogic.test.ts +246 -0
- package/test/typeIndexLogic.test.ts +49 -22
- package/test/typeIndexLogicPart2.test.ts +485 -0
- package/test/utilityLogic.test.ts +172 -126
- package/test/utils.test.ts +32 -0
- package/lib/chat/ChatLogic.d.ts +0 -26
- package/lib/chat/ChatLogic.d.ts.map +0 -1
- package/lib/chat/ChatLogic.js.map +0 -1
- package/lib/chat/determineChatContainer.d.ts +0 -3
- package/lib/chat/determineChatContainer.d.ts.map +0 -1
- package/lib/chat/determineChatContainer.js +0 -12
- package/lib/chat/determineChatContainer.js.map +0 -1
- package/lib/discovery/discoveryLogic.d.ts +0 -40
- package/lib/discovery/discoveryLogic.d.ts.map +0 -1
- package/lib/discovery/discoveryLogic.js +0 -494
- package/lib/discovery/discoveryLogic.js.map +0 -1
- package/lib/inbox/InboxLogic.d.ts +0 -18
- package/lib/inbox/InboxLogic.d.ts.map +0 -1
- package/lib/inbox/InboxLogic.js.map +0 -1
- package/lib/profile/ProfileLogic.d.ts +0 -13
- package/lib/profile/ProfileLogic.d.ts.map +0 -1
- package/lib/profile/ProfileLogic.js.map +0 -1
- package/lib/util/UtilityLogic.d.ts +0 -33
- package/lib/util/UtilityLogic.d.ts.map +0 -1
- package/lib/util/UtilityLogic.js +0 -240
- package/lib/util/UtilityLogic.js.map +0 -1
- package/lib/util/uri.d.ts +0 -3
- package/lib/util/uri.d.ts.map +0 -1
- package/lib/util/uri.js +0 -9
- package/lib/util/uri.js.map +0 -1
- package/src/chat/ChatLogic.ts +0 -244
- package/src/chat/determineChatContainer.ts +0 -14
- package/src/discovery/discoveryLogic.ts +0 -310
- package/src/inbox/InboxLogic.ts +0 -66
- package/src/profile/ProfileLogic.ts +0 -44
- package/src/util/UtilityLogic.ts +0 -161
- package/src/util/uri.ts +0 -5
- package/test/discoveryLogic.test.ts +0 -740
|
@@ -1,133 +1,179 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jest-environment jsdom
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
5
|
import fetchMock from "jest-fetch-mock";
|
|
6
|
-
import { UpdateManager } from "rdflib";
|
|
7
|
-
import {
|
|
6
|
+
import { UpdateManager, sym, Fetcher, Store } from "rdflib";
|
|
7
|
+
import { createAclLogic } from "../src/acl/aclLogic";
|
|
8
|
+
import { WebOperationError } from "../src/logic/CustomError";
|
|
9
|
+
import { createContainerLogic } from "../src/util/containerLogic";
|
|
10
|
+
import { ns } from "../src/util/ns";
|
|
11
|
+
import { createUtilityLogic } from "../src/util/utilityLogic";
|
|
12
|
+
import { alice, AlicePhotoFolder, AlicePhotos, AlicePreferences, AlicePreferencesFile, AlicePrivateTypeIndex, AlicePrivateTypes, AliceProfile, AlicePublicTypeIndex, AlicePublicTypes, bob, BobProfile, club, ClubPreferences, ClubPreferencesFile, ClubPrivateTypeIndex, ClubPrivateTypes, ClubProfile, ClubPublicTypeIndex, ClubPublicTypes } from "./helpers/dataSetup";
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
window.$SolidTestEnvironment = { username: alice.uri }
|
|
15
|
+
const prefixes = Object.keys(ns).map(prefix => `@prefix ${prefix}: ${ns[prefix]('')}.\n`).join('') // In turtle
|
|
10
16
|
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
describe("utilityLogic", () => {
|
|
18
|
+
let store;
|
|
19
|
+
let options;
|
|
20
|
+
let web = {}
|
|
21
|
+
let requests = []
|
|
22
|
+
let statustoBeReturned = 200
|
|
23
|
+
let utilityLogic
|
|
24
|
+
beforeEach(() => {
|
|
25
|
+
fetchMock.resetMocks();
|
|
26
|
+
fetchMock.mockResponse("Not Found", {
|
|
27
|
+
status: 404,
|
|
28
|
+
});
|
|
29
|
+
requests = []
|
|
30
|
+
statustoBeReturned = 200
|
|
31
|
+
const init = { headers: { "Content-Type": "text/turtle" } } // Fetch options tend to be called this
|
|
13
32
|
|
|
14
|
-
|
|
15
|
-
let util;
|
|
16
|
-
let store;
|
|
17
|
-
let fetcher;
|
|
18
|
-
beforeEach(() => {
|
|
19
|
-
fetchMock.resetMocks();
|
|
20
|
-
fetchMock.mockResponse("Not Found", {
|
|
21
|
-
status: 404,
|
|
22
|
-
});
|
|
23
|
-
fetcher = { fetch: fetchMock };
|
|
24
|
-
store = rdf.graph();
|
|
25
|
-
store.fetcher = rdf.fetcher(store, fetcher);
|
|
26
|
-
store.updater = new UpdateManager(store);
|
|
27
|
-
util = new UtilityLogic(store, ns, fetcher);
|
|
28
|
-
});
|
|
33
|
+
fetchMock.mockIf(/^https?.*$/, async req => {
|
|
29
34
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
]
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"https://owner.com/some/acl",
|
|
76
|
-
"Created", {
|
|
77
|
-
status: 201
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
it("Creates the right ACL doc", async () => {
|
|
81
|
-
await util.setSinglePeerAccess({
|
|
82
|
-
ownerWebId: "https://owner.com/#me",
|
|
83
|
-
peerWebId: "https://peer.com/#me",
|
|
84
|
-
accessToModes: "acl:Read, acl:Control",
|
|
85
|
-
defaultModes: "acl:Write",
|
|
86
|
-
target: "https://owner.com/some/resource"
|
|
87
|
-
});
|
|
88
|
-
expect(fetchMock.mock.calls).toEqual([
|
|
89
|
-
[ "https://owner.com/some/resource", fetchMock.mock.calls[0][1] ],
|
|
90
|
-
[ "https://owner.com/some/acl", {
|
|
91
|
-
body: '@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n' +
|
|
92
|
-
'\n' +
|
|
93
|
-
'<#alice> a acl:Authorization;\n' +
|
|
94
|
-
' acl:agent <https://owner.com/#me>;\n' +
|
|
95
|
-
' acl:accessTo <https://owner.com/some/resource>;\n' +
|
|
96
|
-
' acl:default <https://owner.com/some/resource>;\n' +
|
|
97
|
-
' acl:mode acl:Read, acl:Write, acl:Control.\n' +
|
|
98
|
-
'<#bobAccessTo> a acl:Authorization;\n' +
|
|
99
|
-
' acl:agent <https://peer.com/#me>;\n' +
|
|
100
|
-
' acl:accessTo <https://owner.com/some/resource>;\n' +
|
|
101
|
-
' acl:mode acl:Read, acl:Control.\n' +
|
|
102
|
-
'<#bobDefault> a acl:Authorization;\n' +
|
|
103
|
-
' acl:agent <https://peer.com/#me>;\n' +
|
|
104
|
-
' acl:default <https://owner.com/some/resource>;\n' +
|
|
105
|
-
' acl:mode acl:Write.\n',
|
|
106
|
-
headers: [
|
|
107
|
-
["Content-Type", "text/turtle"]
|
|
108
|
-
],
|
|
109
|
-
method: "PUT"
|
|
110
|
-
}]
|
|
111
|
-
]);
|
|
35
|
+
if (req.method !== 'GET') {
|
|
36
|
+
requests.push(req)
|
|
37
|
+
if (req.method === 'PUT') {
|
|
38
|
+
const contents = await req.text()
|
|
39
|
+
web[req.url] = contents // Update our dummy web
|
|
40
|
+
console.log(`Tetst: Updated ${req.url} on PUT to <<<${web[req.url]}>>>`)
|
|
41
|
+
}
|
|
42
|
+
return { status: statustoBeReturned }
|
|
43
|
+
}
|
|
44
|
+
const contents = web[req.url]
|
|
45
|
+
if (contents !== undefined) { //
|
|
46
|
+
return {
|
|
47
|
+
body: prefixes + contents, // Add namespaces to anything
|
|
48
|
+
status: 200,
|
|
49
|
+
headers: {
|
|
50
|
+
"Content-Type": "text/turtle",
|
|
51
|
+
"WAC-Allow": 'user="write", public="read"',
|
|
52
|
+
"Accept-Patch": "application/sparql-update"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
} // if contents
|
|
56
|
+
return {
|
|
57
|
+
status: 404,
|
|
58
|
+
body: 'Not Found'
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
web = {}
|
|
62
|
+
web[alice.doc().uri] = AliceProfile
|
|
63
|
+
web[AlicePreferencesFile.uri] = AlicePreferences
|
|
64
|
+
web[AlicePrivateTypeIndex.uri] = AlicePrivateTypes
|
|
65
|
+
web[AlicePublicTypeIndex.uri] = AlicePublicTypes
|
|
66
|
+
web[AlicePhotoFolder.uri] = AlicePhotos
|
|
67
|
+
web[bob.doc().uri] = BobProfile
|
|
68
|
+
|
|
69
|
+
web[club.doc().uri] = ClubProfile
|
|
70
|
+
web[ClubPreferencesFile.uri] = ClubPreferences
|
|
71
|
+
web[ClubPrivateTypeIndex.uri] = ClubPrivateTypes
|
|
72
|
+
web[ClubPublicTypeIndex.uri] = ClubPublicTypes
|
|
73
|
+
|
|
74
|
+
options = { fetch: fetch };
|
|
75
|
+
store = new Store()
|
|
76
|
+
store.fetcher = new Fetcher(store, options);
|
|
77
|
+
store.updater = new UpdateManager(store);
|
|
78
|
+
requests = []
|
|
79
|
+
utilityLogic = createUtilityLogic(store, createAclLogic(store), createContainerLogic(store))
|
|
112
80
|
});
|
|
113
|
-
});
|
|
114
|
-
function containerIsEmpty() {
|
|
115
|
-
fetchMock.mockOnceIf(
|
|
116
|
-
"https://container.com/",
|
|
117
|
-
" ", // FIXME: https://github.com/jefflau/jest-fetch-mock/issues/189
|
|
118
|
-
{
|
|
119
|
-
headers: { "Content-Type": "text/turtle" },
|
|
120
|
-
}
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
81
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
82
|
+
describe('loadOrCreateIfNotExists', () => {
|
|
83
|
+
it('exists', () => {
|
|
84
|
+
expect(utilityLogic.loadOrCreateIfNotExists).toBeInstanceOf(Function)
|
|
85
|
+
})
|
|
86
|
+
it('does nothing if existing file', async () => {
|
|
87
|
+
const result = await utilityLogic.loadOrCreateIfNotExists(alice.doc())
|
|
88
|
+
expect(requests).toEqual([])
|
|
89
|
+
|
|
90
|
+
})
|
|
91
|
+
it('creates empty file if did not exist', async () => {
|
|
92
|
+
const suggestion = 'https://bob.example.com/settings/prefsSuggestion.ttl'
|
|
93
|
+
const result = await utilityLogic.loadOrCreateIfNotExists(sym(suggestion))
|
|
94
|
+
expect(requests[0].method).toEqual('PUT')
|
|
95
|
+
expect(requests[0].url).toEqual(suggestion)
|
|
96
|
+
})
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
describe('followOrCreateLink', () => {
|
|
100
|
+
it('exists', () => {
|
|
101
|
+
expect(utilityLogic.followOrCreateLink).toBeInstanceOf(Function)
|
|
102
|
+
})
|
|
103
|
+
it('follows existing link', async () => {
|
|
104
|
+
const suggestion = 'https://alice.example.com/settings/prefsSuggestion.ttl'
|
|
105
|
+
const result = await utilityLogic.followOrCreateLink(alice, ns.space('preferencesFile'), sym(suggestion), alice.doc())
|
|
106
|
+
expect(result).toEqual(AlicePreferencesFile)
|
|
107
|
+
|
|
108
|
+
})
|
|
109
|
+
it('creates empty file if did not exist and new link', async () => {
|
|
110
|
+
const suggestion = 'https://bob.example.com/settings/prefsSuggestion.ttl'
|
|
111
|
+
const result = await utilityLogic.followOrCreateLink(bob, ns.space('preferencesFile'), sym(suggestion), bob.doc())
|
|
112
|
+
expect(result).toEqual(sym(suggestion))
|
|
113
|
+
expect(requests[0].method).toEqual('PATCH')
|
|
114
|
+
expect(requests[0].url).toEqual(bob.doc().uri)
|
|
115
|
+
expect(requests[1].method).toEqual('PUT')
|
|
116
|
+
expect(requests[1].url).toEqual(suggestion)
|
|
117
|
+
expect(store.holds(bob, ns.space('preferencesFile'), sym(suggestion), bob.doc())).toEqual(true)
|
|
118
|
+
})
|
|
119
|
+
//
|
|
120
|
+
it('returns null if it cannot create the new file', async () => {
|
|
121
|
+
const suggestion = 'https://bob.example.com/settings/prefsSuggestion.ttl'
|
|
122
|
+
statustoBeReturned = 403 // Unauthorized
|
|
123
|
+
expect(async () => {
|
|
124
|
+
await utilityLogic.followOrCreateLink(bob, ns.space('preferencesFile'), sym(suggestion), bob.doc())
|
|
125
|
+
}).rejects.toThrow(WebOperationError)
|
|
126
|
+
})
|
|
127
|
+
|
|
128
|
+
})
|
|
129
|
+
describe("setSinglePeerAccess", () => {
|
|
130
|
+
beforeEach(() => {
|
|
131
|
+
fetchMock.mockOnceIf(
|
|
132
|
+
"https://owner.com/some/resource",
|
|
133
|
+
"hello", {
|
|
134
|
+
headers: {
|
|
135
|
+
Link: '<https://owner.com/some/acl>; rel="acl"'
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
fetchMock.mockOnceIf(
|
|
139
|
+
"https://owner.com/some/acl",
|
|
140
|
+
"Created", {
|
|
141
|
+
status: 201
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
it("Creates the right ACL doc", async () => {
|
|
145
|
+
await utilityLogic.setSinglePeerAccess({
|
|
146
|
+
ownerWebId: "https://owner.com/#me",
|
|
147
|
+
peerWebId: "https://peer.com/#me",
|
|
148
|
+
accessToModes: "acl:Read, acl:Control",
|
|
149
|
+
defaultModes: "acl:Write",
|
|
150
|
+
target: "https://owner.com/some/resource"
|
|
151
|
+
});
|
|
152
|
+
expect(fetchMock.mock.calls).toEqual([
|
|
153
|
+
[ "https://owner.com/some/resource", fetchMock.mock.calls[0][1] ],
|
|
154
|
+
[ "https://owner.com/some/acl", {
|
|
155
|
+
body: '@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n' +
|
|
156
|
+
'\n' +
|
|
157
|
+
'<#alice> a acl:Authorization;\n' +
|
|
158
|
+
' acl:agent <https://owner.com/#me>;\n' +
|
|
159
|
+
' acl:accessTo <https://owner.com/some/resource>;\n' +
|
|
160
|
+
' acl:default <https://owner.com/some/resource>;\n' +
|
|
161
|
+
' acl:mode acl:Read, acl:Write, acl:Control.\n' +
|
|
162
|
+
'<#bobAccessTo> a acl:Authorization;\n' +
|
|
163
|
+
' acl:agent <https://peer.com/#me>;\n' +
|
|
164
|
+
' acl:accessTo <https://owner.com/some/resource>;\n' +
|
|
165
|
+
' acl:mode acl:Read, acl:Control.\n' +
|
|
166
|
+
'<#bobDefault> a acl:Authorization;\n' +
|
|
167
|
+
' acl:agent <https://peer.com/#me>;\n' +
|
|
168
|
+
' acl:default <https://owner.com/some/resource>;\n' +
|
|
169
|
+
' acl:mode acl:Write.\n',
|
|
170
|
+
headers: [
|
|
171
|
+
["Content-Type", "text/turtle"]
|
|
172
|
+
],
|
|
173
|
+
method: "PUT"
|
|
174
|
+
}]
|
|
175
|
+
]);
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
})
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as rdf from "rdflib";
|
|
2
|
+
import { getArchiveUrl, uniqueNodes } from '../src/util/utils';
|
|
3
|
+
|
|
4
|
+
describe('utils', () => {
|
|
5
|
+
describe('uniqueNodes', () => {
|
|
6
|
+
it('exists', () => {
|
|
7
|
+
expect(uniqueNodes).toBeInstanceOf(Function)
|
|
8
|
+
})
|
|
9
|
+
it('removed duplicates', async () => {
|
|
10
|
+
const input = [ rdf.sym('https://a.com/'), rdf.sym('https://b.com/'), rdf.sym('https://a.com/'), rdf.sym('https://a.com/'), rdf.sym('https://c.com/'), ]
|
|
11
|
+
const expected = [ rdf.sym('https://a.com/'), rdf.sym('https://b.com/'), rdf.sym('https://c.com/'), ]
|
|
12
|
+
const result = uniqueNodes(input)
|
|
13
|
+
expect(result).toEqual(expected)
|
|
14
|
+
|
|
15
|
+
})
|
|
16
|
+
it('handles an empty array', async () => {
|
|
17
|
+
const result = await uniqueNodes([])
|
|
18
|
+
expect(result).toEqual([])
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
describe("getArchiveUrl", () => {
|
|
23
|
+
it("produces the right URL in February", () => {
|
|
24
|
+
const url = getArchiveUrl('https://example.com/inbox/asdf-qwer-asdf-qwer', new Date('7 Feb 2062 UTC'));
|
|
25
|
+
expect(url).toEqual('https://example.com/inbox/archive/2062/02/07/asdf-qwer-asdf-qwer');
|
|
26
|
+
});
|
|
27
|
+
it("produces the right URL in November", () => {
|
|
28
|
+
const url = getArchiveUrl('https://example.com/inbox/asdf-qwer-asdf-qwer', new Date('12 Nov 2012 UTC'));
|
|
29
|
+
expect(url).toEqual('https://example.com/inbox/archive/2012/11/12/asdf-qwer-asdf-qwer');
|
|
30
|
+
});
|
|
31
|
+
})
|
|
32
|
+
})
|
package/lib/chat/ChatLogic.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { NamedNode, LiveStore } from "rdflib";
|
|
2
|
-
import { ProfileLogic } from "../profile/ProfileLogic";
|
|
3
|
-
import { SolidNamespace } from "../types";
|
|
4
|
-
/**
|
|
5
|
-
* Chat-related logic
|
|
6
|
-
*/
|
|
7
|
-
export declare class ChatLogic {
|
|
8
|
-
store: LiveStore;
|
|
9
|
-
ns: SolidNamespace;
|
|
10
|
-
profile: ProfileLogic;
|
|
11
|
-
constructor(store: LiveStore, ns: SolidNamespace, profile: ProfileLogic);
|
|
12
|
-
setAcl(chatContainer: NamedNode, me: NamedNode, invitee: NamedNode): Promise<void>;
|
|
13
|
-
private addToPrivateTypeIndex;
|
|
14
|
-
private findChat;
|
|
15
|
-
private createChatThing;
|
|
16
|
-
private mintNew;
|
|
17
|
-
/**
|
|
18
|
-
* Find (and optionally create) an individual chat between the current user and the given invitee
|
|
19
|
-
* @param invitee - The person to chat with
|
|
20
|
-
* @param createIfMissing - Whether the chat should be created, if missing
|
|
21
|
-
* @returns null if missing, or a node referring to an already existing chat, or the newly created chat
|
|
22
|
-
*/
|
|
23
|
-
getChat(invitee: NamedNode, createIfMissing?: boolean): Promise<NamedNode | null>;
|
|
24
|
-
private sendInvite;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=ChatLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatLogic.d.ts","sourceRoot":"","sources":["../../src/chat/ChatLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAgB1C;;GAEG;AACH,qBAAa,SAAS;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,EAAE,EAAE,cAAc,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;gBAEV,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY;IAMjE,MAAM,CACV,aAAa,EAAE,SAAS,EACxB,EAAE,EAAE,SAAS,EACb,OAAO,EAAE,SAAS,GACjB,OAAO,CAAC,IAAI,CAAC;YAsCF,qBAAqB;YAqCrB,QAAQ;YAeR,eAAe;IAW7B,OAAO,CAAC,OAAO;IAoDf;;;;;OAKG;IACG,OAAO,CACX,OAAO,EAAE,SAAS,EAClB,eAAe,UAAO,GACrB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;YAgBd,UAAU;CA6BzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatLogic.js","sourceRoot":"","sources":["../../src/chat/ChatLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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O,CAAC,EACpB,SAAS,EACT,OAAO,CAAC,GAAG,EAAE,CACd,CAAC;wBACF,IAAI,CAAC,YAAY,EAAE;4BACjB,MAAM,IAAI,KAAK,CAAC,mCAA4B,OAAO,CAAC,KAAK,CAAE,CAAC,CAAC;yBAC9D;wBACK,UAAU,GAAG,sEAErB,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,eAAK,SAAS,CAAC,KAAK,YACzC,CAAC;wBAEuB,qBAAM,CAAA,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,0CAAE,YAAY,CAC3D,MAAM,EACN,YAAY,CAAC,KAAK,EAClB;gCACE,IAAI,EAAE,UAAU;gCAChB,WAAW,EAAE,aAAa;6BAC3B,CACF,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;4BAChB,MAAM,IAAI,KAAK,CAAC,oCAA6B,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,MAAM,CAAE,CAAC,CAAC;yBACxE;;;;;KACF;IACH,gBAAC;AAAD,CAAC,AA9ND,IA8NC;AA9NY,8BAAS"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"determineChatContainer.d.ts","sourceRoot":"","sources":["../../src/chat/determineChatContainer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,SAAS,GACjB,SAAS,CAQX"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.determineChatContainer = void 0;
|
|
4
|
-
var rdflib_1 = require("rdflib");
|
|
5
|
-
function determineChatContainer(invitee, podRoot) {
|
|
6
|
-
// Create chat
|
|
7
|
-
// See https://gitter.im/solid/chat-app?at=5f3c800f855be416a23ae74a
|
|
8
|
-
var chatContainerStr = new URL("IndividualChats/".concat(new URL(invitee.value).host, "/"), podRoot.value).toString();
|
|
9
|
-
return new rdflib_1.NamedNode(chatContainerStr);
|
|
10
|
-
}
|
|
11
|
-
exports.determineChatContainer = determineChatContainer;
|
|
12
|
-
//# sourceMappingURL=determineChatContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"determineChatContainer.js","sourceRoot":"","sources":["../../src/chat/determineChatContainer.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AAEnC,SAAgB,sBAAsB,CACpC,OAAkB,EAClB,OAAkB;IAElB,cAAc;IACd,mEAAmE;IACnE,IAAM,gBAAgB,GAAG,IAAI,GAAG,CAC9B,0BAAmB,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,MAAG,EACjD,OAAO,CAAC,KAAK,CACd,CAAC,QAAQ,EAAE,CAAC;IACb,OAAO,IAAI,kBAAS,CAAC,gBAAgB,CAAC,CAAC;AACzC,CAAC;AAXD,wDAWC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { NamedNode, LiveStore } from "rdflib";
|
|
2
|
-
declare type TypeIndexScope = {
|
|
3
|
-
label: string;
|
|
4
|
-
index: NamedNode;
|
|
5
|
-
agent: NamedNode;
|
|
6
|
-
};
|
|
7
|
-
declare type ScopedApp = {
|
|
8
|
-
instance: NamedNode;
|
|
9
|
-
scope: TypeIndexScope;
|
|
10
|
-
};
|
|
11
|
-
/** Create a resource if it really does not exist
|
|
12
|
-
* Be absolutely sure something does not exist before creating a new empty file
|
|
13
|
-
* as otherwise existing could be deleted.
|
|
14
|
-
* @param doc {NamedNode} - The resource
|
|
15
|
-
*/
|
|
16
|
-
export declare function loadOrCreateIfNotExists(store: LiveStore, doc: NamedNode): Promise<any>;
|
|
17
|
-
export declare function suggestPreferencesFile(me: NamedNode): NamedNode;
|
|
18
|
-
export declare function suggestPublicTypeIndex(me: NamedNode): NamedNode;
|
|
19
|
-
export declare function suggestPrivateTypeIndex(preferencesFile: NamedNode): NamedNode;
|
|
20
|
-
export declare function followOrCreateLink(store: LiveStore, subject: NamedNode, predicate: NamedNode, object: NamedNode, doc: NamedNode): Promise<NamedNode | null>;
|
|
21
|
-
export declare function loadProfile(store: LiveStore, user: NamedNode): Promise<NamedNode>;
|
|
22
|
-
export declare function loadPreferences(store: LiveStore, user: NamedNode): Promise<NamedNode | undefined>;
|
|
23
|
-
export declare function loadTypeIndexesFor(store: LiveStore, user: NamedNode): Promise<Array<TypeIndexScope>>;
|
|
24
|
-
export declare function loadCommunityTypeIndexes(store: LiveStore, user: NamedNode): Promise<TypeIndexScope[][]>;
|
|
25
|
-
export declare function loadAllTypeIndexes(store: LiveStore, user: NamedNode): Promise<TypeIndexScope[]>;
|
|
26
|
-
export declare function uniqueNodes(arr: NamedNode[]): NamedNode[];
|
|
27
|
-
export declare function getScopedAppsFromIndex(store: any, scope: any, theClass: NamedNode): Promise<{
|
|
28
|
-
instance: NamedNode;
|
|
29
|
-
scope: any;
|
|
30
|
-
}[]>;
|
|
31
|
-
export declare function getScopedAppInstances(store: LiveStore, klass: NamedNode, user: NamedNode): Promise<ScopedApp[]>;
|
|
32
|
-
export declare function getAppInstances(store: LiveStore, klass: NamedNode): Promise<NamedNode[]>;
|
|
33
|
-
/**
|
|
34
|
-
* Register a new app in a type index
|
|
35
|
-
* used in chat in bookmark.js (solid-ui)
|
|
36
|
-
* Returns the registration object if successful else null
|
|
37
|
-
*/
|
|
38
|
-
export declare function registerInstanceInTypeIndex(store: LiveStore, instance: NamedNode, index: NamedNode, theClass: NamedNode): Promise<NamedNode | null>;
|
|
39
|
-
export {};
|
|
40
|
-
//# sourceMappingURL=discoveryLogic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discoveryLogic.d.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