@perspect3vism/ad4m
Advanced tools
Comparing version 0.1.38 to 0.1.39
@@ -9,3 +9,3 @@ export declare class Link { | ||
additions: LinkInput[]; | ||
removals: LinkExpression[]; | ||
removals: LinkExpressionInput[]; | ||
} | ||
@@ -12,0 +12,0 @@ export declare class LinkInput { |
@@ -46,3 +46,3 @@ "use strict"; | ||
__decorate([ | ||
(0, type_graphql_1.Field)(type => [LinkExpression]), | ||
(0, type_graphql_1.Field)(type => [LinkExpressionInput]), | ||
__metadata("design:type", Array) | ||
@@ -49,0 +49,0 @@ ], LinkMutations.prototype, "removals", void 0); |
import PerspectiveClient, { LinkCallback } from "./PerspectiveClient"; | ||
import { Link, LinkExpression } from "../links/Links"; | ||
import { Link, LinkExpression, LinkExpressionInput } from "../links/Links"; | ||
import { LinkQuery } from "./LinkQuery"; | ||
@@ -20,3 +20,3 @@ import { Neighbourhood } from "../neighbourhood/Neighbourhood"; | ||
update(oldLink: LinkExpression, newLink: Link): Promise<LinkExpression>; | ||
remove(link: LinkExpression): Promise<{ | ||
remove(link: LinkExpressionInput): Promise<{ | ||
perspectiveRemoveLink: boolean; | ||
@@ -23,0 +23,0 @@ }>; |
@@ -121,3 +121,3 @@ "use strict"; | ||
for (const link of cleanedSnapshot.links) { | ||
await this.addLinkExpression(link.data); | ||
await this.addLinkExpression(link); | ||
} | ||
@@ -124,0 +124,0 @@ } |
@@ -9,3 +9,3 @@ export declare class Link { | ||
additions: LinkInput[]; | ||
removals: LinkExpression[]; | ||
removals: LinkExpressionInput[]; | ||
} | ||
@@ -12,0 +12,0 @@ export declare class LinkInput { |
@@ -46,3 +46,3 @@ "use strict"; | ||
__decorate([ | ||
(0, type_graphql_1.Field)(type => [LinkExpression]), | ||
(0, type_graphql_1.Field)(type => [LinkExpressionInput]), | ||
__metadata("design:type", Array) | ||
@@ -49,0 +49,0 @@ ], LinkMutations.prototype, "removals", void 0); |
import PerspectiveClient, { LinkCallback } from "./PerspectiveClient"; | ||
import { Link, LinkExpression } from "../links/Links"; | ||
import { Link, LinkExpression, LinkExpressionInput } from "../links/Links"; | ||
import { LinkQuery } from "./LinkQuery"; | ||
@@ -20,3 +20,3 @@ import { Neighbourhood } from "../neighbourhood/Neighbourhood"; | ||
update(oldLink: LinkExpression, newLink: Link): Promise<LinkExpression>; | ||
remove(link: LinkExpression): Promise<{ | ||
remove(link: LinkExpressionInput): Promise<{ | ||
perspectiveRemoveLink: boolean; | ||
@@ -23,0 +23,0 @@ }>; |
@@ -121,3 +121,3 @@ "use strict"; | ||
for (const link of cleanedSnapshot.links) { | ||
await this.addLinkExpression(link.data); | ||
await this.addLinkExpression(link); | ||
} | ||
@@ -124,0 +124,0 @@ } |
{ | ||
"name": "@perspect3vism/ad4m", | ||
"version": "0.1.38", | ||
"version": "0.1.39", | ||
"description": "*The Agent-Centric Distributed Application Meta-ontology* or just: *Agent-Centric DApp Meta-ontology* * A new meta-ontology for interoperable, decentralized application design * A spanning-layer to enable seamless integration between Holochain DNAs, blockchains, linked-data structures/ontologies and centralized back-ends * The basis for turning distinct, monolithic and siloed apps into a global, open and interoperable sense-making network", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -27,4 +27,4 @@ import { Field, InputType, ObjectType } from "type-graphql"; | ||
@Field(type => [LinkExpression]) | ||
removals: LinkExpression[]; | ||
@Field(type => [LinkExpressionInput]) | ||
removals: LinkExpressionInput[]; | ||
} | ||
@@ -31,0 +31,0 @@ |
import PerspectiveClient, { LinkCallback } from "./PerspectiveClient"; | ||
import { Link, LinkExpression } from "../links/Links"; | ||
import { Link, LinkExpression, LinkExpressionInput } from "../links/Links"; | ||
import { LinkQuery } from "./LinkQuery"; | ||
@@ -94,3 +94,3 @@ import { Neighbourhood } from "../neighbourhood/Neighbourhood"; | ||
async remove(link: LinkExpression) { | ||
async remove(link: LinkExpressionInput) { | ||
return await this.#client.removeLink(this.#handle.uuid, link) | ||
@@ -132,3 +132,3 @@ } | ||
for(const link of cleanedSnapshot.links) { | ||
await this.addLinkExpression(link.data) | ||
await this.addLinkExpression(link) | ||
} | ||
@@ -135,0 +135,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1267379
228
28815