diff --git a/src/api/dataStoreApi/types.ts b/src/api/dataStoreApi/types.ts index 9ee96b5..b7c0685 100644 --- a/src/api/dataStoreApi/types.ts +++ b/src/api/dataStoreApi/types.ts @@ -37,7 +37,7 @@ export interface DataStoreDomain { buyNow: BuyNow; locked: boolean; // Older domains may not have these properties lockedBy: string; - resources: MappingResourceAssociations; + resources: ResourceAssociations; } export interface BuyNowPriceListing { @@ -60,7 +60,7 @@ export interface ResourceAssociation extends ResourceRegistry { resourceId: string; } -export interface MappingResourceAssociations { +export interface ResourceAssociations { [resourceType: string]: ResourceAssociation; } diff --git a/src/types.ts b/src/types.ts index 3f8dcfc..b44c8bc 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,8 +4,8 @@ import { Bid, BuyNowListing } from "./zAuction"; import { BuyNowPriceListing, DomainSortOptions, - MappingResourceAssociations, ResourceAssociation, + ResourceAssociations, ResourceRegistry, } from "./api/dataStoreApi/types"; @@ -812,7 +812,7 @@ export interface Domain { created?: Created; isRoot?: boolean; buyNow?: BuyNowPriceListing; - resources?: MappingResourceAssociations; + resources?: ResourceAssociations; } export interface DomainMetadata {