Skip to content

Commit 73e660b

Browse files
committed
move symbols
1 parent f5d6794 commit 73e660b

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed
File renamed without changes.

packages/hypergraph/src/entity/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import type { DocHandle } from '@automerge/automerge-repo';
22
import * as Option from 'effect/Option';
33
import * as Schema from 'effect/Schema';
44
import * as SchemaAST from 'effect/SchemaAST';
5+
import { PropertyIdSymbol } from '../constants.js';
56
import { generateId } from '../utils/generateId.js';
67
import { isRelation } from '../utils/isRelation.js';
78
import { isRelationField } from '../utils/isRelationField.js';
89
import { encodeToGrc20Json } from './entity-new.js';
910
import { findOne, findOneNew } from './findOne.js';
10-
import { PropertyIdSymbol } from './internal-new.js';
1111
import type { AnyNoContext, DocumentContent, DocumentRelation, Entity, EntityNew, Insert } from './types.js';
1212

1313
/**

packages/hypergraph/src/entity/entity-new.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Option from 'effect/Option';
22
import * as Schema from 'effect/Schema';
33
import * as SchemaAST from 'effect/SchemaAST';
4-
import { PropertyIdSymbol, TypeIdsSymbol } from './internal-new.js';
4+
import { PropertyIdSymbol, TypeIdsSymbol } from '../constants.js';
55

66
/**
77
* Entity function for creating schemas with a nicer API.

packages/hypergraph/src/entity/findManyNew.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import type { DocHandle, Patch } from '@automerge/automerge-repo';
22
import * as Option from 'effect/Option';
33
import type * as Schema from 'effect/Schema';
44
import * as SchemaAST from 'effect/SchemaAST';
5+
import { TypeIdsSymbol } from '../constants.js';
56
import { deepMerge } from '../utils/internal/deep-merge.js';
67
import { canonicalize } from '../utils/jsc.js';
78
import { decodedEntitiesCache, type DecodedEntitiesCacheEntry, type QueryEntry } from './decodedEntitiesCacheNew.js';
89
import { decodeFromGrc20Json } from './entity-new.js';
910
import { entityRelationParentsMap } from './entityRelationParentsMap.js';
1011
import { getEntityRelationsNew } from './getEntityRelationsNew.js';
1112
import { hasValidTypesProperty } from './hasValidTypesProperty.js';
12-
import { TypeIdsSymbol } from './internal-new.js';
1313
import type {
1414
CrossFieldFilter,
1515
DocumentContent,

packages/hypergraph/src/entity/findOne.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import type { DocHandle } from '@automerge/automerge-repo';
22
import * as Option from 'effect/Option';
33
import * as Schema from 'effect/Schema';
44
import * as SchemaAST from 'effect/SchemaAST';
5+
import { TypeIdsSymbol } from '../constants.js';
56
import { decodeFromGrc20Json } from './entity-new.js';
67
import { getEntityRelations } from './getEntityRelations.js';
78
import { getEntityRelationsNew } from './getEntityRelationsNew.js';
89
import { hasValidTypesProperty } from './hasValidTypesProperty.js';
9-
import { TypeIdsSymbol } from './internal-new.js';
1010
import type { AnyNoContext, DocumentContent, Entity, EntityNew } from './types.js';
1111

1212
/**

packages/hypergraph/src/entity/getEntityRelationsNew.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as Option from 'effect/Option';
22
import type * as Schema from 'effect/Schema';
33
import * as SchemaAST from 'effect/SchemaAST';
4+
import { PropertyIdSymbol, RelationSchemaSymbol } from '../constants.js';
45
import { isRelation } from '../utils/isRelation.js';
56
import { decodeFromGrc20Json } from './entity-new.js';
6-
import { PropertyIdSymbol, RelationSchemaSymbol } from './internal-new.js';
77
import type { DocumentContent, EntityNew } from './types.js';
88
export const getEntityRelationsNew = <const S extends Schema.Schema.AnyNoContext>(
99
entityId: string,

packages/hypergraph/src/entity/type-new.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as Schema from 'effect/Schema';
2-
import { PropertyIdSymbol, RelationSchemaSymbol, RelationSymbol } from './internal-new.js';
2+
import { PropertyIdSymbol, RelationSchemaSymbol, RelationSymbol } from '../constants.js';
33

44
/**
55
* Creates a String schema with the specified GRC-20 property ID

packages/hypergraph/src/utils/isRelation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as Option from 'effect/Option';
22
import * as SchemaAST from 'effect/SchemaAST';
3-
import { RelationSymbol } from '../entity/internal-new.js';
3+
import { RelationSymbol } from '../constants.js';
44

55
export const isRelation = (ast: SchemaAST.AST) => {
66
return SchemaAST.getAnnotation<boolean>(RelationSymbol)(ast).pipe(Option.getOrElse(() => false));

0 commit comments

Comments
 (0)