|
1 | 1 | import { Graph } from '@graphprotocol/grc-20'; |
2 | | -import { type Entity, store, Type } from '@graphprotocol/hypergraph'; |
3 | | -import type { Mapping, MappingEntry } from '@graphprotocol/typesync/Mapping'; |
| 2 | +import { type Entity, type Mapping, store, Type } from '@graphprotocol/hypergraph'; |
4 | 3 | import { useQuery as useQueryTanstack } from '@tanstack/react-query'; |
5 | 4 | import { useSelector } from '@xstate/store/react'; |
6 | 5 | import * as Either from 'effect/Either'; |
@@ -172,8 +171,8 @@ const convertPropertyValue = ( |
172 | 171 | const convertRelations = <S extends Entity.AnyNoContext>( |
173 | 172 | queryEntity: RecursiveQueryEntity, |
174 | 173 | type: S, |
175 | | - mappingEntry: MappingEntry, |
176 | | - mapping: Mapping, |
| 174 | + mappingEntry: Mapping.MappingEntry, |
| 175 | + mapping: Mapping.Mapping, |
177 | 176 | ) => { |
178 | 177 | const rawEntity: Record<string, string | boolean | number | unknown[] | Date> = {}; |
179 | 178 |
|
@@ -251,8 +250,8 @@ const convertRelations = <S extends Entity.AnyNoContext>( |
251 | 250 | export const parseResult = <S extends Entity.AnyNoContext>( |
252 | 251 | queryData: EntityQueryResult, |
253 | 252 | type: S, |
254 | | - mappingEntry: MappingEntry, |
255 | | - mapping: Mapping, |
| 253 | + mappingEntry: Mapping.MappingEntry, |
| 254 | + mapping: Mapping.Mapping, |
256 | 255 | ) => { |
257 | 256 | const decode = Schema.decodeUnknownEither(type); |
258 | 257 | const data: Entity.Entity<S>[] = []; |
|
0 commit comments