@coasys/ad4m 0.8.0-fix → 0.8.1
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/README.md +229 -229
- package/jest.config.js +5 -5
- package/jsdoc.json +27 -27
- package/lib/index.cjs +4522 -4571
- package/lib/index.js +4522 -4571
- package/lib/shims/type-graphql.d.ts +32 -32
- package/lib/shims/type-graphql.js +70 -70
- package/lib/src/Ad4mClient.d.ts +26 -26
- package/lib/src/Ad4mClient.js +66 -66
- package/lib/src/Address.d.ts +1 -1
- package/lib/src/Address.js +1 -1
- package/lib/src/DID.d.ts +1 -1
- package/lib/src/DID.js +1 -1
- package/lib/src/Exception.d.ts +6 -6
- package/lib/src/Exception.js +7 -7
- package/lib/src/Literal.d.ts +7 -7
- package/lib/src/Literal.js +76 -76
- package/lib/src/PubSub.d.ts +14 -14
- package/lib/src/PubSub.js +14 -14
- package/lib/src/SmartLiteral.d.ts +12 -12
- package/lib/src/SmartLiteral.js +74 -74
- package/lib/src/agent/Agent.d.ts +104 -104
- package/lib/src/agent/Agent.js +337 -337
- package/lib/src/agent/AgentClient.d.ts +57 -57
- package/lib/src/agent/AgentClient.js +431 -431
- package/lib/src/agent/AgentResolver.d.ts +30 -30
- package/lib/src/agent/AgentResolver.js +325 -325
- package/lib/src/agent/AgentStatus.d.ts +8 -8
- package/lib/src/agent/AgentStatus.js +61 -61
- package/lib/src/buildSchema.d.ts +1 -1
- package/lib/src/buildSchema.js +36 -36
- package/lib/src/expression/Expression.d.ts +28 -28
- package/lib/src/expression/Expression.js +143 -143
- package/lib/src/expression/ExpressionClient.d.ts +13 -13
- package/lib/src/expression/ExpressionClient.js +102 -102
- package/lib/src/expression/ExpressionRef.d.ts +9 -9
- package/lib/src/expression/ExpressionRef.js +67 -67
- package/lib/src/expression/ExpressionResolver.d.ts +10 -10
- package/lib/src/expression/ExpressionResolver.js +106 -106
- package/lib/src/index.d.ts +30 -30
- package/lib/src/index.js +30 -30
- package/lib/src/jestSetup.d.ts +1 -1
- package/lib/src/jestSetup.js +1 -1
- package/lib/src/language/Icon.d.ts +4 -4
- package/lib/src/language/Icon.js +24 -24
- package/lib/src/language/Language.d.ts +195 -195
- package/lib/src/language/Language.js +79 -79
- package/lib/src/language/LanguageClient.d.ts +17 -17
- package/lib/src/language/LanguageClient.js +137 -137
- package/lib/src/language/LanguageContext.d.ts +37 -37
- package/lib/src/language/LanguageContext.js +2 -2
- package/lib/src/language/LanguageHandle.d.ts +9 -9
- package/lib/src/language/LanguageHandle.js +41 -41
- package/lib/src/language/LanguageMeta.d.ts +35 -35
- package/lib/src/language/LanguageMeta.js +89 -89
- package/lib/src/language/LanguageRef.d.ts +6 -6
- package/lib/src/language/LanguageRef.js +30 -30
- package/lib/src/language/LanguageResolver.d.ts +19 -19
- package/lib/src/language/LanguageResolver.js +143 -143
- package/lib/src/links/Links.d.ts +39 -39
- package/lib/src/links/Links.js +148 -148
- package/lib/src/links/Links.test.d.ts +1 -1
- package/lib/src/links/Links.test.js +33 -33
- package/lib/src/neighbourhood/Neighbourhood.d.ts +10 -10
- package/lib/src/neighbourhood/Neighbourhood.js +38 -38
- package/lib/src/neighbourhood/NeighbourhoodClient.d.ts +25 -25
- package/lib/src/neighbourhood/NeighbourhoodClient.js +256 -256
- package/lib/src/neighbourhood/NeighbourhoodProxy.d.ts +19 -19
- package/lib/src/neighbourhood/NeighbourhoodProxy.js +54 -54
- package/lib/src/neighbourhood/NeighbourhoodResolver.d.ts +24 -24
- package/lib/src/neighbourhood/NeighbourhoodResolver.js +180 -180
- package/lib/src/perspectives/LinkQuery.d.ts +11 -11
- package/lib/src/perspectives/LinkQuery.js +80 -80
- package/lib/src/perspectives/Perspective.d.ts +38 -38
- package/lib/src/perspectives/Perspective.js +144 -144
- package/lib/src/perspectives/Perspective.test.d.ts +1 -1
- package/lib/src/perspectives/Perspective.test.js +20 -20
- package/lib/src/perspectives/PerspectiveClient.d.ts +55 -54
- package/lib/src/perspectives/PerspectiveClient.js +418 -410
- package/lib/src/perspectives/PerspectiveDiff.d.ts +9 -9
- package/lib/src/perspectives/PerspectiveDiff.js +33 -33
- package/lib/src/perspectives/PerspectiveHandle.d.ts +16 -16
- package/lib/src/perspectives/PerspectiveHandle.js +59 -59
- package/lib/src/perspectives/PerspectiveProxy.d.ts +178 -178
- package/lib/src/perspectives/PerspectiveProxy.js +501 -540
- package/lib/src/perspectives/PerspectiveResolver.d.ts +38 -37
- package/lib/src/perspectives/PerspectiveResolver.js +376 -362
- package/lib/src/runtime/RuntimeClient.d.ts +33 -33
- package/lib/src/runtime/RuntimeClient.js +263 -263
- package/lib/src/runtime/RuntimeResolver.d.ts +47 -47
- package/lib/src/runtime/RuntimeResolver.js +328 -328
- package/lib/src/schema.gql +1 -0
- package/lib/src/subject/SDNADecorators.d.ts +45 -45
- package/lib/src/subject/SDNADecorators.js +250 -250
- package/lib/src/subject/Subject.d.ts +7 -7
- package/lib/src/subject/Subject.js +160 -160
- package/lib/src/subject/SubjectEntity.d.ts +31 -31
- package/lib/src/subject/SubjectEntity.js +250 -250
- package/lib/src/subject/util.d.ts +12 -12
- package/lib/src/subject/util.js +73 -73
- package/lib/src/typeDefs.d.ts +1 -1
- package/lib/src/typeDefs.js +1 -0
- package/lib/src/unwrapApolloResult.d.ts +2 -2
- package/lib/src/unwrapApolloResult.js +14 -12
- package/lib/src/utils.d.ts +2 -2
- package/lib/src/utils.js +21 -21
- package/package.json +61 -61
- package/rollup.config.js +26 -26
- package/shims/type-graphql.ts +75 -75
- package/src/Ad4mClient.test.ts +1089 -1084
- package/src/Ad4mClient.ts +62 -62
- package/src/Address.ts +1 -1
- package/src/Exception.ts +6 -6
- package/src/Literal.test.ts +30 -30
- package/src/Literal.ts +80 -80
- package/src/PubSub.ts +13 -13
- package/src/SmartLiteral.ts +74 -74
- package/src/agent/Agent.ts +293 -293
- package/src/agent/AgentClient.ts +531 -531
- package/src/agent/AgentResolver.ts +263 -263
- package/src/agent/AgentStatus.ts +43 -43
- package/src/buildSchema.ts +41 -41
- package/src/expression/Expression.ts +99 -99
- package/src/expression/ExpressionClient.ts +98 -98
- package/src/expression/ExpressionRef.ts +62 -62
- package/src/expression/ExpressionResolver.ts +63 -63
- package/src/index.ts +30 -30
- package/src/language/Icon.ts +10 -10
- package/src/language/Language.ts +266 -266
- package/src/language/LanguageClient.ts +159 -159
- package/src/language/LanguageContext.ts +37 -37
- package/src/language/LanguageHandle.ts +23 -23
- package/src/language/LanguageMeta.ts +69 -69
- package/src/language/LanguageRef.ts +18 -18
- package/src/language/LanguageResolver.ts +98 -98
- package/src/links/Links.test.ts +39 -39
- package/src/links/Links.ts +107 -107
- package/src/neighbourhood/Neighbourhood.ts +22 -22
- package/src/neighbourhood/NeighbourhoodClient.ts +275 -275
- package/src/neighbourhood/NeighbourhoodProxy.ts +58 -58
- package/src/neighbourhood/NeighbourhoodResolver.ts +99 -99
- package/src/perspectives/LinkQuery.ts +65 -65
- package/src/perspectives/Perspective.test.ts +22 -22
- package/src/perspectives/Perspective.ts +118 -118
- package/src/perspectives/PerspectiveClient.ts +452 -443
- package/src/perspectives/PerspectiveDiff.ts +15 -15
- package/src/perspectives/PerspectiveHandle.ts +39 -39
- package/src/perspectives/PerspectiveProxy.ts +576 -610
- package/src/perspectives/PerspectiveResolver.ts +224 -219
- package/src/runtime/RuntimeClient.ts +282 -282
- package/src/runtime/RuntimeResolver.ts +192 -192
- package/src/subject/SDNADecorators.ts +333 -333
- package/src/subject/Subject.ts +152 -152
- package/src/subject/SubjectEntity.ts +291 -291
- package/src/subject/util.ts +84 -84
- package/src/typeDefs.ts +5 -5
- package/src/unwrapApolloResult.ts +15 -13
- package/src/utils.ts +25 -25
- package/tsconfig-browser.json +82 -82
- package/tsconfig.json +80 -80
- package/yarn-error.log +0 -22814
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
-
};
|
|
12
|
-
var _NeighbourhoodProxy_client, _NeighbourhoodProxy_pID;
|
|
13
|
-
export class NeighbourhoodProxy {
|
|
14
|
-
constructor(client, pID) {
|
|
15
|
-
_NeighbourhoodProxy_client.set(this, void 0);
|
|
16
|
-
_NeighbourhoodProxy_pID.set(this, void 0);
|
|
17
|
-
__classPrivateFieldSet(this, _NeighbourhoodProxy_client, client, "f");
|
|
18
|
-
__classPrivateFieldSet(this, _NeighbourhoodProxy_pID, pID, "f");
|
|
19
|
-
}
|
|
20
|
-
async otherAgents() {
|
|
21
|
-
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").otherAgents(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"));
|
|
22
|
-
}
|
|
23
|
-
async hasTelepresenceAdapter() {
|
|
24
|
-
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").hasTelepresenceAdapter(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"));
|
|
25
|
-
}
|
|
26
|
-
async onlineAgents() {
|
|
27
|
-
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").onlineAgents(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"));
|
|
28
|
-
}
|
|
29
|
-
async setOnlineStatus(status) {
|
|
30
|
-
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").setOnlineStatus(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), status);
|
|
31
|
-
}
|
|
32
|
-
async setOnlineStatusU(status) {
|
|
33
|
-
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").setOnlineStatusU(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), status);
|
|
34
|
-
}
|
|
35
|
-
async sendSignal(remoteAgentDid, payload) {
|
|
36
|
-
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").sendSignal(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), remoteAgentDid, payload);
|
|
37
|
-
}
|
|
38
|
-
async sendSignalU(remoteAgentDid, payload) {
|
|
39
|
-
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").sendSignalU(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), remoteAgentDid, payload);
|
|
40
|
-
}
|
|
41
|
-
async sendBroadcast(payload) {
|
|
42
|
-
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").sendBroadcast(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), payload);
|
|
43
|
-
}
|
|
44
|
-
async sendBroadcastU(payload) {
|
|
45
|
-
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").sendBroadcastU(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), payload);
|
|
46
|
-
}
|
|
47
|
-
async addSignalHandler(handler) {
|
|
48
|
-
await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").addSignalHandler(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), handler);
|
|
49
|
-
}
|
|
50
|
-
removeSignalHandler(handler) {
|
|
51
|
-
__classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").removeSignalHandler(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), handler);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
_NeighbourhoodProxy_client = new WeakMap(), _NeighbourhoodProxy_pID = new WeakMap();
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _NeighbourhoodProxy_client, _NeighbourhoodProxy_pID;
|
|
13
|
+
export class NeighbourhoodProxy {
|
|
14
|
+
constructor(client, pID) {
|
|
15
|
+
_NeighbourhoodProxy_client.set(this, void 0);
|
|
16
|
+
_NeighbourhoodProxy_pID.set(this, void 0);
|
|
17
|
+
__classPrivateFieldSet(this, _NeighbourhoodProxy_client, client, "f");
|
|
18
|
+
__classPrivateFieldSet(this, _NeighbourhoodProxy_pID, pID, "f");
|
|
19
|
+
}
|
|
20
|
+
async otherAgents() {
|
|
21
|
+
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").otherAgents(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"));
|
|
22
|
+
}
|
|
23
|
+
async hasTelepresenceAdapter() {
|
|
24
|
+
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").hasTelepresenceAdapter(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"));
|
|
25
|
+
}
|
|
26
|
+
async onlineAgents() {
|
|
27
|
+
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").onlineAgents(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"));
|
|
28
|
+
}
|
|
29
|
+
async setOnlineStatus(status) {
|
|
30
|
+
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").setOnlineStatus(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), status);
|
|
31
|
+
}
|
|
32
|
+
async setOnlineStatusU(status) {
|
|
33
|
+
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").setOnlineStatusU(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), status);
|
|
34
|
+
}
|
|
35
|
+
async sendSignal(remoteAgentDid, payload) {
|
|
36
|
+
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").sendSignal(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), remoteAgentDid, payload);
|
|
37
|
+
}
|
|
38
|
+
async sendSignalU(remoteAgentDid, payload) {
|
|
39
|
+
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").sendSignalU(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), remoteAgentDid, payload);
|
|
40
|
+
}
|
|
41
|
+
async sendBroadcast(payload) {
|
|
42
|
+
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").sendBroadcast(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), payload);
|
|
43
|
+
}
|
|
44
|
+
async sendBroadcastU(payload) {
|
|
45
|
+
return await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").sendBroadcastU(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), payload);
|
|
46
|
+
}
|
|
47
|
+
async addSignalHandler(handler) {
|
|
48
|
+
await __classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").addSignalHandler(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), handler);
|
|
49
|
+
}
|
|
50
|
+
removeSignalHandler(handler) {
|
|
51
|
+
__classPrivateFieldGet(this, _NeighbourhoodProxy_client, "f").removeSignalHandler(__classPrivateFieldGet(this, _NeighbourhoodProxy_pID, "f"), handler);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
_NeighbourhoodProxy_client = new WeakMap(), _NeighbourhoodProxy_pID = new WeakMap();
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { PerspectiveHandle } from "../perspectives/PerspectiveHandle";
|
|
2
|
-
import { PerspectiveExpression, PerspectiveInput, PerspectiveUnsignedInput } from "../perspectives/Perspective";
|
|
3
|
-
import { DID } from "../DID";
|
|
4
|
-
import { OnlineAgent } from "../language/Language";
|
|
5
|
-
/**
|
|
6
|
-
* Resolver classes are used here to define the GraphQL schema
|
|
7
|
-
* (through the type-graphql annotations)
|
|
8
|
-
* and are spawned in the client tests in Ad4mClient.test.ts.
|
|
9
|
-
* For the latter, they return test fixtures.
|
|
10
|
-
*/
|
|
11
|
-
export default class NeighbourhoodResolver {
|
|
12
|
-
neighbourhoodPublishFromPerspective(perspectiveUUID: string, linkLanguage: string, meta: PerspectiveInput): string;
|
|
13
|
-
neighbourhoodJoinFromUrl(url: string, pubSub: any): PerspectiveHandle;
|
|
14
|
-
neighbourhoodOtherAgents(perspectiveUUID: string): DID[];
|
|
15
|
-
neighbourhoodHasTelepresenceAdapter(perspectiveUUID: string): boolean;
|
|
16
|
-
neighbourhoodOnlineAgents(perspectiveUUID: string): OnlineAgent[];
|
|
17
|
-
neighbourhoodSetOnlineStatus(perspectiveUUID: string, status: PerspectiveInput): boolean;
|
|
18
|
-
neighbourhoodSetOnlineStatusU(perspectiveUUID: string, status: PerspectiveUnsignedInput): boolean;
|
|
19
|
-
neighbourhoodSendSignal(perspectiveUUID: string, recipient: DID, signal: PerspectiveInput): boolean;
|
|
20
|
-
neighbourhoodSendSignalU(perspectiveUUID: string, recipient: DID, signal: PerspectiveUnsignedInput): boolean;
|
|
21
|
-
neighbourhoodSendBroadcast(perspectiveUUID: string, signal: PerspectiveInput): boolean;
|
|
22
|
-
neighbourhoodSendBroadcastU(perspectiveUUID: string, signal: PerspectiveUnsignedInput): boolean;
|
|
23
|
-
neighbourhoodSignal(pID: string): PerspectiveExpression;
|
|
24
|
-
}
|
|
1
|
+
import { PerspectiveHandle } from "../perspectives/PerspectiveHandle";
|
|
2
|
+
import { PerspectiveExpression, PerspectiveInput, PerspectiveUnsignedInput } from "../perspectives/Perspective";
|
|
3
|
+
import { DID } from "../DID";
|
|
4
|
+
import { OnlineAgent } from "../language/Language";
|
|
5
|
+
/**
|
|
6
|
+
* Resolver classes are used here to define the GraphQL schema
|
|
7
|
+
* (through the type-graphql annotations)
|
|
8
|
+
* and are spawned in the client tests in Ad4mClient.test.ts.
|
|
9
|
+
* For the latter, they return test fixtures.
|
|
10
|
+
*/
|
|
11
|
+
export default class NeighbourhoodResolver {
|
|
12
|
+
neighbourhoodPublishFromPerspective(perspectiveUUID: string, linkLanguage: string, meta: PerspectiveInput): string;
|
|
13
|
+
neighbourhoodJoinFromUrl(url: string, pubSub: any): PerspectiveHandle;
|
|
14
|
+
neighbourhoodOtherAgents(perspectiveUUID: string): DID[];
|
|
15
|
+
neighbourhoodHasTelepresenceAdapter(perspectiveUUID: string): boolean;
|
|
16
|
+
neighbourhoodOnlineAgents(perspectiveUUID: string): OnlineAgent[];
|
|
17
|
+
neighbourhoodSetOnlineStatus(perspectiveUUID: string, status: PerspectiveInput): boolean;
|
|
18
|
+
neighbourhoodSetOnlineStatusU(perspectiveUUID: string, status: PerspectiveUnsignedInput): boolean;
|
|
19
|
+
neighbourhoodSendSignal(perspectiveUUID: string, recipient: DID, signal: PerspectiveInput): boolean;
|
|
20
|
+
neighbourhoodSendSignalU(perspectiveUUID: string, recipient: DID, signal: PerspectiveUnsignedInput): boolean;
|
|
21
|
+
neighbourhoodSendBroadcast(perspectiveUUID: string, signal: PerspectiveInput): boolean;
|
|
22
|
+
neighbourhoodSendBroadcastU(perspectiveUUID: string, signal: PerspectiveUnsignedInput): boolean;
|
|
23
|
+
neighbourhoodSignal(pID: string): PerspectiveExpression;
|
|
24
|
+
}
|
|
@@ -1,180 +1,180 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
-
};
|
|
13
|
-
import { Arg, Mutation, Query, Resolver, Subscription, PubSub } from "type-graphql";
|
|
14
|
-
import { PerspectiveHandle, PerspectiveState } from "../perspectives/PerspectiveHandle";
|
|
15
|
-
import { Perspective, PerspectiveExpression, PerspectiveInput, PerspectiveUnsignedInput } from "../perspectives/Perspective";
|
|
16
|
-
import { TEST_AGENT_DID } from "../agent/AgentResolver";
|
|
17
|
-
import { OnlineAgent } from "../language/Language";
|
|
18
|
-
import { testLink } from "../perspectives/PerspectiveResolver";
|
|
19
|
-
import { NEIGHBOURHOOD_SIGNAL_RECEIVED_TOPIC, PERSPECTIVE_UPDATED_TOPIC } from "../PubSub";
|
|
20
|
-
const testPerspectiveExpression = new PerspectiveExpression();
|
|
21
|
-
testPerspectiveExpression.author = TEST_AGENT_DID;
|
|
22
|
-
testPerspectiveExpression.timestamp = new Date().toISOString();
|
|
23
|
-
testPerspectiveExpression.data = new Perspective([testLink]);
|
|
24
|
-
testPerspectiveExpression.proof = {
|
|
25
|
-
signature: '',
|
|
26
|
-
key: '',
|
|
27
|
-
valid: true
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Resolver classes are used here to define the GraphQL schema
|
|
31
|
-
* (through the type-graphql annotations)
|
|
32
|
-
* and are spawned in the client tests in Ad4mClient.test.ts.
|
|
33
|
-
* For the latter, they return test fixtures.
|
|
34
|
-
*/
|
|
35
|
-
let NeighbourhoodResolver = class NeighbourhoodResolver {
|
|
36
|
-
neighbourhoodPublishFromPerspective(perspectiveUUID, linkLanguage, meta) {
|
|
37
|
-
return "neighbourhood://neighbourhoodAddress";
|
|
38
|
-
}
|
|
39
|
-
neighbourhoodJoinFromUrl(url, pubSub) {
|
|
40
|
-
const perspective = new PerspectiveHandle;
|
|
41
|
-
perspective.name = "test-perspective";
|
|
42
|
-
perspective.sharedUrl = url;
|
|
43
|
-
perspective.uuid = "234234234";
|
|
44
|
-
perspective.state = PerspectiveState.Synced;
|
|
45
|
-
pubSub.publish(PERSPECTIVE_UPDATED_TOPIC, { perspective });
|
|
46
|
-
return perspective;
|
|
47
|
-
}
|
|
48
|
-
neighbourhoodOtherAgents(perspectiveUUID) {
|
|
49
|
-
return ['did:test:other'];
|
|
50
|
-
}
|
|
51
|
-
neighbourhoodHasTelepresenceAdapter(perspectiveUUID) {
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
neighbourhoodOnlineAgents(perspectiveUUID) {
|
|
55
|
-
const onlineAgent = new OnlineAgent();
|
|
56
|
-
onlineAgent.did = 'did:test:online';
|
|
57
|
-
onlineAgent.status = testPerspectiveExpression;
|
|
58
|
-
return [onlineAgent];
|
|
59
|
-
}
|
|
60
|
-
neighbourhoodSetOnlineStatus(perspectiveUUID, status) {
|
|
61
|
-
return true;
|
|
62
|
-
}
|
|
63
|
-
neighbourhoodSetOnlineStatusU(perspectiveUUID, status) {
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
neighbourhoodSendSignal(perspectiveUUID, recipient, signal) {
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
neighbourhoodSendSignalU(perspectiveUUID, recipient, signal) {
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
neighbourhoodSendBroadcast(perspectiveUUID, signal) {
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
neighbourhoodSendBroadcastU(perspectiveUUID, signal) {
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
neighbourhoodSignal(pID) {
|
|
79
|
-
return testPerspectiveExpression;
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
__decorate([
|
|
83
|
-
Mutation(returns => String),
|
|
84
|
-
__param(0, Arg('perspectiveUUID')),
|
|
85
|
-
__param(1, Arg('linkLanguage')),
|
|
86
|
-
__param(2, Arg('meta')),
|
|
87
|
-
__metadata("design:type", Function),
|
|
88
|
-
__metadata("design:paramtypes", [String, String, PerspectiveInput]),
|
|
89
|
-
__metadata("design:returntype", String)
|
|
90
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodPublishFromPerspective", null);
|
|
91
|
-
__decorate([
|
|
92
|
-
Mutation(returns => PerspectiveHandle),
|
|
93
|
-
__param(0, Arg('url')),
|
|
94
|
-
__param(1, PubSub()),
|
|
95
|
-
__metadata("design:type", Function),
|
|
96
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
97
|
-
__metadata("design:returntype", PerspectiveHandle)
|
|
98
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodJoinFromUrl", null);
|
|
99
|
-
__decorate([
|
|
100
|
-
Query(returns => [String]),
|
|
101
|
-
__param(0, Arg('perspectiveUUID')),
|
|
102
|
-
__metadata("design:type", Function),
|
|
103
|
-
__metadata("design:paramtypes", [String]),
|
|
104
|
-
__metadata("design:returntype", Array)
|
|
105
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodOtherAgents", null);
|
|
106
|
-
__decorate([
|
|
107
|
-
Query(),
|
|
108
|
-
__param(0, Arg('perspectiveUUID')),
|
|
109
|
-
__metadata("design:type", Function),
|
|
110
|
-
__metadata("design:paramtypes", [String]),
|
|
111
|
-
__metadata("design:returntype", Boolean)
|
|
112
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodHasTelepresenceAdapter", null);
|
|
113
|
-
__decorate([
|
|
114
|
-
Query(returns => [OnlineAgent]),
|
|
115
|
-
__param(0, Arg('perspectiveUUID')),
|
|
116
|
-
__metadata("design:type", Function),
|
|
117
|
-
__metadata("design:paramtypes", [String]),
|
|
118
|
-
__metadata("design:returntype", Array)
|
|
119
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodOnlineAgents", null);
|
|
120
|
-
__decorate([
|
|
121
|
-
Mutation(),
|
|
122
|
-
__param(0, Arg('perspectiveUUID')),
|
|
123
|
-
__param(1, Arg('status')),
|
|
124
|
-
__metadata("design:type", Function),
|
|
125
|
-
__metadata("design:paramtypes", [String, PerspectiveInput]),
|
|
126
|
-
__metadata("design:returntype", Boolean)
|
|
127
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodSetOnlineStatus", null);
|
|
128
|
-
__decorate([
|
|
129
|
-
Mutation(),
|
|
130
|
-
__param(0, Arg('perspectiveUUID')),
|
|
131
|
-
__param(1, Arg('status')),
|
|
132
|
-
__metadata("design:type", Function),
|
|
133
|
-
__metadata("design:paramtypes", [String, PerspectiveUnsignedInput]),
|
|
134
|
-
__metadata("design:returntype", Boolean)
|
|
135
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodSetOnlineStatusU", null);
|
|
136
|
-
__decorate([
|
|
137
|
-
Mutation(),
|
|
138
|
-
__param(0, Arg('perspectiveUUID')),
|
|
139
|
-
__param(1, Arg('remoteAgentDid')),
|
|
140
|
-
__param(2, Arg('payload')),
|
|
141
|
-
__metadata("design:type", Function),
|
|
142
|
-
__metadata("design:paramtypes", [String, String, PerspectiveInput]),
|
|
143
|
-
__metadata("design:returntype", Boolean)
|
|
144
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodSendSignal", null);
|
|
145
|
-
__decorate([
|
|
146
|
-
Mutation(),
|
|
147
|
-
__param(0, Arg('perspectiveUUID')),
|
|
148
|
-
__param(1, Arg('remoteAgentDid')),
|
|
149
|
-
__param(2, Arg('payload')),
|
|
150
|
-
__metadata("design:type", Function),
|
|
151
|
-
__metadata("design:paramtypes", [String, String, PerspectiveUnsignedInput]),
|
|
152
|
-
__metadata("design:returntype", Boolean)
|
|
153
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodSendSignalU", null);
|
|
154
|
-
__decorate([
|
|
155
|
-
Mutation(),
|
|
156
|
-
__param(0, Arg('perspectiveUUID')),
|
|
157
|
-
__param(1, Arg('payload')),
|
|
158
|
-
__metadata("design:type", Function),
|
|
159
|
-
__metadata("design:paramtypes", [String, PerspectiveInput]),
|
|
160
|
-
__metadata("design:returntype", Boolean)
|
|
161
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodSendBroadcast", null);
|
|
162
|
-
__decorate([
|
|
163
|
-
Mutation(),
|
|
164
|
-
__param(0, Arg('perspectiveUUID')),
|
|
165
|
-
__param(1, Arg('payload')),
|
|
166
|
-
__metadata("design:type", Function),
|
|
167
|
-
__metadata("design:paramtypes", [String, PerspectiveUnsignedInput]),
|
|
168
|
-
__metadata("design:returntype", Boolean)
|
|
169
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodSendBroadcastU", null);
|
|
170
|
-
__decorate([
|
|
171
|
-
Subscription({ topics: NEIGHBOURHOOD_SIGNAL_RECEIVED_TOPIC, nullable: true }),
|
|
172
|
-
__param(0, Arg('perspectiveUUID')),
|
|
173
|
-
__metadata("design:type", Function),
|
|
174
|
-
__metadata("design:paramtypes", [String]),
|
|
175
|
-
__metadata("design:returntype", PerspectiveExpression)
|
|
176
|
-
], NeighbourhoodResolver.prototype, "neighbourhoodSignal", null);
|
|
177
|
-
NeighbourhoodResolver = __decorate([
|
|
178
|
-
Resolver()
|
|
179
|
-
], NeighbourhoodResolver);
|
|
180
|
-
export default NeighbourhoodResolver;
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Arg, Mutation, Query, Resolver, Subscription, PubSub } from "type-graphql";
|
|
14
|
+
import { PerspectiveHandle, PerspectiveState } from "../perspectives/PerspectiveHandle";
|
|
15
|
+
import { Perspective, PerspectiveExpression, PerspectiveInput, PerspectiveUnsignedInput } from "../perspectives/Perspective";
|
|
16
|
+
import { TEST_AGENT_DID } from "../agent/AgentResolver";
|
|
17
|
+
import { OnlineAgent } from "../language/Language";
|
|
18
|
+
import { testLink } from "../perspectives/PerspectiveResolver";
|
|
19
|
+
import { NEIGHBOURHOOD_SIGNAL_RECEIVED_TOPIC, PERSPECTIVE_UPDATED_TOPIC } from "../PubSub";
|
|
20
|
+
const testPerspectiveExpression = new PerspectiveExpression();
|
|
21
|
+
testPerspectiveExpression.author = TEST_AGENT_DID;
|
|
22
|
+
testPerspectiveExpression.timestamp = new Date().toISOString();
|
|
23
|
+
testPerspectiveExpression.data = new Perspective([testLink]);
|
|
24
|
+
testPerspectiveExpression.proof = {
|
|
25
|
+
signature: '',
|
|
26
|
+
key: '',
|
|
27
|
+
valid: true
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Resolver classes are used here to define the GraphQL schema
|
|
31
|
+
* (through the type-graphql annotations)
|
|
32
|
+
* and are spawned in the client tests in Ad4mClient.test.ts.
|
|
33
|
+
* For the latter, they return test fixtures.
|
|
34
|
+
*/
|
|
35
|
+
let NeighbourhoodResolver = class NeighbourhoodResolver {
|
|
36
|
+
neighbourhoodPublishFromPerspective(perspectiveUUID, linkLanguage, meta) {
|
|
37
|
+
return "neighbourhood://neighbourhoodAddress";
|
|
38
|
+
}
|
|
39
|
+
neighbourhoodJoinFromUrl(url, pubSub) {
|
|
40
|
+
const perspective = new PerspectiveHandle;
|
|
41
|
+
perspective.name = "test-perspective";
|
|
42
|
+
perspective.sharedUrl = url;
|
|
43
|
+
perspective.uuid = "234234234";
|
|
44
|
+
perspective.state = PerspectiveState.Synced;
|
|
45
|
+
pubSub.publish(PERSPECTIVE_UPDATED_TOPIC, { perspective });
|
|
46
|
+
return perspective;
|
|
47
|
+
}
|
|
48
|
+
neighbourhoodOtherAgents(perspectiveUUID) {
|
|
49
|
+
return ['did:test:other'];
|
|
50
|
+
}
|
|
51
|
+
neighbourhoodHasTelepresenceAdapter(perspectiveUUID) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
neighbourhoodOnlineAgents(perspectiveUUID) {
|
|
55
|
+
const onlineAgent = new OnlineAgent();
|
|
56
|
+
onlineAgent.did = 'did:test:online';
|
|
57
|
+
onlineAgent.status = testPerspectiveExpression;
|
|
58
|
+
return [onlineAgent];
|
|
59
|
+
}
|
|
60
|
+
neighbourhoodSetOnlineStatus(perspectiveUUID, status) {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
neighbourhoodSetOnlineStatusU(perspectiveUUID, status) {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
neighbourhoodSendSignal(perspectiveUUID, recipient, signal) {
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
neighbourhoodSendSignalU(perspectiveUUID, recipient, signal) {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
neighbourhoodSendBroadcast(perspectiveUUID, signal) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
neighbourhoodSendBroadcastU(perspectiveUUID, signal) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
neighbourhoodSignal(pID) {
|
|
79
|
+
return testPerspectiveExpression;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
__decorate([
|
|
83
|
+
Mutation(returns => String),
|
|
84
|
+
__param(0, Arg('perspectiveUUID')),
|
|
85
|
+
__param(1, Arg('linkLanguage')),
|
|
86
|
+
__param(2, Arg('meta')),
|
|
87
|
+
__metadata("design:type", Function),
|
|
88
|
+
__metadata("design:paramtypes", [String, String, PerspectiveInput]),
|
|
89
|
+
__metadata("design:returntype", String)
|
|
90
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodPublishFromPerspective", null);
|
|
91
|
+
__decorate([
|
|
92
|
+
Mutation(returns => PerspectiveHandle),
|
|
93
|
+
__param(0, Arg('url')),
|
|
94
|
+
__param(1, PubSub()),
|
|
95
|
+
__metadata("design:type", Function),
|
|
96
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
97
|
+
__metadata("design:returntype", PerspectiveHandle)
|
|
98
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodJoinFromUrl", null);
|
|
99
|
+
__decorate([
|
|
100
|
+
Query(returns => [String]),
|
|
101
|
+
__param(0, Arg('perspectiveUUID')),
|
|
102
|
+
__metadata("design:type", Function),
|
|
103
|
+
__metadata("design:paramtypes", [String]),
|
|
104
|
+
__metadata("design:returntype", Array)
|
|
105
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodOtherAgents", null);
|
|
106
|
+
__decorate([
|
|
107
|
+
Query(),
|
|
108
|
+
__param(0, Arg('perspectiveUUID')),
|
|
109
|
+
__metadata("design:type", Function),
|
|
110
|
+
__metadata("design:paramtypes", [String]),
|
|
111
|
+
__metadata("design:returntype", Boolean)
|
|
112
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodHasTelepresenceAdapter", null);
|
|
113
|
+
__decorate([
|
|
114
|
+
Query(returns => [OnlineAgent]),
|
|
115
|
+
__param(0, Arg('perspectiveUUID')),
|
|
116
|
+
__metadata("design:type", Function),
|
|
117
|
+
__metadata("design:paramtypes", [String]),
|
|
118
|
+
__metadata("design:returntype", Array)
|
|
119
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodOnlineAgents", null);
|
|
120
|
+
__decorate([
|
|
121
|
+
Mutation(),
|
|
122
|
+
__param(0, Arg('perspectiveUUID')),
|
|
123
|
+
__param(1, Arg('status')),
|
|
124
|
+
__metadata("design:type", Function),
|
|
125
|
+
__metadata("design:paramtypes", [String, PerspectiveInput]),
|
|
126
|
+
__metadata("design:returntype", Boolean)
|
|
127
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodSetOnlineStatus", null);
|
|
128
|
+
__decorate([
|
|
129
|
+
Mutation(),
|
|
130
|
+
__param(0, Arg('perspectiveUUID')),
|
|
131
|
+
__param(1, Arg('status')),
|
|
132
|
+
__metadata("design:type", Function),
|
|
133
|
+
__metadata("design:paramtypes", [String, PerspectiveUnsignedInput]),
|
|
134
|
+
__metadata("design:returntype", Boolean)
|
|
135
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodSetOnlineStatusU", null);
|
|
136
|
+
__decorate([
|
|
137
|
+
Mutation(),
|
|
138
|
+
__param(0, Arg('perspectiveUUID')),
|
|
139
|
+
__param(1, Arg('remoteAgentDid')),
|
|
140
|
+
__param(2, Arg('payload')),
|
|
141
|
+
__metadata("design:type", Function),
|
|
142
|
+
__metadata("design:paramtypes", [String, String, PerspectiveInput]),
|
|
143
|
+
__metadata("design:returntype", Boolean)
|
|
144
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodSendSignal", null);
|
|
145
|
+
__decorate([
|
|
146
|
+
Mutation(),
|
|
147
|
+
__param(0, Arg('perspectiveUUID')),
|
|
148
|
+
__param(1, Arg('remoteAgentDid')),
|
|
149
|
+
__param(2, Arg('payload')),
|
|
150
|
+
__metadata("design:type", Function),
|
|
151
|
+
__metadata("design:paramtypes", [String, String, PerspectiveUnsignedInput]),
|
|
152
|
+
__metadata("design:returntype", Boolean)
|
|
153
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodSendSignalU", null);
|
|
154
|
+
__decorate([
|
|
155
|
+
Mutation(),
|
|
156
|
+
__param(0, Arg('perspectiveUUID')),
|
|
157
|
+
__param(1, Arg('payload')),
|
|
158
|
+
__metadata("design:type", Function),
|
|
159
|
+
__metadata("design:paramtypes", [String, PerspectiveInput]),
|
|
160
|
+
__metadata("design:returntype", Boolean)
|
|
161
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodSendBroadcast", null);
|
|
162
|
+
__decorate([
|
|
163
|
+
Mutation(),
|
|
164
|
+
__param(0, Arg('perspectiveUUID')),
|
|
165
|
+
__param(1, Arg('payload')),
|
|
166
|
+
__metadata("design:type", Function),
|
|
167
|
+
__metadata("design:paramtypes", [String, PerspectiveUnsignedInput]),
|
|
168
|
+
__metadata("design:returntype", Boolean)
|
|
169
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodSendBroadcastU", null);
|
|
170
|
+
__decorate([
|
|
171
|
+
Subscription({ topics: NEIGHBOURHOOD_SIGNAL_RECEIVED_TOPIC, nullable: true }),
|
|
172
|
+
__param(0, Arg('perspectiveUUID')),
|
|
173
|
+
__metadata("design:type", Function),
|
|
174
|
+
__metadata("design:paramtypes", [String]),
|
|
175
|
+
__metadata("design:returntype", PerspectiveExpression)
|
|
176
|
+
], NeighbourhoodResolver.prototype, "neighbourhoodSignal", null);
|
|
177
|
+
NeighbourhoodResolver = __decorate([
|
|
178
|
+
Resolver()
|
|
179
|
+
], NeighbourhoodResolver);
|
|
180
|
+
export default NeighbourhoodResolver;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Link } from "../links/Links";
|
|
2
|
-
export declare class LinkQuery {
|
|
3
|
-
source?: string;
|
|
4
|
-
target?: string;
|
|
5
|
-
predicate?: string;
|
|
6
|
-
fromDate?: Date;
|
|
7
|
-
untilDate?: Date;
|
|
8
|
-
limit?: number;
|
|
9
|
-
constructor(obj: object);
|
|
10
|
-
isMatch(l: Link): boolean;
|
|
11
|
-
}
|
|
1
|
+
import { Link } from "../links/Links";
|
|
2
|
+
export declare class LinkQuery {
|
|
3
|
+
source?: string;
|
|
4
|
+
target?: string;
|
|
5
|
+
predicate?: string;
|
|
6
|
+
fromDate?: Date;
|
|
7
|
+
untilDate?: Date;
|
|
8
|
+
limit?: number;
|
|
9
|
+
constructor(obj: object);
|
|
10
|
+
isMatch(l: Link): boolean;
|
|
11
|
+
}
|