New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@blockprotocol/graph

Package Overview
Dependencies
Maintainers
4
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockprotocol/graph - npm Package Compare versions

Comparing version 0.3.1-canary-20231120181031 to 0.3.1-canary-20231207113055

2

dist/cjs/codegen/parameters.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc