@blockprotocol/graph
Advanced tools
Comparing version 0.3.1-canary-20231120181031 to 0.3.1-canary-20231207113055
@@ -23,3 +23,3 @@ import { VersionedUrl } from "@blockprotocol/type-system/slim"; | ||
* The return of this function will be used as the URL to fetch the type from, | ||
* but does NOT affect the id in the generated schema. | ||
* but does NOT affect the type id in the generated schema. | ||
*/ | ||
@@ -26,0 +26,0 @@ getFetchUrlFromTypeId?: (typeId: VersionedUrl) => VersionedUrl; |
@@ -18,3 +18,3 @@ import { Entity, EntityId, LinkEntityAndRightEntity } from "../../../types/entity.js"; | ||
*/ | ||
export declare const getOutgoingLinksForEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined, forceNonTemporal?: boolean) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[]; | ||
export declare const getOutgoingLinksForEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[]; | ||
/** | ||
@@ -34,3 +34,3 @@ * Get all incoming link entities from a given {@link Entity}. | ||
*/ | ||
export declare const getIncomingLinksForEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined, forceNonTemporal?: boolean) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[]; | ||
export declare const getIncomingLinksForEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[]; | ||
/** | ||
@@ -50,3 +50,3 @@ * Get the "left entity" revisions (by default this is the "source") of a given link entity. | ||
*/ | ||
export declare const getLeftEntityForLinkEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined, forceNonTemporal?: boolean) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[] | undefined; | ||
export declare const getLeftEntityForLinkEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[] | undefined; | ||
/** | ||
@@ -66,3 +66,3 @@ * Get the "right entity" revisions (by default this is the "target") of a given link entity. | ||
*/ | ||
export declare const getRightEntityForLinkEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined, forceNonTemporal?: boolean) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[] | undefined; | ||
export declare const getRightEntityForLinkEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[] | undefined; | ||
/** | ||
@@ -69,0 +69,0 @@ * For a given {@link TimeInterval}, get all outgoing link {@link Entity} revisions, and their "target" {@link Entity} |
@@ -23,3 +23,3 @@ import { VersionedUrl } from "@blockprotocol/type-system/slim"; | ||
* The return of this function will be used as the URL to fetch the type from, | ||
* but does NOT affect the id in the generated schema. | ||
* but does NOT affect the type id in the generated schema. | ||
*/ | ||
@@ -26,0 +26,0 @@ getFetchUrlFromTypeId?: (typeId: VersionedUrl) => VersionedUrl; |
@@ -587,3 +587,3 @@ import { LitElement } from 'lit'; | ||
*/ | ||
const getOutgoingLinksForEntity = (subgraph, entityId, interval, forceNonTemporal) => { | ||
const getOutgoingLinksForEntity = (subgraph, entityId, interval) => { | ||
const searchInterval = interval !== undefined | ||
@@ -602,3 +602,3 @@ ? interval | ||
for (const outwardEdge of outwardEdges) { | ||
if (!forceNonTemporal && isTemporalSubgraph(subgraph)) { | ||
if (isTemporalSubgraph(subgraph)) { | ||
const outwardEdgeTemporal = outwardEdge; | ||
@@ -645,4 +645,4 @@ if (isOutgoingLinkEdge(outwardEdgeTemporal)) { | ||
*/ | ||
const getRightEntityForLinkEntity = (subgraph, entityId, interval, forceNonTemporal) => { | ||
if (!forceNonTemporal && isTemporalSubgraph(subgraph)) { | ||
const getRightEntityForLinkEntity = (subgraph, entityId, interval) => { | ||
if (isTemporalSubgraph(subgraph)) { | ||
const searchInterval = interval !== undefined | ||
@@ -649,0 +649,0 @@ ? interval |
@@ -587,3 +587,3 @@ import { LitElement } from 'lit'; | ||
*/ | ||
const getOutgoingLinksForEntity = (subgraph, entityId, interval, forceNonTemporal) => { | ||
const getOutgoingLinksForEntity = (subgraph, entityId, interval) => { | ||
const searchInterval = interval !== undefined | ||
@@ -602,3 +602,3 @@ ? interval | ||
for (const outwardEdge of outwardEdges) { | ||
if (!forceNonTemporal && isTemporalSubgraph(subgraph)) { | ||
if (isTemporalSubgraph(subgraph)) { | ||
const outwardEdgeTemporal = outwardEdge; | ||
@@ -645,4 +645,4 @@ if (isOutgoingLinkEdge(outwardEdgeTemporal)) { | ||
*/ | ||
const getRightEntityForLinkEntity = (subgraph, entityId, interval, forceNonTemporal) => { | ||
if (!forceNonTemporal && isTemporalSubgraph(subgraph)) { | ||
const getRightEntityForLinkEntity = (subgraph, entityId, interval) => { | ||
if (isTemporalSubgraph(subgraph)) { | ||
const searchInterval = interval !== undefined | ||
@@ -649,0 +649,0 @@ ? interval |
@@ -680,3 +680,3 @@ import { useModuleConstructor } from '@blockprotocol/core/react'; | ||
*/ | ||
const getOutgoingLinksForEntity = (subgraph, entityId, interval, forceNonTemporal) => { | ||
const getOutgoingLinksForEntity = (subgraph, entityId, interval) => { | ||
const searchInterval = interval !== undefined | ||
@@ -695,3 +695,3 @@ ? interval | ||
for (const outwardEdge of outwardEdges) { | ||
if (!forceNonTemporal && isTemporalSubgraph(subgraph)) { | ||
if (isTemporalSubgraph(subgraph)) { | ||
const outwardEdgeTemporal = outwardEdge; | ||
@@ -738,4 +738,4 @@ if (isOutgoingLinkEdge(outwardEdgeTemporal)) { | ||
*/ | ||
const getRightEntityForLinkEntity = (subgraph, entityId, interval, forceNonTemporal) => { | ||
if (!forceNonTemporal && isTemporalSubgraph(subgraph)) { | ||
const getRightEntityForLinkEntity = (subgraph, entityId, interval) => { | ||
if (isTemporalSubgraph(subgraph)) { | ||
const searchInterval = interval !== undefined | ||
@@ -742,0 +742,0 @@ ? interval |
@@ -680,3 +680,3 @@ import { useModuleConstructor } from '@blockprotocol/core/react'; | ||
*/ | ||
const getOutgoingLinksForEntity = (subgraph, entityId, interval, forceNonTemporal) => { | ||
const getOutgoingLinksForEntity = (subgraph, entityId, interval) => { | ||
const searchInterval = interval !== undefined | ||
@@ -695,3 +695,3 @@ ? interval | ||
for (const outwardEdge of outwardEdges) { | ||
if (!forceNonTemporal && isTemporalSubgraph(subgraph)) { | ||
if (isTemporalSubgraph(subgraph)) { | ||
const outwardEdgeTemporal = outwardEdge; | ||
@@ -738,4 +738,4 @@ if (isOutgoingLinkEdge(outwardEdgeTemporal)) { | ||
*/ | ||
const getRightEntityForLinkEntity = (subgraph, entityId, interval, forceNonTemporal) => { | ||
if (!forceNonTemporal && isTemporalSubgraph(subgraph)) { | ||
const getRightEntityForLinkEntity = (subgraph, entityId, interval) => { | ||
if (isTemporalSubgraph(subgraph)) { | ||
const searchInterval = interval !== undefined | ||
@@ -742,0 +742,0 @@ ? interval |
@@ -18,3 +18,3 @@ import { Entity, EntityId, LinkEntityAndRightEntity } from "../../../types/entity.js"; | ||
*/ | ||
export declare const getOutgoingLinksForEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined, forceNonTemporal?: boolean) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[]; | ||
export declare const getOutgoingLinksForEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[]; | ||
/** | ||
@@ -34,3 +34,3 @@ * Get all incoming link entities from a given {@link Entity}. | ||
*/ | ||
export declare const getIncomingLinksForEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined, forceNonTemporal?: boolean) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[]; | ||
export declare const getIncomingLinksForEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[]; | ||
/** | ||
@@ -50,3 +50,3 @@ * Get the "left entity" revisions (by default this is the "source") of a given link entity. | ||
*/ | ||
export declare const getLeftEntityForLinkEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined, forceNonTemporal?: boolean) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[] | undefined; | ||
export declare const getLeftEntityForLinkEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[] | undefined; | ||
/** | ||
@@ -66,3 +66,3 @@ * Get the "right entity" revisions (by default this is the "target") of a given link entity. | ||
*/ | ||
export declare const getRightEntityForLinkEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined, forceNonTemporal?: boolean) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[] | undefined; | ||
export declare const getRightEntityForLinkEntity: <Temporal extends boolean>(subgraph: Subgraph<Temporal, import("../../../types/subgraph.js").SubgraphRootType<Temporal>>, entityId: EntityId, interval?: (Temporal extends true ? TimeInterval<import("../../../types/temporal-versioning.js").TemporalBound, import("../../../types/temporal-versioning.js").TemporalBound> : undefined) | undefined) => Entity<Temporal, Record<string, import("../../../types/entity.js").EntityPropertyValue>>[] | undefined; | ||
/** | ||
@@ -69,0 +69,0 @@ * For a given {@link TimeInterval}, get all outgoing link {@link Entity} revisions, and their "target" {@link Entity} |
{ | ||
"name": "@blockprotocol/graph", | ||
"version": "0.3.1-canary-20231120181031", | ||
"version": "0.3.1-canary-20231207113055", | ||
"description": "Implementation of the Block Protocol Graph service specification for blocks and embedding applications", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1385028